pfring: workaround potential librt deps

It seems some version of pfring needs to be link with librt.
pull/714/head
Eric Leblond 13 years ago committed by Victor Julien
parent 58eb6428d1
commit a75911e02f

@ -875,6 +875,9 @@
LIBPFRING="" LIBPFRING=""
AC_CHECK_LIB(pfring, pfring_open,, LIBPFRING="no", [-lpcap]) AC_CHECK_LIB(pfring, pfring_open,, LIBPFRING="no", [-lpcap])
if test "$LIBPFRING" = "no"; then
LIBPFRING=""
AC_CHECK_LIB(pfring, pfring_stats,, LIBPFRING="no", [-lpcap -lrt])
if test "$LIBPFRING" = "no"; then if test "$LIBPFRING" = "no"; then
if test "x$enable_pfring" = "xyes"; then if test "x$enable_pfring" = "xyes"; then
echo echo
@ -883,6 +886,9 @@
echo echo
exit 1 exit 1
fi fi
else
LIBS="${LIBS} -lrt"
fi
fi fi
LIBPFRING_ENABLE_RING="" LIBPFRING_ENABLE_RING=""

Loading…
Cancel
Save