changeset 3779:e87a8db60d25 HEAD

Added --with-docs parameter to specify if documentation should be installed. Wanted for at least FreeBSD's NOPORTDOCS option. Patch by Robin Breathe
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Dec 2005 22:17:27 +0200
parents 91689264d812
children 0128534525d8
files Makefile.am configure.in
diffstat 2 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Fri Dec 30 22:06:10 2005 +0200
+++ b/Makefile.am	Fri Dec 30 22:17:27 2005 +0200
@@ -1,4 +1,10 @@
-SUBDIRS = src doc
+if BUILD_DOCS
+DOCS = doc
+endif
+
+SUBDIRS = \
+	src \
+	$(DOCS)
 
 confdir = $(sysconfdir)
 conf_DATA = dovecot-example.conf
--- a/configure.in	Fri Dec 30 22:06:10 2005 +0200
+++ b/configure.in	Fri Dec 30 22:17:27 2005 +0200
@@ -261,6 +261,16 @@
 )
 AC_SUBST(moduledir)
 
+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")
+
 dnl * gcc specific options
 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
 	# -Wcast-qual -Wcast-align -Wconversion # too many warnings
@@ -1546,6 +1556,7 @@
 src/lib-storage/subscription-file/Makefile
 src/lib-storage/register/Makefile
 src/auth/Makefile
+src/dict/Makefile
 src/imap/Makefile
 src/imap-login/Makefile
 src/login-common/Makefile