[gnome-online-accounts] build: Add --disable-documentation flag



commit fe208a5026226d55259a4bc8422291a78e530a65
Author: Colin Walters <walters verbum org>
Date:   Wed Jan 18 21:33:59 2012 -0500

    build: Add --disable-documentation flag
    
    Useful for operating system builders to avoid bootstrapping issues.

 configure.ac    |   12 +++++++++---
 doc/Makefile.am |    6 +++++-
 2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e862244..c6a1396 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,9 +21,15 @@ GNOME_DEBUG_CHECK
 GNOME_COMPILE_WARNINGS([maximum])
 GNOME_MAINTAINER_MODE_DEFINES
 
-AC_PATH_PROG([XSLTPROC], [xsltproc])
-if test -z "$XSLTPROC"; then
-  AC_MSG_ERROR([xsltproc is needed])
+AC_ARG_ENABLE([documentation],
+	AS_HELP_STRING([--enable-documentation], [enable man pages and HTML]),
+	[], [enable_documentation=yes])
+AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
+if test x$enable_documentation = xyes; then
+   AC_PATH_PROG([XSLTPROC], [xsltproc])
+   if test -z "$XSLTPROC"; then
+     AC_MSG_ERROR([xsltproc is needed])
+   fi
 fi
 
 GTK_DOC_CHECK([1.3])
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 5df273e..1091cab 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -58,9 +58,13 @@ expand_content_files =		\
 extra_files =			\
 	$(NULL)
 
-man_MANS = 			\
+man_MANS =
+
+if ENABLE_DOCUMENTATION
+man_MANS +=			\
 	goa-daemon.8		\
 	$(NULL)
+endif
 
 .xml.8:
 	$(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]