summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-10 17:18:10 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-10 17:24:56 +0200
commite80f1b6a53c1ea42e4c50fcc8ce9b27f4bc55fd6 (patch)
tree3c29e229f13ac7d1b6fabb28c661addc2da263dc /m4
parent7ba0a2e415905ae7b3416494be9f75e6ee28133a (diff)
downloadgnutls-e80f1b6a53c1ea42e4c50fcc8ce9b27f4bc55fd6.tar.gz
Added support for the ALPN extension.
Diffstat (limited to 'm4')
-rw-r--r--m4/hooks.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 905e5a4c2c..16f21a1532 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -155,6 +155,20 @@ fi
fi
AM_CONDITIONAL(ENABLE_DTLS_SRTP, test "$ac_enable_srtp" != "no")
+ AC_MSG_CHECKING([whether to disable ALPN extension])
+ AC_ARG_ENABLE(dtls-alpn-support,
+ AS_HELP_STRING([--disable-dtls-alpn-support],
+ [disable support for the Application Layer Protocol Negotiation (ALPN) extension]),
+ ac_enable_alpn=$enableval,ac_enable_alpn=yes)
+ if test x$ac_enable_alpn != xno; then
+ AC_MSG_RESULT(no)
+ AC_DEFINE([ENABLE_ALPN], 1, [enable ALPN support])
+ else
+ ac_full=0
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(ENABLE_ALPN, test "$ac_enable_alpn" != "no")
+
ac_enable_heartbeat=yes
AC_MSG_CHECKING([whether to disable TLS heartbeat support])
AC_ARG_ENABLE(heartbeat-support,