Mercurial > dovecot > core-2.2
changeset 21268:08bd444ec0c8
configure: Fix building without OpenSSL
AM_CONDITIONAL() needs to be part of the code path that is always run,
or it fails with:
configure: error: conditional "SSL_VERSION_GE_102" was never defined.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 04 Dec 2016 03:44:43 +0200 |
parents | b60c7b697838 |
children | b3cb705f1dc6 |
files | configure.ac |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Sat Dec 03 20:48:30 2016 +0100 +++ b/configure.ac Sun Dec 04 03:44:43 2016 +0200 @@ -1715,8 +1715,6 @@ #endif]], [[ return 0; ]])], [ssl_version_ge_102=true], [ssl_version_ge_102=false]) AC_MSG_RESULT([$ssl_version_ge_102]) - AM_CONDITIONAL([SSL_VERSION_GE_102], [test x$ssl_version_ge_102 = xtrue]) - # SSL_clear_options introduced in openssl 0.9.8m but may be backported to # older versions in "enterprise" OS releases; originally implemented as a # macro but as a function in more recent openssl versions @@ -1758,6 +1756,7 @@ fi fi fi +AM_CONDITIONAL([SSL_VERSION_GE_102], [test x$ssl_version_ge_102 = xtrue]) AM_CONDITIONAL(BUILD_OPENSSL, test "$have_openssl" = "yes") AM_CONDITIONAL(BUILD_DCRYPT_OPENSSL, test "$build_dcrypt_openssl" = "yes")