aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1994-10-06 18:03:20 -0700
committerPer Bothner <bothner@gcc.gnu.org>1994-10-06 18:03:20 -0700
commitf847788b7fb89963c96e7f4d152125f0fb577a12 (patch)
tree8bcf5ab0de46ec915651ae9dececc4d71b43a4c4 /gcc
parent1bbd065b6cec92d339f9f076aee19f4bad67e81f (diff)
downloadgcc-f847788b7fb89963c96e7f4d152125f0fb577a12.zip
gcc-f847788b7fb89963c96e7f4d152125f0fb577a12.tar.gz
gcc-f847788b7fb89963c96e7f4d152125f0fb577a12.tar.bz2
Patch to handle old Convex systems (without uname).
From-SVN: r8232
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/config.guess26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/config.guess b/gcc/config.guess
index 8358e6d..95819f1 100755
--- a/gcc/config.guess
+++ b/gcc/config.guess
@@ -419,6 +419,32 @@ rm -f dummy.c dummy
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit 0 ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit 0 ;;
+ c34*)
+ echo c34-convex-bsd
+ exit 0 ;;
+ c38*)
+ echo c38-convex-bsd
+ exit 0 ;;
+ c4*)
+ echo c4-convex-bsd
+ exit 0 ;;
+ esac
+fi
+
#echo '(Unable to guess system type)' 1>&2
exit 1