[libdvdnav-devel] build: Fix --disable-apidoc configure option

Timothy Gu git at videolan.org
Sun Mar 30 19:22:58 CEST 2014


libdvdread | branch: master | Timothy Gu <timothygu99 at gmail.com> | Sat Mar 29 14:46:57 2014 -0700| [86166870a6091554d693f8ae787939e3fea3526c] | committer: Jean-Baptiste Kempf

build: Fix --disable-apidoc configure option

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=86166870a6091554d693f8ae787939e3fea3526c
---

 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



More information about the libdvdnav-devel mailing list