From: Simon Josefsson Date: Thu, 20 Sep 2007 12:44:23 +0000 (+0200) Subject: Add configure.in snippet to TLS ext section. X-Git-Tag: gnutls_2_1_0~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15688b6cb74ad0a89b90a536db0771fc89eb3685;p=thirdparty%2Fgnutls.git Add configure.in snippet to TLS ext section. --- diff --git a/doc/gnutls.texi b/doc/gnutls.texi index c63dd5de5d..39aee0f21d 100644 --- a/doc/gnutls.texi +++ b/doc/gnutls.texi @@ -3715,7 +3715,23 @@ consider adding support for the hypothetical TLS extension Which to chose depends on whether you intend to make the extension be enabled by default. Look at existing checks (i.e., SRP, authz) for -how to model the code. +how to model the code. For example: + +@example +AC_MSG_CHECKING([whether to disable foobar support]) +AC_ARG_ENABLE(foobar, + AS_HELP_STRING([--disable-foobar], + [disable foobar support]), + ac_enable_foobar=no) +if test x$ac_enable_foobar != xno; then + AC_MSG_RESULT(no) + AC_DEFINE(ENABLE_FOOBAR, 1, [enable foobar]) +else + ac_full=0 + AC_MSG_RESULT(yes) +fi +AM_CONDITIONAL(ENABLE_FOOBAR, test "$ac_enable_foobar" != "no") +@end example @item Add IANA extension value to @code{extensions_t} in @code{gnutls_int.h}.