doc/manual/Makefile.am (dist_html_DATA, dist_pdf_DATA): New variables. (manual.html): New target. (manual.pdf): Use $(DBLATEX), uppercase.
configure.ac: Check for xsltproc'. Add
–with-docbook-xsl' option.
6U6KBFYPWI2WJPZFEK6W4RN5JSRKFCBEPMKHDYEPGOROC5EWI2EAC
AC_PATH_PROG(dblatex, dblatex)
dnl Optional dependencies to build the manual, normally not needed
dnl since the tarball comes with the PDF and HTML manuals.
AC_PATH_PROG([DBLATEX], [dblatex])
AC_PATH_PROG([XSLTPROC], [xsltproc])
AC_ARG_WITH([docbook-xsl],
[AS_HELP_STRING([--with-docbook-xsl=PATH],
[path of the DocBook XSL stylesheets])],
[docbookxsl="$withval"],
[docbookxsl="/docbook-xsl-missing"])
AC_SUBST([docbookxsl])
# Include the manual in the tarball.
dist_html_DATA = manual.html
dist_pdf_DATA = manual.pdf
manual.html: $(DOCBOOK_FILES)
if test "$(XSLTPROC)" != ""; then \
$(XSLTPROC) --nonet --xinclude --output manual.html \
$(docbookxsl)/html/docbook.xsl manual.xml; \
else \
@echo "Please install xsltproc and rerun configure."; \
exit 1; \
fi