help-cfengine
[Top][All Lists]
Advanced

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

Re: compile on solaris 9


From: Armin Wolfermann
Subject: Re: compile on solaris 9
Date: Wed, 21 Apr 2004 13:34:20 +0200
User-agent: Mutt/1.5.6i

* Chip Seraphine <address@hidden> [20.04.2004 22:42]:
> I've given up building the docs on anything other than fairly current
> Linux, but I doubt there is much platform-dependent in the docs so I
> just build it under Mandrake and then copy it around after installation.

This seems to be a common problem. How about selectively skipping the
documentation with a configure switch:

--- configure.ac.orig   Wed Apr 21 10:59:11 2004
+++ configure.ac        Wed Apr 21 13:17:57 2004
@@ -646,6 +646,12 @@
 dnl Now make the Makefiles
 dnl ######################################################################
 
+AC_ARG_WITH(docs,
+[  --without-docs          skip building the documentation],
+[ want_doc=false ],
+[ want_doc=true ])
+AM_CONDITIONAL(BUILD_DOC, test x$want_doc = xtrue)
+
 AC_OUTPUT(pub/Makefile src/Makefile contrib/Makefile inputs/Makefile \
 Makefile doc/Makefile src/cflex.l contrib/vicf )
 
--- Makefile.am.orig    Wed Apr 21 10:59:18 2004
+++ Makefile.am Wed Apr 21 12:49:50 2004
@@ -1,4 +1,10 @@
-SUBDIRS = pub src contrib inputs doc 
+if BUILD_DOC
+DOC_DIR = doc
+else
+DOC_DIR =
+endif
+
+SUBDIRS = pub src contrib inputs $(DOC_DIR)
 
 EXTRA_DIST = acconfig.h doc/cfengine.8 COPYING ChangeLog INSTALL NEWS README
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]