mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
build-sys: check for xsltproc when building manpages
Only check for xsltproc if it will be used. If not found, complain. https://github.com/systemd/systemd/issues/1521
This commit is contained in:
parent
7e3ce75d34
commit
2fd385c670
@ -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"])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user