]> sjero.net Git - wget/blobdiff - configure.ac
configure: do not hardcode libraries
[wget] / configure.ac
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