Commit 766fd664 authored by Diego Elio Pettenò's avatar Diego Elio Pettenò

build: properly handle --disable-doc

parent 8572e60d
......@@ -222,12 +222,14 @@ CC_FLAG_VISIBILITY([
AM_CONDITIONAL(SYS_MSVC, test "${SYS_MSVC}" = "1")
AC_ARG_ENABLE([doc],
AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
AS_HELP_STRING([--disable-doc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
AC_PATH_PROG([DOXYGEN], [doxygen])
AS_IF([test "x$enable_doc" != "xno"], [
AC_PATH_PROG([DOXYGEN], [doxygen])
])
AS_IF([test "x$DOXYGEN" = "x"], [
AS_IF([test "x$enable_apidoc" = "xyes"], [
AS_IF([test "x$enable_doc" = "xyes"], [
AC_MSG_ERROR([You need Doxygen to build API documentation])
])
])
......
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