summaryrefslogtreecommitdiff
path: root/net/tcptraceroute-devel/files/patch-configure
blob: 9fe536ac4aa0d9d3fbcba820524616daa443244b (plain) (blame)
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
38
39
40
41
42
43
44
45
46
--- configure.old	2006-03-28 20:49:55.000000000 -0500
+++ configure	2007-12-13 13:57:42.000000000 -0500
@@ -3713,38 +3713,11 @@
 
 fi;
 
-LIBNET_CONFIG="libnet-config"	# relative, using $PATH
-
-# Check whether --with-libnet or --without-libnet was given.
-if test "${with_libnet+set}" = set; then
-  withval="$with_libnet"
-
-		LIBNETCC=""
-		LIBNETLD=""
-
-		test -x "$withval/bin/libnet-config" &&	LIBNET_CONFIG="$withval/bin/libnet-config"
-		test -x "$withval/libnet-config"	 &&	LIBNET_CONFIG="$withval/libnet-config"
-
-		test -f "$withval/libnet.h"			&&	LIBNETCC="$LIBNETCC -I$withval"
-		test -f "$withval/include/libnet.h"	&&	LIBNETCC="$LIBNETCC -I$withval/include"
-
-		test -f "$withval/libnet.a"			&&	LIBNETLD="$LIBNETLD -L$withval"
-		test -f "$withval/lib/libnet.a"		&&	LIBNETLD="$LIBNETLD -L$withval/lib"
-
-		if test -z "$LIBNETCC" -o -z "$LIBNETLD"
-		then
-			{ { echo "$as_me:$LINENO: error: No valid libnet library found in $withval" >&5
-echo "$as_me: error: No valid libnet library found in $withval" >&2;}
-   { (exit 1); exit 1; }; }
-		else
-			CPPFLAGS="$CPPFLAGS $LIBNETCC"
-			LDFLAGS="$LDFLAGS $LIBNETLD"
-			{ echo "$as_me:$LINENO: using libnet in $withval" >&5
-echo "$as_me: using libnet in $withval" >&6;}
-		fi
-
-fi;
-
+LIBNET_CONFIG="libnet11-config"	# relative, using $PATH
+LIBNETCC=`$LIBNET_CONFIG --cflags`
+LIBNETLD=`$LIBNET_CONFIG --libs`
+CPPFLAGS="$CPPFLAGS $LIBNETCC"
+LDFLAGS="$LDFLAGS $LIBNETLD"
 
 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6