Re: [PATCH] build-sys: require xsltproc when manpages are enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sami,

On Mon, Oct 22, 2012 at 3:40 PM, Sami Kerola <kerolasa@xxxxxx> wrote:
> 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
> ---
>  configure.ac | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> 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@:>@]),
> --
> 1.7.12.4

Applied. Thanks.

Lucas De Marchi
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux