pfring: workaround potential librt deps

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

@ -876,12 +876,18 @@
LIBPFRING=""
AC_CHECK_LIB(pfring, pfring_open,, LIBPFRING="no", [-lpcap])
if test "$LIBPFRING" = "no"; then
if test "x$enable_pfring" = "xyes"; then
echo
echo " ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it"
echo " from http://www.ntop.org/PF_RING.html"
echo
exit 1
LIBPFRING=""
AC_CHECK_LIB(pfring, pfring_stats,, LIBPFRING="no", [-lpcap -lrt])
if test "$LIBPFRING" = "no"; then
if test "x$enable_pfring" = "xyes"; then
echo
echo " ERROR! --enable-pfring was passed but the library was not found or version is >4, go get it"
echo " from http://www.ntop.org/PF_RING.html"
echo
exit 1
fi
else
LIBS="${LIBS} -lrt"
fi
fi

Loading…
Cancel
Save