diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-29 10:26:39 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-02-29 10:29:56 +0100 |
commit | 18d6b624473b3864908bb010e37189513fd095b1 (patch) | |
tree | 36a58ed2b13ea4522254ad0aeb0cdfb9e6ee3efd | |
parent | 0570b22afd6b771d55bcac2503759b082ddc86a7 (diff) | |
download | libtasn1-18d6b624473b3864908bb010e37189513fd095b1.tar.gz |
configure: added --disable-doc
This allows to conditionally build the documentation
-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 a2fc98a..5041eb9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,7 +26,11 @@ EXTRA_DIST = windows/asn1-parser/asn1-parser.vcproj \ windows/test-parser/test-parser.vcproj \ windows/test-tree/test-tree.vcproj windows/libtasn14win.mk -SUBDIRS = gl lib src examples tests doc +SUBDIRS = gl lib src examples tests + +if ENABLE_DOC +SUBDIRS += doc +endif ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I lib/glm4 diff --git a/configure.ac b/configure.ac index 455ef69..056aa84 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,11 @@ gl_EARLY lgl_EARLY AC_PROG_YACC +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") + dnl Checks for programs. AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) AC_LIBTOOL_WIN32_DLL |