From c98257f57ef4cb71f4b00f548773a3c06fe62b08 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 31 Jan 2015 10:15:25 +0100 Subject: [PATCH] sldump-0.9-libpcap.patch --- base/pcap-snoop.c | 2 +- configure.in | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/pcap-snoop.c b/base/pcap-snoop.c index b74f49d..9869923 100644 --- a/base/pcap-snoop.c +++ b/base/pcap-snoop.c @@ -49,7 +49,7 @@ static char *RCSSTRING="$Id: pcap-snoop.c,v 1.14 2002/09/09 21:02:58 ekr Exp $"; #include #include -#include +#include #ifndef _WIN32 #include #endif diff --git a/configure.in b/configure.in index b4e0f2f..fcdadc9 100644 --- a/configure.in +++ b/configure.in @@ -62,7 +62,7 @@ RECORD_MOD="dummy" dnl Look for PCAP dnl We absolutely need pcap ac_pcap_inc_dir="/usr/include /usr/include/pcap /usr/local/include" -ac_pcap_lib_dir="/usr/lib /usr/local/lib" +ac_pcap_lib_dir="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib" AC_ARG_WITH(pcap,[--with-pcap root location for pcap library], if test "$withval" = "no"; then @@ -102,13 +102,13 @@ fi AC_MSG_CHECKING(for PCAP library) ac_found_pcap_lib_dir="no" for dir in $ac_pcap_lib_dir; do - if test -f $dir/libpcap.a; then + if test -f $dir/libpcap.a -o -f $dir/libpcap.so; then dnl Ok, we think we've found them, but check that they dnl actually ontain the right functions save_LIBS=$LIBS save_LDFLAGS=$LDFLAGS LIBS="-lpcap $LIBS" - if test "$dir" != "/usr/lib"; then + if test "$dir" != "/usr/lib" -a "$dir" != "/usr/lib64"; then LDFLAGS="-L$dir $LDFLAGS" fi AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true",