aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-11-16 22:46:33 +0000
committerGilles Chehade <gilles@poolp.org>2019-11-16 22:46:33 +0000
commit1bdf1a3ef7ab97384c0c50531a9f78b1d3b3b24c (patch)
tree56b90981d4c4f1e470bd24500d3879904592c535 /configure.ac
parentconditionally build getopt.c and getpeereid.c (diff)
downloadOpenSMTPD-1bdf1a3ef7ab97384c0c50531a9f78b1d3b3b24c.tar.xz
OpenSMTPD-1bdf1a3ef7ab97384c0c50531a9f78b1d3b3b24c.zip
detect LIBRESSL_VERSION_NUMBER
conditionally build SSL_CTX_use_certificate_chain_mem.c
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 261131b7..33010568 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1876,6 +1876,9 @@ AC_LINK_IFELSE(
)
]
)
+
+AC_CHECK_DECL([LIBRESSL_VERSION_NUMBER], , , [#include <openssl/ssl.h>])
+
#l2371
@@ -2012,6 +2015,8 @@ AM_CONDITIONAL([NEED_STRSEP], [test "x$ac_cv_func_strsep" != "xyes"])
AM_CONDITIONAL([NEED_STRTONUM], [test "x$ac_cv_func_strtonum" != "xyes"])
AM_CONDITIONAL([NEED_STRNDUP], [test "x$ac_cv_func_strndup" != "xyes"])
AM_CONDITIONAL([NEED_STRNLEN], [test "x$ac_cv_func_strnlen" != "xyes"])
+
+AM_CONDITIONAL([NEED_SSL_CTX_USE_CERTIFICATE_CHAIN_MEM], [test x$ac_cv_have_decl_LIBRESSL_VERSION_NUMBER != "xyes"])
##