Commit bc1985a1 authored by Ralph Giles's avatar Ralph Giles

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

Updates the configure check to match the one in the Opus
repository.
parent cfd4e2c3
......@@ -84,16 +84,12 @@ AC_ARG_ENABLE([doc],
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment