Commit 67ff2abd authored by Søren Løvborg's avatar Søren Løvborg

configure: Fix argument order for probing libpcap.

Fix configure script, which would incorrectly pass -lpcap to gcc
BEFORE the source file, causing problems detecting libpcap features
under some circumstances.
Signed-off-by: default avatarSøren Løvborg <soeren.j.loevborg@siemens.com>
parent e2082cd4
......@@ -10337,8 +10337,8 @@ $as_echo "$ac_cv_pcap_library_path" >&6; }
$as_echo "#define HAVE_PCAP 1" >>confdefs.h
saveflags="$LDFLAGS"
LDFLAGS="$saveflags $PCAP_LIBS"
savelibs="$LIBS"
LIBS="$savelibs $PCAP_LIBS"
for ac_func in pcap_inject pcap_sendpacket pcap_setdirection pcap_setnonblock
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
......@@ -10351,7 +10351,7 @@ _ACEOF
fi
done
LDFLAGS="$saveflags"
LIBS="$savelibs"
fi
......
......@@ -403,10 +403,10 @@ AC_DEFUN([CLICK_CHECK_LIBPCAP], [
if test "$HAVE_PCAP" = yes; then
AC_DEFINE([HAVE_PCAP], [1], [Define if you have -lpcap and pcap.h.])
saveflags="$LDFLAGS"
LDFLAGS="$saveflags $PCAP_LIBS"
savelibs="$LIBS"
LIBS="$savelibs $PCAP_LIBS"
AC_CHECK_FUNCS([pcap_inject pcap_sendpacket pcap_setdirection pcap_setnonblock])
LDFLAGS="$saveflags"
LIBS="$savelibs"
fi
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment