]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add configure.in snippet to TLS ext section.
authorSimon Josefsson <simon@josefsson.org>
Thu, 20 Sep 2007 12:44:23 +0000 (14:44 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 20 Sep 2007 12:44:23 +0000 (14:44 +0200)
doc/gnutls.texi

index c63dd5de5d9b22615bb9f0b5a29fda1c4485354e..39aee0f21d6f8e19a3ad8b745809f8b25225db57 100644 (file)
@@ -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}.