# HG changeset patch # User Mike Miller # Date 1335313662 14400 # Node ID 4dc85c4f151b35e630bd1ad65896fcbb32e7b0e8 # Parent f579a94aacaa2e5e59b3b661ea8c7df3e243d7dd Disable building documentation if gnuplot not found * configure.ac: Disable building documentation if gnuplot not found diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -196,7 +196,6 @@ AC_MSG_WARN([$warn_docs]) fi], []) AC_SUBST(DOCDIR) -AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"]) ### If possible, use a 64-bit integer type for array dimensions and indexing. @@ -1901,6 +1900,16 @@ OCTAVE_PROG_TEXI2DVI OCTAVE_PROG_TEXI2PDF +### Need to disable building documentation if gnuplot was not found, +### unless it was already disabled previously. + +if test -n "$DOCDIR" && test -n "$warn_gnuplot"; then + DOCDIR= + warn_docs="building documentation disabled because gnuplot was not found; make dist will fail" + AC_MSG_WARN([$warn_docs]) +fi +AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"]) + ### Even though we include config.h, we need to have the preprocessor ### defines available in a variable for the testif feature of the ### scripts/testfun/test.m function. Use UGLY_DEFS to hold all the -D