Omit result about xml2-config
[m4-moved-to-github.git] / yaz.m4
diff --git a/yaz.m4 b/yaz.m4
index 4626bc6..eebfa70 100644 (file)
--- a/yaz.m4
+++ b/yaz.m4
@@ -4,14 +4,19 @@
 dnl ----- Setup Docbook documentation for YAZ
 AC_DEFUN([YAZ_DOC],
 [
+dnl autoconf < 2.60 does not define docdir
+if test -n "$docdir"; then
+        docdir="${datadir}/doc/${PACKAGE}"
+        AC_SUBST([docdir])
+fi
 AC_SUBST(XSLTPROC_COMPILE)
 XSLTPROC_COMPILE='xsltproc -path ".:$(srcdir)"'
 AC_SUBST(MAN_COMPILE)
-MAN_COMPILE='$(XSLTPROC_COMPILE) common/id.man.xsl'
+MAN_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.man.xsl'
 AC_SUBST(HTML_COMPILE)
-HTML_COMPILE='$(XSLTPROC_COMPILE) common/id.htmlhelp.xsl'
+HTML_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.htmlhelp.xsl'
 AC_SUBST(TKL_COMPILE)
-TKL_COMPILE='$(XSLTPROC_COMPILE) common/id.tkl.xsl'
+TKL_COMPILE='$(XSLTPROC_COMPILE) $(srcdir)/common/id.tkl.xsl'
 
 AC_SUBST(DTD_DIR)      
 AC_ARG_WITH(docbook-dtd,[[  --with-docbook-dtd=DIR  use docbookx.dtd in DIR]],