Mercurial > hg > octave-lyh
diff configure.ac @ 16012:ca37c6023a79
don't abort configure if makeinfo is missing
* acinclude.m4 (OCTAVE_PROG_MAKEINFO): Issue warning instead of error
if makeinfo is not found.
* configure.ac: Disable building docs if makeinfo is not found.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2013 12:26:50 -0500 |
parents | e27d9b9b71f4 |
children | 5b2126a8c84f |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -2185,13 +2185,21 @@ #endif ]]) -### 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" - OCTAVE_CONFIGURE_WARNING([warn_docs]) +### Need to disable building documentation if either gnuplot or +### makeinfo are missing. Skip this warning if building docs was +### disabled with a configure option. + +if test -n "$DOCDIR"; then + if test -n "$warn_gnuplot"; then + DOCDIR= + warn_docs_gnuplot="building documentation disabled because gnuplot was not found; make dist will fail" + OCTAVE_CONFIGURE_WARNING([warn_docs_gnuplot]) + fi + if test -n "$warn_makeinfo"; then + DOCDIR= + warn_docs_makeinfo="building documentation disabled because makeinfo was not found; make dist will fail" + OCTAVE_CONFIGURE_WARNING([warn_docs_makeinfo]) + fi fi AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"])