Added
Link Here
|
1 |
--- configure.ac.orig 2022-07-05 09:38:08 UTC |
2 |
+++ configure.ac |
3 |
@@ -91,10 +91,9 @@ fi |
4 |
]) |
5 |
|
6 |
if test $backend = freebsd; then |
7 |
-AC_SUBST(CPPFLAGS, "$CPPFLAGS -I${prefix}/include/libepoll-shim") |
8 |
-AC_SUBST(LDFLAGS, "$LDFLAGS -L${prefix}/lib") |
9 |
-AC_CHECK_HEADERS([sys/epoll.h],[],[AC_MSG_ERROR([Missing libepoll-shim])]) |
10 |
-AC_CHECK_LIB(epoll-shim, epoll_create1) |
11 |
+PKG_CHECK_MODULES([EPOLLSHIM], [epoll-shim-interpose]) |
12 |
+AC_SUBST(CPPFLAGS, "$CPPFLAGS $EPOLLSHIM_CFLAGS") |
13 |
+AC_SUBST(LDFLAGS, "$LDFLAGS $EPOLLSHIM_LIBS") |
14 |
AC_SUBST(CPPFLAGS, "$CPPFLAGS -DDEFAULT_RSHIM_CONFIG_FILE='\"${prefix}/etc/rshim.conf\"'") |
15 |
else |
16 |
AC_SUBST(CPPFLAGS, "$CPPFLAGS -DDEFAULT_RSHIM_CONFIG_FILE='\"/etc/rshim.conf\"'") |