Another suggestion for a fix -- I don't know if this is to be
considered worse or better than the previous patch. Is this way of
using tail portable? (The _only_ other use of tail I could find in
Autoconf and Automake is in depcomp.)

Regards,
Morten

Index: depcomp
===================================================================
RCS file: /cvs/automake/automake/depcomp,v
retrieving revision 1.5
diff -u -r1.5 depcomp
--- depcomp     1999/12/14 04:36:10     1.5
+++ depcomp     2000/06/02 07:55:07
@@ -123,7 +123,14 @@
   fi
   rm -f "$depfile" 
   echo "$object : \\" > "$depfile"
-  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+
+  # Clip off the initial element (the dependent). Don't try to be
+  # clever and replace this with sed code, as IRIX sed won't handle
+  # lines with more than 8192 characters.
+  tr ' ' '
+' < "$tmpdepfile" | tail +2 | tr '
+' ' ' >> $depfile
+
   tr ' ' '
 ' < "$tmpdepfile" | \
 ## Some versions of the HPUX 10.20 sed can't process this invocation

Reply via email to