1 dnl ------------------------------------------------------------------------
2 dnl try to find xmlto (required for generation of man pages and html docs)
3 dnl ------------------------------------------------------------------------
4 AC_DEFUN([GP_CHECK_DOCBOOK_XML],
7 AC_MSG_CHECKING([for XML catalogs])
8 XML_CATALOG_FILES="`find /etc/xml /usr/share/xml /usr/share/sgml -type f \( -iname 'catalog.xml' -or -iname 'catalog' \) -print 2> /dev/null | while read file; do echo -n "$file "; done`"
9 if test "x$XML_CATALOG_FILES" = "x"
11 AC_MSG_RESULT([none found.])
13 AC_MSG_RESULT([found ${XML_CATALOG_FILES}])
15 AC_SUBST(XML_CATALOG_FILES)
18 #AC_SUBST(XML_DEBUG_CATALOG)
20 manual_msg="no (http://cyberelk.net/tim/xmlto/)"
23 AC_ARG_WITH(xmlto, [ --without-xmlto Don't use xmlto],[
24 if test x$withval = xno; then
28 AC_PATH_PROG(XMLTO,xmlto)
29 if test -n "${XMLTO}"; then
33 if true || test "x$XML_CATALOG_FILES" = "x"; then
34 unset XML_CATALOG_FILES
35 XMLTO="${XMLTO} -m \$(top_srcdir)/src/xsl/custom.xsl"
37 XMLTO="env XML_CATALOG_FILES=\"${XML_CATALOG_FILES}\" ${XMLTO} -m ${top_srcdir}/src/xsl/custom.xsl"
40 # in case anybody runs $(XMLTO) somewhere, we return false
45 AM_CONDITIONAL(XMLTO, $have_xmlto)