dovecot-2.0-pigeonhole: Added --with-docs configure option.
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Thu Apr 15 00:38:50 EEST 2010
details: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/d5eea644235e
changeset: 1256:d5eea644235e
user: Stephan Bosch <stephan at rename-it.nl>
date: Wed Apr 14 23:38:44 2010 +0200
description:
Added --with-docs configure option.
diffstat:
Makefile.am | 6 +++++-
configure.in | 19 +++++++++++++++++++
doc/Makefile.am | 8 +++++++-
3 files changed, 31 insertions(+), 2 deletions(-)
diffs (71 lines):
diff -r 6271458836d8 -r d5eea644235e Makefile.am
--- a/Makefile.am Wed Apr 14 22:05:15 2010 +0200
+++ b/Makefile.am Wed Apr 14 23:38:44 2010 +0200
@@ -1,4 +1,8 @@
-SUBDIRS = src doc
+if BUILD_DOCS
+DOCS = doc
+endif
+
+SUBDIRS = src $(DOCS)
ACLOCAL_AMFLAGS = -I m4 --install
diff -r 6271458836d8 -r d5eea644235e configure.in
--- a/configure.in Wed Apr 14 22:05:15 2010 +0200
+++ b/configure.in Wed Apr 14 23:38:44 2010 +0200
@@ -21,10 +21,19 @@
AC_PROG_CPP
AC_PROG_LIBTOOL
+# Couple with Dovecot
+#
+
DC_DOVECOT
LIBDOVECOT_INCLUDE="$LIBDOVECOT_INCLUDE $LIBDOVECOT_STORAGE_INCLUDE"
AC_SUBST(LIBDOVECOT_INCLUDE)
+# Defome Sieve documentation install dir
+#
+
+sieve_docdir='${dovecot_docdir}/sieve'
+AC_SUBST(sieve_docdir)
+
# Extensions under development
#
@@ -57,6 +66,16 @@
want_headers=no)
AM_CONDITIONAL(INSTALL_HEADERS, test "$want_headers" = "yes")
+AC_ARG_WITH(docs,
+[ --with-docs Install documentation (default)],
+ if test x$withval = xno; then
+ want_docs=no
+ else
+ want_docs=yes
+ fi,
+ want_docs=yes)
+AM_CONDITIONAL(BUILD_DOCS, test "$want_docs" = "yes")
+
AC_ARG_ENABLE(valgrind,
[AC_HELP_STRING([--enable-valgrind], [Enable Valgrind memory leak checks in testsuite [default=no]])],
if test x$enableval = xno || test x$enableval = xauto; then
diff -r 6271458836d8 -r d5eea644235e doc/Makefile.am
--- a/doc/Makefile.am Wed Apr 14 22:05:15 2010 +0200
+++ b/doc/Makefile.am Wed Apr 14 23:38:44 2010 +0200
@@ -1,7 +1,13 @@
SUBDIRS = man example-config
+docfiles = spamtest-virustest.txt
+
+if BUILD_DOCS
+sieve_doc_DATA = $(docfiles)
+endif
+
EXTRA_DIST = \
rfc \
devel \
- spamtest-virustest.txt
+ $(docfiles)
More information about the dovecot-cvs
mailing list