+2002-06-12 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
+ $base.lo.d, when libtool is used.
+ Reported by Nicolas Joly.
+
2002-06-11 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in `foo.d' instead, so we check for that too.
# Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
- base=`echo "$object" | sed -e 's/\.o$//' -e 's/\.lo$//'`
- tmpdepfile1="$base.o.d"
- tmpdepfile2="$base.d"
if test "$libtool" = yes; then
+ tmpdepfile1="$dir.libs/$base.lo.d"
+ tmpdepfile2="$dir.libs/$base.d"
"$@" -Wc,-MD
else
+ tmpdepfile1="$dir$base.o.d"
+ tmpdepfile2="$dir$base.d"
"$@" -MD
fi