# HG changeset patch # User Timo Sirainen # Date 1135973847 -7200 # Node ID e87a8db60d250c48be4ad6089f72364820eb64f8 # Parent 91689264d812501812ca0c63d5a5efaa330fa5eb Added --with-docs parameter to specify if documentation should be installed. Wanted for at least FreeBSD's NOPORTDOCS option. Patch by Robin Breathe diff -r 91689264d812 -r e87a8db60d25 Makefile.am --- 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 diff -r 91689264d812 -r e87a8db60d25 configure.in --- 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