]> sjero.net Git - wget/commitdiff
configure: do not hardcode libraries
authorGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 11 Aug 2011 10:20:25 +0000 (12:20 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 11 Aug 2011 10:20:25 +0000 (12:20 +0200)
ChangeLog
configure.ac

index da79049387e26df5cd102dc274c6a084ece792af..ef6c4bd9410e0d2a8bd4a5ff490f9d0b77a2c91f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-08-11  Giuseppe Scrivano  <gscrivano@gnu.org>
 
+       * configure.ac: Do not hardcode GNU TLS and OpenSSL libraries.
+
        * bootstrap.conf (gnulib_modules): Include module iconv.
 
        * configure.ac: Allow --with-libgnutls-prefix and
index 45445fa3ad28935be2abe5098aea754f2ab5b1b1..b9ccbfef3c53b70ba28b4679b8011103d2f83d97 100644 (file)
@@ -279,7 +279,7 @@ AS_IF([test x"$with_ssl" = xopenssl], [
     then
       AC_MSG_NOTICE([compiling in support for SSL via OpenSSL])
       AC_LIBOBJ([openssl])
-      LIBS="-lopenssl $LIBS"
+      LIBS="$LIBSSL $LIBS"
     elif test x"$with_ssl" != x
     then
       AC_MSG_ERROR([--with-ssl=openssl was given, but SSL is not available.])
@@ -303,7 +303,7 @@ AS_IF([test x"$with_ssl" = xopenssl], [
   then
     AC_MSG_NOTICE([compiling in support for SSL via GnuTLS])
     AC_LIBOBJ([gnutls])
-    LIBS="-lgnutls $LIBS"
+    LIBS="$LIBGNUTLS $LIBS"
   else
     AC_MSG_ERROR([--with-ssl was given, but GNUTLS is not available.])
   fi