blob: b33110a8f45eb9156c21350bd4f437b42369dd7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$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
|