Remove references to dia now that we use inkscape for diagrams.
[samba.git] / docs-xml / configure.ac
1 AC_INIT(xslt/latex.xsl)
2
3 LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside"
4 AC_ARG_ENABLE(prentice-hall,
5 [ --enable-prentice-hall     Produce Prentice-Hall compatible output],
6 [ test "$enableval" && LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,10pt,openleft,twoside,ph" ])
7 AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS)
8
9 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
10 AC_SUBST(DOC_BUILD_DATE)
11
12 DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
13 DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
14 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, LATEX)
15 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PS)
16 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PDF)
17 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTML)
18 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTMLHELP)
19 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PEARSON)
20 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PLUCKER)
21 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, FOPDF)
22
23 DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
24 DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
25 DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
26 DOCS_TARGET_REQUIRE_PROGRAM(DBLATEX, dblatex, LATEX)
27 DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
28 DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
29 DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
30 DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
31 DOCS_TARGET_REQUIRE_PROGRAM(FOP, fop, FOPDF)
32 DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
33 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
34
35 AC_MSG_RESULT([])
36 AC_MSG_RESULT([Summary:])
37 AC_MSG_RESULT([--------------])
38
39 DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
40 DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex ps pdf])
41 DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
42 DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
43 DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman3])
44 DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages3])
45 DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
46 DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
47 DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
48 DOCS_DEFINE_TARGET(FOPDF, ALL, [PDF versions thru FO], [fo-pdf])
49 DOCS_DEFINE_TARGET(TEXI, ALL, [TexInfo versions], [texi])
50 DOCS_DEFINE_TARGET(TEXIINFO, ALL, [TexInfo Info versions], [texiinfo])
51 DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
52 DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
53
54 if test x"$TARGETS" = x; then 
55         AC_MSG_ERROR([You won't be able to build any of the docs])
56 else 
57         AC_MSG_RESULT([You will be able to build: $TARGETS])
58 fi
59
60 AC_SUBST(TARGETS)
61
62 AC_OUTPUT( Makefile.settings build/catalog.xml)