aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2012-10-22 18:40:02 +0100
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-10-22 16:06:04 -0200
commit5c61b1491e29f89f47c23288440e9106da6bf5d7 (patch)
tree2d2c03dadaa631cf17568509994a4bf3e171d264
parent1eff942e37adda55bd8c506d4e2a7970fdbf7a74 (diff)
downloadkmod-5c61b1491e29f89f47c23288440e9106da6bf5d7.tar.gz
build-sys: require xsltproc when manpages are enabled
Before this commit the build system failed at late state with non-helpful message when xsltproc was not available. Making all in man GEN depmod.d.5 /bin/sh: --nonet: command not found make[2]: *** [depmod.d.5] Error 127 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2e9124c..30035ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,6 @@ AC_C_BIGENDIAN
AC_PROG_SED
AC_PROG_MKDIR_P
-AC_PATH_PROG([XSLTPROC], [xsltproc])
PKG_PROG_PKG_CONFIG
@@ -88,6 +87,10 @@ AC_ARG_ENABLE([manpages],
AS_HELP_STRING([--disable-manpages], [disable manpages @<:@default=enabled@:>@]),
[], enable_manpages=yes)
AM_CONDITIONAL([BUILD_MANPAGES], [test "x$enable_manpages" = "xyes"])
+AC_PATH_PROG([XSLTPROC], [xsltproc], [no])
+if test "x$XSLTPROC" = "xno" && test "x$enable_manpages" = "xyes"; then
+ AC_MSG_ERROR([xsltproc command not found, try ./configure --disable-manpages])
+fi
AC_ARG_ENABLE([logging],
AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),