Przeglądaj źródła

configure.ac: check whether doxygen needed tools are installed before enabling documentation building

Nathalie Furmento 11 lat temu
rodzic
commit
2fa111c9c3
1 zmienionych plików z 7 dodań i 3 usunięć
  1. 7 3
      configure.ac

+ 7 - 3
configure.ac

@@ -2334,13 +2334,17 @@ AC_ARG_ENABLE(build-doc, [AS_HELP_STRING([--disable-build-doc],
 			enable_build_doc=$enableval, enable_build_doc=yes)
 
 if test "$enable_build_doc" = "yes" ; then
-   # Check whether doxygen and pdflatex are installed
+   # Check whether doxygen needed tools are installed
    AC_PATH_PROG(doxygencommand, doxygen)
    if test "$doxygencommand" = "" ; then
       	enable_build_doc="no"
    fi
-   AC_PATH_PROG(pdflatex, pdflatex)
-   if test "pdflatexcommand" = "" ; then
+   AC_PATH_PROG(pdflatexcommand, pdflatex)
+   if test "$pdflatexcommand" = "" ; then
+	enable_build_doc="no"
+   fi
+   AC_PATH_PROG(epstopdfcommand, epstopdf)
+   if test "$epstopdfcommand" = "" ; then
 	enable_build_doc="no"
    fi
 fi