pkgsrc/net/ncftp2/patches/patch-ac
1999-07-13 01:34:40 +00:00

47 lines
1.2 KiB
Text

$NetBSD: patch-ac,v 1.5 1999/07/13 01:34:42 jlam Exp $
--- configure.orig Sun Jun 8 01:25:04 1997
+++ configure Wed Jul 7 00:05:26 1999
@@ -1069,6 +1069,7 @@
# See if we should add -I/usr/local/include -L/usr/local/lib, etc.
+if test "$nc_cv_extra_dirs" = yes ; then
echo "checking for extra include and lib directories..." 1>&6
b1=`cd .. ; pwd`
b2=`cd ../.. ; pwd`
@@ -1128,6 +1129,7 @@
fi
done
done
+fi
# Look for SunOS' /usr/5lib and 5include directories, because
@@ -1766,7 +1768,7 @@
echo "$ac_t""no" 1>&6
fi
- if test "$ac_cv_lib_socks5" = yes ; then
+ if test "$ac_cv_lib_socks5_SOCKSinit" = yes ; then
nc_cv_socks=no
else
LIBS="$savelibs"
@@ -2345,7 +2347,7 @@
# See if we should add -I/usr/local/ncurses
-incdir="/usr/local/ncurses"
+incdir="$prefix/ncurses"
if test -r $incdir ; then
case "$CPPFLAGS" in
*${incdir}*)
@@ -2366,7 +2368,7 @@
# Some people (me) have two versions of ncurses on
# the system. Use the one in /usr/local first.
case "$CPPFLAGS" in
- */usr/local/include/ncurses*/usr/include/ncurses*)
+ *$prefix/include/ncurses*/usr/include/ncurses*)
CPPFLAGS=`echo "$CPPFLAGS" | sed 's@-I/usr/include/ncurses@@g'`
esac
fi