diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-26 14:11:48 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-09 15:53:37 +0200 |
commit | 1660e5f4d14b6b9b96aa7d6b339be8c9e7f7c4cf (patch) | |
tree | 7349d624a5c1a141df4c5b24fa95ee1ad9d3b829 | |
parent | 76a020c57c4e5a983e48946bf86949f0475fc024 (diff) | |
download | gnutls-1660e5f4d14b6b9b96aa7d6b339be8c9e7f7c4cf.tar.gz |
configure: backported --disable-doc
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 0bcd8d7b1e..04a4351ddc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,11 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc -SUBDIRS = lib libextra gl src doc tests +SUBDIRS = lib libextra gl src tests + +if ENABLE_DOC +SUBDIRS += doc +endif if HAVE_GUILE SUBDIRS += guile diff --git a/configure.ac b/configure.ac index 4c0765b630..d8542590db 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,11 @@ AM_CONDITIONAL(WANT_TEST_SUITE, [test -f tests/suite/mini-eagain2.c]) 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") + AC_HEADER_STDC AC_DEFINE([HAVE_STRINGS_H], 1, [Hard-code for src/cfg/.]) AC_DEFINE([HAVE_FLOAT_H], 1, [Hard-code for src/cfg/.]) |