diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-05-30 08:25:51 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-05-30 08:25:58 -0400 |
commit | 047416ff0f9ea822d6fdc3dabb4039f2ebcdab77 (patch) | |
tree | 3ddb43d76055dda8879559cd1b6d20180e0469bf /configure.ac | |
parent | 0dd8f3848e5982c6cf23dc185e01392461d2a81d (diff) |
configure.ac: fix --enable-manpages. Fixes issue #109.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/configure.ac b/configure.ac index 3c00597f09..01a8b9b79f 100644 --- a/configure.ac +++ b/configure.ac @@ -259,44 +259,8 @@ AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [ # ------------------------------------------------------------------------------ -AC_ARG_VAR([XML_CATALOG_FILES],[Used to find Docbook catalog (to build man pages)]) -AC_ARG_ENABLE([manpages], AS_HELP_STRING([--disable-manpages], [disable manpages])) - -if test "x$enable_manpages" != "xno" -a "x$XSLTPROC" != "x"; then - AC_MSG_CHECKING([for local Docbook stylesheets]) - $XSLTPROC --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl >/dev/null 2>&1 << END -<?xml version="1.0" encoding='ISO-8859-1'?> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<book id="test"> -</book> -END - if test "$?" = 0; then - docbook_ok=yes - XSLTPROC_FLAGS=--nonet - AC_MSG_RESULT(${docbook_ok}) - else - AC_MSG_RESULT([no]) - AC_MSG_CHECKING([for Docbook stylesheets via internet(use '--disable-manpages' flag to omit)]) - $XSLTPROC http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl >/dev/null 2>&1 << END -<?xml version="1.0" encoding='ISO-8859-1'?> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> -<book id="test"> -</book> -END - if test "$?" = 0; then - docbook_ok=yes - XSLTPROC_FLAGS= - else - docbook_ok=no - fi - AC_MSG_RESULT(${docbook_ok}) - fi - - AS_IF([test "x${docbook_ok}" = "xyes"],[have_manpages=yes], [ - AC_MSG_WARN([Manpages requested but docbook not enabled. Manpages disabled!]) - ]) -fi -AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"]) +AC_ARG_ENABLE([manpages], AS_HELP_STRING([--disable-manpages],[disable manpages]),[],[enable_manpages=no]) +AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$enable_manpages" = "xyes"]) AC_SUBST(XSLTPROC_FLAGS) # ------------------------------------------------------------------------------ |