From: Daiki Ueno Date: Sun, 13 Jul 2014 21:13:40 +0000 (+0900) Subject: autopoint: Fix the last change X-Git-Tag: v0.19.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db326c5ade1bc3fb252f441604ac152f791ba100;p=thirdparty%2Fgettext.git autopoint: Fix the last change * autopoint.in: Use func_trace_sed for AM_GNU_GETTEXT and AM_GNU_GETTEXT_VERSION, as they are not an Autoconf trace. --- diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in index f87d38a5a..03cae5590 100644 --- a/gettext-tools/misc/autopoint.in +++ b/gettext-tools/misc/autopoint.in @@ -29,6 +29,7 @@ version=@VERSION@ prefix="@prefix@" datarootdir="@datarootdir@" : ${gettext_datadir="@datadir@/gettext"} +: ${AUTOM4TE=autom4te} # func_tmpdir # creates a temporary directory. @@ -151,7 +152,7 @@ m4_undefine([m4_exit]) m4_undefine([m4_include]) m4_undefine([m4_esyscmd]) ' \ - | ${AUTOM4TE:-autom4te} --no-cache --language=Autoconf-without-aclocal-m4 \ + | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \ --trace="$1":\$% - "$2" 2>/dev/null } @@ -306,7 +307,7 @@ fi # is more accurate than func_trace_sed, but it only works with # autoconf >= 2.69. if echo "AC_PREREQ([2.69])" \ - | autom4te --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1; then + | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1; then func_trace=func_trace_autoconf else func_trace=func_trace_sed @@ -314,7 +315,10 @@ fi # Check whether the -V option and the version number in configure.in match. # At least one of the two must be given. If both are given, they must agree. -xver=`"$func_trace" AM_GNU_GETTEXT_VERSION "$configure_in"` + +# Need to use func_trace_sed instead of $func_trace, since +# AM_GNU_GETTEXT_VERSION is not a standard Autoconf trace. +xver=`func_trace_sed AM_GNU_GETTEXT_VERSION "$configure_in"` if test -z "$xver" && test -f intl/VERSION; then xver=`cat intl/VERSION | LC_ALL=C sed -n -e 's/^.*gettext-\([-+_.0-9A-Za-z]*\).*$/\1/p'` fi @@ -393,7 +397,9 @@ fi # Check whether to omit the intl/ directory. omitintl= -xargs=`"$func_trace" AM_GNU_GETTEXT "$configure_in"` +# Need to use func_trace_sed instead of $func_trace, since +# AM_GNU_GETTEXT is not a standard Autoconf trace. +xargs=`func_trace_sed AM_GNU_GETTEXT "$configure_in"` save_IFS="$IFS"; IFS=: for arg in $xargs; do if test 'external' = "$arg"; then diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in index eeaf21f13..dbe4d1eca 100644 --- a/gettext-tools/misc/gettextize.in +++ b/gettext-tools/misc/gettextize.in @@ -29,6 +29,7 @@ version=@VERSION@ prefix="@prefix@" datarootdir="@datarootdir@" : ${gettext_datadir="@datadir@/gettext"} +: ${AUTOM4TE=autom4te} # func_tmpdir # creates a temporary directory. @@ -151,7 +152,7 @@ m4_undefine([m4_exit]) m4_undefine([m4_include]) m4_undefine([m4_esyscmd]) ' \ - | ${AUTOM4TE:-autom4te} --no-cache --language=Autoconf-without-aclocal-m4 \ + | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \ --trace="$1":\$% - "$2" 2>/dev/null } @@ -357,7 +358,7 @@ fi # is more accurate than func_trace_sed, but it only works with # autoconf >= 2.69. if echo "AC_PREREQ([2.69])" \ - | autom4te --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1; then + | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 - 2>&1; then func_trace=func_trace_autoconf else func_trace=func_trace_sed @@ -710,7 +711,9 @@ else echo "Not copying intl/ directory." # Tell the user what to put into configure.ac, if it is not already there. external= - xargs=`"$func_trace" AM_GNU_GETTEXT "$srcdir/$configure_in"` + # Need to use func_trace_sed instead of $func_trace, since + # AM_GNU_GETTEXT is not a standard Autoconf trace. + xargs=`func_trace_sed AM_GNU_GETTEXT "$srcdir/$configure_in"` save_IFS="$IFS"; IFS=: for arg in $xargs; do if test 'external' = "$arg"; then