From: Jaak Ristioja Date: Tue, 29 Jan 2013 09:27:23 +0000 (+0200) Subject: Add option to disable generation of any documentation for GnuTLS. X-Git-Tag: gnutls_3_1_8~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82a1682a4977553aa2c35992cb35343ce31c3eda;p=thirdparty%2Fgnutls.git Add option to disable generation of any documentation for GnuTLS. --- diff --git a/Makefile.am b/Makefile.am index a37e7e1c20..e95f3e73ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,7 +27,11 @@ if ENABLE_DANE SUBDIRS += libdane endif -SUBDIRS += po src doc tests +SUBDIRS += po src +if ENABLE_DOC +SUBDIRS += doc +endif +SUBDIRS += tests if HAVE_GUILE SUBDIRS += guile diff --git a/configure.ac b/configure.ac index 23b1d50791..6921f64c9a 100644 --- a/configure.ac +++ b/configure.ac @@ -115,7 +115,10 @@ dnl Try the hooks.m4 LIBGNUTLS_HOOKS LIBGNUTLS_EXTRA_HOOKS - +AC_ARG_ENABLE(doc, + AS_HELP_STRING([--disable-doc], [don't generate any documentation]), + enable_doc=$enableval, enable_doc=yes) +AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no") GTK_DOC_CHECK(1.1) AM_GNU_GETTEXT([external])