Remove broken XSL-FO translation code; this has been broken for a while
[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
22 DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
23 DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
24 DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
25 DOCS_TARGET_REQUIRE_PROGRAM(DBLATEX, dblatex, LATEX)
26 DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
27 DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
28 DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
29 DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
30 DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
31 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
32
33 AC_MSG_RESULT([])
34 AC_MSG_RESULT([Summary:])
35 AC_MSG_RESULT([--------------])
36
37 DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
38 DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex ps pdf])
39 DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
40 DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
41 DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman3])
42 DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages3])
43 DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
44 DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
45 DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
46 DOCS_DEFINE_TARGET(TEXI, ALL, [TexInfo versions], [texi])
47 DOCS_DEFINE_TARGET(TEXIINFO, ALL, [TexInfo Info versions], [texiinfo])
48 DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
49 DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
50
51 if test x"$TARGETS" = x; then 
52         AC_MSG_ERROR([You won't be able to build any of the docs])
53 else 
54         AC_MSG_RESULT([You will be able to build: $TARGETS])
55 fi
56
57 AC_SUBST(TARGETS)
58
59 AC_OUTPUT( Makefile.settings build/catalog.xml)