On Mon, 2003-02-10 at 11:03, Alan McNatty wrote: > Will look at altering config to exit if --enable-docs and not installed > (same for convert etc).
Modified configure script to report 'no' not ':' if not available and changed overall decision on whether or not to build documentation to be based on existance of jade, jadetex, pdfjadetex, dvips, fig2dev and convert - otherwise make dies. The current test for doc building seems to be based only on whether or not the dsl's exist not whether or not we can actually build the docs using the above tools... see attached patch for details ... I notice that the configure script has a header line which includes .. 'Automatically generated by autoconf...'. This seems to suggest to me that patching the configure script is possible 'the wrong thing to do'. I'm not familiar with autoconf, etc so feel free to kick me in the right direction (aka feedback appreciated). Cheers, Alan
Index: configure =================================================================== RCS file: /home/cvs/gateway/configure,v retrieving revision 1.106 diff -r1.106 configure 1038c1038 < test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" --- > test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="" 2301c2301 < test -z "$ac_cv_prog_JADE" && ac_cv_prog_JADE=":" --- > test -z "$ac_cv_prog_JADE" && ac_cv_prog_JADE="" 2331c2331 < test -z "$ac_cv_prog_JADETEX" && ac_cv_prog_JADETEX=":" --- > test -z "$ac_cv_prog_JADETEX" && ac_cv_prog_JADETEX="" 2361c2361 < test -z "$ac_cv_prog_PDFJADETEX" && ac_cv_prog_PDFJADETEX=":" --- > test -z "$ac_cv_prog_PDFJADETEX" && ac_cv_prog_PDFJADETEX="" 2391c2391 < test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS=":" --- > test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="" 2421c2421 < test -z "$ac_cv_prog_FIG2DEV" && ac_cv_prog_FIG2DEV=":" --- > test -z "$ac_cv_prog_FIG2DEV" && ac_cv_prog_FIG2DEV="" 2451c2451 < test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT=":" --- > test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT="" 2573c2573,2579 < if test "$enableval" = "yes" --- > if test "$enableval" = "yes" && > test -n "$JADE" && > test -n "$JADETEX" && > test -n "$PDFJADETEX" && > test -n "$CONVERT" && > test -n "$DVIPS" && > test -n "$FIG2DEV"