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