This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Small automake patch
- To: automake at gnu dot org
- Subject: Re: Small automake patch
- From: Ville Laurikari <vlaurika at hutcs dot cs dot hut dot fi>
- Date: Thu, 28 Dec 2000 14:13:34 +0200
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- References: <20001228132048.A12401@hutcs.cs.hut.fi>
On Thu, Dec 28, 2000 at 01:20:48PM +0200, Ville Laurikari wrote:
> +aix)
> + # The C for AIX Compiler uses -M and outputs the dependencies
> + # in a .u file.
> + tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
> + if "$@" -M && test -f "$tmpdepfile"; then
> + mv "$tmpdepfile" "$depfile"
> + fi
> + ;;
Oops, this does not work with libtool, of course. Here is the correct
code for this:
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file.
tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
if test "$libtool" = yes; then
"$@" -Wc,-M
else
"$@" -M
fi
if test $? -eq 0 -a -f "$tmpdepfile"; then
mv "$tmpdepfile" "$depfile"
fi
;;
Sorry...
--
http://www.iki.fi/vl/