|
|
19e3c2 |
diff -up libieee1284-0.2.11/config.guess.aarch64 libieee1284-0.2.11/config.guess
|
|
|
19e3c2 |
--- libieee1284-0.2.11/config.guess.aarch64 2006-07-13 08:12:38.000000000 +0100
|
|
|
19e3c2 |
+++ libieee1284-0.2.11/config.guess 2013-04-30 13:06:13.188084931 +0100
|
|
|
19e3c2 |
@@ -1,9 +1,10 @@
|
|
|
19e3c2 |
#! /bin/sh
|
|
|
19e3c2 |
# Attempt to guess a canonical system name.
|
|
|
19e3c2 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
|
19e3c2 |
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
19e3c2 |
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
|
19e3c2 |
+# 2011, 2012 Free Software Foundation, Inc.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-timestamp='2003-06-17'
|
|
|
19e3c2 |
+timestamp='2012-09-25'
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# This file is free software; you can redistribute it and/or modify it
|
|
|
19e3c2 |
# under the terms of the GNU General Public License as published by
|
|
|
19e3c2 |
@@ -16,24 +17,24 @@ timestamp='2003-06-17'
|
|
|
19e3c2 |
# General Public License for more details.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
# You should have received a copy of the GNU General Public License
|
|
|
19e3c2 |
-# along with this program; if not, write to the Free Software
|
|
|
19e3c2 |
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
19e3c2 |
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
# As a special exception to the GNU General Public License, if you
|
|
|
19e3c2 |
# distribute this file as part of a program that contains a
|
|
|
19e3c2 |
# configuration script generated by Autoconf, you may include it under
|
|
|
19e3c2 |
# the same distribution terms that you use for the rest of that program.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-# Originally written by Per Bothner <per@bothner.com>.
|
|
|
19e3c2 |
-# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
|
19e3c2 |
-# diff and a properly formatted ChangeLog entry.
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+# Originally written by Per Bothner. Please send patches (context
|
|
|
19e3c2 |
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
|
|
|
19e3c2 |
+# entry.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
# This script attempts to guess a canonical system name similar to
|
|
|
19e3c2 |
# config.sub. If it succeeds, it prints the system name on stdout, and
|
|
|
19e3c2 |
# exits with 0. Otherwise, it exits with 1.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
-# The plan is that this can be called by configure scripts if you
|
|
|
19e3c2 |
-# don't specify an explicit build system type.
|
|
|
19e3c2 |
+# You can get the latest version of this script from:
|
|
|
19e3c2 |
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
|
19e3c2 |
|
|
|
19e3c2 |
me=`echo "$0" | sed -e 's,.*/,,'`
|
|
|
19e3c2 |
|
|
|
19e3c2 |
@@ -53,7 +54,8 @@ version="\
|
|
|
19e3c2 |
GNU config.guess ($timestamp)
|
|
|
19e3c2 |
|
|
|
19e3c2 |
Originally written by Per Bothner.
|
|
|
19e3c2 |
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
|
|
19e3c2 |
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
|
19e3c2 |
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
|
|
|
19e3c2 |
Free Software Foundation, Inc.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
This is free software; see the source for copying conditions. There is NO
|
|
|
19e3c2 |
@@ -66,11 +68,11 @@ Try \`$me --help' for more information."
|
|
|
19e3c2 |
while test $# -gt 0 ; do
|
|
|
19e3c2 |
case $1 in
|
|
|
19e3c2 |
--time-stamp | --time* | -t )
|
|
|
19e3c2 |
- echo "$timestamp" ; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$timestamp" ; exit ;;
|
|
|
19e3c2 |
--version | -v )
|
|
|
19e3c2 |
- echo "$version" ; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$version" ; exit ;;
|
|
|
19e3c2 |
--help | --h* | -h )
|
|
|
19e3c2 |
- echo "$usage"; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$usage"; exit ;;
|
|
|
19e3c2 |
-- ) # Stop option processing
|
|
|
19e3c2 |
shift; break ;;
|
|
|
19e3c2 |
- ) # Use stdin as input.
|
|
|
19e3c2 |
@@ -104,7 +106,7 @@ set_cc_for_build='
|
|
|
19e3c2 |
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
|
|
19e3c2 |
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
|
|
19e3c2 |
: ${TMPDIR=/tmp} ;
|
|
|
19e3c2 |
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
|
|
19e3c2 |
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
|
|
19e3c2 |
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
|
|
19e3c2 |
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
|
|
19e3c2 |
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
|
|
19e3c2 |
@@ -123,7 +125,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
,,*) CC_FOR_BUILD=$CC ;;
|
|
|
19e3c2 |
,*,*) CC_FOR_BUILD=$HOST_CC ;;
|
|
|
19e3c2 |
-esac ;'
|
|
|
19e3c2 |
+esac ; set_cc_for_build= ;'
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
|
|
19e3c2 |
# (ghazi@noc.rutgers.edu 1994-08-24)
|
|
|
19e3c2 |
@@ -136,19 +138,12 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
|
|
|
19e3c2 |
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
|
|
19e3c2 |
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-## for Red Hat Linux
|
|
|
19e3c2 |
-if test -f /etc/redhat-release ; then
|
|
|
19e3c2 |
- VENDOR=redhat ;
|
|
|
19e3c2 |
-else
|
|
|
19e3c2 |
- VENDOR= ;
|
|
|
19e3c2 |
-fi
|
|
|
19e3c2 |
-
|
|
|
19e3c2 |
# Note: order is significant - the case branches are not exclusive.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
19e3c2 |
*:NetBSD:*:*)
|
|
|
19e3c2 |
# NetBSD (nbsd) targets should (where applicable) match one or
|
|
|
19e3c2 |
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
|
|
19e3c2 |
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
|
|
19e3c2 |
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
|
|
19e3c2 |
# switched to ELF, *-*-netbsd* would select the old
|
|
|
19e3c2 |
# object file format. This provides both forward
|
|
|
19e3c2 |
@@ -165,6 +160,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
arm*) machine=arm-unknown ;;
|
|
|
19e3c2 |
sh3el) machine=shl-unknown ;;
|
|
|
19e3c2 |
sh3eb) machine=sh-unknown ;;
|
|
|
19e3c2 |
+ sh5el) machine=sh5le-unknown ;;
|
|
|
19e3c2 |
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
# The Operating System including object format, if it has switched
|
|
|
19e3c2 |
@@ -173,7 +169,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
19e3c2 |
- | grep __ELF__ >/dev/null
|
|
|
19e3c2 |
+ | grep -q __ELF__
|
|
|
19e3c2 |
then
|
|
|
19e3c2 |
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
|
|
19e3c2 |
# Return netbsd for either. FIX?
|
|
|
19e3c2 |
@@ -183,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
*)
|
|
|
19e3c2 |
- os=netbsd
|
|
|
19e3c2 |
+ os=netbsd
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
# The OS release
|
|
|
19e3c2 |
@@ -203,50 +199,36 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
# contains redundant information, the shorter form:
|
|
|
19e3c2 |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
|
|
19e3c2 |
echo "${machine}-${os}${release}"
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- amiga:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- arc:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- hp300:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- mac68k:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- macppc:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- mvme68k:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- mvme88k:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m88k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- mvmeppc:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- pmax:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- sgi:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- sun3:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- wgrisc:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:Bitrig:*:*)
|
|
|
19e3c2 |
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:OpenBSD:*:*)
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:ekkoBSD:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:SolidBSD:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ macppc:MirBSD:*:*)
|
|
|
19e3c2 |
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:MirBSD:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
alpha:OSF1:*:*)
|
|
|
19e3c2 |
- if test $UNAME_RELEASE = "V4.0"; then
|
|
|
19e3c2 |
+ case $UNAME_RELEASE in
|
|
|
19e3c2 |
+ *4.0)
|
|
|
19e3c2 |
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
|
|
19e3c2 |
- fi
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ *5.*)
|
|
|
19e3c2 |
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ esac
|
|
|
19e3c2 |
# According to Compaq, /usr/sbin/psrinfo has been available on
|
|
|
19e3c2 |
# OSF/1 and Tru64 systems produced since 1995. I hope that
|
|
|
19e3c2 |
# covers most systems running today. This code pipes the CPU
|
|
|
19e3c2 |
@@ -284,42 +266,52 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
"EV7.9 (21364A)")
|
|
|
19e3c2 |
UNAME_MACHINE="alphaev79" ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
+ # A Pn.n version is a patched version.
|
|
|
19e3c2 |
# A Vn.n version is a released version.
|
|
|
19e3c2 |
# A Tn.n version is a released field test version.
|
|
|
19e3c2 |
# A Xn.n version is an unreleased experimental baselevel.
|
|
|
19e3c2 |
# 1.2 uses "1.2" for uname -r.
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- Alpha*:OpenVMS:*:*)
|
|
|
19e3c2 |
- echo alpha-hp-vms
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
|
19e3c2 |
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
|
|
19e3c2 |
+ exitcode=$?
|
|
|
19e3c2 |
+ trap '' 0
|
|
|
19e3c2 |
+ exit $exitcode ;;
|
|
|
19e3c2 |
Alpha\ *:Windows_NT*:*)
|
|
|
19e3c2 |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
|
19e3c2 |
# Should we change UNAME_MACHINE based on the output of uname instead
|
|
|
19e3c2 |
# of the specific Alpha model?
|
|
|
19e3c2 |
echo alpha-pc-interix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
21064:Windows_NT:50:3)
|
|
|
19e3c2 |
echo alpha-dec-winnt3.5
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Amiga*:UNIX_System_V:4.0:*)
|
|
|
19e3c2 |
echo m68k-unknown-sysv4
|
|
|
19e3c2 |
- exit 0;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:[Aa]miga[Oo][Ss]:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-amigaos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:[Mm]orph[Oo][Ss]:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-morphos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:OS/390:*:*)
|
|
|
19e3c2 |
echo i370-ibm-openedition
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:z/VM:*:*)
|
|
|
19e3c2 |
+ echo s390-ibm-zvmoe
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:OS400:*:*)
|
|
|
19e3c2 |
+ echo powerpc-ibm-os400
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
|
|
19e3c2 |
echo arm-acorn-riscix${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
|
|
|
19e3c2 |
+ echo arm-unknown-riscos
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
|
|
19e3c2 |
echo hppa1.1-hitachi-hiuxmpp
|
|
|
19e3c2 |
- exit 0;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
|
|
|
19e3c2 |
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
|
|
19e3c2 |
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
|
|
19e3c2 |
@@ -327,32 +319,51 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo pyramid-pyramid-bsd
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
NILE*:*:*:dcosx)
|
|
|
19e3c2 |
echo pyramid-pyramid-svr4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
DRS?6000:unix:4.0:6*)
|
|
|
19e3c2 |
echo sparc-icl-nx6
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- DRS?6000:UNIX_SV:4.2*:7*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
|
|
|
19e3c2 |
case `/usr/bin/uname -p` in
|
|
|
19e3c2 |
- sparc) echo sparc-icl-nx7 && exit 0 ;;
|
|
|
19e3c2 |
+ sparc) echo sparc-icl-nx7; exit ;;
|
|
|
19e3c2 |
esac ;;
|
|
|
19e3c2 |
+ s390x:SunOS:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun4H:SunOS:5.*:*)
|
|
|
19e3c2 |
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
|
|
19e3c2 |
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- i86pc:SunOS:5.*:*)
|
|
|
19e3c2 |
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
|
|
19e3c2 |
+ echo i386-pc-auroraux${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
|
|
19e3c2 |
+ eval $set_cc_for_build
|
|
|
19e3c2 |
+ SUN_ARCH="i386"
|
|
|
19e3c2 |
+ # If there is a compiler, see if it is configured for 64-bit objects.
|
|
|
19e3c2 |
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
|
|
19e3c2 |
+ # This test works for both compilers.
|
|
|
19e3c2 |
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
|
19e3c2 |
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
|
19e3c2 |
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
|
19e3c2 |
+ grep IS_64BIT_ARCH >/dev/null
|
|
|
19e3c2 |
+ then
|
|
|
19e3c2 |
+ SUN_ARCH="x86_64"
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun4*:SunOS:6*:*)
|
|
|
19e3c2 |
# According to config.sub, this is the proper way to canonicalize
|
|
|
19e3c2 |
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
|
|
19e3c2 |
# it's likely to be more like Solaris than SunOS4.
|
|
|
19e3c2 |
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun4*:SunOS:*:*)
|
|
|
19e3c2 |
case "`/usr/bin/arch -k`" in
|
|
|
19e3c2 |
Series*|S4*)
|
|
|
19e3c2 |
@@ -361,10 +372,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
# Japanese Language versions have a version number like `4.1.3-JL'.
|
|
|
19e3c2 |
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun3*:SunOS:*:*)
|
|
|
19e3c2 |
echo m68k-sun-sunos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sun*:*:4.2BSD:*)
|
|
|
19e3c2 |
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
|
|
|
19e3c2 |
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
|
|
|
19e3c2 |
@@ -376,10 +387,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
echo sparc-sun-sunos${UNAME_RELEASE}
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
aushp:SunOS:*:*)
|
|
|
19e3c2 |
echo sparc-auspex-sunos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
# The situation for MiNT is a little confusing. The machine name
|
|
|
19e3c2 |
# can be virtually everything (everything which is not
|
|
|
19e3c2 |
# "atarist" or "atariste" at least should have a processor
|
|
|
19e3c2 |
@@ -389,38 +400,41 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
# MiNT. But MiNT is downward compatible to TOS, so this should
|
|
|
19e3c2 |
# be no problem.
|
|
|
19e3c2 |
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
|
19e3c2 |
- echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
|
19e3c2 |
echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
|
|
19e3c2 |
- echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
|
|
19e3c2 |
- echo m68k-milan-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo m68k-milan-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
|
|
19e3c2 |
- echo m68k-hades-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo m68k-hades-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
|
|
19e3c2 |
- echo m68k-unknown-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo m68k-unknown-mint${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ m68k:machten:*:*)
|
|
|
19e3c2 |
+ echo m68k-apple-machten${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
powerpc:machten:*:*)
|
|
|
19e3c2 |
echo powerpc-apple-machten${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
RISC*:Mach:*:*)
|
|
|
19e3c2 |
echo mips-dec-mach_bsd4.3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
RISC*:ULTRIX:*:*)
|
|
|
19e3c2 |
echo mips-dec-ultrix${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
VAX*:ULTRIX*:*:*)
|
|
|
19e3c2 |
echo vax-dec-ultrix${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
2020:CLIX:*:* | 2430:CLIX:*:*)
|
|
|
19e3c2 |
echo clipper-intergraph-clix${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
mips:*:*:UMIPS | mips:*:*:RISCos)
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
@@ -444,35 +458,36 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
|
|
|
19e3c2 |
exit (-1);
|
|
|
19e3c2 |
}
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
- $CC_FOR_BUILD -o $dummy $dummy.c \
|
|
|
19e3c2 |
- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
|
|
19e3c2 |
- && exit 0
|
|
|
19e3c2 |
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
|
|
|
19e3c2 |
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
|
|
|
19e3c2 |
+ SYSTEM_NAME=`$dummy $dummyarg` &&
|
|
|
19e3c2 |
+ { echo "$SYSTEM_NAME"; exit; }
|
|
|
19e3c2 |
echo mips-mips-riscos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Motorola:PowerMAX_OS:*:*)
|
|
|
19e3c2 |
echo powerpc-motorola-powermax
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Motorola:*:4.3:PL8-*)
|
|
|
19e3c2 |
echo powerpc-harris-powermax
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
|
|
|
19e3c2 |
echo powerpc-harris-powermax
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Night_Hawk:Power_UNIX:*:*)
|
|
|
19e3c2 |
echo powerpc-harris-powerunix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
m88k:CX/UX:7*:*)
|
|
|
19e3c2 |
echo m88k-harris-cxux7
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
m88k:*:4*:R4*)
|
|
|
19e3c2 |
echo m88k-motorola-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
m88k:*:3*:R3*)
|
|
|
19e3c2 |
echo m88k-motorola-sysv3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
AViiON:dgux:*:*)
|
|
|
19e3c2 |
- # DG/UX returns AViiON for all architectures
|
|
|
19e3c2 |
- UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
19e3c2 |
+ # DG/UX returns AViiON for all architectures
|
|
|
19e3c2 |
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
19e3c2 |
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
|
|
19e3c2 |
then
|
|
|
19e3c2 |
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
|
|
19e3c2 |
@@ -485,29 +500,29 @@ EOF
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo i586-dg-dgux${UNAME_RELEASE}
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
|
|
19e3c2 |
echo m88k-dolphin-sysv3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
M88*:*:R3*:*)
|
|
|
19e3c2 |
# Delta 88k system running SVR3
|
|
|
19e3c2 |
echo m88k-motorola-sysv3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
|
|
19e3c2 |
echo m88k-tektronix-sysv3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
|
|
19e3c2 |
echo m68k-tektronix-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:IRIX*:*:*)
|
|
|
19e3c2 |
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
|
|
19e3c2 |
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
|
|
19e3c2 |
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
|
|
19e3c2 |
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
|
|
19e3c2 |
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
|
|
19e3c2 |
i*86:AIX:*:*)
|
|
|
19e3c2 |
echo i386-ibm-aix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
ia64:AIX:*:*)
|
|
|
19e3c2 |
if [ -x /usr/bin/oslevel ] ; then
|
|
|
19e3c2 |
IBM_REV=`/usr/bin/oslevel`
|
|
|
19e3c2 |
@@ -515,7 +530,7 @@ EOF
|
|
|
19e3c2 |
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:AIX:2:3)
|
|
|
19e3c2 |
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
@@ -530,15 +545,19 @@ EOF
|
|
|
19e3c2 |
exit(0);
|
|
|
19e3c2 |
}
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
|
|
19e3c2 |
- echo rs6000-ibm-aix3.2.5
|
|
|
19e3c2 |
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
|
|
|
19e3c2 |
+ then
|
|
|
19e3c2 |
+ echo "$SYSTEM_NAME"
|
|
|
19e3c2 |
+ else
|
|
|
19e3c2 |
+ echo rs6000-ibm-aix3.2.5
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
|
|
19e3c2 |
echo rs6000-ibm-aix3.2.4
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo rs6000-ibm-aix3.2
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- *:AIX:*:[45])
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:AIX:*:[4567])
|
|
|
19e3c2 |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
|
|
19e3c2 |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
|
|
19e3c2 |
IBM_ARCH=rs6000
|
|
|
19e3c2 |
@@ -551,28 +570,28 @@ EOF
|
|
|
19e3c2 |
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:AIX:*:*)
|
|
|
19e3c2 |
echo rs6000-ibm-aix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
|
|
19e3c2 |
echo romp-ibm-bsd4.4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
|
|
|
19e3c2 |
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
|
|
19e3c2 |
- exit 0 ;; # report: romp-ibm BSD 4.3
|
|
|
19e3c2 |
+ exit ;; # report: romp-ibm BSD 4.3
|
|
|
19e3c2 |
*:BOSX:*:*)
|
|
|
19e3c2 |
echo rs6000-bull-bosx
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
DPX/2?00:B.O.S.:*:*)
|
|
|
19e3c2 |
echo m68k-bull-sysv3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
9000/[34]??:4.3bsd:1.*:*)
|
|
|
19e3c2 |
echo m68k-hp-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
|
|
19e3c2 |
echo m68k-hp-bsd4.4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
9000/[34678]??:HP-UX:*:*)
|
|
|
19e3c2 |
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|
|
19e3c2 |
case "${UNAME_MACHINE}" in
|
|
|
19e3c2 |
@@ -581,52 +600,52 @@ EOF
|
|
|
19e3c2 |
9000/[678][0-9][0-9])
|
|
|
19e3c2 |
if [ -x /usr/bin/getconf ]; then
|
|
|
19e3c2 |
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|
|
19e3c2 |
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
|
19e3c2 |
- case "${sc_cpu_version}" in
|
|
|
19e3c2 |
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
|
19e3c2 |
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
|
19e3c2 |
- 532) # CPU_PA_RISC2_0
|
|
|
19e3c2 |
- case "${sc_kernel_bits}" in
|
|
|
19e3c2 |
- 32) HP_ARCH="hppa2.0n" ;;
|
|
|
19e3c2 |
- 64) HP_ARCH="hppa2.0w" ;;
|
|
|
19e3c2 |
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
|
19e3c2 |
+ case "${sc_cpu_version}" in
|
|
|
19e3c2 |
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
|
19e3c2 |
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
|
19e3c2 |
+ 532) # CPU_PA_RISC2_0
|
|
|
19e3c2 |
+ case "${sc_kernel_bits}" in
|
|
|
19e3c2 |
+ 32) HP_ARCH="hppa2.0n" ;;
|
|
|
19e3c2 |
+ 64) HP_ARCH="hppa2.0w" ;;
|
|
|
19e3c2 |
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
|
|
19e3c2 |
- esac ;;
|
|
|
19e3c2 |
- esac
|
|
|
19e3c2 |
+ esac ;;
|
|
|
19e3c2 |
+ esac
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
if [ "${HP_ARCH}" = "" ]; then
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
+ sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ #define _HPUX_SOURCE
|
|
|
19e3c2 |
+ #include <stdlib.h>
|
|
|
19e3c2 |
+ #include <unistd.h>
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ int main ()
|
|
|
19e3c2 |
+ {
|
|
|
19e3c2 |
+ #if defined(_SC_KERNEL_BITS)
|
|
|
19e3c2 |
+ long bits = sysconf(_SC_KERNEL_BITS);
|
|
|
19e3c2 |
+ #endif
|
|
|
19e3c2 |
+ long cpu = sysconf (_SC_CPU_VERSION);
|
|
|
19e3c2 |
|
|
|
19e3c2 |
- #define _HPUX_SOURCE
|
|
|
19e3c2 |
- #include <stdlib.h>
|
|
|
19e3c2 |
- #include <unistd.h>
|
|
|
19e3c2 |
-
|
|
|
19e3c2 |
- int main ()
|
|
|
19e3c2 |
- {
|
|
|
19e3c2 |
- #if defined(_SC_KERNEL_BITS)
|
|
|
19e3c2 |
- long bits = sysconf(_SC_KERNEL_BITS);
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
- long cpu = sysconf (_SC_CPU_VERSION);
|
|
|
19e3c2 |
-
|
|
|
19e3c2 |
- switch (cpu)
|
|
|
19e3c2 |
- {
|
|
|
19e3c2 |
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
|
19e3c2 |
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
|
19e3c2 |
- case CPU_PA_RISC2_0:
|
|
|
19e3c2 |
- #if defined(_SC_KERNEL_BITS)
|
|
|
19e3c2 |
- switch (bits)
|
|
|
19e3c2 |
- {
|
|
|
19e3c2 |
- case 64: puts ("hppa2.0w"); break;
|
|
|
19e3c2 |
- case 32: puts ("hppa2.0n"); break;
|
|
|
19e3c2 |
- default: puts ("hppa2.0"); break;
|
|
|
19e3c2 |
- } break;
|
|
|
19e3c2 |
- #else /* !defined(_SC_KERNEL_BITS) */
|
|
|
19e3c2 |
- puts ("hppa2.0"); break;
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
- default: puts ("hppa1.0"); break;
|
|
|
19e3c2 |
- }
|
|
|
19e3c2 |
- exit (0);
|
|
|
19e3c2 |
- }
|
|
|
19e3c2 |
+ switch (cpu)
|
|
|
19e3c2 |
+ {
|
|
|
19e3c2 |
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
|
19e3c2 |
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
|
19e3c2 |
+ case CPU_PA_RISC2_0:
|
|
|
19e3c2 |
+ #if defined(_SC_KERNEL_BITS)
|
|
|
19e3c2 |
+ switch (bits)
|
|
|
19e3c2 |
+ {
|
|
|
19e3c2 |
+ case 64: puts ("hppa2.0w"); break;
|
|
|
19e3c2 |
+ case 32: puts ("hppa2.0n"); break;
|
|
|
19e3c2 |
+ default: puts ("hppa2.0"); break;
|
|
|
19e3c2 |
+ } break;
|
|
|
19e3c2 |
+ #else /* !defined(_SC_KERNEL_BITS) */
|
|
|
19e3c2 |
+ puts ("hppa2.0"); break;
|
|
|
19e3c2 |
+ #endif
|
|
|
19e3c2 |
+ default: puts ("hppa1.0"); break;
|
|
|
19e3c2 |
+ }
|
|
|
19e3c2 |
+ exit (0);
|
|
|
19e3c2 |
+ }
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
|
|
19e3c2 |
test -z "$HP_ARCH" && HP_ARCH=hppa
|
|
|
19e3c2 |
@@ -634,9 +653,19 @@ EOF
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
if [ ${HP_ARCH} = "hppa2.0w" ]
|
|
|
19e3c2 |
then
|
|
|
19e3c2 |
- # avoid double evaluation of $set_cc_for_build
|
|
|
19e3c2 |
- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
|
|
|
19e3c2 |
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
|
|
|
19e3c2 |
+ eval $set_cc_for_build
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
|
|
|
19e3c2 |
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
|
|
|
19e3c2 |
+ # generating 64-bit code. GNU and HP use different nomenclature:
|
|
|
19e3c2 |
+ #
|
|
|
19e3c2 |
+ # $ CC_FOR_BUILD=cc ./config.guess
|
|
|
19e3c2 |
+ # => hppa2.0w-hp-hpux11.23
|
|
|
19e3c2 |
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
|
|
|
19e3c2 |
+ # => hppa64-hp-hpux11.23
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
|
|
19e3c2 |
+ grep -q __LP64__
|
|
|
19e3c2 |
then
|
|
|
19e3c2 |
HP_ARCH="hppa2.0w"
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
@@ -644,11 +673,11 @@ EOF
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
ia64:HP-UX:*:*)
|
|
|
19e3c2 |
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
|
|
19e3c2 |
echo ia64-hp-hpux${HPUX_REV}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
3050*:HI-UX:*:*)
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
@@ -676,208 +705,269 @@ EOF
|
|
|
19e3c2 |
exit (0);
|
|
|
19e3c2 |
}
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
|
|
|
19e3c2 |
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
|
|
|
19e3c2 |
+ { echo "$SYSTEM_NAME"; exit; }
|
|
|
19e3c2 |
echo unknown-hitachi-hiuxwe2
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
|
|
19e3c2 |
echo hppa1.1-hp-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
9000/8??:4.3bsd:*:*)
|
|
|
19e3c2 |
echo hppa1.0-hp-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
|
|
|
19e3c2 |
echo hppa1.0-hp-mpeix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
|
|
19e3c2 |
echo hppa1.1-hp-osf
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
hp8??:OSF1:*:*)
|
|
|
19e3c2 |
echo hppa1.0-hp-osf
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:OSF1:*:*)
|
|
|
19e3c2 |
if [ -x /usr/sbin/sysversion ] ; then
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-osf1mk
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-osf1
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
parisc*:Lites*:*:*)
|
|
|
19e3c2 |
echo hppa1.1-hp-lites
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
|
|
19e3c2 |
echo c1-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
|
|
19e3c2 |
if getsysinfo -f scalar_acc
|
|
|
19e3c2 |
then echo c32-convex-bsd
|
|
|
19e3c2 |
else echo c2-convex-bsd
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
|
|
19e3c2 |
echo c34-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
|
|
19e3c2 |
echo c38-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
|
|
19e3c2 |
echo c4-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
CRAY*Y-MP:*:*:*)
|
|
|
19e3c2 |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
CRAY*[A-Z]90:*:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
|
|
19e3c2 |
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
|
|
19e3c2 |
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
|
|
|
19e3c2 |
-e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
CRAY*TS:*:*:*)
|
|
|
19e3c2 |
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
CRAY*T3E:*:*:*)
|
|
|
19e3c2 |
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
CRAY*SV1:*:*:*)
|
|
|
19e3c2 |
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:UNICOS/mp:*:*)
|
|
|
19e3c2 |
- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
|
|
19e3c2 |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
|
19e3c2 |
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
19e3c2 |
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|
|
19e3c2 |
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
19e3c2 |
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|
|
19e3c2 |
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ 5000:UNIX_System_V:4.*:*)
|
|
|
19e3c2 |
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
19e3c2 |
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
|
|
19e3c2 |
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sparc*:BSD/OS:*:*)
|
|
|
19e3c2 |
echo sparc-unknown-bsdi${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:BSD/OS:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
|
|
|
19e3c2 |
- # Determine whether the default compiler uses glibc.
|
|
|
19e3c2 |
- eval $set_cc_for_build
|
|
|
19e3c2 |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
- #include <features.h>
|
|
|
19e3c2 |
- #if __GLIBC__ >= 2
|
|
|
19e3c2 |
- LIBC=gnu
|
|
|
19e3c2 |
- #else
|
|
|
19e3c2 |
- LIBC=
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
-EOF
|
|
|
19e3c2 |
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:FreeBSD:*:*)
|
|
|
19e3c2 |
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
19e3c2 |
+ case ${UNAME_PROCESSOR} in
|
|
|
19e3c2 |
+ amd64)
|
|
|
19e3c2 |
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
19e3c2 |
+ *)
|
|
|
19e3c2 |
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
19e3c2 |
+ esac
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*:CYGWIN*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-cygwin
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- i*:MINGW*:*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:MINGW64*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-mingw64
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:MINGW*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-mingw32
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*:MSYS*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-msys
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*:windows32*:*)
|
|
|
19e3c2 |
+ # uname -m includes "-pc" on this system.
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-mingw32
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*:PW*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-pw32
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- x86:Interix*:[34]*)
|
|
|
19e3c2 |
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:Interix*:*)
|
|
|
19e3c2 |
+ case ${UNAME_MACHINE} in
|
|
|
19e3c2 |
+ x86)
|
|
|
19e3c2 |
+ echo i586-pc-interix${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ authenticamd | genuineintel | EM64T)
|
|
|
19e3c2 |
+ echo x86_64-unknown-interix${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ IA64)
|
|
|
19e3c2 |
+ echo ia64-unknown-interix${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ esac ;;
|
|
|
19e3c2 |
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
|
|
19e3c2 |
echo i${UNAME_MACHINE}-pc-mks
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ 8664:Windows_NT:*)
|
|
|
19e3c2 |
+ echo x86_64-pc-mks
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
|
|
19e3c2 |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
|
19e3c2 |
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
|
|
19e3c2 |
# UNAME_MACHINE based on the output of uname instead of i386?
|
|
|
19e3c2 |
echo i586-pc-interix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*:UWIN*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-uwin
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
|
|
|
19e3c2 |
+ echo x86_64-unknown-cygwin
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
p*:CYGWIN*:*)
|
|
|
19e3c2 |
echo powerpcle-unknown-cygwin
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
prep*:SunOS:5.*:*)
|
|
|
19e3c2 |
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:GNU:*:*)
|
|
|
19e3c2 |
+ # the GNU system
|
|
|
19e3c2 |
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:GNU/*:*:*)
|
|
|
19e3c2 |
+ # other systems with GNU libc and userland
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:Minix:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-minix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ aarch64:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ aarch64_be:Linux:*:*)
|
|
|
19e3c2 |
+ UNAME_MACHINE=aarch64_be
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ alpha:Linux:*:*)
|
|
|
19e3c2 |
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
|
19e3c2 |
+ EV5) UNAME_MACHINE=alphaev5 ;;
|
|
|
19e3c2 |
+ EV56) UNAME_MACHINE=alphaev56 ;;
|
|
|
19e3c2 |
+ PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
|
19e3c2 |
+ PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
|
19e3c2 |
+ EV6) UNAME_MACHINE=alphaev6 ;;
|
|
|
19e3c2 |
+ EV67) UNAME_MACHINE=alphaev67 ;;
|
|
|
19e3c2 |
+ EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
|
19e3c2 |
+ esac
|
|
|
19e3c2 |
+ objdump --private-headers /bin/sh | grep -q ld.so.1
|
|
|
19e3c2 |
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
arm*:Linux:*:*)
|
|
|
19e3c2 |
+ eval $set_cc_for_build
|
|
|
19e3c2 |
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
19e3c2 |
+ | grep -q __ARM_EABI__
|
|
|
19e3c2 |
+ then
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ else
|
|
|
19e3c2 |
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
19e3c2 |
+ | grep -q __ARM_PCS_VFP
|
|
|
19e3c2 |
+ then
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
|
|
19e3c2 |
+ else
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ avr32*:Linux:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
cris:Linux:*:*)
|
|
|
19e3c2 |
- echo cris-axis-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- ia64:Linux:*:*)
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- m68*:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-axis-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ crisv32:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-axis-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ frv:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ hexagon:Linux:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- mips:Linux:*:*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:Linux:*:*)
|
|
|
19e3c2 |
+ LIBC=gnu
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
- #undef CPU
|
|
|
19e3c2 |
- #undef mips
|
|
|
19e3c2 |
- #undef mipsel
|
|
|
19e3c2 |
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
|
19e3c2 |
- CPU=mipsel
|
|
|
19e3c2 |
- #else
|
|
|
19e3c2 |
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
|
19e3c2 |
- CPU=mips
|
|
|
19e3c2 |
- #else
|
|
|
19e3c2 |
- CPU=
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
+ #ifdef __dietlibc__
|
|
|
19e3c2 |
+ LIBC=dietlibc
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
|
|
19e3c2 |
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
- mips64:Linux:*:*)
|
|
|
19e3c2 |
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
|
|
19e3c2 |
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ ia64:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ m32r*:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ m68*:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ mips:Linux:*:* | mips64:Linux:*:*)
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
#undef CPU
|
|
|
19e3c2 |
- #undef mips64
|
|
|
19e3c2 |
- #undef mips64el
|
|
|
19e3c2 |
+ #undef ${UNAME_MACHINE}
|
|
|
19e3c2 |
+ #undef ${UNAME_MACHINE}el
|
|
|
19e3c2 |
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
|
19e3c2 |
- CPU=mips64el
|
|
|
19e3c2 |
+ CPU=${UNAME_MACHINE}el
|
|
|
19e3c2 |
#else
|
|
|
19e3c2 |
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
|
19e3c2 |
- CPU=mips64
|
|
|
19e3c2 |
+ CPU=${UNAME_MACHINE}
|
|
|
19e3c2 |
#else
|
|
|
19e3c2 |
CPU=
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
|
|
19e3c2 |
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
|
|
|
19e3c2 |
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
|
|
19e3c2 |
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- ppc:Linux:*:*)
|
|
|
19e3c2 |
- echo powerpc-${VENDOR:-unknown}-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- ppc64:Linux:*:*)
|
|
|
19e3c2 |
- echo powerpc64-${VENDOR:-unknown}-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- alpha:Linux:*:*)
|
|
|
19e3c2 |
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
|
19e3c2 |
- EV5) UNAME_MACHINE=alphaev5 ;;
|
|
|
19e3c2 |
- EV56) UNAME_MACHINE=alphaev56 ;;
|
|
|
19e3c2 |
- PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
|
19e3c2 |
- PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
|
19e3c2 |
- EV6) UNAME_MACHINE=alphaev6 ;;
|
|
|
19e3c2 |
- EV67) UNAME_MACHINE=alphaev67 ;;
|
|
|
19e3c2 |
- EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
|
19e3c2 |
- esac
|
|
|
19e3c2 |
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
|
|
19e3c2 |
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ or32:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ padre:Linux:*:*)
|
|
|
19e3c2 |
+ echo sparc-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
|
19e3c2 |
+ echo hppa64-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
parisc:Linux:*:* | hppa:Linux:*:*)
|
|
|
19e3c2 |
# Look for CPU level
|
|
|
19e3c2 |
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
|
|
19e3c2 |
@@ -885,109 +975,71 @@ EOF
|
|
|
19e3c2 |
PA8*) echo hppa2.0-unknown-linux-gnu ;;
|
|
|
19e3c2 |
*) echo hppa-unknown-linux-gnu ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
|
19e3c2 |
- echo hppa64-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ ppc64:Linux:*:*)
|
|
|
19e3c2 |
+ echo powerpc64-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ ppc:Linux:*:*)
|
|
|
19e3c2 |
+ echo powerpc-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
s390:Linux:*:* | s390x:Linux:*:*)
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-ibm-linux
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sh64*:Linux:*:*)
|
|
|
19e3c2 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sh*:Linux:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
sparc:Linux:*:* | sparc64:Linux:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ tile*:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ vax:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-dec-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
x86_64:Linux:*:*)
|
|
|
19e3c2 |
- echo x86_64-${VENDOR:-unknown}-linux-gnu
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- i*86:Linux:*:*)
|
|
|
19e3c2 |
- # The BFD linker knows what the default object file format is, so
|
|
|
19e3c2 |
- # first see if it will tell us. cd to the root directory to prevent
|
|
|
19e3c2 |
- # problems with other programs or directories called `ld' in the path.
|
|
|
19e3c2 |
- # Set LC_ALL=C to ensure ld outputs messages in English.
|
|
|
19e3c2 |
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
|
|
19e3c2 |
- | sed -ne '/supported targets:/!d
|
|
|
19e3c2 |
- s/[ ][ ]*/ /g
|
|
|
19e3c2 |
- s/.*supported targets: *//
|
|
|
19e3c2 |
- s/ .*//
|
|
|
19e3c2 |
- p'`
|
|
|
19e3c2 |
- case "$ld_supported_targets" in
|
|
|
19e3c2 |
- elf32-i386)
|
|
|
19e3c2 |
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
- a.out-i386-linux)
|
|
|
19e3c2 |
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- coff-i386)
|
|
|
19e3c2 |
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- "")
|
|
|
19e3c2 |
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
|
|
|
19e3c2 |
- # one that does not give us useful --help.
|
|
|
19e3c2 |
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- esac
|
|
|
19e3c2 |
- # Determine whether the default compiler is a.out or elf
|
|
|
19e3c2 |
- eval $set_cc_for_build
|
|
|
19e3c2 |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
19e3c2 |
- #include <features.h>
|
|
|
19e3c2 |
- #ifdef __ELF__
|
|
|
19e3c2 |
- # ifdef __GLIBC__
|
|
|
19e3c2 |
- # if __GLIBC__ >= 2
|
|
|
19e3c2 |
- LIBC=gnu
|
|
|
19e3c2 |
- # else
|
|
|
19e3c2 |
- LIBC=gnulibc1
|
|
|
19e3c2 |
- # endif
|
|
|
19e3c2 |
- # else
|
|
|
19e3c2 |
- LIBC=gnulibc1
|
|
|
19e3c2 |
- # endif
|
|
|
19e3c2 |
- #else
|
|
|
19e3c2 |
- #ifdef __INTEL_COMPILER
|
|
|
19e3c2 |
- LIBC=gnu
|
|
|
19e3c2 |
- #else
|
|
|
19e3c2 |
- LIBC=gnuaout
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
- #endif
|
|
|
19e3c2 |
-EOF
|
|
|
19e3c2 |
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
|
|
19e3c2 |
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
|
|
|
19e3c2 |
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ xtensa*:Linux:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:DYNIX/ptx:4*:*)
|
|
|
19e3c2 |
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
|
|
19e3c2 |
# earlier versions are messed up and put the nodename in both
|
|
|
19e3c2 |
# sysname and nodename.
|
|
|
19e3c2 |
echo i386-sequent-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:UNIX_SV:4.2MP:2.*)
|
|
|
19e3c2 |
- # Unixware is an offshoot of SVR4, but it has its own version
|
|
|
19e3c2 |
- # number series starting with 2...
|
|
|
19e3c2 |
- # I am not positive that other SVR4 systems won't match this,
|
|
|
19e3c2 |
+ # Unixware is an offshoot of SVR4, but it has its own version
|
|
|
19e3c2 |
+ # number series starting with 2...
|
|
|
19e3c2 |
+ # I am not positive that other SVR4 systems won't match this,
|
|
|
19e3c2 |
# I just have to hope. -- rms.
|
|
|
19e3c2 |
- # Use sysv4.2uw... so that sysv4* matches it.
|
|
|
19e3c2 |
+ # Use sysv4.2uw... so that sysv4* matches it.
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:OS/2:*:*)
|
|
|
19e3c2 |
# If we were able to find `uname', then EMX Unix compatibility
|
|
|
19e3c2 |
# is probably installed.
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-os2-emx
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:XTS-300:*:STOP)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-stop
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:atheos:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-atheos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:syllable:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-syllable
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
|
|
19e3c2 |
echo i386-unknown-lynxos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:*DOS:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-msdosdjgpp
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
|
|
|
19e3c2 |
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
|
|
|
19e3c2 |
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
|
|
19e3c2 |
@@ -995,15 +1047,16 @@ EOF
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- i*86:*:5:[78]*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:*:5:[678]*)
|
|
|
19e3c2 |
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
|
|
19e3c2 |
case `/bin/uname -X | grep "^Machine"` in
|
|
|
19e3c2 |
*486*) UNAME_MACHINE=i486 ;;
|
|
|
19e3c2 |
*Pentium) UNAME_MACHINE=i586 ;;
|
|
|
19e3c2 |
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i*86:*:3.2:*)
|
|
|
19e3c2 |
if test -f /usr/options/cb.name; then
|
|
|
19e3c2 |
UNAME_REL=`sed -n 's/.*Version //p'
|
|
|
19e3c2 |
@@ -1021,73 +1074,86 @@ EOF
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-pc-sysv32
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
pc:*:*:*)
|
|
|
19e3c2 |
# Left here for compatibility:
|
|
|
19e3c2 |
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
|
|
19e3c2 |
- # the processor, so we play safe by assuming i386.
|
|
|
19e3c2 |
- echo i386-pc-msdosdjgpp
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
|
|
19e3c2 |
+ # the processor, so we play safe by assuming i586.
|
|
|
19e3c2 |
+ # Note: whatever this is, it MUST be the same as what config.sub
|
|
|
19e3c2 |
+ # prints for the "djgpp" host, or else GDB configury will decide that
|
|
|
19e3c2 |
+ # this is a cross-build.
|
|
|
19e3c2 |
+ echo i586-pc-msdosdjgpp
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Intel:Mach:3*:*)
|
|
|
19e3c2 |
echo i386-pc-mach3
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
paragon:*:*:*)
|
|
|
19e3c2 |
echo i860-intel-osf1
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
i860:*:4.*:*) # i860-SVR4
|
|
|
19e3c2 |
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
|
|
19e3c2 |
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
|
|
19e3c2 |
else # Add other i860-SVR4 vendors below as they are discovered.
|
|
|
19e3c2 |
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
mini*:CTIX:SYS*5:*)
|
|
|
19e3c2 |
# "miniframe"
|
|
|
19e3c2 |
echo m68010-convergent-sysv
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
mc68k:UNIX:SYSTEM5:3.51m)
|
|
|
19e3c2 |
echo m68k-convergent-sysv
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
M680?0:D-NIX:5.3:*)
|
|
|
19e3c2 |
echo m68k-diab-dnix
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- M68*:*:R3V[567]*:*)
|
|
|
19e3c2 |
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
|
|
19e3c2 |
- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ M68*:*:R3V[5678]*:*)
|
|
|
19e3c2 |
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
|
|
|
19e3c2 |
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
|
|
|
19e3c2 |
OS_REL=''
|
|
|
19e3c2 |
test -r /etc/.relid \
|
|
|
19e3c2 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
|
19e3c2 |
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
19e3c2 |
- && echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
|
|
19e3c2 |
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
|
19e3c2 |
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
|
19e3c2 |
- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
|
|
19e3c2 |
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
|
19e3c2 |
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
|
|
19e3c2 |
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
19e3c2 |
- && echo i486-ncr-sysv4 && exit 0 ;;
|
|
|
19e3c2 |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
19e3c2 |
+ && { echo i486-ncr-sysv4; exit; } ;;
|
|
|
19e3c2 |
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
|
|
19e3c2 |
+ OS_REL='.3'
|
|
|
19e3c2 |
+ test -r /etc/.relid \
|
|
|
19e3c2 |
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
|
19e3c2 |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
19e3c2 |
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
|
19e3c2 |
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
|
19e3c2 |
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
|
|
19e3c2 |
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
|
|
19e3c2 |
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
|
19e3c2 |
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
|
|
19e3c2 |
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
mc68030:UNIX_System_V:4.*:*)
|
|
|
19e3c2 |
echo m68k-atari-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
TSUNAMI:LynxOS:2.*:*)
|
|
|
19e3c2 |
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
rs6000:LynxOS:2.*:*)
|
|
|
19e3c2 |
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
|
|
19e3c2 |
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SM[BE]S:UNIX_SV:*:*)
|
|
|
19e3c2 |
echo mips-dde-sysv${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
RM*:ReliantUNIX-*:*:*)
|
|
|
19e3c2 |
echo mips-sni-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
RM*:SINIX-*:*:*)
|
|
|
19e3c2 |
echo mips-sni-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:SINIX-*:*:*)
|
|
|
19e3c2 |
if uname -p 2>/dev/null >/dev/null ; then
|
|
|
19e3c2 |
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
|
19e3c2 |
@@ -1095,68 +1161,97 @@ EOF
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
echo ns32k-sni-sysv
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
|
|
19e3c2 |
- # says <Richard.M.Bartel@ccMail.Census.GOV>
|
|
|
19e3c2 |
- echo i586-unisys-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
|
|
19e3c2 |
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
|
|
|
19e3c2 |
+ echo i586-unisys-sysv4
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:UNIX_System_V:4*:FTX*)
|
|
|
19e3c2 |
# From Gerald Hewes <hewes@openmarket.com>.
|
|
|
19e3c2 |
# How about differentiating between stratus architectures? -djm
|
|
|
19e3c2 |
echo hppa1.1-stratus-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:*:*:FTX*)
|
|
|
19e3c2 |
# From seanf@swdc.stratus.com.
|
|
|
19e3c2 |
echo i860-stratus-sysv4
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:VOS:*:*)
|
|
|
19e3c2 |
+ # From Paul.Green@stratus.com.
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-stratus-vos
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:VOS:*:*)
|
|
|
19e3c2 |
# From Paul.Green@stratus.com.
|
|
|
19e3c2 |
echo hppa1.1-stratus-vos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
mc68*:A/UX:*:*)
|
|
|
19e3c2 |
echo m68k-apple-aux${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
news*:NEWS-OS:6*:*)
|
|
|
19e3c2 |
echo mips-sony-newsos6
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
|
|
19e3c2 |
if [ -d /usr/nec ]; then
|
|
|
19e3c2 |
- echo mips-nec-sysv${UNAME_RELEASE}
|
|
|
19e3c2 |
+ echo mips-nec-sysv${UNAME_RELEASE}
|
|
|
19e3c2 |
else
|
|
|
19e3c2 |
- echo mips-unknown-sysv${UNAME_RELEASE}
|
|
|
19e3c2 |
+ echo mips-unknown-sysv${UNAME_RELEASE}
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
|
|
19e3c2 |
echo powerpc-be-beos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
|
|
|
19e3c2 |
echo powerpc-apple-beos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
|
|
19e3c2 |
echo i586-pc-beos
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
|
19e3c2 |
+ echo i586-pc-haiku
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ x86_64:Haiku:*:*)
|
|
|
19e3c2 |
+ echo x86_64-unknown-haiku
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SX-4:SUPER-UX:*:*)
|
|
|
19e3c2 |
echo sx4-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SX-5:SUPER-UX:*:*)
|
|
|
19e3c2 |
echo sx5-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SX-6:SUPER-UX:*:*)
|
|
|
19e3c2 |
echo sx6-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ SX-7:SUPER-UX:*:*)
|
|
|
19e3c2 |
+ echo sx7-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ SX-8:SUPER-UX:*:*)
|
|
|
19e3c2 |
+ echo sx8-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ SX-8R:SUPER-UX:*:*)
|
|
|
19e3c2 |
+ echo sx8r-nec-superux${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
Power*:Rhapsody:*:*)
|
|
|
19e3c2 |
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:Rhapsody:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:Darwin:*:*)
|
|
|
19e3c2 |
- case `uname -p` in
|
|
|
19e3c2 |
- *86) UNAME_PROCESSOR=i686 ;;
|
|
|
19e3c2 |
- powerpc) UNAME_PROCESSOR=powerpc ;;
|
|
|
19e3c2 |
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
|
|
19e3c2 |
+ case $UNAME_PROCESSOR in
|
|
|
19e3c2 |
+ i386)
|
|
|
19e3c2 |
+ eval $set_cc_for_build
|
|
|
19e3c2 |
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
|
19e3c2 |
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
|
19e3c2 |
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
|
19e3c2 |
+ grep IS_64BIT_ARCH >/dev/null
|
|
|
19e3c2 |
+ then
|
|
|
19e3c2 |
+ UNAME_PROCESSOR="x86_64"
|
|
|
19e3c2 |
+ fi
|
|
|
19e3c2 |
+ fi ;;
|
|
|
19e3c2 |
+ unknown) UNAME_PROCESSOR=powerpc ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
|
|
19e3c2 |
UNAME_PROCESSOR=`uname -p`
|
|
|
19e3c2 |
if test "$UNAME_PROCESSOR" = "x86"; then
|
|
|
19e3c2 |
@@ -1164,22 +1259,28 @@ EOF
|
|
|
19e3c2 |
UNAME_MACHINE=pc
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:QNX:*:4*)
|
|
|
19e3c2 |
echo i386-pc-qnx
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ NEO-?:NONSTOP_KERNEL:*:*)
|
|
|
19e3c2 |
+ echo neo-tandem-nsk${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ NSE-*:NONSTOP_KERNEL:*:*)
|
|
|
19e3c2 |
+ echo nse-tandem-nsk${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ NSR-?:NONSTOP_KERNEL:*:*)
|
|
|
19e3c2 |
echo nsr-tandem-nsk${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:NonStop-UX:*:*)
|
|
|
19e3c2 |
echo mips-compaq-nonstopux
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
BS2000:POSIX*:*:*)
|
|
|
19e3c2 |
echo bs2000-siemens-sysv
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
DS/*:UNIX_System_V:*:*)
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:Plan9:*:*)
|
|
|
19e3c2 |
# "uname -m" is not consistent, so use $cputype instead. 386
|
|
|
19e3c2 |
# is converted to i386 for consistency with other x86
|
|
|
19e3c2 |
@@ -1190,33 +1291,55 @@ EOF
|
|
|
19e3c2 |
UNAME_MACHINE="$cputype"
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
echo ${UNAME_MACHINE}-unknown-plan9
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:TOPS-10:*:*)
|
|
|
19e3c2 |
echo pdp10-unknown-tops10
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:TENEX:*:*)
|
|
|
19e3c2 |
echo pdp10-unknown-tenex
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
|
|
|
19e3c2 |
echo pdp10-dec-tops20
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
|
|
|
19e3c2 |
echo pdp10-xkl-tops20
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:TOPS-20:*:*)
|
|
|
19e3c2 |
echo pdp10-unknown-tops20
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
*:ITS:*:*)
|
|
|
19e3c2 |
echo pdp10-unknown-its
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
SEI:*:*:SEIUX)
|
|
|
19e3c2 |
- echo mips-sei-seiux${UNAME_RELEASE}
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ echo mips-sei-seiux${UNAME_RELEASE}
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:DragonFly:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ *:*VMS:*:*)
|
|
|
19e3c2 |
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
|
19e3c2 |
+ case "${UNAME_MACHINE}" in
|
|
|
19e3c2 |
+ A*) echo alpha-dec-vms ; exit ;;
|
|
|
19e3c2 |
+ I*) echo ia64-dec-vms ; exit ;;
|
|
|
19e3c2 |
+ V*) echo vax-dec-vms ; exit ;;
|
|
|
19e3c2 |
+ esac ;;
|
|
|
19e3c2 |
+ *:XENIX:*:SysV)
|
|
|
19e3c2 |
+ echo i386-pc-xenix
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:skyos:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:rdos:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-rdos
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ i*86:AROS:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-pc-aros
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
+ x86_64:VMkernel:*:*)
|
|
|
19e3c2 |
+ echo ${UNAME_MACHINE}-unknown-esx
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-#echo '(No uname command or uname output not recognized.)' 1>&2
|
|
|
19e3c2 |
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
|
|
19e3c2 |
-
|
|
|
19e3c2 |
eval $set_cc_for_build
|
|
|
19e3c2 |
cat >$dummy.c <
|
|
|
19e3c2 |
#ifdef _SEQUENT_
|
|
|
19e3c2 |
@@ -1234,16 +1357,16 @@ main ()
|
|
|
19e3c2 |
#include <sys/param.h>
|
|
|
19e3c2 |
printf ("m68k-sony-newsos%s\n",
|
|
|
19e3c2 |
#ifdef NEWSOS4
|
|
|
19e3c2 |
- "4"
|
|
|
19e3c2 |
+ "4"
|
|
|
19e3c2 |
#else
|
|
|
19e3c2 |
- ""
|
|
|
19e3c2 |
+ ""
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
- ); exit (0);
|
|
|
19e3c2 |
+ ); exit (0);
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
|
|
|
19e3c2 |
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
|
|
19e3c2 |
- printf ("arm-acorn-riscix"); exit (0);
|
|
|
19e3c2 |
+ printf ("arm-acorn-riscix\n"); exit (0);
|
|
|
19e3c2 |
#endif
|
|
|
19e3c2 |
|
|
|
19e3c2 |
#if defined (hp300) && !defined (hpux)
|
|
|
19e3c2 |
@@ -1332,11 +1455,12 @@ main ()
|
|
|
19e3c2 |
}
|
|
|
19e3c2 |
EOF
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
|
|
|
19e3c2 |
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
|
|
|
19e3c2 |
+ { echo "$SYSTEM_NAME"; exit; }
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# Apollos put the system type in the environment.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
|
|
19e3c2 |
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# Convex versions that predate uname can use getsysinfo(1)
|
|
|
19e3c2 |
|
|
|
19e3c2 |
@@ -1345,22 +1469,22 @@ then
|
|
|
19e3c2 |
case `getsysinfo -f cpu_type` in
|
|
|
19e3c2 |
c1*)
|
|
|
19e3c2 |
echo c1-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
c2*)
|
|
|
19e3c2 |
if getsysinfo -f scalar_acc
|
|
|
19e3c2 |
then echo c32-convex-bsd
|
|
|
19e3c2 |
else echo c2-convex-bsd
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
c34*)
|
|
|
19e3c2 |
echo c34-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
c38*)
|
|
|
19e3c2 |
echo c38-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
c4*)
|
|
|
19e3c2 |
echo c4-convex-bsd
|
|
|
19e3c2 |
- exit 0 ;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
fi
|
|
|
19e3c2 |
|
|
|
19e3c2 |
@@ -1371,7 +1495,9 @@ This script, last modified $timestamp, h
|
|
|
19e3c2 |
the operating system you are using. It is advised that you
|
|
|
19e3c2 |
download the most up to date version of the config scripts from
|
|
|
19e3c2 |
|
|
|
19e3c2 |
- ftp://ftp.gnu.org/pub/gnu/config/
|
|
|
19e3c2 |
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
|
19e3c2 |
+and
|
|
|
19e3c2 |
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
|
|
19e3c2 |
|
|
|
19e3c2 |
If the version you run ($0) is already up to date, please
|
|
|
19e3c2 |
send the following data and any information you think might be
|
|
|
19e3c2 |
diff -up libieee1284-0.2.11/config.sub.aarch64 libieee1284-0.2.11/config.sub
|
|
|
19e3c2 |
--- libieee1284-0.2.11/config.sub.aarch64 2006-07-13 08:12:38.000000000 +0100
|
|
|
19e3c2 |
+++ libieee1284-0.2.11/config.sub 2013-04-30 13:06:13.191084944 +0100
|
|
|
19e3c2 |
@@ -1,9 +1,10 @@
|
|
|
19e3c2 |
#! /bin/sh
|
|
|
19e3c2 |
# Configuration validation subroutine script.
|
|
|
19e3c2 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
|
19e3c2 |
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
19e3c2 |
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
|
19e3c2 |
+# 2011, 2012 Free Software Foundation, Inc.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-timestamp='2003-06-18'
|
|
|
19e3c2 |
+timestamp='2012-10-10'
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# This file is (in principle) common to ALL GNU software.
|
|
|
19e3c2 |
# The presence of a machine in this file suggests that SOME GNU software
|
|
|
19e3c2 |
@@ -20,23 +21,25 @@ timestamp='2003-06-18'
|
|
|
19e3c2 |
# GNU General Public License for more details.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
# You should have received a copy of the GNU General Public License
|
|
|
19e3c2 |
-# along with this program; if not, write to the Free Software
|
|
|
19e3c2 |
-# Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
19e3c2 |
-# Boston, MA 02111-1307, USA.
|
|
|
19e3c2 |
-
|
|
|
19e3c2 |
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
19e3c2 |
+#
|
|
|
19e3c2 |
# As a special exception to the GNU General Public License, if you
|
|
|
19e3c2 |
# distribute this file as part of a program that contains a
|
|
|
19e3c2 |
# configuration script generated by Autoconf, you may include it under
|
|
|
19e3c2 |
# the same distribution terms that you use for the rest of that program.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
|
19e3c2 |
-# diff and a properly formatted ChangeLog entry.
|
|
|
19e3c2 |
+# diff and a properly formatted GNU ChangeLog entry.
|
|
|
19e3c2 |
#
|
|
|
19e3c2 |
# Configuration subroutine to validate and canonicalize a configuration type.
|
|
|
19e3c2 |
# Supply the specified configuration type as an argument.
|
|
|
19e3c2 |
# If it is invalid, we print an error message on stderr and exit with code 1.
|
|
|
19e3c2 |
# Otherwise, we print the canonical config type on stdout and succeed.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
+# You can get the latest version of this script from:
|
|
|
19e3c2 |
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
# This file is supposed to be the same for all GNU packages
|
|
|
19e3c2 |
# and recognize all the CPU types, system types and aliases
|
|
|
19e3c2 |
# that are meaningful with *any* GNU software.
|
|
|
19e3c2 |
@@ -70,7 +73,8 @@ Report bugs and patches to
|
|
|
19e3c2 |
version="\
|
|
|
19e3c2 |
GNU config.sub ($timestamp)
|
|
|
19e3c2 |
|
|
|
19e3c2 |
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
|
|
19e3c2 |
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
|
19e3c2 |
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
|
|
|
19e3c2 |
Free Software Foundation, Inc.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
This is free software; see the source for copying conditions. There is NO
|
|
|
19e3c2 |
@@ -83,11 +87,11 @@ Try \`$me --help' for more information."
|
|
|
19e3c2 |
while test $# -gt 0 ; do
|
|
|
19e3c2 |
case $1 in
|
|
|
19e3c2 |
--time-stamp | --time* | -t )
|
|
|
19e3c2 |
- echo "$timestamp" ; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$timestamp" ; exit ;;
|
|
|
19e3c2 |
--version | -v )
|
|
|
19e3c2 |
- echo "$version" ; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$version" ; exit ;;
|
|
|
19e3c2 |
--help | --h* | -h )
|
|
|
19e3c2 |
- echo "$usage"; exit 0 ;;
|
|
|
19e3c2 |
+ echo "$usage"; exit ;;
|
|
|
19e3c2 |
-- ) # Stop option processing
|
|
|
19e3c2 |
shift; break ;;
|
|
|
19e3c2 |
- ) # Use stdin as input.
|
|
|
19e3c2 |
@@ -99,7 +103,7 @@ while test $# -gt 0 ; do
|
|
|
19e3c2 |
*local*)
|
|
|
19e3c2 |
# First pass through any local machine types.
|
|
|
19e3c2 |
echo $1
|
|
|
19e3c2 |
- exit 0;;
|
|
|
19e3c2 |
+ exit ;;
|
|
|
19e3c2 |
|
|
|
19e3c2 |
* )
|
|
|
19e3c2 |
break ;;
|
|
|
19e3c2 |
@@ -118,10 +122,18 @@ esac
|
|
|
19e3c2 |
# Here we must recognize all the valid KERNEL-OS combinations.
|
|
|
19e3c2 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
|
|
19e3c2 |
case $maybe_os in
|
|
|
19e3c2 |
- nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
|
|
19e3c2 |
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
|
|
|
19e3c2 |
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
|
|
|
19e3c2 |
+ knetbsd*-gnu* | netbsd*-gnu* | \
|
|
|
19e3c2 |
+ kopensolaris*-gnu* | \
|
|
|
19e3c2 |
+ storm-chaos* | os2-emx* | rtmk-nova*)
|
|
|
19e3c2 |
os=-$maybe_os
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ android-linux)
|
|
|
19e3c2 |
+ os=-linux-android
|
|
|
19e3c2 |
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
*)
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
|
|
19e3c2 |
if [ $basic_machine != $1 ]
|
|
|
19e3c2 |
@@ -144,10 +156,13 @@ case $os in
|
|
|
19e3c2 |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
|
|
19e3c2 |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
|
|
19e3c2 |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
|
|
19e3c2 |
- -apple | -axis)
|
|
|
19e3c2 |
+ -apple | -axis | -knuth | -cray | -microblaze*)
|
|
|
19e3c2 |
os=
|
|
|
19e3c2 |
basic_machine=$1
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -bluegene*)
|
|
|
19e3c2 |
+ os=-cnk
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-sim | -cisco | -oki | -wec | -winbond)
|
|
|
19e3c2 |
os=
|
|
|
19e3c2 |
basic_machine=$1
|
|
|
19e3c2 |
@@ -162,13 +177,17 @@ case $os in
|
|
|
19e3c2 |
os=-chorusos
|
|
|
19e3c2 |
basic_machine=$1
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- -chorusrdb)
|
|
|
19e3c2 |
- os=-chorusrdb
|
|
|
19e3c2 |
+ -chorusrdb)
|
|
|
19e3c2 |
+ os=-chorusrdb
|
|
|
19e3c2 |
basic_machine=$1
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-hiux*)
|
|
|
19e3c2 |
os=-hiuxwe2
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -sco6)
|
|
|
19e3c2 |
+ os=-sco5v6
|
|
|
19e3c2 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-sco5)
|
|
|
19e3c2 |
os=-sco3.2v5
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
@@ -185,6 +204,10 @@ case $os in
|
|
|
19e3c2 |
# Don't forget version if it is 3.2v4 or newer.
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -sco5v6*)
|
|
|
19e3c2 |
+ # Don't forget version if it is 3.2v4 or newer.
|
|
|
19e3c2 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-sco*)
|
|
|
19e3c2 |
os=-sco3.2v2
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
@@ -202,6 +225,12 @@ case $os in
|
|
|
19e3c2 |
-isc*)
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -lynx*178)
|
|
|
19e3c2 |
+ os=-lynxos178
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ -lynx*5)
|
|
|
19e3c2 |
+ os=-lynxos5
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-lynx*)
|
|
|
19e3c2 |
os=-lynxos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -226,56 +255,103 @@ case $basic_machine in
|
|
|
19e3c2 |
# Some are omitted here because they have special meanings below.
|
|
|
19e3c2 |
1750a | 580 \
|
|
|
19e3c2 |
| a29k \
|
|
|
19e3c2 |
+ | aarch64 | aarch64_be \
|
|
|
19e3c2 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
|
|
19e3c2 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
|
|
19e3c2 |
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
|
|
19e3c2 |
+ | am33_2.0 \
|
|
|
19e3c2 |
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
|
|
|
19e3c2 |
+ | be32 | be64 \
|
|
|
19e3c2 |
+ | bfin \
|
|
|
19e3c2 |
| c4x | clipper \
|
|
|
19e3c2 |
| d10v | d30v | dlx | dsp16xx \
|
|
|
19e3c2 |
- | fr30 | frv \
|
|
|
19e3c2 |
+ | epiphany \
|
|
|
19e3c2 |
+ | fido | fr30 | frv \
|
|
|
19e3c2 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
|
|
19e3c2 |
+ | hexagon \
|
|
|
19e3c2 |
| i370 | i860 | i960 | ia64 \
|
|
|
19e3c2 |
- | ip2k \
|
|
|
19e3c2 |
- | m32r | m68000 | m68k | m88k | mcore \
|
|
|
19e3c2 |
+ | ip2k | iq2000 \
|
|
|
19e3c2 |
+ | le32 | le64 \
|
|
|
19e3c2 |
+ | lm32 \
|
|
|
19e3c2 |
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
|
|
|
19e3c2 |
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
|
|
|
19e3c2 |
| mips | mipsbe | mipseb | mipsel | mipsle \
|
|
|
19e3c2 |
| mips16 \
|
|
|
19e3c2 |
| mips64 | mips64el \
|
|
|
19e3c2 |
- | mips64vr | mips64vrel \
|
|
|
19e3c2 |
+ | mips64octeon | mips64octeonel \
|
|
|
19e3c2 |
| mips64orion | mips64orionel \
|
|
|
19e3c2 |
+ | mips64r5900 | mips64r5900el \
|
|
|
19e3c2 |
+ | mips64vr | mips64vrel \
|
|
|
19e3c2 |
| mips64vr4100 | mips64vr4100el \
|
|
|
19e3c2 |
| mips64vr4300 | mips64vr4300el \
|
|
|
19e3c2 |
| mips64vr5000 | mips64vr5000el \
|
|
|
19e3c2 |
+ | mips64vr5900 | mips64vr5900el \
|
|
|
19e3c2 |
| mipsisa32 | mipsisa32el \
|
|
|
19e3c2 |
| mipsisa32r2 | mipsisa32r2el \
|
|
|
19e3c2 |
| mipsisa64 | mipsisa64el \
|
|
|
19e3c2 |
+ | mipsisa64r2 | mipsisa64r2el \
|
|
|
19e3c2 |
| mipsisa64sb1 | mipsisa64sb1el \
|
|
|
19e3c2 |
| mipsisa64sr71k | mipsisa64sr71kel \
|
|
|
19e3c2 |
| mipstx39 | mipstx39el \
|
|
|
19e3c2 |
| mn10200 | mn10300 \
|
|
|
19e3c2 |
+ | moxie \
|
|
|
19e3c2 |
+ | mt \
|
|
|
19e3c2 |
| msp430 \
|
|
|
19e3c2 |
+ | nds32 | nds32le | nds32be \
|
|
|
19e3c2 |
+ | nios | nios2 \
|
|
|
19e3c2 |
| ns16k | ns32k \
|
|
|
19e3c2 |
- | openrisc | or32 \
|
|
|
19e3c2 |
+ | open8 \
|
|
|
19e3c2 |
+ | or32 \
|
|
|
19e3c2 |
| pdp10 | pdp11 | pj | pjl \
|
|
|
19e3c2 |
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
|
|
19e3c2 |
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
|
|
|
19e3c2 |
| pyramid \
|
|
|
19e3c2 |
- | s390 | s390x \
|
|
|
19e3c2 |
- | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
|
|
19e3c2 |
+ | rl78 | rx \
|
|
|
19e3c2 |
+ | score \
|
|
|
19e3c2 |
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
|
|
19e3c2 |
| sh64 | sh64le \
|
|
|
19e3c2 |
- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
|
|
|
19e3c2 |
- | strongarm \
|
|
|
19e3c2 |
- | tahoe | thumb | tic4x | tic80 | tron \
|
|
|
19e3c2 |
- | v850 | v850e \
|
|
|
19e3c2 |
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
|
|
19e3c2 |
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
|
|
19e3c2 |
+ | spu \
|
|
|
19e3c2 |
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
|
|
|
19e3c2 |
+ | ubicom32 \
|
|
|
19e3c2 |
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
|
|
|
19e3c2 |
| we32k \
|
|
|
19e3c2 |
- | x86 | xscale | xstormy16 | xtensa \
|
|
|
19e3c2 |
- | z8k)
|
|
|
19e3c2 |
+ | x86 | xc16x | xstormy16 | xtensa \
|
|
|
19e3c2 |
+ | z8k | z80)
|
|
|
19e3c2 |
basic_machine=$basic_machine-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- m6811 | m68hc11 | m6812 | m68hc12)
|
|
|
19e3c2 |
- # Motorola 68HC11/12.
|
|
|
19e3c2 |
+ c54x)
|
|
|
19e3c2 |
+ basic_machine=tic54x-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ c55x)
|
|
|
19e3c2 |
+ basic_machine=tic55x-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ c6x)
|
|
|
19e3c2 |
+ basic_machine=tic6x-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
|
|
|
19e3c2 |
basic_machine=$basic_machine-unknown
|
|
|
19e3c2 |
os=-none
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ ms1)
|
|
|
19e3c2 |
+ basic_machine=mt-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ strongarm | thumb | xscale)
|
|
|
19e3c2 |
+ basic_machine=arm-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ xgate)
|
|
|
19e3c2 |
+ basic_machine=$basic_machine-unknown
|
|
|
19e3c2 |
+ os=-none
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ xscaleeb)
|
|
|
19e3c2 |
+ basic_machine=armeb-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+
|
|
|
19e3c2 |
+ xscaleel)
|
|
|
19e3c2 |
+ basic_machine=armel-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# We use `pc' rather than `unknown'
|
|
|
19e3c2 |
# because (1) that's what they normally are, and
|
|
|
19e3c2 |
@@ -291,59 +367,81 @@ case $basic_machine in
|
|
|
19e3c2 |
# Recognize the basic CPU types with company name.
|
|
|
19e3c2 |
580-* \
|
|
|
19e3c2 |
| a29k-* \
|
|
|
19e3c2 |
+ | aarch64-* | aarch64_be-* \
|
|
|
19e3c2 |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
|
|
19e3c2 |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
|
|
19e3c2 |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
|
|
19e3c2 |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
|
|
19e3c2 |
- | avr-* \
|
|
|
19e3c2 |
- | bs2000-* \
|
|
|
19e3c2 |
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
|
|
19e3c2 |
- | clipper-* | cydra-* \
|
|
|
19e3c2 |
+ | avr-* | avr32-* \
|
|
|
19e3c2 |
+ | be32-* | be64-* \
|
|
|
19e3c2 |
+ | bfin-* | bs2000-* \
|
|
|
19e3c2 |
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
|
|
|
19e3c2 |
+ | clipper-* | craynv-* | cydra-* \
|
|
|
19e3c2 |
| d10v-* | d30v-* | dlx-* \
|
|
|
19e3c2 |
| elxsi-* \
|
|
|
19e3c2 |
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
|
|
19e3c2 |
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
|
|
19e3c2 |
| h8300-* | h8500-* \
|
|
|
19e3c2 |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
|
|
19e3c2 |
+ | hexagon-* \
|
|
|
19e3c2 |
| i*86-* | i860-* | i960-* | ia64-* \
|
|
|
19e3c2 |
- | ip2k-* \
|
|
|
19e3c2 |
- | m32r-* \
|
|
|
19e3c2 |
+ | ip2k-* | iq2000-* \
|
|
|
19e3c2 |
+ | le32-* | le64-* \
|
|
|
19e3c2 |
+ | lm32-* \
|
|
|
19e3c2 |
+ | m32c-* | m32r-* | m32rle-* \
|
|
|
19e3c2 |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
|
|
19e3c2 |
- | m88110-* | m88k-* | mcore-* \
|
|
|
19e3c2 |
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
|
|
|
19e3c2 |
+ | microblaze-* | microblazeel-* \
|
|
|
19e3c2 |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
|
|
19e3c2 |
| mips16-* \
|
|
|
19e3c2 |
| mips64-* | mips64el-* \
|
|
|
19e3c2 |
- | mips64vr-* | mips64vrel-* \
|
|
|
19e3c2 |
+ | mips64octeon-* | mips64octeonel-* \
|
|
|
19e3c2 |
| mips64orion-* | mips64orionel-* \
|
|
|
19e3c2 |
+ | mips64r5900-* | mips64r5900el-* \
|
|
|
19e3c2 |
+ | mips64vr-* | mips64vrel-* \
|
|
|
19e3c2 |
| mips64vr4100-* | mips64vr4100el-* \
|
|
|
19e3c2 |
| mips64vr4300-* | mips64vr4300el-* \
|
|
|
19e3c2 |
| mips64vr5000-* | mips64vr5000el-* \
|
|
|
19e3c2 |
+ | mips64vr5900-* | mips64vr5900el-* \
|
|
|
19e3c2 |
| mipsisa32-* | mipsisa32el-* \
|
|
|
19e3c2 |
| mipsisa32r2-* | mipsisa32r2el-* \
|
|
|
19e3c2 |
| mipsisa64-* | mipsisa64el-* \
|
|
|
19e3c2 |
+ | mipsisa64r2-* | mipsisa64r2el-* \
|
|
|
19e3c2 |
| mipsisa64sb1-* | mipsisa64sb1el-* \
|
|
|
19e3c2 |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
|
|
19e3c2 |
| mipstx39-* | mipstx39el-* \
|
|
|
19e3c2 |
+ | mmix-* \
|
|
|
19e3c2 |
+ | mt-* \
|
|
|
19e3c2 |
| msp430-* \
|
|
|
19e3c2 |
- | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
|
|
|
19e3c2 |
+ | nds32-* | nds32le-* | nds32be-* \
|
|
|
19e3c2 |
+ | nios-* | nios2-* \
|
|
|
19e3c2 |
+ | none-* | np1-* | ns16k-* | ns32k-* \
|
|
|
19e3c2 |
+ | open8-* \
|
|
|
19e3c2 |
| orion-* \
|
|
|
19e3c2 |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
|
|
19e3c2 |
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
|
|
19e3c2 |
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
|
|
|
19e3c2 |
| pyramid-* \
|
|
|
19e3c2 |
- | romp-* | rs6000-* \
|
|
|
19e3c2 |
- | s390-* | s390x-* \
|
|
|
19e3c2 |
- | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
|
|
19e3c2 |
+ | rl78-* | romp-* | rs6000-* | rx-* \
|
|
|
19e3c2 |
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
|
|
19e3c2 |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
|
|
19e3c2 |
- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
|
|
|
19e3c2 |
- | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
|
|
19e3c2 |
- | tahoe-* | thumb-* \
|
|
|
19e3c2 |
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
|
|
19e3c2 |
+ | sparclite-* \
|
|
|
19e3c2 |
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
|
|
|
19e3c2 |
+ | tahoe-* \
|
|
|
19e3c2 |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
|
|
19e3c2 |
+ | tile*-* \
|
|
|
19e3c2 |
| tron-* \
|
|
|
19e3c2 |
- | v850-* | v850e-* | vax-* \
|
|
|
19e3c2 |
+ | ubicom32-* \
|
|
|
19e3c2 |
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
|
|
|
19e3c2 |
+ | vax-* \
|
|
|
19e3c2 |
| we32k-* \
|
|
|
19e3c2 |
- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
|
|
|
19e3c2 |
- | xtensa-* \
|
|
|
19e3c2 |
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
|
|
|
19e3c2 |
+ | xstormy16-* | xtensa*-* \
|
|
|
19e3c2 |
| ymp-* \
|
|
|
19e3c2 |
- | z8k-*)
|
|
|
19e3c2 |
+ | z8k-* | z80-*)
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ # Recognize the basic CPU types without company name, with glob match.
|
|
|
19e3c2 |
+ xtensa*)
|
|
|
19e3c2 |
+ basic_machine=$basic_machine-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
# Recognize the various machine names and aliases which stand
|
|
|
19e3c2 |
# for a CPU type and a company and sometimes even an OS.
|
|
|
19e3c2 |
@@ -361,6 +459,9 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=a29k-amd
|
|
|
19e3c2 |
os=-udi
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ abacus)
|
|
|
19e3c2 |
+ basic_machine=abacus-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
adobe68k)
|
|
|
19e3c2 |
basic_machine=m68010-adobe
|
|
|
19e3c2 |
os=-scout
|
|
|
19e3c2 |
@@ -378,6 +479,9 @@ case $basic_machine in
|
|
|
19e3c2 |
amd64)
|
|
|
19e3c2 |
basic_machine=x86_64-pc
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ amd64-*)
|
|
|
19e3c2 |
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
amdahl)
|
|
|
19e3c2 |
basic_machine=580-amdahl
|
|
|
19e3c2 |
os=-sysv
|
|
|
19e3c2 |
@@ -401,6 +505,10 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=m68k-apollo
|
|
|
19e3c2 |
os=-bsd
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ aros)
|
|
|
19e3c2 |
+ basic_machine=i386-pc
|
|
|
19e3c2 |
+ os=-aros
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
aux)
|
|
|
19e3c2 |
basic_machine=m68k-apple
|
|
|
19e3c2 |
os=-aux
|
|
|
19e3c2 |
@@ -409,10 +517,35 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=ns32k-sequent
|
|
|
19e3c2 |
os=-dynix
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ blackfin)
|
|
|
19e3c2 |
+ basic_machine=bfin-unknown
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ blackfin-*)
|
|
|
19e3c2 |
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ bluegene*)
|
|
|
19e3c2 |
+ basic_machine=powerpc-ibm
|
|
|
19e3c2 |
+ os=-cnk
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ c54x-*)
|
|
|
19e3c2 |
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ c55x-*)
|
|
|
19e3c2 |
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ c6x-*)
|
|
|
19e3c2 |
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
c90)
|
|
|
19e3c2 |
basic_machine=c90-cray
|
|
|
19e3c2 |
os=-unicos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ cegcc)
|
|
|
19e3c2 |
+ basic_machine=arm-unknown
|
|
|
19e3c2 |
+ os=-cegcc
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
convex-c1)
|
|
|
19e3c2 |
basic_machine=c1-convex
|
|
|
19e3c2 |
os=-bsd
|
|
|
19e3c2 |
@@ -437,12 +570,27 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=j90-cray
|
|
|
19e3c2 |
os=-unicos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ craynv)
|
|
|
19e3c2 |
+ basic_machine=craynv-cray
|
|
|
19e3c2 |
+ os=-unicosmp
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ cr16 | cr16-*)
|
|
|
19e3c2 |
+ basic_machine=cr16-unknown
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
crds | unos)
|
|
|
19e3c2 |
basic_machine=m68k-crds
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ crisv32 | crisv32-* | etraxfs*)
|
|
|
19e3c2 |
+ basic_machine=crisv32-axis
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
cris | cris-* | etrax*)
|
|
|
19e3c2 |
basic_machine=cris-axis
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ crx)
|
|
|
19e3c2 |
+ basic_machine=crx-unknown
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
da30 | da30-*)
|
|
|
19e3c2 |
basic_machine=m68k-da30
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -465,6 +613,14 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=m88k-motorola
|
|
|
19e3c2 |
os=-sysv3
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ dicos)
|
|
|
19e3c2 |
+ basic_machine=i686-pc
|
|
|
19e3c2 |
+ os=-dicos
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ djgpp)
|
|
|
19e3c2 |
+ basic_machine=i586-pc
|
|
|
19e3c2 |
+ os=-msdosdjgpp
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
dpx20 | dpx20-*)
|
|
|
19e3c2 |
basic_machine=rs6000-bull
|
|
|
19e3c2 |
os=-bosx
|
|
|
19e3c2 |
@@ -576,7 +732,6 @@ case $basic_machine in
|
|
|
19e3c2 |
i370-ibm* | ibm*)
|
|
|
19e3c2 |
basic_machine=i370-ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
|
|
19e3c2 |
i*86v32)
|
|
|
19e3c2 |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
|
|
19e3c2 |
os=-sysv32
|
|
|
19e3c2 |
@@ -615,6 +770,14 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=m68k-isi
|
|
|
19e3c2 |
os=-sysv
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ m68knommu)
|
|
|
19e3c2 |
+ basic_machine=m68k-unknown
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ m68knommu-*)
|
|
|
19e3c2 |
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
m88k-omron*)
|
|
|
19e3c2 |
basic_machine=m88k-omron
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -626,10 +789,21 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=ns32k-utek
|
|
|
19e3c2 |
os=-sysv
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ microblaze*)
|
|
|
19e3c2 |
+ basic_machine=microblaze-xilinx
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ mingw64)
|
|
|
19e3c2 |
+ basic_machine=x86_64-pc
|
|
|
19e3c2 |
+ os=-mingw64
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
mingw32)
|
|
|
19e3c2 |
basic_machine=i386-pc
|
|
|
19e3c2 |
os=-mingw32
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ mingw32ce)
|
|
|
19e3c2 |
+ basic_machine=arm-unknown
|
|
|
19e3c2 |
+ os=-mingw32ce
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
miniframe)
|
|
|
19e3c2 |
basic_machine=m68000-convergent
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -643,10 +817,6 @@ case $basic_machine in
|
|
|
19e3c2 |
mips3*)
|
|
|
19e3c2 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- mmix*)
|
|
|
19e3c2 |
- basic_machine=mmix-knuth
|
|
|
19e3c2 |
- os=-mmixware
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
monitor)
|
|
|
19e3c2 |
basic_machine=m68k-rom68k
|
|
|
19e3c2 |
os=-coff
|
|
|
19e3c2 |
@@ -659,10 +829,21 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=i386-pc
|
|
|
19e3c2 |
os=-msdos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ ms1-*)
|
|
|
19e3c2 |
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ msys)
|
|
|
19e3c2 |
+ basic_machine=i386-pc
|
|
|
19e3c2 |
+ os=-msys
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
mvs)
|
|
|
19e3c2 |
basic_machine=i370-ibm
|
|
|
19e3c2 |
os=-mvs
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ nacl)
|
|
|
19e3c2 |
+ basic_machine=le32-unknown
|
|
|
19e3c2 |
+ os=-nacl
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
ncr3000)
|
|
|
19e3c2 |
basic_machine=i486-ncr
|
|
|
19e3c2 |
os=-sysv4
|
|
|
19e3c2 |
@@ -727,9 +908,11 @@ case $basic_machine in
|
|
|
19e3c2 |
np1)
|
|
|
19e3c2 |
basic_machine=np1-gould
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- nv1)
|
|
|
19e3c2 |
- basic_machine=nv1-cray
|
|
|
19e3c2 |
- os=-unicosmp
|
|
|
19e3c2 |
+ neo-tandem)
|
|
|
19e3c2 |
+ basic_machine=neo-tandem
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ nse-tandem)
|
|
|
19e3c2 |
+ basic_machine=nse-tandem
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
nsr-tandem)
|
|
|
19e3c2 |
basic_machine=nsr-tandem
|
|
|
19e3c2 |
@@ -738,9 +921,12 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=hppa1.1-oki
|
|
|
19e3c2 |
os=-proelf
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- or32 | or32-*)
|
|
|
19e3c2 |
+ openrisc | openrisc-*)
|
|
|
19e3c2 |
basic_machine=or32-unknown
|
|
|
19e3c2 |
- os=-coff
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ os400)
|
|
|
19e3c2 |
+ basic_machine=powerpc-ibm
|
|
|
19e3c2 |
+ os=-os400
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
OSE68000 | ose68000)
|
|
|
19e3c2 |
basic_machine=m68000-ericsson
|
|
|
19e3c2 |
@@ -758,6 +944,14 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=i860-intel
|
|
|
19e3c2 |
os=-osf
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ parisc)
|
|
|
19e3c2 |
+ basic_machine=hppa-unknown
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ parisc-*)
|
|
|
19e3c2 |
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ os=-linux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
pbd)
|
|
|
19e3c2 |
basic_machine=sparc-tti
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -767,6 +961,12 @@ case $basic_machine in
|
|
|
19e3c2 |
pc532 | pc532-*)
|
|
|
19e3c2 |
basic_machine=ns32k-pc532
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ pc98)
|
|
|
19e3c2 |
+ basic_machine=i386-pc
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ pc98-*)
|
|
|
19e3c2 |
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
pentium | p5 | k5 | k6 | nexgen | viac3)
|
|
|
19e3c2 |
basic_machine=i586-pc
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -796,9 +996,10 @@ case $basic_machine in
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
power) basic_machine=power-ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- ppc) basic_machine=powerpc-unknown
|
|
|
19e3c2 |
+ ppc | ppcbe) basic_machine=powerpc-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ppc-* | ppcbe-*)
|
|
|
19e3c2 |
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
ppcle | powerpclittle | ppc-le | powerpc-little)
|
|
|
19e3c2 |
basic_machine=powerpcle-unknown
|
|
|
19e3c2 |
@@ -823,6 +1024,10 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=i586-unknown
|
|
|
19e3c2 |
os=-pw32
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ rdos)
|
|
|
19e3c2 |
+ basic_machine=i386-pc
|
|
|
19e3c2 |
+ os=-rdos
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
rom68k)
|
|
|
19e3c2 |
basic_machine=m68k-rom68k
|
|
|
19e3c2 |
os=-coff
|
|
|
19e3c2 |
@@ -833,6 +1038,12 @@ case $basic_machine in
|
|
|
19e3c2 |
rtpc | rtpc-*)
|
|
|
19e3c2 |
basic_machine=romp-ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ s390 | s390-*)
|
|
|
19e3c2 |
+ basic_machine=s390-ibm
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ s390x | s390x-*)
|
|
|
19e3c2 |
+ basic_machine=s390x-ibm
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
sa29200)
|
|
|
19e3c2 |
basic_machine=a29k-amd
|
|
|
19e3c2 |
os=-udi
|
|
|
19e3c2 |
@@ -843,6 +1054,10 @@ case $basic_machine in
|
|
|
19e3c2 |
sb1el)
|
|
|
19e3c2 |
basic_machine=mipsisa64sb1el-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ sde)
|
|
|
19e3c2 |
+ basic_machine=mipsisa32-sde
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
sei)
|
|
|
19e3c2 |
basic_machine=mips-sei
|
|
|
19e3c2 |
os=-seiux
|
|
|
19e3c2 |
@@ -854,6 +1069,9 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=sh-hitachi
|
|
|
19e3c2 |
os=-hms
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ sh5el)
|
|
|
19e3c2 |
+ basic_machine=sh5le-unknown
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
sh64)
|
|
|
19e3c2 |
basic_machine=sh64-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -875,6 +1093,9 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=i860-stratus
|
|
|
19e3c2 |
os=-sysv4
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ strongarm-* | thumb-*)
|
|
|
19e3c2 |
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
sun2)
|
|
|
19e3c2 |
basic_machine=m68000-sun
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -931,17 +1152,9 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=t90-cray
|
|
|
19e3c2 |
os=-unicos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- tic54x | c54x*)
|
|
|
19e3c2 |
- basic_machine=tic54x-unknown
|
|
|
19e3c2 |
- os=-coff
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
- tic55x | c55x*)
|
|
|
19e3c2 |
- basic_machine=tic55x-unknown
|
|
|
19e3c2 |
- os=-coff
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
- tic6x | c6x*)
|
|
|
19e3c2 |
- basic_machine=tic6x-unknown
|
|
|
19e3c2 |
- os=-coff
|
|
|
19e3c2 |
+ tile*)
|
|
|
19e3c2 |
+ basic_machine=$basic_machine-unknown
|
|
|
19e3c2 |
+ os=-linux-gnu
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
tx39)
|
|
|
19e3c2 |
basic_machine=mipstx39-unknown
|
|
|
19e3c2 |
@@ -956,6 +1169,10 @@ case $basic_machine in
|
|
|
19e3c2 |
tower | tower-32)
|
|
|
19e3c2 |
basic_machine=m68k-ncr
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ tpf)
|
|
|
19e3c2 |
+ basic_machine=s390x-ibm
|
|
|
19e3c2 |
+ os=-tpf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
udi29k)
|
|
|
19e3c2 |
basic_machine=a29k-amd
|
|
|
19e3c2 |
os=-udi
|
|
|
19e3c2 |
@@ -999,9 +1216,16 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=hppa1.1-winbond
|
|
|
19e3c2 |
os=-proelf
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ xbox)
|
|
|
19e3c2 |
+ basic_machine=i686-pc
|
|
|
19e3c2 |
+ os=-mingw32
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
xps | xps100)
|
|
|
19e3c2 |
basic_machine=xps100-honeywell
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ xscale-* | xscalee[bl]-*)
|
|
|
19e3c2 |
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
ymp)
|
|
|
19e3c2 |
basic_machine=ymp-cray
|
|
|
19e3c2 |
os=-unicos
|
|
|
19e3c2 |
@@ -1010,6 +1234,10 @@ case $basic_machine in
|
|
|
19e3c2 |
basic_machine=z8k-unknown
|
|
|
19e3c2 |
os=-sim
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ z80-*-coff)
|
|
|
19e3c2 |
+ basic_machine=z80-unknown
|
|
|
19e3c2 |
+ os=-sim
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
none)
|
|
|
19e3c2 |
basic_machine=none-none
|
|
|
19e3c2 |
os=-none
|
|
|
19e3c2 |
@@ -1029,6 +1257,9 @@ case $basic_machine in
|
|
|
19e3c2 |
romp)
|
|
|
19e3c2 |
basic_machine=romp-ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ mmix)
|
|
|
19e3c2 |
+ basic_machine=mmix-knuth
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
rs6000)
|
|
|
19e3c2 |
basic_machine=rs6000-ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1045,13 +1276,10 @@ case $basic_machine in
|
|
|
19e3c2 |
we32k)
|
|
|
19e3c2 |
basic_machine=we32k-att
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
|
|
|
19e3c2 |
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
|
|
19e3c2 |
basic_machine=sh-unknown
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- sh64)
|
|
|
19e3c2 |
- basic_machine=sh64-unknown
|
|
|
19e3c2 |
- ;;
|
|
|
19e3c2 |
- sparc | sparcv8 | sparcv9 | sparcv9b)
|
|
|
19e3c2 |
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
|
|
19e3c2 |
basic_machine=sparc-sun
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
cydra)
|
|
|
19e3c2 |
@@ -1095,9 +1323,12 @@ esac
|
|
|
19e3c2 |
if [ x"$os" != x"" ]
|
|
|
19e3c2 |
then
|
|
|
19e3c2 |
case $os in
|
|
|
19e3c2 |
- # First match some system type aliases
|
|
|
19e3c2 |
- # that might get confused with valid system types.
|
|
|
19e3c2 |
+ # First match some system type aliases
|
|
|
19e3c2 |
+ # that might get confused with valid system types.
|
|
|
19e3c2 |
# -solaris* is a basic system type, with this one exception.
|
|
|
19e3c2 |
+ -auroraux)
|
|
|
19e3c2 |
+ os=-auroraux
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-solaris1 | -solaris1.*)
|
|
|
19e3c2 |
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1118,25 +1349,31 @@ case $os in
|
|
|
19e3c2 |
# Each alternative MUST END IN A *, to match a version number.
|
|
|
19e3c2 |
# -sysv* is not here because it comes later, after sysvr4.
|
|
|
19e3c2 |
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
|
|
19e3c2 |
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
|
|
19e3c2 |
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
|
|
19e3c2 |
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
|
|
19e3c2 |
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
|
|
19e3c2 |
+ | -sym* | -kopensolaris* \
|
|
|
19e3c2 |
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
|
|
19e3c2 |
- | -aos* \
|
|
|
19e3c2 |
+ | -aos* | -aros* \
|
|
|
19e3c2 |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
|
|
19e3c2 |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
|
|
19e3c2 |
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
|
|
|
19e3c2 |
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
|
|
19e3c2 |
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
|
|
19e3c2 |
+ | -bitrig* | -openbsd* | -solidbsd* \
|
|
|
19e3c2 |
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
|
|
19e3c2 |
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
|
|
19e3c2 |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
|
|
19e3c2 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
|
19e3c2 |
- | -chorusos* | -chorusrdb* \
|
|
|
19e3c2 |
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
|
19e3c2 |
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
|
19e3c2 |
+ | -chorusos* | -chorusrdb* | -cegcc* \
|
|
|
19e3c2 |
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
|
19e3c2 |
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
|
|
|
19e3c2 |
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
|
|
|
19e3c2 |
+ | -uxpv* | -beos* | -mpeix* | -udk* \
|
|
|
19e3c2 |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
|
|
19e3c2 |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
|
|
19e3c2 |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
|
|
19e3c2 |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
|
|
19e3c2 |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
|
|
19e3c2 |
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
|
|
|
19e3c2 |
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
|
|
19e3c2 |
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
|
|
|
19e3c2 |
# Remember, each alternative MUST END IN *, to match a version number.
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
-qnx*)
|
|
|
19e3c2 |
@@ -1154,12 +1391,15 @@ case $os in
|
|
|
19e3c2 |
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
|
|
|
19e3c2 |
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
|
|
|
19e3c2 |
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
|
|
|
19e3c2 |
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
-mac*)
|
|
|
19e3c2 |
os=`echo $os | sed -e 's|mac|macos|'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -linux-dietlibc)
|
|
|
19e3c2 |
+ os=-linux-dietlibc
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-linux*)
|
|
|
19e3c2 |
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1172,6 +1412,9 @@ case $os in
|
|
|
19e3c2 |
-opened*)
|
|
|
19e3c2 |
os=-openedition
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -os400*)
|
|
|
19e3c2 |
+ os=-os400
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-wince*)
|
|
|
19e3c2 |
os=-wince
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1193,6 +1436,9 @@ case $os in
|
|
|
19e3c2 |
-atheos*)
|
|
|
19e3c2 |
os=-atheos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -syllable*)
|
|
|
19e3c2 |
+ os=-syllable
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-386bsd)
|
|
|
19e3c2 |
os=-bsd
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1215,6 +1461,9 @@ case $os in
|
|
|
19e3c2 |
-sinix*)
|
|
|
19e3c2 |
os=-sysv4
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -tpf*)
|
|
|
19e3c2 |
+ os=-tpf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-triton*)
|
|
|
19e3c2 |
os=-sysv3
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1251,6 +1500,14 @@ case $os in
|
|
|
19e3c2 |
-kaos*)
|
|
|
19e3c2 |
os=-kaos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -zvmoe)
|
|
|
19e3c2 |
+ os=-zvmoe
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ -dicos*)
|
|
|
19e3c2 |
+ os=-dicos
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ -nacl*)
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-none)
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
*)
|
|
|
19e3c2 |
@@ -1273,6 +1530,12 @@ else
|
|
|
19e3c2 |
# system, and we'll never get to this point.
|
|
|
19e3c2 |
|
|
|
19e3c2 |
case $basic_machine in
|
|
|
19e3c2 |
+ score-*)
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ spu-*)
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
*-acorn)
|
|
|
19e3c2 |
os=-riscix1.2
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1285,6 +1548,18 @@ case $basic_machine in
|
|
|
19e3c2 |
c4x-* | tic4x-*)
|
|
|
19e3c2 |
os=-coff
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ hexagon-*)
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ tic54x-*)
|
|
|
19e3c2 |
+ os=-coff
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ tic55x-*)
|
|
|
19e3c2 |
+ os=-coff
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
+ tic6x-*)
|
|
|
19e3c2 |
+ os=-coff
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
# This must come before the *-dec entry.
|
|
|
19e3c2 |
pdp10-*)
|
|
|
19e3c2 |
os=-tops20
|
|
|
19e3c2 |
@@ -1303,13 +1578,13 @@ case $basic_machine in
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
m68000-sun)
|
|
|
19e3c2 |
os=-sunos3
|
|
|
19e3c2 |
- # This also exists in the configure program, but was not the
|
|
|
19e3c2 |
- # default.
|
|
|
19e3c2 |
- # os=-sunos4
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
m68*-cisco)
|
|
|
19e3c2 |
os=-aout
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ mep-*)
|
|
|
19e3c2 |
+ os=-elf
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
mips*-cisco)
|
|
|
19e3c2 |
os=-elf
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1328,9 +1603,15 @@ case $basic_machine in
|
|
|
19e3c2 |
*-be)
|
|
|
19e3c2 |
os=-beos
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ *-haiku)
|
|
|
19e3c2 |
+ os=-haiku
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
*-ibm)
|
|
|
19e3c2 |
os=-aix
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ *-knuth)
|
|
|
19e3c2 |
+ os=-mmixware
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
*-wec)
|
|
|
19e3c2 |
os=-proelf
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1433,7 +1714,7 @@ case $basic_machine in
|
|
|
19e3c2 |
-sunos*)
|
|
|
19e3c2 |
vendor=sun
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
- -aix*)
|
|
|
19e3c2 |
+ -cnk*|-aix*)
|
|
|
19e3c2 |
vendor=ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
-beos*)
|
|
|
19e3c2 |
@@ -1463,9 +1744,15 @@ case $basic_machine in
|
|
|
19e3c2 |
-mvs* | -opened*)
|
|
|
19e3c2 |
vendor=ibm
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -os400*)
|
|
|
19e3c2 |
+ vendor=ibm
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-ptx*)
|
|
|
19e3c2 |
vendor=sequent
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
+ -tpf*)
|
|
|
19e3c2 |
+ vendor=ibm
|
|
|
19e3c2 |
+ ;;
|
|
|
19e3c2 |
-vxsim* | -vxworks* | -windiss*)
|
|
|
19e3c2 |
vendor=wrs
|
|
|
19e3c2 |
;;
|
|
|
19e3c2 |
@@ -1490,7 +1777,7 @@ case $basic_machine in
|
|
|
19e3c2 |
esac
|
|
|
19e3c2 |
|
|
|
19e3c2 |
echo $basic_machine$os
|
|
|
19e3c2 |
-exit 0
|
|
|
19e3c2 |
+exit
|
|
|
19e3c2 |
|
|
|
19e3c2 |
# Local variables:
|
|
|
19e3c2 |
# eval: (add-hook 'write-file-hooks 'time-stamp)
|