minidlna support now Samsung TV C550/C650 (thx amir909)
[tomato.git] / release / src / router / samba3 / docs-xml / configure.ac
blobbc795ab0de43a07c623a03cb4919204057f5e5a2
1 AC_INIT(xslt/latex.xsl)
3 AC_ARG_WITH(samba-sources,
4 [ --with-samba-sources=DIR Specify path to Samba sources],
5 [ test "$withval" && SPECIFIED_SOURCEDIR="$withval" ])
7 LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside"
8 AC_ARG_ENABLE(prentice-hall,
9 [ --enable-prentice-hall     Produce Prentice-Hall compatible output],
10 [ test "$enableval" && LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,10pt,openleft,twoside,ph" ])
11 AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS)
13 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
14 AC_SUBST(DOC_BUILD_DATE)
15 AC_SUBST(SAMBASOURCEDIR)
17 BUILDDIR=$(pwd)
18 AC_SUBST(BUILDDIR)
20 DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
21 DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
22 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, LATEX)
23 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, PS)
24 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, PDF)
25 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, HTML)
26 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, HTMLHELP)
27 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, PEARSON)
28 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, PLUCKER)
29 dnl DOCS_TARGET_REQUIRE_PROGRAM(DIA, dia, FOPDF)
30 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, LATEX)
31 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PS)
32 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PDF)
33 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTML)
34 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTMLHELP)
35 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PEARSON)
36 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PLUCKER)
37 DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, FOPDF)
38 # Check dia version number
40 #if test -n "$DIA"; then
41 #   [ DIA_VERSION=`$DIA -v | egrep -o '([0-9]+)\.([0-9]+)'`]
42 #   DIA_MAJ_VERSION=`echo $DIA_VERSION | cut -d . -f 1`
43 #   DIA_MIN_VERSION=`echo $DIA_VERSION | cut -d . -f 2`
45 #   if test "$DIA_MAJ_VERSION" -le "0"
46 #   then
47 #       if test "$DIA_MIN_VERSION" -le "92" && test -z "$DISPLAY"
48 #       then
49 #               AC_MSG_ERROR([Dia below 0.93 requires an X environment. Set \$DISPLAY or install Dia 0.93 or higher])
50 #       fi
51 #   fi   
52 #fi
54 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINDEX, makeindex, LATEX)
55 DOCS_TARGET_REQUIRE_PROGRAM(PDFLATEX, pdflatex, PDF)
56 DOCS_TARGET_REQUIRE_PROGRAM(EPSTOPDF, epstopdf, PDF)
57 DOCS_TARGET_REQUIRE_PROGRAM(THUMBPDF, thumbpdf, PDF)
58 DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
59 DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
60 DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)
61 DOCS_TARGET_REQUIRE_PROGRAM(DVIPS, dvips, PS)
62 DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
63 DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
64 DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
65 DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
66 DOCS_TARGET_REQUIRE_PROGRAM(FOP, fop, FOPDF)
67 DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
68 DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
69 DOCS_TARGET_REQUIRE_DIR([$SPECIFIED_SOURCEDIR $SPECIFIED_SOURCEDIR/source ..], [param/loadparm.c], SAMBASOURCEDIR, UNDOCUMENTED)
71 AC_MSG_RESULT([])
72 AC_MSG_RESULT([Summary:])
73 AC_MSG_RESULT([--------------])
75 DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
76 DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex])
77 DOCS_DEFINE_TARGET(PDF, LATEX, [PDF versions], [pdf])
78 DOCS_DEFINE_TARGET(PS, LATEX, [PostScript versions], [ps])
79 DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
80 DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
81 DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman3])
82 DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages3])
83 DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
84 DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
85 DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
86 DOCS_DEFINE_TARGET(FOPDF, ALL, [PDF versions thru FO], [fo-pdf])
87 DOCS_DEFINE_TARGET(TEXI, ALL, [TexInfo versions], [texi])
88 DOCS_DEFINE_TARGET(TEXIINFO, ALL, [TexInfo Info versions], [texiinfo])
89 DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
90 DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
92 if test x"$TARGETS" = x; then 
93         AC_MSG_ERROR([You won't be able to build any of the docs])
94 else 
95         AC_MSG_RESULT([You will be able to build: $TARGETS])
98 AC_SUBST(TARGETS)
100 AC_OUTPUT( Makefile.settings build/catalog.xml)