openbsd-ports/net/sniffit/patches/patch-af

96 lines
2.5 KiB
Plaintext

*** configure.orig Fri Apr 18 16:33:57 1997
--- configure Thu May 7 15:18:45 1998
***************
*** 712,726 ****
fi
! NCURSES_PATH=/usr/include:/usr/include/ncurses:/usr/include/curses:/usr/local/include:/usr/local/include/ncurses:/usr/local/include/curses
! echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
! echo "configure:718: checking for main in -lncurses" >&5
! ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
! LIBS="-lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 726 "configure"
#include "confdefs.h"
--- 712,726 ----
fi
! NCURSES_PATH=/usr/include:/usr/include/curses:/usr/include/curses:/usr/local/include:/usr/local/include/curses:/usr/local/include/curses
! echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
! echo "configure:718: checking for main in -lcurses" >&5
! ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
! LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <<EOF
#line 726 "configure"
#include "confdefs.h"
***************
*** 744,763 ****
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
! ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
! LIBS="-lncurses $LIBS"
else
echo "$ac_t""no" 1>&6
fi
! for ac_prog in ncurses.h
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
--- 744,763 ----
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
! ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
! LIBS="-lcurses $LIBS"
else
echo "$ac_t""no" 1>&6
fi
! for ac_prog in curses.h
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
***************
*** 1299,1304 ****
--- 1299,1312 ----
freebsd*)
cat >> confdefs.h <<\EOF
#define FREEBSD 1
+ EOF
+
+ OS_OPT=
+
+ ;;
+ openbsd*)
+ cat >> confdefs.h <<\EOF
+ #define OPENBSD 1
EOF
OS_OPT=