This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Small automake patch


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]