Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1566:919f5aafbc6c HEAD
fix for openssl detection
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 23 Jun 2003 08:47:41 +0300 |
parents | 97572a77243a |
children | 253967fa5b8a |
files | configure.in |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Mon Jun 23 02:08:47 2003 +0300 +++ b/configure.in Mon Jun 23 08:47:41 2003 +0300 @@ -732,19 +732,20 @@ 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