$NetBSD: patch-aa,v 1.8 2006/11/29 10:28:48 adam Exp $ --- configure.orig 2006-11-15 04:40:56.000000000 +0100 +++ configure @@ -4021,16 +4021,8 @@ fi pcap_dir="" for dir in $PCAP_DIR ; do if test -d $dir -a -r "$dir/pcap.h" ; then - if test -n "$pcap_dir" -a "$pcap_dir" != "$dir"; then - echo - echo; echo more than one set found in: - echo $pcap_dir - echo $dir - echo; echo please wipe out all unused pcap installations - exit - else - pcap_dir="$dir" - fi + pcap_dir="$dir" + break fi done @@ -4256,7 +4248,12 @@ if test "${ac_cv_lib_pcap_pcap_open_live echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcap $LIBS" +case `uname -s` in +SunOS) + LIBS="-lpcap -lxnet $LIBS" ;; +*) + LIBS="-lpcap $LIBS" ;; +esac cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF