X-Git-Url: https://git.tokkee.org/?p=template.git;a=blobdiff_plain;f=configure.ac;h=5f0be652dbade58b9b735754eca21cfd959bc7d7;hp=715639bfdcc667f5467b3391461126d28e52f44d;hb=ce75f5d34e56d7e7e4139da1be2f8d8f6c872eeb;hpb=23f47361a09000176c5fa142946b7e39b81cfc45 diff --git a/configure.ac b/configure.ac index 715639b..5f0be65 100644 --- a/configure.ac +++ b/configure.ac @@ -193,6 +193,26 @@ AC_SUBST([STRICT_CFLAGS]) AC_CHECK_HEADERS(libgen.h) +dnl Check for dependencies. +build_documentation="yes" + +have_xsltproc="yes" +AC_PATH_PROG([XSLTPROC], [xsltproc]) +if test "x$XSLTPROC" = "x"; then + have_xsltproc="no" + build_documentation="no (missing xsltproc)" +fi + +have_a2x="yes" +AC_PATH_PROG([A2X], [a2x]) +if test "x$A2X" = "x"; then + have_a2x="no" + build_documentation="no (missing a2x)" +fi +AC_SUBST([A2X]) + +AM_CONDITIONAL([BUILD_DOCUMENTATION], test "x$build_documentation" = "xyes") + AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile]) AC_OUTPUT @@ -208,6 +228,13 @@ Configuration summary: package version: $PACKAGE_VERSION build date: `date --utc '+%F %T'` (UTC) + Tools: + AsciiDoc (a2x): . . . . . . $have_a2x + xsltproc: . . . . . . . . . $have_xsltproc + + Features: + documentation: . . . . . . $build_documentation + This package is maintained by $PACKAGE_MAINTAINER. Please report bugs to $PACKAGE_BUGREPORT.