diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-22 21:33:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-22 21:33:21 -0800 |
commit | e325894a353f221ae60cd7c6d71f6688f4c00453 (patch) | |
tree | 43953475ba53ff4f3cc068d93f514bbc26a0b944 | |
parent | 27f68cf1a8e29c13bade1a07da0e5015f6d5a7fe (diff) | |
download | tcpdump-e325894a353f221ae60cd7c6d71f6688f4c00453.tar.gz |
If we have a local libpcap, add it to the dependencies for tcpdump.
We weren't doing so if we found a local pcap-config script.
-rw-r--r-- | aclocal.m4 | 8 | ||||
-rwxr-xr-x | configure | 8 |
2 files changed, 12 insertions, 4 deletions
@@ -593,7 +593,12 @@ AC_DEFUN(AC_LBL_LIBPCAP, fi else # - # We found a local libpcap. + # We found a local libpcap. Add it to the dependencies for + # tcpdump. + # + $1=$libpcap + + # # Look for its pcap-config script. # AC_PATH_PROG(PCAP_CONFIG, pcap-config,, $local_pcap_dir) @@ -618,7 +623,6 @@ AC_DEFUN(AC_LBL_LIBPCAP, # It doesn't have a pcap-config script. # Make sure it has a pcap.h file. # - $1=$libpcap places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ egrep '/libpcap-[[0-9]]*.[[0-9]]*(.[[0-9]]*)?([[ab]][[0-9]]*)?$'` places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ @@ -5515,7 +5515,12 @@ $as_echo "found -- -I$d added" >&6; } fi else # - # We found a local libpcap. + # We found a local libpcap. Add it to the dependencies for + # tcpdump. + # + V_PCAPDEP=$libpcap + + # # Look for its pcap-config script. # # Extract the first word of "pcap-config", so it can be a program name with args. @@ -5579,7 +5584,6 @@ fi # It doesn't have a pcap-config script. # Make sure it has a pcap.h file. # - V_PCAPDEP=$libpcap places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ |