]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fix for openssl detection
authorTimo Sirainen <tss@iki.fi>
Mon, 23 Jun 2003 05:47:41 +0000 (08:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 23 Jun 2003 05:47:41 +0000 (08:47 +0300)
--HG--
branch : HEAD

configure.in

index 9681332f71b1bbbffeb16bd24f143c4a6b67fc8e..0489ce7341498252280ed5fbc1674817e6e5024f 100644 (file)
@@ -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