/[bison]/bison/config/depcomp
ViewVC logotype

Diff of /bison/config/depcomp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by akim, Mon Aug 25 07:15:07 2003 UTC revision 1.9 by akim, Mon Aug 25 18:47:36 2003 UTC
# Line 172  sgi) Line 172  sgi)
172    
173  aix)  aix)
174    # The C for AIX Compiler uses -M and outputs the dependencies    # The C for AIX Compiler uses -M and outputs the dependencies
175    # in a .u file.  This file always lives in the current directory.    # in a .u file.  In older versions, this file always lives in the
176    # Also, the AIX compiler puts `$object:' at the start of each line;    # current directory.  Also, the AIX compiler puts `$object:' at the
177    # $object doesn't have directory information.    # start of each line; $object doesn't have directory information.
178    stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`    # Version 6 uses the directory in both cases.
179      stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
180    tmpdepfile="$stripped.u"    tmpdepfile="$stripped.u"
   outname="$stripped.o"  
181    if test "$libtool" = yes; then    if test "$libtool" = yes; then
182      "$@" -Wc,-M      "$@" -Wc,-M
183    else    else
184      "$@" -M      "$@" -M
185    fi    fi
   
186    stat=$?    stat=$?
187    
188      if test -f "$tmpdepfile"; then :
189      else
190        stripped=`echo "$stripped" | sed 's,^.*/,,'`
191        tmpdepfile="$stripped.u"
192      fi
193    
194    if test $stat -eq 0; then :    if test $stat -eq 0; then :
195    else    else
196      rm -f "$tmpdepfile"      rm -f "$tmpdepfile"
# Line 192  aix) Line 198  aix)
198    fi    fi
199    
200    if test -f "$tmpdepfile"; then    if test -f "$tmpdepfile"; then
201        outname="$stripped.o"
202      # Each line is of the form `foo.o: dependent.h'.      # Each line is of the form `foo.o: dependent.h'.
203      # Do two passes, one to just change these to      # Do two passes, one to just change these to
204      # `$object: dependent.h' and one to simply `dependent.h:'.      # `$object: dependent.h' and one to simply `dependent.h:'.

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26