diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-08-10 16:18:30 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-08-10 12:43:42 -0400 |
commit | 7d8ef8effd511d4e0b66d735eb0ae68a80ef633a (patch) | |
tree | 67fc1294f21725630b1107b5c5849b851c135d2f /server/external | |
parent | 00aa07816bfd4305ac94780a8c2b9e6609be39ea (diff) | |
download | sssd-7d8ef8effd511d4e0b66d735eb0ae68a80ef633a.tar.gz sssd-7d8ef8effd511d4e0b66d735eb0ae68a80ef633a.tar.bz2 sssd-7d8ef8effd511d4e0b66d735eb0ae68a80ef633a.zip |
Add configure checks for docbook XSL templates and XML tools
Changes the configure process so that configure errors out if lacks the
tools necessary to build manual pages (like xsltproc). Also adds a check
for required URI of the docbook XSL templates using the xmlcatalog tool.
Diffstat (limited to 'server/external')
-rw-r--r-- | server/external/docbook.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/server/external/docbook.m4 b/server/external/docbook.m4 new file mode 100644 index 00000000..cae89feb --- /dev/null +++ b/server/external/docbook.m4 @@ -0,0 +1,35 @@ +dnl Checks for tools needed to generate manual pages +AC_DEFUN([CHECK_XML_TOOLS], +[ + AC_PATH_PROG([XSLTPROC], [xsltproc]) + if test ! -x "$XSLTPROC"; then + AC_MSG_ERROR([Could not find xsltproc]) + fi + + AC_PATH_PROG([XMLLINT], [xmllint]) + if test ! -x "$XMLLINT"; then + AC_MSG_ERROR([Could not find xmllint]) + fi + + AC_PATH_PROG([XMLCATALOG], [xmlcatalog]) + if test ! -x "$XMLCATALOG"; then + AC_MSG_ERROR([Could not find xmlcatalog]) + fi +]) + +dnl Usage: +dnl CHECK_STYLESHEET_URI(FILE, URI, [FRIENDLY-NAME]) +dnl Checks if the XML catalog given by FILE exists and +dnl if a particular URI appears in the XML catalog +AC_DEFUN([CHECK_STYLESHEET], +[ + AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])]) + + AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog]) + if AC_RUN_LOG([$XMLCATALOG --noout "$1" "$2" >&2]); then + AC_MSG_RESULT([yes]) + else + AC_MSG_ERROR([could not find ifelse([$3],,[$2],[$3]) in XML catalog]) + fi +]) + |