diff options
Diffstat (limited to 'security/yersinia/files/patch-configure')
-rw-r--r-- | security/yersinia/files/patch-configure | 78 |
1 files changed, 76 insertions, 2 deletions
diff --git a/security/yersinia/files/patch-configure b/security/yersinia/files/patch-configure index 4ac604b2c151..7f22632cd561 100644 --- a/security/yersinia/files/patch-configure +++ b/security/yersinia/files/patch-configure @@ -1,5 +1,5 @@ ---- configure~ Sun Jun 18 17:24:36 2006 -+++ configure Mon Jul 10 17:43:09 2006 +--- ./configure.orig Sun Jun 18 12:24:36 2006 ++++ ./configure Fri Sep 29 15:04:21 2006 @@ -2971,7 +2971,8 @@ @@ -19,3 +19,77 @@ else pcap_dir="$dir" fi +@@ -3997,62 +3998,8 @@ + + + +-echo "$as_me:$LINENO: checking for a complete set of libnet headers" >&5 +-echo $ECHO_N "checking for a complete set of libnet headers... $ECHO_C" >&6 +- +-possible_dirs="`eval echo -n ${includedir}` \ +- /usr/include /usr/include/libnet \ +- /usr/local/include /usr/local/include/libnet \ +- /usr/share/include /usr/share/include/libnet" +- +-possible_libnet_config_dirs="/usr /usr/local /opt" +- +- +-# Check whether --with-libnet-includes or --without-libnet-includes was given. +-if test "${with_libnet_includes+set}" = set; then +- withval="$with_libnet_includes" +- LIBNET_DIR=$withval LIBNET_CONFIG_DIR=$withval +-else +- LIBNET_DIR=$possible_dirs LIBNET_CONFIG_DIR=$possible_libnet_config_dirs +-fi; +- +-libnet_dir="" +-for dir in $LIBNET_DIR ; do +- if test -d $dir -a -r "$dir/libnet.h" ; then +- if test -n "$libnet_dir" -a "$libnet_dir" != "$dir"; then +- echo +- echo; echo more than one set found in: +- echo $libnet_dir +- echo $dir +- echo; echo please wipe out all unused libnet installations +- exit +- else +- libnet_dir="$dir" +- fi +- fi +-done +- +-for dir in $LIBNET_CONFIG_DIR ; do +- if test -d $dir -a -r "$dir/bin/libnet-config" ; then +- libnet_config_dir="$dir/bin" +- fi +-done +- +-if test -z "$libnet_dir" ; then +- echo no; echo !!! couldn\'t find a complete set of libnet headers +- exit +-else +- echo found $libnet_dir +- +- LIBNET_INCLUDE="-I$libnet_dir" +- LIBNET_LINK="-L`dirname $libnet_dir`/lib" +- LIBNET_CONFIG="$libnet_config_dir/libnet-config" +- +- +- +- +- +-fi ++LIBNET_INCLUDE="`$LIBNET_CONFIG --cflags`" ++LIBNET_LINK="" + + if test "$LIBNET_LINK" != "-L/usr/lib" ; then + LIBS="$LIBS $LIBNET_LINK" +@@ -4067,7 +4014,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lnet $LIBS" ++LIBS="`$LIBNET_CONFIG --libs` $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF |