X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;h=8b240add9a8e21579e5a896c8d4504d07681dff4;hb=bcd1dcec9b242d7e2185c1ae83d3884844a2647f;hp=186873c5e0b0ee82074ccc1beb06d20a60507703;hpb=44a2160c95f6c90d461d66c0278348c62d2d77fa;p=free-sw%2Fxcb%2Flibxcb diff --git a/acinclude.m4 b/acinclude.m4 index 186873c..8b240ad 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -44,12 +44,16 @@ AC_DEFUN([AM_CHECK_DOXYGEN], AC_HELP_STRING( [--disable-build-docs], [Disable the build of the documentation]), - [if test "${disable_build_docs}" = "yes" ; then + [if test x"$enableval" != x"yes" ; then enable_build_docs="no" else enable_build_docs="yes" fi], [enable_build_docs="yes"]) + + if test "$enable_build_docs" = "no" ; then + BUILD_DOCS=no + else dnl dnl Get the prefix where doxygen is installed. dnl @@ -93,6 +97,7 @@ AC_DEFUN([AM_CHECK_DOXYGEN], AC_MSG_WARN( [Warning: no doxygen detected. Documentation will not be built]) fi]) + fi AC_MSG_CHECKING([whether documentation is built]) AC_MSG_RESULT([${BUILD_DOCS}]) dnl