Ok thanks - I see now how it works .. 

I've attached patch below in unified format. I've changed the order so
that you first check for --enable-docs, etc then check to see if jade,
jadetex, etc are all installed before confirming that indeed the docs
should be made. It's a bit more all or nothing, that is you either have
all the 'right things' installed to build all the docs or you don't so
can't proceed. I'm not sure if everyone will like this - just something
to test and consider.

Cheers,
Alan

On Tue, 2003-02-11 at 15:09, Stipe Tolj wrote:
> Alan,
> 
> please do not patch configure itself. It's the autoconf output out of
> configure.in. If you have to change something, please try to patch
> configure.in and provide a patch to it.
> 
> After that we can run autoconf and commit an auto-generated configure
> script.
> 
> Stipe
> 
> [EMAIL PROTECTED]
> -------------------------------------------------------------------
> Wapme Systems AG
> 
> Vogelsanger Weg 80
> 40470 Düsseldorf
> 
> Tel: +49-211-74845-0
> Fax: +49-211-74845-299
> 
> E-Mail: [EMAIL PROTECTED]
> Internet: http://www.wapme-systems.de
> -------------------------------------------------------------------
> wapme.net - wherever you are
> 
> 

Index: configure.in
===================================================================
RCS file: /home/cvs/gateway/configure.in,v
retrieving revision 1.108
diff -u -r1.108 configure.in
--- configure.in	7 Dec 2002 14:53:24 -0000	1.108
+++ configure.in	11 Feb 2003 06:22:04 -0000
@@ -202,12 +202,12 @@
 dnl DocBook stuff
 
 AC_CONFIG_SECTION([Configuring DocBook support])
-AC_CHECK_PROG(JADE, jade, jade, :)
-AC_CHECK_PROG(JADETEX, jadetex, jadetex, :)
-AC_CHECK_PROG(PDFJADETEX, pdfjadetex, pdfjadetex, :)
-AC_CHECK_PROG(DVIPS, dvips, dvips, :)
-AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev, :)
-AC_CHECK_PROG(CONVERT, convert, convert, :)
+AC_CHECK_PROG(JADE, jade, jade, no)
+AC_CHECK_PROG(JADETEX, jadetex, jadetex, no)
+AC_CHECK_PROG(PDFJADETEX, pdfjadetex, pdfjadetex, no)
+AC_CHECK_PROG(DVIPS, dvips, dvips, no)
+AC_CHECK_PROG(FIG2DEV, fig2dev, fig2dev, no)
+AC_CHECK_PROG(CONVERT, convert, convert, no)
 AC_SUBST(HTML_DSL)
 found=""
 for loc in /usr /usr/local; do
@@ -259,12 +259,6 @@
 dnl Implement --enable-docs option.
 
 AC_SUBST(DOCSTARGET)
-if test "x$HTML_DSL" = "x" -o "x$TEX_DSL" = "x"
-then
-	DOCSTARGET="no-docs"
-else
-	DOCSTARGET="docs"
-fi
 
 AC_ARG_ENABLE(docs,
 [  --enable-docs           enable building of documentation (default: enabled)], [
@@ -275,6 +269,20 @@
       DOCSTARGET="no-docs"
   fi
 ])
+
+if test "x$HTML_DSL" = "x" -o "x$TEX_DSL"   = "x"  \
+    || test "$JADE"       = "no" \
+    || test "$JADETEX"    = "no" \
+    || test "$PDFJADETEX" = "no" \
+    || test "$DVIPS"      = "no"  \
+    || test "$FIG2DEV"    = "no"  \
+    || test "$CONVERT"    = "no"
+then
+  DOCSTARGET="no-docs"
+else
+  DOCSTARGET="docs"
+fi
+
 case "$DOCSTARGET" in
 no-docs) AC_MSG_RESULT(Not building documentation.) ;;
 docs) AC_MSG_RESULT(Documentation will be built as well.) ;;

Reply via email to