summaryrefslogtreecommitdiff
path: root/configfsf.guess
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-11-08 20:49:35 +0100
committerKevin Ryde <user42@zip.com.au>2000-11-08 20:49:35 +0100
commit5b9a1a0fef489ec5eff4e31cb320798b4dfb0a70 (patch)
treeec82ced8a6e3f0fabf43b32d6576bd3c0720b612 /configfsf.guess
parent7771e303866c88a10f771453d9e5318188de89c2 (diff)
downloadgmp-5b9a1a0fef489ec5eff4e31cb320798b4dfb0a70.tar.gz
Temporarily patched for development.
Diffstat (limited to 'configfsf.guess')
-rwxr-xr-xconfigfsf.guess36
1 files changed, 30 insertions, 6 deletions
diff --git a/configfsf.guess b/configfsf.guess
index 6944d1312..3a9ddfad5 100755
--- a/configfsf.guess
+++ b/configfsf.guess
@@ -1,9 +1,14 @@
#! /bin/sh
+
+
+# Temporarily patched for GMP.
+
+
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
# Free Software Foundation, Inc.
-version='2000-10-23'
+version='2000-11-08'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -78,6 +83,10 @@ if test $# != 0; then
exit 1
fi
+
+dummy=dummy-$$
+trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
+
# Use $HOST_CC if defined. $CC may point to a cross-compiler
if test x"$CC_FOR_BUILD" = x; then
if test x"$HOST_CC" != x; then
@@ -86,7 +95,17 @@ if test x"$CC_FOR_BUILD" = x; then
if test x"$CC" != x; then
CC_FOR_BUILD="$CC"
else
- CC_FOR_BUILD=cc
+ echo 'dummy(){}' >$dummy.c
+ for c in cc c89 gcc; do
+ ($c $dummy.c -c) >/dev/null 2>&1
+ if test $? = 0; then
+ CC_FOR_BUILD="$c"; break
+ fi
+ done
+ rm -f $dummy.c $dummy.o
+ if test x"$CC_FOR_BUILD" = x; then
+ CC_FOR_BUILD=no_compiler_found
+ fi
fi
fi
fi
@@ -103,9 +122,6 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-dummy=dummy-$$
-trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
-
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@@ -533,6 +549,7 @@ EOF
}
EOF
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
+ if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
rm -f $dummy.c $dummy
esac
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
@@ -628,9 +645,12 @@ EOF
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
- CRAY*T3E:*:*:*)
+ CRAY*T3D:*:*:*)
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit 0 ;;
@@ -724,6 +744,10 @@ EOF
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
exit 0
;;
+ elf32_sparc)
+ echo "${UNAME_MACHINE}-unknown-linux-gnu"
+ exit 0
+ ;;
armlinux)
echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
exit 0