Fixed evaluation of the disable-build-docs argument.
[free-sw/xcb/libxcb] / acinclude.m4
index 27fda42..e85ea5a 100644 (file)
@@ -44,7 +44,7 @@ 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"
@@ -99,10 +99,6 @@ AC_DEFUN([AM_CHECK_DOXYGEN],
     dnl Substitution
     dnl
     AC_SUBST([DOXYGEN])
-    dnl according to the autoconf doc, htmldir == docdir == ${prefix}/share/doc/${PACKAGE_NAME}
-    dnl I tried to use docdir, without success
-    htmldir=${prefix}/share/doc/${PACKAGE_NAME}
-    AC_SUBST(htmldir)
     AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
    ])
 dnl End of acinclude.m4