summaryrefslogtreecommitdiffstats
path: root/tcpd/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'tcpd/configure.ac')
-rw-r--r--tcpd/configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/tcpd/configure.ac b/tcpd/configure.ac
index 0aa6f8a..c3bb9cb 100644
--- a/tcpd/configure.ac
+++ b/tcpd/configure.ac
@@ -318,6 +318,11 @@ if test "$have_ssl" = "yes"
then
LIBCOURIERTLSOPENSSL=libcouriertlsopenssl.la
+ AC_CHECK_LIB(ssl, SSL_CTX_set_alpn_protos, [
+ AC_DEFINE_UNQUOTED(HAVE_OPENSSL_ALPN, 1,
+ [ Whether OpenSSL supports ALPN ])
+ ])
+
if test "$KRB5CONFIG" != "krb5-config"
then
AC_MSG_CHECKING(whether OpenSSL requires Kerberos)
@@ -394,6 +399,11 @@ then
gnutlsdep="`$PKGCONFIG --libs gnutls`"
AC_DEFINE([HAVE_GNUTLS3], [1], [Use GnuTLS3])
fi
+
+ AC_CHECK_LIB(gnutls, gnutls_alpn_set_protocols, [
+ AC_DEFINE_UNQUOTED(HAVE_GNUTLS_ALPN, 1,
+ [ Whether OpenSSL supports ALPN ])
+ ])
fi
AC_CHECK_SIZEOF(gnutls_transport_ptr_t,0, [