1 --- tcpdump-4.1/aclocal.m4~ 2010-03-12 03:56:43.000000000 +0200
2 +++ tcpdump-4.1/aclocal.m4 2010-04-01 14:44:14.199261084 +0300
7 - AC_MSG_CHECKING(for local pcap library)
10 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
11 - egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
12 - for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
13 - basedir=`echo $dir | sed -e 's/[[ab]][[0-9]]*$//' | \
14 - sed -e 's/-PRE-GIT$//' `
15 - if test $lastdir = $basedir ; then
16 - dnl skip alphas when an actual release is present
20 - if test -r $dir/libpcap.a ; then
21 - libpcap=$dir/libpcap.a
23 - dnl continue and select the last one that exists
26 - if test $libpcap = FAIL ; then
27 - AC_MSG_RESULT(not found)
30 # Look for pcap-config.
33 AC_MSG_RESULT(found -- -I$d added)
38 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
39 - egrep '/libpcap-[[0-9]]*.[[0-9]]*(.[[0-9]]*)?([[ab]][[0-9]]*)?$'`
40 - if test -r $d/pcap.h; then
42 - elif test -r $places/pcap.h; then
45 - AC_MSG_ERROR(cannot find pcap.h, see INSTALL)
47 - AC_MSG_RESULT($libpcap)
48 - AC_PATH_PROG(PCAP_CONFIG, pcap-config,, $d)
49 - if test -n "$PCAP_CONFIG"; then
51 - # The libpcap directory has a pcap-config script.
52 - # Use it to get any additioal libraries needed
53 - # to link with the libpcap archive library in
56 - libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
60 if ! test -n "$PCAP_CONFIG" ; then