diff --git a/nsock/src/configure b/nsock/src/configure index a86df8b38..f0d3cd22c 100755 --- a/nsock/src/configure +++ b/nsock/src/configure @@ -3534,6 +3534,7 @@ if test "${with_libpcap+set}" = set; then : if test "x$ac_cv_header_pcap_h" = xyes; then : have_libpcap=yes + LIBPCAP_LIBS=-lpcap fi diff --git a/nsock/src/configure.ac b/nsock/src/configure.ac index 75f8ee5e3..1772e9da8 100644 --- a/nsock/src/configure.ac +++ b/nsock/src/configure.ac @@ -125,7 +125,8 @@ AC_HELP_STRING([--without-libpcap], [Disable pcap functions.]), [ case "$with_libpcap" in yes) AC_CHECK_HEADER(pcap.h,[ - have_libpcap=yes ]) + have_libpcap=yes + LIBPCAP_LIBS=-lpcap ]) ;; included) have_libpcap=no