[babl] Add --disable-docs option to configure
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] Add --disable-docs option to configure
- Date: Sat, 30 Mar 2013 18:09:28 +0000 (UTC)
commit 31dd292736dc2ebf461d61f29b984fa84550fd15
Author: Daniel Sabo <DanielSabo gmail com>
Date: Thu Feb 7 11:24:12 2013 -0800
Add --disable-docs option to configure
Makefile.am | 7 +++++--
configure.ac | 7 +++++++
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 19df326..7008414 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,8 +4,11 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = \
babl \
extensions \
- tests \
- docs
+ tests
+
+if ENABLE_DOCS
+SUBDIRS+= docs
+endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = babl.pc
diff --git a/configure.ac b/configure.ac
index b0697ab..ce5a872 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,6 +172,13 @@ AM_CONDITIONAL(HAVE_RSVG, test "x$RSVG" != "xno")
AC_PATH_PROG(W3M, w3m, no)
AM_CONDITIONAL(HAVE_W3M, test "x$W3M" != "xno")
+dnl disable docs generation.
+AC_ARG_ENABLE([docs],
+ [ --disable-docs disable docs generation (default=no)],,
+ enable_docs="yes")
+
+AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = "xyes")
+
###########################
# Check target architecture
###########################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]