aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorHarish Krupo <harishkrupo@gmail.com>2019-04-19 19:31:08 +0530
committerHarish Krupo <harishkrupo@gmail.com>2019-04-19 19:34:09 +0530
commitb77cf862909f5cc2a4b20f0f92c586a1f135dd92 (patch)
tree4c38af5ba121519c3ce052768cbd2df06ae5a8ff /configure.ac
parentreleasing: fixup section numbers (diff)
downloadwayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar.gz
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar.bz2
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar.lz
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar.xz
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.tar.zst
wayland-b77cf862909f5cc2a4b20f0f92c586a1f135dd92.zip
docs: Abort configure if docbook-xsl package is missing
The docbook-xsl package includes all the stylesheets required to build the docs without internet access. Test: One way to emulate missing style sheets is to move /etc/xml/catalog file to a different location. Doing so should cause configure to fail with "checking for docbook stylesheets... no" v2: add AC_MSG_RESULT (Pekka) Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 13 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index 1c147a9..59ae244 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,19 +129,6 @@ fi
AC_PATH_PROG(XSLTPROC, xsltproc)
AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"])
-AC_MSG_CHECKING([for docbook manpages stylesheet])
-MANPAGES_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
-AC_PATH_PROGS_FEATURE_CHECK([XSLTPROC_TMP], [xsltproc],
- AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$MANPAGES_STYLESHEET" > /dev/null 2>&1`],
- [HAVE_MANPAGES_STYLESHEET=yes]))
-if test "x$HAVE_MANPAGES_STYLESHEET" = "xyes"; then
- AM_CONDITIONAL([HAVE_MANPAGES_STYLESHEET], true)
- AC_SUBST(MANPAGES_STYLESHEET)
- AC_MSG_RESULT([yes])
-else
- AM_CONDITIONAL([HAVE_MANPAGES_STYLESHEET], false)
- AC_MSG_RESULT([no])
-fi
AM_CONDITIONAL(BUILD_DOCS, [test x$enable_documentation = xyes])
if test "x$enable_documentation" = "xyes"; then
@@ -177,6 +164,19 @@ if test "x$enable_documentation" = "xyes"; then
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([yes])])
+ AC_MSG_CHECKING([for docbook stylesheets])
+ DOCS_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
+ AC_PATH_PROGS_FEATURE_CHECK([XSLTPROC_TMP], [xsltproc],
+ AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$DOCS_STYLESHEET" > /dev/null 2>&1`],
+ [HAVE_DOCS_STYLESHEET=yes]))
+ if test "x$HAVE_DOCS_STYLESHEET" != "xyes"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Documentation build requested but docbook-xsl stylesheets are not found. Install the docbook-xsl package or disable the documentation using --disable-documentation])
+ fi
+
+ AC_MSG_RESULT([yes])
+ AC_SUBST(DOCS_STYLESHEET)
+
AC_CONFIG_FILES([
doc/doxygen/wayland.doxygen
])