freebsd-ports/net/gspoof/files/patch-configure
Pav Lucistnik eb81a88093 - Patch net/libnet* to versioned libraries and header files, so they can
coexist

PR:		ports/103861
Submitted by:	alepulver
Tested by:	pointyhat
With hat:	portmgr
2007-01-31 14:09:55 +00:00

30 lines
1.2 KiB
Text

--- ./configure.orig Tue Dec 23 07:54:42 2003
+++ ./configure Wed Sep 27 18:23:26 2006
@@ -2505,24 +2505,12 @@
as_ac_File=`echo "ac_cv_file_$LIBNET_PREFIX/lib/libnet.a" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $LIBNET_PREFIX/lib/libnet.a" >&5
echo $ECHO_N "checking for $LIBNET_PREFIX/lib/libnet.a... $ECHO_C" >&6
-if eval "test \"\${$as_ac_File+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- test "$cross_compiling" = yes &&
- { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
- { (exit 1); exit 1; }; }
-if test -r "$LIBNET_PREFIX/lib/libnet.a"; then
- eval "$as_ac_File=yes"
-else
- eval "$as_ac_File=no"
-fi
-fi
+eval "$as_ac_File=yes"
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
if test `eval echo '${'$as_ac_File'}'` = yes; then
- LDFLAGS="-L$LIBNET_PREFIX/lib"
- CPPFLAGS="-I$LIBNET_PREFIX/include"
+ LDFLAGS="`libnet-config --libs`"
+ CPPFLAGS="`libnet-config --cflags`"
else
{ { echo "$as_me:$LINENO: error:
Libnet-1.1.1 Packet Shaping Library is required!