summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaak Ristioja <jaak.ristioja@cyber.ee>2013-01-29 11:27:23 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-02-10 11:32:22 +0100
commit82a1682a4977553aa2c35992cb35343ce31c3eda (patch)
tree9f4e8ea6a1edf2e75407fe88febf0bfde11a6a63
parent857b78842e7b4d0bc02869e21fa9da967df7bc6c (diff)
downloadgnutls-82a1682a4977553aa2c35992cb35343ce31c3eda.tar.gz
Add option to disable generation of any documentation for GnuTLS.
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac5
2 files changed, 9 insertions, 2 deletions
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])