ports/net/tcptraceroute-devel/files/patch-configure
Martin Wilke f3a0dc9136 - Update to 1.5beta7
PR:		118738
Submitted by:	Josh Carroll <josh.carroll@gmail.com>
2007-12-27 22:08:27 +00:00

46 lines
1.5 KiB
Text

--- 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