Browse Source

configure.ac: do not build documentation if texi2dvi is not available

Nathalie Furmento 12 years ago
parent
commit
01e4eceebd
1 changed files with 7 additions and 0 deletions
  1. 7 0
      configure.ac

+ 7 - 0
configure.ac

@@ -1829,6 +1829,13 @@ m4_ifdef([AM_SILENT_RULES],
 AC_ARG_ENABLE(build-doc, [AS_HELP_STRING([--disable-build-doc],
 			[disable building of documentation])],
 			enable_build_doc=$enableval, enable_build_doc=yes)
+
+# Check whether texi2dvi is installed
+AC_PATH_PROG(texi2dvicommand, texi2dvi)
+if test "$texi2dvicommand" = "" ; then
+	enable_build_doc="no"
+fi
+
 AM_CONDITIONAL(BUILD_DOC, [test x$enable_build_doc != xno])
 
 ###############################################################################