X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=configure.ac;h=e16f2cb310419eefff1fabdbf1020990d7b93fad;hp=205b6533853aca5c1c48da214b194c6b04d1a217;hb=1cba1a7659719535800d4fd53d689c9e758babdc;hpb=b1acde223fb705a0b14b3f14e368c64e9d58ed01 diff --git a/configure.ac b/configure.ac index 205b6533..e16f2cb3 100644 --- a/configure.ac +++ b/configure.ac @@ -223,11 +223,12 @@ WGET_NSL_SOCKET dnl Deal with specific hosts case $host_os in *mingw32* ) - AC_SUBST(W32LIBS, '-lws2_32 -lgdi32') + LIBS+='-lws2_32 -lgdi32' AC_LIBOBJ([mswindows]) ;; esac + dnl dnl Checks for libraries. dnl @@ -241,29 +242,17 @@ AS_IF([test x"$with_ssl" = xopenssl], [ AC_CHECK_LIB(dl, shl_load) ]) - dnl Now actually check for -lssl - AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [ - #include - #include - #include - #include - #include - #include - #include - ], [SSL_library_init ()]) - if test x"$LIBSSL" != x - then - AC_MSG_NOTICE([compiling in support for SSL via OpenSSL]) - AC_LIBOBJ([openssl]) - elif test x"$with_ssl" != x - then - AC_MSG_ERROR([--with-ssl=openssl was given, but SSL is not available.]) - fi + AC_CHECK_LIB(z, compress) + AC_CHECK_LIB(crypto, EVP_MD_CTX_init) + AC_CHECK_LIB(ssl, ERR_func_error_string,, + AC_MSG_ERROR([openssl development libraries not found])) + AC_LIBOBJ([openssl]) ], [ # --with-ssl is not gnutls: check if it's no AS_IF([test x"$with_ssl" != xno], [ dnl Now actually check for -lssl + AC_CHECK_LIB(z, compress) AC_CHECK_LIB(gpg-error, gpg_err_init) AC_CHECK_LIB(gcrypt, gcry_control) AC_CHECK_LIB(gnutls, main)