1From e9d5cbc01e3c0d6a31e2dba2f224b7f3dd21db37 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sun, 23 Oct 2022 16:10:50 +0200 4Subject: [PATCH] configure: add --disable-doc option 5 6Allow the user to disable documentation through --disable-doc 7 8Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 9--- 10 Makefile.am | 6 +++++- 11 configure.ac | 8 ++++++++ 12 2 files changed, 13 insertions(+), 1 deletion(-) 13 14diff --git a/Makefile.am b/Makefile.am 15index 6718af13..58a321d8 100644 16--- a/Makefile.am 17+++ b/Makefile.am 18@@ -45,7 +45,11 @@ if WITH_SYSTEMDSYSTEMUNITDIR 19 SYSTEMD_DIR = systemd 20 endif 21 22-SUBDIRS = lib daemons tools plugins configs doc $(SYSTEMD_DIR) 23+if HAVE_DOC 24+ DOC_DIR = doc 25+endif 26+ 27+SUBDIRS = lib daemons tools plugins configs $(DOC_DIR) $(SYSTEMD_DIR) 28 29 if INSTALL_ETC 30 31diff --git a/configure.ac b/configure.ac 32index d28c6732..f3384c95 100644 33--- a/configure.ac 34+++ b/configure.ac 35@@ -486,6 +486,14 @@ AC_ARG_VAR(SETUPTOOLS_ENV, 36 ) 37 38 39+AC_ARG_ENABLE(doc, 40+ [ --enable-doc Build and install documentation (default=yes)], 41+ [ enable_doc="${enableval}" ], 42+ [ enable_doc=yes] 43+) 44+AM_CONDITIONAL([HAVE_DOC], [test x$enable_doc = xyes]) 45+ 46+ 47 suffix=$(echo "$VERSION" | sed 's/.*-//') 48 AM_CONDITIONAL(DEVEL, [test x$suffix = xdevel]) 49 50-- 512.35.1 52 53