diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2003-02-10 22:15:53 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2003-02-10 22:15:53 +0000 |
commit | b32202f7ea1858bc161aedfac59696d5f64992b3 (patch) | |
tree | 4f5ef601e1a5a0cdb2d7e8d8c790178d452e7b70 /lib/depcomp | |
parent | 0f5e989d1699b2161540e6ff18a4acbd009461be (diff) | |
download | automake-b32202f7ea1858bc161aedfac59696d5f64992b3.tar.gz |
For PR automake/385:
* lib/depcomp (makedepend): Strip any libtool call, before
running makedepends.
* tests/depcomp4.test: New file.
* tests/Makefile.am (TESTS): Add it.
Reported by Jeff Squyres.
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-x | lib/depcomp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/depcomp b/lib/depcomp index 0f97c7aac..46d355355 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -304,6 +304,13 @@ dashXmstdout) makedepend) "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi # X makedepend shift cleared=no |