From: jouvin Date: Mon, 4 Dec 2000 13:18:48 +0000 (+0000) Subject: configure.in : Modification done by Michel Jouvin to fix a problem with X-Git-Tag: netatalk-1-5-rc1~608 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a108ae761f287701665bc5caf93a67cbe72b85f;p=netatalk.git configure.in : Modification done by Michel Jouvin to fix a problem with library search path on Tru64. According to autoconf maintainer suggestion, move -L/path/to/lib from LIBS variable to LDFLAGS. This was done because on some systems (like Tru64) -Lpath must appear before -llib that requires -L. This is not the case if -L is in LIBS as -l are inserted at the head of LIBS by autoconf to preserve library search order required by some systems. --- diff --git a/configure.in b/configure.in index b18a02a7..08bce432 100644 --- a/configure.in +++ b/configure.in @@ -306,7 +306,7 @@ AC_SUBST(UAMS_PATH) dnl -------------------------------------------------------------------------- dnl drop in includes for top level directory structures here... dnl -------------------------------------------------------------------------- -LIBS="$LIBS -L\$(top_srcdir)/libatalk/" +LDFLAGS="$LDFLAGS -L\$(top_srcdir)/libatalk/" CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/sys" dnl -------------------------------------------------------------------------- @@ -425,7 +425,7 @@ AC_ARG_WITH(ssl-dir, for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl/ /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do if test -f "$ssldir/include/openssl/cast.h" ; then - LIBS="$LIBS -L$ssldir/lib -L$ssldir" + LDFLAGS="$LDFLAGS -L$ssldir/lib -L$ssldir" CFLAGS="$CFLAGS -I$ssldir/include -I$ssldir/include/openssl" if test "$need_dash_r" = "yes"; then LIBS="$LIBS -R$ssldir/lib -R$ssldir"