Browse Source

Do not let --enable-build-doc-pdf for pdf build, so the release tarball doesn't fail

and probably nobody will want to force building the pdf even if it
exists already.
Samuel Thibault 4 years ago
parent
commit
36401f930f
1 changed files with 7 additions and 8 deletions
  1. 7 8
      configure.ac

+ 7 - 8
configure.ac

@@ -3396,18 +3396,11 @@ AM_CONDITIONAL(STARPU_BUILD_STARPURM_EXAMPLES, [test x$enable_starpurm_examples
 ##########################################
 
 def_enable_build_doc="yes"
-def_enable_build_doc_pdf="no"
 available_doc="no"
 if test -d "$srcdir/doc/doxygen/html" ; then
    def_enable_build_doc="no"
    available_doc="yes"
 fi
-available_doc_pdf="no"
-if test -f "$srcdir/doc/doxygen/starpu.pdf" ; then
-   def_enable_build_doc="no"
-   def_enable_build_doc_pdf="no"
-   available_doc_pdf="yes"
-fi
 
 AC_ARG_ENABLE(build-doc, [AS_HELP_STRING([--disable-build-doc],
 			[disable building of documentation])],
@@ -3415,7 +3408,13 @@ AC_ARG_ENABLE(build-doc, [AS_HELP_STRING([--disable-build-doc],
 
 AC_ARG_ENABLE(build-doc-pdf, [AS_HELP_STRING([--enable-build-doc-pdf],
 			[enable building of PDF documentation])],
-			enable_build_doc_pdf=$enableval, enable_build_doc_pdf=$def_enable_build_doc_pdf)
+			enable_build_doc_pdf=$enableval, enable_build_doc_pdf=no)
+
+available_doc_pdf="no"
+if test -f "$srcdir/doc/doxygen/starpu.pdf" ; then
+   enable_build_doc_pdf="no"
+   available_doc_pdf="yes"
+fi
 
 # Check whether doxygen needed tools are installed
 AC_PATH_PROG(doxygencommand, doxygen)