summaryrefslogtreecommitdiff
path: root/build-aux/depcomp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-20 16:12:51 -0700
committerKarl Berry <karl@freefriends.org>2017-09-20 16:12:51 -0700
commit29443e0b0a0955e61f03c1de43a1ab85de4fb67d (patch)
tree403a4426ba17c05279a4c671ae68190f33d833e5 /build-aux/depcomp
parentb86cc86ae41e68d0484c5c3957b867e4725bb986 (diff)
downloadgnulib-29443e0b0a0955e61f03c1de43a1ab85de4fb67d.tar.gz
autoupdate
Diffstat (limited to 'build-aux/depcomp')
-rwxr-xr-xbuild-aux/depcomp35
1 files changed, 35 insertions, 0 deletions
diff --git a/build-aux/depcomp b/build-aux/depcomp
index 4527c6411f..5ff3c6feb4 100755
--- a/build-aux/depcomp
+++ b/build-aux/depcomp
@@ -251,6 +251,41 @@ hp)
exit 1
;;
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -ne 0; then
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$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 a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like '#:fec' to the end of the
+ # dependency line.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
+ | tr "$nl" ' ' >> "$depfile"
+ echo >> "$depfile"
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ make_dummy_depfile
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
xlc)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,