From 9a6d6292f55126c72b41dc93a45b54a2fa4ef365 Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Tue, 9 Oct 2018 16:58:34 +0330 Subject: [PATCH] Fix bulid against libpcap when `--enable-readpcap` is given --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a75b26b..27ff286 100755 --- a/configure.ac +++ b/configure.ac @@ -104,7 +104,7 @@ fi ) AC_ARG_WITH(pcappath, -[ --with-pcappath=PATH Expect RRD installed in PATH; default /usr/local], +[ --with-pcappath=PATH Expect libpcap installed in PATH; default /usr/local], if test "x$with_pcappath" = "xyes" ; then CPPFLAGS="${CPPFLAGS} -I/usr/local/include" LDFLAGS="${LDFLAGS} -L/usr/local/lib" @@ -242,7 +242,7 @@ AC_ARG_ENABLE(nfpcapd, cat >>config.h <<_ACEOF #define HAVE_LIBPCAP 1 _ACEOF -RRD_LIBS="-lpcap" +PCAP_LIBS="-lpcap" AC_SUBST(PCAP_LIBS) ] , AC_MSG_ERROR(Can not link libpcap. Please specify --with-pcappath=.. configure failed! ))