From f4a4abd180485c9c62a7301b1330ab4db087709c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 29 Jul 2016 19:50:36 +0900 Subject: [PATCH] Output availability of ALPN in configure summary --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index ab9bd2ed..1bc0326c 100644 --- a/configure.ac +++ b/configure.ac @@ -650,6 +650,16 @@ AC_CHECK_FUNCS([ \ AC_CHECK_FUNC([timerfd_create], [have_timerfd_create=yes], [have_timerfd_create=no]) +# Explicitly check for availability of ALPN for human + +save_LDFLAGS=$LDFLAGS + +LDFLAGS="$LDFLAGS $OPENSSL_LIBS" + +AC_CHECK_FUNC([SSL_CTX_set_alpn_select_cb], [have_alpn=yes], [have_alpn=no]) + +LDFLAGS=$save_LDFLAGS + # For cygwin: we can link initgroups, so AC_CHECK_FUNCS succeeds, but # cygwin disables initgroups due to feature test macro magic with our # configuration. FreeBSD declares initgroups() in unistd.h. @@ -867,4 +877,5 @@ AC_MSG_NOTICE([summary of build options: Examples: ${enable_examples} Python bindings:${enable_python_bindings} Threading: ${enable_threads} + ALPN: ${have_alpn} ])