[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to allow texi2any for EMACS manual compilation
From: |
Andreas Schwab |
Subject: |
Re: Patch to allow texi2any for EMACS manual compilation |
Date: |
Mon, 22 Sep 2014 20:59:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) |
Vincent Belaïche <address@hidden> writes:
> === modified file 'configure.ac'
> --- configure.ac 2014-09-15 00:20:21 +0000
> +++ configure.ac 2014-09-22 17:36:48 +0000
> @@ -1099,16 +1099,25 @@
>
> ## Need makeinfo >= 4.7 (?) to build the manuals.
> if test "$MAKEINFO" != "no"; then
> - if test "$MAKEINFO" = "${am_missing_run}makeinfo"; then
> - MAKEINFO=makeinfo
> + for MAKEINFO_IMPLEMENTATION in makeinfo texi2any; do
> + if test "$MAKEINFO" = "${am_missing_run}${MAKEINFO_IMPLEMENTATION}";
> then
> + MAKEINFO=${MAKEINFO_IMPLEMENTATION}
> + fi
> + done
> + MAKEINFO_VERSION=`($MAKEINFO --version) 2>/dev/null`;
> + MAKEINFO_CHECK=no;
> + for MAKEINFO_IMPLEMENTATION in makeinfo texi2any; do
> + case $MAKEINFO_VERSION in
> + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "4.[7-9]* | \
> + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "4.[1-9][0-9]* | \
> + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "[5-9]* | \
> + "$MAKEINFO_IMPLEMENTATION (GNU texinfo) "[1-9][0-9]* )
> + MAKEINFO_CHECK=yes;;
> + esac
> + done
> + if [ $MAKEINFO_CHECK != yes ]; then
> + MAKEINFO=no;
> fi
> - case `($MAKEINFO --version) 2>/dev/null` in
> - 'makeinfo (GNU texinfo) '4.[[7-9]]* | \
> - 'makeinfo (GNU texinfo) '4.[[1-9][0-9]]* | \
> - 'makeinfo (GNU texinfo) '[[5-9]]* | \
> - 'makeinfo (GNU texinfo) '[[1-9][0-9]]* ) ;;
Why can't you just replace it with a wildcard? What's the point in
matching the exact program name?
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."