9f4ad01
Do not attempt to search for local libpcap libraries lying around in the parent
9f4ad01
of the build directory, or anywhere else random. This is not expected to
9f4ad01
succeed anyway, but it is better to be sure.
9f4ad01
9f4ad01
diff -Naur arpwatch-3.1-original/configure arpwatch-3.1/configure
9f4ad01
--- arpwatch-3.1-original/configure	2020-04-05 20:22:04.000000000 -0400
9f4ad01
+++ arpwatch-3.1/configure	2020-11-07 11:59:40.114550004 -0500
9f4ad01
@@ -5437,6 +5437,7 @@
6ced790
     places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
6ced790
 	egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'`
6ced790
     for dir in $places ../libpcap libpcap ; do
6ced790
+	    break
6ced790
 	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
6ced790
 	    if test $lastdir = $basedir ; then
6ced790
 		    		    continue;