[DVDnav-discuss] [PATCH] build: Fix --disable-apidoc configure option

Timothy Gu timothygu99 at gmail.com
Sat Mar 29 22:46:57 CET 2014


Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index fd2ce0f..2981f1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ AC_SUBST([CSS_REQUIRES])
 CC_CHECK_CFLAGS_APPEND([-Wall -Wsign-compare])
 
 
-AC_ARG_ENABLE([doc],
+AC_ARG_ENABLE([apidoc],
   AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
 
 AC_PATH_PROG([DOXYGEN], [doxygen])
@@ -94,7 +94,7 @@ AS_IF([test "x$DOXYGEN" = "x"], [
     AC_MSG_ERROR([You need Doxygen to build API documentation])
   ])
 ])
-AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x"])
+AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x" && test "x$enable_apidoc" = "xyes"])
 
 dnl ---------------------------------------------
 dnl Output configuration files
-- 
1.8.3.2



More information about the DVDnav-discuss mailing list