diff options
author | Daniel Mack <github@zonque.org> | 2015-10-13 13:46:01 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-13 13:46:01 +0200 |
commit | 342de08f1aa3a3d12ab221a72431bddf5313cb63 (patch) | |
tree | 36b202cc567c92e1534f3d09a7f7cf9f22b0875f /configure.ac | |
parent | 1fff17d536dc94ca0adab3737008a02e173516f5 (diff) | |
parent | 2fd385c6703ef01fb52335179513392260add373 (diff) |
Merge pull request #1545 from keszybz/check-for-xsltproc
build-sys: check for xsltproc when building manpages
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5e3cdd6d2b..c658c7fca3 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,6 @@ AC_PROG_GREP AC_PROG_AWK AC_PATH_PROG([M4], [m4]) -AC_PATH_PROG([XSLTPROC], [xsltproc]) AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin]) AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin]) @@ -1286,7 +1285,12 @@ AM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes]) # ------------------------------------------------------------------------------ have_manpages=no AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages])) -AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes]) +AS_IF([test "x$enable_manpages" != xno], [ + have_manpages=yes + AC_PATH_PROG([XSLTPROC], [xsltproc]) + AS_IF([test -z "$XSLTPROC"], + AC_MSG_ERROR([*** xsltproc is required for man pages])) +]) AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"]) # ------------------------------------------------------------------------------ |