X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=configure.in;h=d4205cfa3cf51734f64d3e7680d763c0a87094e2;hp=24f856bbf9d2c79622bb86d4ba023835a982e60b;hb=refs%2Fheads%2Fupstream-ssl;hpb=140ab2b3075fe6b64c32c7f11ef7abf65ab24247 diff --git a/configure.in b/configure.in index 24f856b..d4205cf 100644 --- a/configure.in +++ b/configure.in @@ -226,6 +226,24 @@ else fi AC_SUBST(ENGINE_C) +have_gnutls="no" +AC_CHECK_LIB(gnutls, gnutls_init, [ + AC_CHECK_HEADERS(gnutls/gnutls.h, [ + LIBS="$LIBS -lgnutls" + have_gnutls="yes" + ]) +]) +if test x"$have_gnutls" = xno; then + if test x$is_win32 = xyes ; then + openssl_deps="-lcrypto -lgdi32" + else + openssl_deps="-lcrypto" + fi + AC_CHECK_LIB([ssl],[SSL_library_init], [ + LIBS="$LIBS -lssl $openssl_deps" + ], [], $openssl_deps) +fi + dnl Now look for --enable-debug AC_MSG_CHECKING([whether to enable debug mode]) AC_ARG_ENABLE([debug], @@ -716,7 +734,7 @@ AC_DEFINE_UNQUOTED(MAXCONNECTIONS, $unet_cv_with_maxcon, [Maximum number of network connections]) dnl Finally really generate all output files: -AC_OUTPUT(Makefile ircd/Makefile ircd/test/Makefile doc/Makefile, [echo timestamp > stamp-h]) +AC_OUTPUT(Makefile ircd/Makefile ircd/test/Makefile, [echo timestamp > stamp-h]) dnl Report configuration AC_OUTPUT_COMMANDS([echo "