From: Alexandre Duret-Lutz Date: Thu, 13 Jun 2002 07:40:09 +0000 (+0000) Subject: Fix pr307.test failure with gcc 3.x. X-Git-Tag: Release-1-6b~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6891a852a3d12e00462aad684bb16817c713d20;p=thirdparty%2Fautomake.git Fix pr307.test failure with gcc 3.x. * lib/depcomp (dashmstdout): Strip the call to libtool, and replace `-o $object' by `-o /dev/null' before running "$@" to generate dependencies. (cpp): Strip the call to libtool as well as `-o $object'. --- diff --git a/ChangeLog b/ChangeLog index 72ecae034..8d667ab11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-06-13 Alexandre Duret-Lutz + + Fix pr307.test failure with gcc 3.x. + * lib/depcomp (dashmstdout): Strip the call to libtool, and + replace `-o $object' by `-o /dev/null' before running "$@" + to generate dependencies. + (cpp): Strip the call to libtool as well as `-o $object'. + 2002-06-12 Alexandre Duret-Lutz * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as diff --git a/lib/depcomp b/lib/depcomp index 340abb153..807b991f4 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -254,11 +254,40 @@ tru64) dashmstdout) # Important note: in order to support this mode, a compiler *must* - # always write the proprocessed file to stdout, regardless of -o, - # because we must use -o when running libtool. + # always write the proprocessed file to stdout, regardless of -o. "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. We will use -o /dev/null later, + # however we can't do the remplacement now because + # `-o $object' might simply not be used + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + test -z "$dashmflag" && dashmflag=-M - "$@" $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' @@ -310,9 +339,36 @@ makedepend) cpp) # Important note: in order to support this mode, a compiler *must* - # always write the proprocessed file to stdout, regardless of -o, - # because we must use -o when running libtool. + # always write the proprocessed file to stdout. "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" diff --git a/stamp-vti b/stamp-vti index 7721be68a..937b3793a 100644 --- a/stamp-vti +++ b/stamp-vti @@ -1,4 +1,4 @@ -@set UPDATED 10 June 2002 +@set UPDATED 11 June 2002 @set UPDATED-MONTH June 2002 @set EDITION 1.6a @set VERSION 1.6a diff --git a/tests/Makefile.in b/tests/Makefile.in index e19373095..0204a4f7d 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -28,7 +28,7 @@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) -transform = @program_transform_name@ +transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : @@ -272,6 +272,7 @@ instman2.test \ interp.test \ interp2.test \ java.test \ +java2.test \ javaprim.test \ javasubst.test \ ldadd.test \ diff --git a/version.texi b/version.texi index 7721be68a..937b3793a 100644 --- a/version.texi +++ b/version.texi @@ -1,4 +1,4 @@ -@set UPDATED 10 June 2002 +@set UPDATED 11 June 2002 @set UPDATED-MONTH June 2002 @set EDITION 1.6a @set VERSION 1.6a