X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=configure.ac;h=8e05e12f8a89c387ab59fcca4121c05ba2445bb1;hp=9909138faa60c85114563d0425bbf3bf322a9eca;hb=8405493e1d6acd3bf9f308ccec66cae77c2080b0;hpb=b38c40b34e086256a10af53a062a276d9cff2921 diff --git a/configure.ac b/configure.ac index 9909138f..8e05e12f 100644 --- a/configure.ac +++ b/configure.ac @@ -263,10 +263,12 @@ AS_IF([test x"$with_ssl" = xopenssl], [ # --with-ssl is not gnutls: check if it's no AS_IF([test x"$with_ssl" != xno], [ dnl Now actually check for -lssl - AC_LIB_HAVE_LINKFLAGS([gnutls], [], [ - #include - ], [gnutls_global_init()]) - if test x"$LIBGNUTLS" != x + + AC_CHECK_LIB(gpg-error, gpg_err_init) + AC_CHECK_LIB(gcrypt, gcry_control) + AC_CHECK_LIB(gnutls, main) + + if test x"$ac_cv_lib_gnutls_main" != x then AC_MSG_NOTICE([compiling in support for SSL via GnuTLS]) AC_LIBOBJ([gnutls])