[libdvdcss-devel] build: properly handle --disable-doc

Diego Elio Pettenò git at videolan.org
Wed Feb 27 11:27:54 CET 2013


libdvdcss | branch: master | Diego Elio Pettenò <flameeyes at flameeyes.eu> | Wed Feb 27 11:26:23 2013 +0100| [766fd6647a87e8c35f7b20f5f7f9eea48b1a25d1] | committer: Diego Elio Pettenò

build: properly handle --disable-doc

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=766fd6647a87e8c35f7b20f5f7f9eea48b1a25d1
---

 configure.ac |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index a736aac..3d3a5fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
   ])
 ])



More information about the libdvdcss-devel mailing list