Fixed bug #1201: ./buildconf.sh fails on sarge.
[m4-moved-to-github.git] / yaz.m4
diff --git a/yaz.m4 b/yaz.m4
index ebfd774..eebfa70 100644 (file)
--- a/yaz.m4
+++ b/yaz.m4
@@ -4,6 +4,11 @@
 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)