configure changes
Tim Rice
tim at multitalents.net
Thu Oct 25 13:46:44 EST 2001
On Wed, 24 Oct 2001, Dave Dykstra wrote:
>
> 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.
>
Does this patch help?
---------------------< cut here >------------------------
--- configure.in.old Tue Oct 23 22:36:55 2001
+++ configure.in Wed Oct 24 20:15:32 2001
@@ -324,21 +324,21 @@
if test "x$withval" != "xyes"; then
if test -d "$withval/lib"; then
if test -n "${need_dash_r}"; then
- LDFLAGS="${LDFLAGS} -L$withval/lib -R$withval/lib"
+ LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
else
- LDFLAGS="${LDFLAGS} -L$withval/lib"
+ LDFLAGS="-L${withval}/lib ${LDFLAGS}"
fi
else
if test -n "${need_dash_r}"; then
- LDFLAGS="${LDFLAGS} -L$withval -R$withval"
+ LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
else
- LDFLAGS="${LDFLAGS} -L$withval"
+ LDFLAGS="-L${withval} ${LDFLAGS}"
fi
fi
if test -d "$withval/include"; then
- CPPFLAGS="${CPPFLAGS} -I$withval/include"
+ CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
else
- CPPFLAGS="${CPPFLAGS} -I$withval"
+ CPPFLAGS="-I${withval} ${CPPFLAGS}"
fi
fi
@@ -377,21 +377,21 @@
[
if test -d "$withval/lib"; then
if test -n "${need_dash_r}"; then
- LDFLAGS="${LDFLAGS} -L$withval/lib -R$withval/lib"
+ LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
else
- LDFLAGS="${LDFLAGS} -L$withval/lib"
+ LDFLAGS="-L${withval}/lib ${LDFLAGS}"
fi
else
if test -n "${need_dash_r}"; then
- LDFLAGS="${LDFLAGS} -L$withval -R$withval"
+ LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
else
- LDFLAGS="${LDFLAGS} -L$withval"
+ LDFLAGS="-L${withval} ${LDFLAGS}"
fi
fi
if test -d "$withval/include"; then
- CPPFLAGS="${CPPFLAGS} -I$withval/include"
+ CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
else
- CPPFLAGS="${CPPFLAGS} -I$withval"
+ CPPFLAGS="-I${withval} ${CPPFLAGS}"
fi
]
)
@@ -524,23 +524,22 @@
if test -n "${withval}" -a "${withval}" != "yes"; then
if test -d "${withval}/lib"; then
if test -n "${need_dash_r}"; then
- LDFLAGS="$LDFLAGS -L${withval}/lib -R${withval}/lib"
+ LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
else
- LDFLAGS="$LDFLAGS -L${withval}/lib"
+ LDFLAGS="-L${withval}/lib ${LDFLAGS}"
fi
else
if test -n "${need_dash_r}"; then
- LDFLAGS="$LDFLAGS -L${withval} -R${withval}"
+ LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
else
- LDFLAGS="$LDFLAGS -L${withval}"
+ LDFLAGS="-L${withval} ${LDFLAGS}"
fi
fi
if test -d "${withval}/include"; then
- CPPFLAGS="$CPPFLAGS -I${withval}/include"
+ CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
else
- CPPFLAGS="$CPPFLAGS -I${withval}"
+ CPPFLAGS="-I${withval} ${CPPFLAGS}"
fi
- TCPW_MSG="yes"
fi
LIBS="-lwrap $LIBS"
AC_MSG_CHECKING(for libwrap)
---------------------< end cut >------------------------
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the openssh-unix-dev
mailing list