From: Bruno Haible Date: Thu, 8 May 2003 20:45:55 +0000 (+0000) Subject: Avoid misinterpretation of some ACLOCAL_AMFLAGS. X-Git-Tag: v0.12~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f68309dc62be678a70a78060669f520702338d3;p=thirdparty%2Fgettext.git Avoid misinterpretation of some ACLOCAL_AMFLAGS. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 83efd1446..757fe3756 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,9 @@ +2003-05-08 Bruno Haible + + * gettextize.in: Ignore ACLOCAL_AMFLAGS options of the form -Idir when + dir is an absolute pathname. + Reported by Jürgen A. Erhard . + 2003-04-29 Bruno Haible * gettextize.in: Recommend running automake only after aclocal, diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in index 92f073b62..7bb0f453b 100644 --- a/gettext-tools/misc/gettextize.in +++ b/gettext-tools/misc/gettextize.in @@ -661,8 +661,14 @@ if test -f "$srcdir/Makefile.am"; then m4dir_is_next= for arg in $aclocal_amflags; do if test -n "$m4dir_is_next"; then - m4dir="$arg" - break + # Ignore absolute directory pathnames, like /usr/local/share/aclocal. + case "$arg" in + /*) ;; + *) + m4dir="$arg" + break + ;; + esac else if test "X$arg" = "X-I"; then m4dir_is_next=yes