1 --- tcpdump-4.6.2/aclocal.m4.orig 2014-09-08 20:03:01.007141908 +0200
2 +++ tcpdump-4.6.2/aclocal.m4 2014-09-08 20:06:33.077133032 +0200
5 AC_MSG_CHECKING(for local pcap library)
8 - places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9 - egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
10 - places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \
11 - egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
12 - for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; 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)