aboutsummaryrefslogtreecommitdiff
path: root/net/tcptraceroute-devel/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'net/tcptraceroute-devel/files/patch-configure')
-rw-r--r--net/tcptraceroute-devel/files/patch-configure46
1 files changed, 46 insertions, 0 deletions
diff --git a/net/tcptraceroute-devel/files/patch-configure b/net/tcptraceroute-devel/files/patch-configure
new file mode 100644
index 000000000000..9fe536ac4aa0
--- /dev/null
+++ b/net/tcptraceroute-devel/files/patch-configure
@@ -0,0 +1,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