configure changes
Dave Dykstra
dwd at bell-labs.com
Thu Oct 25 02:05:58 EST 2001
Aack! Why are all those -I/usr/local/include in CPPFLAGS and
-L/usr/local/lib in LDFLAGS for many different machine types in
configure.in? The contents of those directories are different depending on
individual system installations, right? I can't imagine a good reason for
including them by default. The Solaris 2.5.1 machine I do my builds on
happens to have a libz.so in /usr/local/lib, and everything compiled and
ran fine on that machine but when I distributed the binaries to all my
solaris machines last night they couldn't find libz.so. Those /usr/local
flags have been in there for a while (at least in version 2.9p2), but I
just started using the new --with-zlib=PATH option to point configure to a
directory where I have only a libz.a which didn't work because the
-L/usr/local/lib took precedence, and I used to pre-set the *FLAGS
environment variables to find libz so I didn't notice before.
Also, I tried to find some history in a cvsweb but apparently none is
available for OpenSSH portable; can that be made available?
Below is a patch to remove the /usr/local *FLAGS references in
configure.in. I haven't tried them all, but I have tried the *-irix6*,
*-sysv4.2*, and the *-solaris* cases.
- Dave Dykstra
--- configure.in.O Wed Oct 24 11:30:58 2001
+++ configure.in Wed Oct 24 11:30:58 2001
@@ -54,10 +54,8 @@
case "$host" in
*-*-aix*)
AFS_LIBS="-lld"
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
if (test "$LD" != "gcc" && test -z "$blibpath"); then
- blibpath="/usr/lib:/lib:/usr/local/lib"
+ blibpath="/usr/lib:/lib"
fi
AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
AC_DEFINE(BROKEN_GETADDRINFO)
@@ -102,14 +100,10 @@
LIBS="$LIBS -lxnet -lsec"
;;
*-*-irix5*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS"
PATH="$PATH:/usr/etc"
AC_DEFINE(BROKEN_INET_NTOA)
;;
*-*-irix6*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS"
PATH="$PATH:/usr/etc"
AC_DEFINE(WITH_IRIX_ARRAY)
AC_DEFINE(WITH_IRIX_PROJECT)
@@ -146,12 +140,8 @@
AC_DEFINE(BROKEN_REALPATH)
AC_DEFINE(USE_PIPES)
AC_DEFINE(BROKEN_SAVED_UIDS)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- CFLAGS="$CFLAGS"
;;
*-*-solaris*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
need_dash_r=1
AC_DEFINE(PAM_SUN_CODEBASE)
AC_DEFINE(LOGIN_NEEDS_UTMPX)
@@ -179,14 +169,10 @@
AC_DEFINE(USE_PIPES)
;;
*-ncr-sysv*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
LIBS="$LIBS -lc89"
AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
;;
*-sni-sysv*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
IPADDR_IN_DISPLAY=yes
AC_DEFINE(USE_PIPES)
AC_DEFINE(IP_TOS_IS_BROKEN)
@@ -194,24 +180,17 @@
LIBS="$LIBS -lgen -lnsl -lucb"
;;
*-*-sysv4.2*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
# enable_suid_ssh=no
AC_DEFINE(USE_PIPES)
;;
*-*-sysv5*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
# enable_suid_ssh=no
AC_DEFINE(USE_PIPES)
;;
*-*-sysv*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
;;
*-*-sco3.2v4*)
- CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
+ CPPFLAGS="$CPPFLAGS -Dftruncate=chsize"
LIBS="$LIBS -los -lprot -lx -ltinfo -lm"
rsh_path="/usr/bin/rcmd"
RANLIB=true
@@ -227,8 +206,6 @@
do_sco3_extra_lib_check=yes
;;
*-*-sco3.2v5*)
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
LIBS="$LIBS -lprot -lx -ltinfo -lm"
no_dev_ptmx=1
rsh_path="/usr/bin/rcmd"
@@ -243,7 +220,7 @@
no_libsocket=1
no_libnsl=1
AC_DEFINE(USE_PIPES)
- LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib"
+ LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
LIBS="$LIBS -lgen -lrsc"
;;
*-dec-osf*)
More information about the openssh-unix-dev
mailing list