From: Timo Sirainen Date: Mon, 23 Jun 2003 05:47:41 +0000 (+0300) Subject: fix for openssl detection X-Git-Tag: 1.1.alpha1~4540 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7023468e8008b36e6e203a8817d7373a2f3a59e;p=thirdparty%2Fdovecot%2Fcore.git fix for openssl detection --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 9681332f71..0489ce7341 100644 --- a/configure.in +++ b/configure.in @@ -732,19 +732,20 @@ if test "$want_openssl" = "yes" -a "$have_ssl" = "no"; then if pkg-config --exists openssl; then PKG_CHECK_MODULES(SSL, openssl) CFLAGS="$CFLAGS $SSL_CFLAGS" - have_ssl="yes (OpenSSL)" have_openssl=yes else AC_CHECK_LIB(ssl, SSL_read, [ AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h, [ - AC_DEFINE(HAVE_OPENSSL,, Build with OpenSSL support) SSL_LIBS="-lssl -lcrypto" AC_SUBST(SSL_LIBS) - have_ssl="yes (OpenSSL)" have_openssl=yes ]) ],, -lcrypto) fi + if test "$have_openssl" = "yes"; then + AC_DEFINE(HAVE_OPENSSL,, Build with OpenSSL support) + have_ssl="yes (OpenSSL)" + fi fi if test "$have_ssl" != "no"; then