diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2bfe1c6..21ad378 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = src vformat test doc +SUBDIRS = src vformat test $(DOC_SUB) diff --git a/configure.ac b/configure.ac index ab68899..9d46ceb 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,20 @@ AC_FUNC_MKTIME AC_FUNC_STAT AC_CHECK_FUNCS([atexit memset strstr]) +AC_ARG_ENABLE([docs], + [AS_HELP_STRING([--enable-docs], + [build documentation (default is no)])], + [build_docs=true], + [build_docs=false]) +if test "$build_docs" = true; then + DOC_SUB=doc +else + DOC_SUB= +fi + +AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"]) +AC_SUBST([DOC_SUB]) + AC_OUTPUT([Makefile src/Makefile vformat/Makefile test/Makefile doc/Makefile]) #AC_CONFIG_FILES([]) |