From: Kevin McCarthy Date: Tue, 1 Nov 2016 03:30:44 +0000 (-0700) Subject: Add a --disable-doc configuration option. X-Git-Tag: mutt-1-8-rel~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b5224aac69816b258c76c6d2af76d769e24c923;p=mutt Add a --disable-doc configuration option. This allows mutt to be built without the documentation. Thanks to Sylvain Bertrand for the original patch. --- diff --git a/Makefile.am b/Makefile.am index a0524956..789c23ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,12 +5,16 @@ include $(top_srcdir)/flymake.am AUTOMAKE_OPTIONS = 1.6 foreign EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap mutt_md5 +if BUILD_DOC +DOC_SUBDIR = doc +endif + if BUILD_IMAP IMAP_SUBDIR = imap IMAP_INCLUDES = -I$(top_srcdir)/imap endif -SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR) +SUBDIRS = m4 po intl $(DOC_SUBDIR) contrib $(IMAP_SUBDIR) bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET) diff --git a/configure.ac b/configure.ac index b84b531c..82814455 100644 --- a/configure.ac +++ b/configure.ac @@ -1347,6 +1347,13 @@ then fi AC_SUBST(DSLROOT) +AC_ARG_ENABLE(doc, AS_HELP_STRING([--disable-doc],[Do not build the documentation]), +[ if test x$enableval = xno ; then + do_build_doc=no + fi +]) +AM_CONDITIONAL(BUILD_DOC, test x$do_build_doc != xno) + AC_ARG_ENABLE(full_doc, AS_HELP_STRING([--disable-full-doc],[Omit disabled variables]), [ if test x$enableval = xno ; then