shithub: opusfile

Download patch

ref: bc1985a1d82f2fddab93b14603c4268ace5eda31
parent: cfd4e2c311e17bae644372f6c87da24446bf09f7
author: Ralph Giles <[email protected]>
date: Tue Oct 23 12:50:53 EDT 2012

Don't build the API docs if doxygen isn't available.

Updates the configure check to match the one in the Opus
repository.

--- a/configure.ac
+++ b/configure.ac
@@ -84,16 +84,12 @@
   AS_HELP_STRING([--disable-doc], [Do not build API documentation]),,
   [enable_doc=yes]
 )
-
-if test "x$enable_doc" != "xno"; then
-  AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
-  if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$enable_doc" = "xyes" ; then
-    AC_MSG_ERROR([*** Doxygen not found. Cannot build API documentation. ***])
-  fi
-else
-  HAVE_DOXYGEN=false
+AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, yes, no)
+if test "$HAVE_DOXYGEN" != "yes" -o "$enable_doc" != "yes" ; then
+  HAVE_DOXYGEN="no"
+  enable_doc="no"
 fi
-AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN)
+AM_CONDITIONAL(HAVE_DOXYGEN, [test $HAVE_DOXYGEN = yes])
 
 AC_OUTPUT([
   Makefile