of the comedi manual is now generated
if test "$XMLTO" = "no" ; then
AC_MSG_WARN([xmlto not found, will not be able to rebuild documentation])
fi
+ AC_PATH_PROG(DBLATEX, dblatex, no)
+ if test "$DBLATEX" = "no" ; then
+ AC_MSG_WARN([dblatex not found, will not be able to generate pdfs])
+ fi
else
XMLTO="no"
+ DBLATEX="no"
fi
AM_CONDITIONAL(HAVE_XMLTO, [test "$XMLTO" != "no"])
+AM_CONDITIONAL(HAVE_DBLATEX, [test "$DBLATEX" != "no"])
pcmciadir="\${sysconfdir}/pcmcia"
AC_SUBST(pcmciadir)
install_html = install_html
uninstall_html = uninstall_html
-# dist_pdf_DATA = comedilib.pdf
+if HAVE_DBLATEX
+dist_pdf_DATA = comedilib.pdf
+else
dist_pdf_DATA =
+endif
all_man = $(srcdir)/man
install_man = install_man
for each in `find $(srcdir)/man/ -name '*.3'`; do $(RM) $(DESTDIR)$(mandir)/man3/`basename $$each` ; done
comedilib.pdf: $(XML)
- $(XMLTO) -o $(srcdir)/pdf --skip-validation pdf $(srcdir)/comedilib.xml
+ $(DBLATEX) -o $(srcdir)/pdf -t pdf $(srcdir)/comedilib.xml
funcref.xml: funcref mkref
$(srcdir)/mkref $(srcdir)/funcref >$(srcdir)/funcref.xml