2005-06-13 14:23:53 +04:00
AC_INIT(xslt/latex.xsl)
2004-04-07 14:15:11 +04:00
2005-06-13 18:56:25 +04:00
LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside"
AC_ARG_ENABLE(prentice-hall,
[ --enable-prentice-hall Produce Prentice-Hall compatible output],
2005-07-05 01:36:46 +04:00
[ test "$enableval" && LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,10pt,openleft,twoside,ph" ])
2005-06-13 18:56:25 +04:00
AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS)
2004-04-07 14:15:11 +04:00
DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)
2004-04-23 18:23:36 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(XSLTPROC, xsltproc, ALL)
DOCS_TARGET_REQUIRE_PROGRAM(RM, rm, ALL)
2008-04-14 19:39:30 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, LATEX)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PS)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PDF)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTML)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, HTMLHELP)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PEARSON)
DOCS_TARGET_REQUIRE_PROGRAM(INKSCAPE, inkscape, PLUCKER)
2004-09-05 17:26:10 +04:00
2004-04-23 18:23:36 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(PNGTOPNM, pngtopnm, PS)
DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
2009-05-01 16:14:30 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(DBLATEX, dblatex, LATEX)
2004-04-23 18:23:36 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
2004-05-15 20:09:50 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
2004-04-23 18:23:36 +04:00
DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
2005-03-17 03:13:11 +03:00
DOCS_TARGET_REQUIRE_PROGRAM(XMLLINT, xmllint, VALIDATE)
2005-03-11 19:26:19 +03:00
DOCS_TARGET_REQUIRE_PROGRAM(DB2TEXI, docbook2x-texi, TEXI)
DOCS_TARGET_REQUIRE_PROGRAM(MAKEINFO, makeinfo, TEXIINFO)
2004-04-23 18:23:36 +04:00
AC_MSG_RESULT([])
AC_MSG_RESULT([Summary:])
AC_MSG_RESULT([--------------])
DOCS_DEFINE_TARGET(ALL, [], [base requirements], [])
2009-05-01 20:32:21 +04:00
DOCS_DEFINE_TARGET(LATEX, ALL, [LaTeX versions], [tex ps pdf])
2004-04-23 18:23:36 +04:00
DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
2004-06-15 01:25:16 +04:00
DOCS_DEFINE_TARGET(HTMLHELP, ALL, [HTML Help versions], [htmlhelp])
2012-09-10 14:28:19 +04:00
DOCS_DEFINE_TARGET(HTMLMAN, ALL, [HTML versions of the manpages], [htmlman])
2012-09-10 02:32:20 +04:00
DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages])
2004-06-16 00:12:16 +04:00
DOCS_DEFINE_TARGET(PEARSON, ALL, [pearson-compatible XML], [pearson])
2004-04-23 18:23:36 +04:00
DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
2005-03-17 03:13:11 +03:00
DOCS_DEFINE_TARGET(VALIDATE, ALL, [validating docbook output], [])
2005-03-11 19:26:19 +03:00
DOCS_DEFINE_TARGET(TEXI, ALL, [TexInfo versions], [texi])
DOCS_DEFINE_TARGET(TEXIINFO, ALL, [TexInfo Info versions], [texiinfo])
2004-04-23 18:23:36 +04:00
DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
2004-05-15 20:09:50 +04:00
DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
2004-04-23 18:23:36 +04:00
if test x"$TARGETS" = x; then
AC_MSG_ERROR([You won't be able to build any of the docs])
else
AC_MSG_RESULT([You will be able to build: $TARGETS])
fi
AC_SUBST(TARGETS)
2018-01-04 12:38:05 +03:00
. ../VERSION
2017-12-12 13:01:51 +03:00
if test x"$DOC_VERSION" = x; then
2018-01-04 12:38:05 +03:00
#AC_MSG_ERROR([Please export DOC_VERSION variable])
VERSION_SUFFIX=""
2018-01-04 14:55:26 +03:00
if test x"$SAMBA_VERSION_PRE_RELEASE" != x; then
2018-01-04 12:38:05 +03:00
VERSION_SUFFIX=pre
fi
DOC_VERSION=${SAMBA_VERSION_MAJOR}.${SAMBA_VERSION_MINOR}.${SAMBA_VERSION_RELEASE}${VERSION_SUFFIX}
2017-12-12 13:01:51 +03:00
else
AC_MSG_RESULT([DOC_VERSION: ${DOC_VERSION}])
fi
doc_version="${DOC_VERSION}"
AC_SUBST(doc_version)
AC_OUTPUT( Makefile.settings build/catalog.xml build/DTD/samba.build.version)