Blame SOURCES/0022-Update-configure-for-aarch64-bz-926701.patch

056839
From 1b30bcd831a6e1c3dd16c0e53379df228da3e87b Mon Sep 17 00:00:00 2001
056839
From: "Richard W.M. Jones" <rjones@redhat.com>
056839
Date: Tue, 29 Nov 2022 08:14:20 +0000
056839
Subject: [PATCH 22/23] Update configure for aarch64 (bz #926701)
056839
056839
---
056839
 config.guess | 585 +++++++++++++++++++++++++++------------------------
056839
 config.sub   | 327 +++++++++++++++++++++-------
056839
 2 files changed, 560 insertions(+), 352 deletions(-)
056839
056839
diff --git a/config.guess b/config.guess
056839
index 396482d..872b96a 100755
056839
--- a/config.guess
056839
+++ b/config.guess
263533
@@ -1,10 +1,10 @@
263533
 #! /bin/sh
263533
 # Attempt to guess a canonical system name.
263533
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
263533
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
263533
-#   Inc.
263533
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
263533
+#   2011, 2012 Free Software Foundation, Inc.
263533
 
263533
-timestamp='2006-07-02'
263533
+timestamp='2012-09-25'
263533
 
263533
 # This file is free software; you can redistribute it and/or modify it
263533
 # under the terms of the GNU General Public License as published by
056839
@@ -17,9 +17,7 @@ timestamp='2006-07-02'
263533
 # General Public License for more details.
263533
 #
263533
 # You should have received a copy of the GNU General Public License
263533
-# along with this program; if not, write to the Free Software
263533
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
263533
-# 02110-1301, USA.
263533
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
263533
 #
263533
 # As a special exception to the GNU General Public License, if you
263533
 # distribute this file as part of a program that contains a
056839
@@ -27,16 +25,16 @@ timestamp='2006-07-02'
263533
 # the same distribution terms that you use for the rest of that program.
263533
 
263533
 
263533
-# Originally written by Per Bothner <per@bothner.com>.
263533
-# Please send patches to <config-patches@gnu.org>.  Submit a context
263533
-# diff and a properly formatted ChangeLog entry.
263533
+# Originally written by Per Bothner.  Please send patches (context
263533
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
263533
+# entry.
263533
 #
263533
 # This script attempts to guess a canonical system name similar to
263533
 # config.sub.  If it succeeds, it prints the system name on stdout, and
263533
 # exits with 0.  Otherwise, it exits with 1.
263533
 #
263533
-# The plan is that this can be called by configure scripts if you
263533
-# don't specify an explicit build system type.
263533
+# You can get the latest version of this script from:
263533
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
263533
 
263533
 me=`echo "$0" | sed -e 's,.*/,,'`
263533
 
056839
@@ -56,7 +54,8 @@ version="\
263533
 GNU config.guess ($timestamp)
263533
 
263533
 Originally written by Per Bothner.
263533
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
263533
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
263533
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
263533
 Free Software Foundation, Inc.
263533
 
263533
 This is free software; see the source for copying conditions.  There is NO
056839
@@ -144,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
263533
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
     *:NetBSD:*:*)
263533
 	# NetBSD (nbsd) targets should (where applicable) match one or
263533
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
263533
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
263533
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
263533
 	# switched to ELF, *-*-netbsd* would select the old
263533
 	# object file format.  This provides both forward
056839
@@ -161,6 +160,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	    arm*) machine=arm-unknown ;;
263533
 	    sh3el) machine=shl-unknown ;;
263533
 	    sh3eb) machine=sh-unknown ;;
263533
+	    sh5el) machine=sh5le-unknown ;;
263533
 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
263533
 	esac
263533
 	# The Operating System including object format, if it has switched
056839
@@ -169,7 +169,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
263533
 		eval $set_cc_for_build
263533
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
263533
-			| grep __ELF__ >/dev/null
263533
+			| grep -q __ELF__
263533
 		then
263533
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
263533
 		    # Return netbsd for either.  FIX?
056839
@@ -179,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 		fi
263533
 		;;
263533
 	    *)
263533
-	        os=netbsd
263533
+		os=netbsd
263533
 		;;
263533
 	esac
263533
 	# The OS release
056839
@@ -200,6 +200,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
263533
 	echo "${machine}-${os}${release}"
263533
 	exit ;;
263533
+    *:Bitrig:*:*)
263533
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
263533
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
263533
+	exit ;;
263533
     *:OpenBSD:*:*)
263533
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
263533
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
056839
@@ -222,7 +226,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
263533
 		;;
263533
 	*5.*)
263533
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
263533
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
263533
 		;;
263533
 	esac
263533
 	# According to Compaq, /usr/sbin/psrinfo has been available on
056839
@@ -268,7 +272,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	# A Xn.n version is an unreleased experimental baselevel.
263533
 	# 1.2 uses "1.2" for uname -r.
263533
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
263533
-	exit ;;
263533
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
263533
+	exitcode=$?
263533
+	trap '' 0
263533
+	exit $exitcode ;;
263533
     Alpha\ *:Windows_NT*:*)
263533
 	# How do we know it's Interix rather than the generic POSIX subsystem?
263533
 	# Should we change UNAME_MACHINE based on the output of uname instead
056839
@@ -294,12 +301,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	echo s390-ibm-zvmoe
263533
 	exit ;;
263533
     *:OS400:*:*)
263533
-        echo powerpc-ibm-os400
263533
+	echo powerpc-ibm-os400
263533
 	exit ;;
263533
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
263533
 	echo arm-acorn-riscix${UNAME_RELEASE}
263533
 	exit ;;
263533
-    arm:riscos:*:*|arm:RISCOS:*:*)
263533
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
263533
 	echo arm-unknown-riscos
263533
 	exit ;;
263533
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
056839
@@ -323,14 +330,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
 	case `/usr/bin/uname -p` in
263533
 	    sparc) echo sparc-icl-nx7; exit ;;
263533
 	esac ;;
263533
+    s390x:SunOS:*:*)
263533
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
263533
+	exit ;;
263533
     sun4H:SunOS:5.*:*)
263533
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
263533
 	exit ;;
263533
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
263533
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
263533
 	exit ;;
263533
-    i86pc:SunOS:5.*:*)
263533
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
263533
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
263533
+	echo i386-pc-auroraux${UNAME_RELEASE}
263533
+	exit ;;
263533
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
263533
+	eval $set_cc_for_build
263533
+	SUN_ARCH="i386"
263533
+	# If there is a compiler, see if it is configured for 64-bit objects.
263533
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
263533
+	# This test works for both compilers.
263533
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
263533
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
263533
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
263533
+		grep IS_64BIT_ARCH >/dev/null
263533
+	    then
263533
+		SUN_ARCH="x86_64"
263533
+	    fi
263533
+	fi
263533
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
263533
 	exit ;;
263533
     sun4*:SunOS:6*:*)
263533
 	# According to config.sub, this is the proper way to canonicalize
056839
@@ -374,23 +400,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
263533
     # MiNT.  But MiNT is downward compatible to TOS, so this should
263533
     # be no problem.
263533
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
263533
-        echo m68k-atari-mint${UNAME_RELEASE}
263533
+	echo m68k-atari-mint${UNAME_RELEASE}
263533
 	exit ;;
263533
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
263533
 	echo m68k-atari-mint${UNAME_RELEASE}
263533
-        exit ;;
263533
+	exit ;;
263533
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
263533
-        echo m68k-atari-mint${UNAME_RELEASE}
263533
+	echo m68k-atari-mint${UNAME_RELEASE}
263533
 	exit ;;
263533
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
263533
-        echo m68k-milan-mint${UNAME_RELEASE}
263533
-        exit ;;
263533
+	echo m68k-milan-mint${UNAME_RELEASE}
263533
+	exit ;;
263533
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
263533
-        echo m68k-hades-mint${UNAME_RELEASE}
263533
-        exit ;;
263533
+	echo m68k-hades-mint${UNAME_RELEASE}
263533
+	exit ;;
263533
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
263533
-        echo m68k-unknown-mint${UNAME_RELEASE}
263533
-        exit ;;
263533
+	echo m68k-unknown-mint${UNAME_RELEASE}
263533
+	exit ;;
263533
     m68k:machten:*:*)
263533
 	echo m68k-apple-machten${UNAME_RELEASE}
263533
 	exit ;;
056839
@@ -460,8 +486,8 @@ EOF
263533
 	echo m88k-motorola-sysv3
263533
 	exit ;;
263533
     AViiON:dgux:*:*)
263533
-        # DG/UX returns AViiON for all architectures
263533
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
263533
+	# DG/UX returns AViiON for all architectures
263533
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
263533
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
263533
 	then
263533
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
056839
@@ -474,7 +500,7 @@ EOF
263533
 	else
263533
 	    echo i586-dg-dgux${UNAME_RELEASE}
263533
 	fi
263533
- 	exit ;;
263533
+	exit ;;
263533
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
263533
 	echo m88k-dolphin-sysv3
263533
 	exit ;;
056839
@@ -531,7 +557,7 @@ EOF
263533
 		echo rs6000-ibm-aix3.2
263533
 	fi
263533
 	exit ;;
263533
-    *:AIX:*:[45])
263533
+    *:AIX:*:[4567])
263533
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
263533
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
263533
 		IBM_ARCH=rs6000
056839
@@ -574,52 +600,52 @@ EOF
263533
 	    9000/[678][0-9][0-9])
263533
 		if [ -x /usr/bin/getconf ]; then
263533
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
263533
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
263533
-                    case "${sc_cpu_version}" in
263533
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
263533
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
263533
-                      532)                      # CPU_PA_RISC2_0
263533
-                        case "${sc_kernel_bits}" in
263533
-                          32) HP_ARCH="hppa2.0n" ;;
263533
-                          64) HP_ARCH="hppa2.0w" ;;
263533
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
263533
+		    case "${sc_cpu_version}" in
263533
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
263533
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
263533
+		      532)                      # CPU_PA_RISC2_0
263533
+			case "${sc_kernel_bits}" in
263533
+			  32) HP_ARCH="hppa2.0n" ;;
263533
+			  64) HP_ARCH="hppa2.0w" ;;
263533
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
263533
-                        esac ;;
263533
-                    esac
263533
+			esac ;;
263533
+		    esac
263533
 		fi
263533
 		if [ "${HP_ARCH}" = "" ]; then
263533
 		    eval $set_cc_for_build
263533
-		    sed 's/^              //' << EOF >$dummy.c
263533
+		    sed 's/^		//' << EOF >$dummy.c
263533
 
263533
-              #define _HPUX_SOURCE
263533
-              #include <stdlib.h>
263533
-              #include <unistd.h>
056839
+		#define _HPUX_SOURCE
056839
+		#include <stdlib.h>
056839
+		#include <unistd.h>
056839
 
263533
-              int main ()
263533
-              {
263533
-              #if defined(_SC_KERNEL_BITS)
263533
-                  long bits = sysconf(_SC_KERNEL_BITS);
263533
-              #endif
263533
-                  long cpu  = sysconf (_SC_CPU_VERSION);
056839
+		int main ()
056839
+		{
056839
+		#if defined(_SC_KERNEL_BITS)
056839
+		    long bits = sysconf(_SC_KERNEL_BITS);
056839
+		#endif
056839
+		    long cpu  = sysconf (_SC_CPU_VERSION);
056839
 
263533
-                  switch (cpu)
263533
-              	{
263533
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
263533
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
263533
-              	case CPU_PA_RISC2_0:
263533
-              #if defined(_SC_KERNEL_BITS)
263533
-              	    switch (bits)
263533
-              		{
263533
-              		case 64: puts ("hppa2.0w"); break;
263533
-              		case 32: puts ("hppa2.0n"); break;
263533
-              		default: puts ("hppa2.0"); break;
263533
-              		} break;
263533
-              #else  /* !defined(_SC_KERNEL_BITS) */
263533
-              	    puts ("hppa2.0"); break;
263533
-              #endif
263533
-              	default: puts ("hppa1.0"); break;
263533
-              	}
263533
-                  exit (0);
263533
-              }
263533
+		    switch (cpu)
263533
+			{
263533
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
263533
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
263533
+			case CPU_PA_RISC2_0:
263533
+		#if defined(_SC_KERNEL_BITS)
263533
+			    switch (bits)
263533
+				{
263533
+				case 64: puts ("hppa2.0w"); break;
263533
+				case 32: puts ("hppa2.0n"); break;
263533
+				default: puts ("hppa2.0"); break;
263533
+				} break;
263533
+		#else  /* !defined(_SC_KERNEL_BITS) */
263533
+			    puts ("hppa2.0"); break;
263533
+		#endif
263533
+			default: puts ("hppa1.0"); break;
263533
+			}
263533
+		    exit (0);
263533
+		}
263533
 EOF
263533
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
263533
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
056839
@@ -639,7 +665,7 @@ EOF
263533
 	    # => hppa64-hp-hpux11.23
263533
 
263533
 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
263533
-		grep __LP64__ >/dev/null
263533
+		grep -q __LP64__
263533
 	    then
263533
 		HP_ARCH="hppa2.0w"
263533
 	    else
056839
@@ -710,22 +736,22 @@ EOF
263533
 	exit ;;
263533
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
263533
 	echo c1-convex-bsd
263533
-        exit ;;
263533
+	exit ;;
263533
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
263533
 	if getsysinfo -f scalar_acc
263533
 	then echo c32-convex-bsd
263533
 	else echo c2-convex-bsd
263533
 	fi
263533
-        exit ;;
263533
+	exit ;;
263533
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
263533
 	echo c34-convex-bsd
263533
-        exit ;;
263533
+	exit ;;
263533
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
263533
 	echo c38-convex-bsd
263533
-        exit ;;
263533
+	exit ;;
263533
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
263533
 	echo c4-convex-bsd
263533
-        exit ;;
263533
+	exit ;;
263533
     CRAY*Y-MP:*:*:*)
263533
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
263533
 	exit ;;
056839
@@ -749,14 +775,14 @@ EOF
263533
 	exit ;;
263533
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
263533
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
263533
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
263533
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
263533
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
263533
-        exit ;;
263533
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
263533
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
263533
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
263533
+	exit ;;
263533
     5000:UNIX_System_V:4.*:*)
263533
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
263533
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
263533
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
263533
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
263533
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
263533
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
263533
 	exit ;;
263533
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
263533
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
056839
@@ -768,37 +794,51 @@ EOF
263533
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
263533
 	exit ;;
263533
     *:FreeBSD:*:*)
263533
-	case ${UNAME_MACHINE} in
263533
-	    pc98)
263533
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
263533
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
263533
+	case ${UNAME_PROCESSOR} in
263533
 	    amd64)
263533
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
263533
 	    *)
263533
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
263533
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
263533
 	esac
263533
 	exit ;;
263533
     i*:CYGWIN*:*)
263533
 	echo ${UNAME_MACHINE}-pc-cygwin
263533
 	exit ;;
263533
-    i*:MINGW*:*)
263533
+    *:MINGW64*:*)
263533
+	echo ${UNAME_MACHINE}-pc-mingw64
263533
+	exit ;;
263533
+    *:MINGW*:*)
263533
 	echo ${UNAME_MACHINE}-pc-mingw32
263533
 	exit ;;
263533
+    i*:MSYS*:*)
263533
+	echo ${UNAME_MACHINE}-pc-msys
263533
+	exit ;;
263533
     i*:windows32*:*)
263533
-    	# uname -m includes "-pc" on this system.
263533
-    	echo ${UNAME_MACHINE}-mingw32
263533
+	# uname -m includes "-pc" on this system.
263533
+	echo ${UNAME_MACHINE}-mingw32
263533
 	exit ;;
263533
     i*:PW*:*)
263533
 	echo ${UNAME_MACHINE}-pc-pw32
263533
 	exit ;;
263533
-    x86:Interix*:[3456]*)
263533
-	echo i586-pc-interix${UNAME_RELEASE}
263533
-	exit ;;
263533
-    EM64T:Interix*:[3456]*)
263533
-	echo x86_64-unknown-interix${UNAME_RELEASE}
263533
-	exit ;;
263533
+    *:Interix*:*)
263533
+	case ${UNAME_MACHINE} in
263533
+	    x86)
263533
+		echo i586-pc-interix${UNAME_RELEASE}
263533
+		exit ;;
263533
+	    authenticamd | genuineintel | EM64T)
263533
+		echo x86_64-unknown-interix${UNAME_RELEASE}
263533
+		exit ;;
263533
+	    IA64)
263533
+		echo ia64-unknown-interix${UNAME_RELEASE}
263533
+		exit ;;
263533
+	esac ;;
263533
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
263533
 	echo i${UNAME_MACHINE}-pc-mks
263533
 	exit ;;
263533
+    8664:Windows_NT:*)
263533
+	echo x86_64-pc-mks
263533
+	exit ;;
263533
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
263533
 	# How do we know it's Interix rather than the generic POSIX subsystem?
263533
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
056839
@@ -828,85 +868,13 @@ EOF
263533
     i*86:Minix:*:*)
263533
 	echo ${UNAME_MACHINE}-pc-minix
263533
 	exit ;;
263533
-    arm*:Linux:*:*)
263533
+    aarch64:Linux:*:*)
263533
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
 	exit ;;
056839
-    avr32*:Linux:*:*)
263533
+    aarch64_be:Linux:*:*)
263533
+	UNAME_MACHINE=aarch64_be
263533
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
 	exit ;;
056839
-    cris:Linux:*:*)
263533
-	echo cris-axis-linux-gnu
056839
-	exit ;;
056839
-    crisv32:Linux:*:*)
263533
-	echo crisv32-axis-linux-gnu
056839
-	exit ;;
056839
-    frv:Linux:*:*)
263533
-    	echo frv-unknown-linux-gnu
056839
-	exit ;;
056839
-    ia64:Linux:*:*)
056839
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
-	exit ;;
056839
-    m32r*:Linux:*:*)
056839
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
-	exit ;;
056839
-    m68*:Linux:*:*)
056839
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
-	exit ;;
263533
-    mips:Linux:*:*)
263533
-	eval $set_cc_for_build
263533
-	sed 's/^	//' << EOF >$dummy.c
263533
-	#undef CPU
263533
-	#undef mips
263533
-	#undef mipsel
263533
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
263533
-	CPU=mipsel
263533
-	#else
263533
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
263533
-	CPU=mips
263533
-	#else
263533
-	CPU=
263533
-	#endif
263533
-	#endif
263533
-EOF
263533
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
263533
-	    /^CPU/{
263533
-		s: ::g
263533
-		p
263533
-	    }'`"
263533
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
263533
-	;;
263533
-    mips64:Linux:*:*)
056839
-	eval $set_cc_for_build
056839
-	sed 's/^	//' << EOF >$dummy.c
056839
-	#undef CPU
263533
-	#undef mips64
263533
-	#undef mips64el
056839
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
263533
-	CPU=mips64el
056839
-	#else
056839
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
263533
-	CPU=mips64
056839
-	#else
056839
-	CPU=
056839
-	#endif
056839
-	#endif
056839
-EOF
263533
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
263533
-	    /^CPU/{
263533
-		s: ::g
263533
-		p
263533
-	    }'`"
056839
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
056839
-	;;
056839
-    or32:Linux:*:*)
263533
-	echo or32-unknown-linux-gnu
263533
-	exit ;;
263533
-    ppc:Linux:*:*)
263533
-	echo powerpc-unknown-linux-gnu
056839
-	exit ;;
263533
-    ppc64:Linux:*:*)
263533
-	echo powerpc64-unknown-linux-gnu
056839
-	exit ;;
056839
     alpha:Linux:*:*)
056839
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
056839
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
056839
@@ -916,11 +884,90 @@ EOF
056839
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
056839
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
056839
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
263533
-        esac
263533
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
056839
+	esac
056839
+	objdump --private-headers /bin/sh | grep -q ld.so.1
056839
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
056839
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
056839
 	exit ;;
056839
+    arm*:Linux:*:*)
056839
+	eval $set_cc_for_build
056839
+	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
056839
+	    | grep -q __ARM_EABI__
056839
+	then
056839
+	    echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	else
056839
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
056839
+		| grep -q __ARM_PCS_VFP
056839
+	    then
056839
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
056839
+	    else
056839
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
056839
+	    fi
056839
+	fi
056839
+	exit ;;
056839
+    avr32*:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    cris:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-axis-linux-gnu
056839
+	exit ;;
056839
+    crisv32:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-axis-linux-gnu
056839
+	exit ;;
056839
+    frv:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    hexagon:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    i*86:Linux:*:*)
056839
+	LIBC=gnu
056839
+	eval $set_cc_for_build
056839
+	sed 's/^	//' << EOF >$dummy.c
056839
+	#ifdef __dietlibc__
056839
+	LIBC=dietlibc
056839
+	#endif
056839
+EOF
056839
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
056839
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
056839
+	exit ;;
056839
+    ia64:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    m32r*:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    m68*:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    mips:Linux:*:* | mips64:Linux:*:*)
056839
+	eval $set_cc_for_build
056839
+	sed 's/^	//' << EOF >$dummy.c
056839
+	#undef CPU
056839
+	#undef ${UNAME_MACHINE}
056839
+	#undef ${UNAME_MACHINE}el
056839
+	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
056839
+	CPU=${UNAME_MACHINE}el
056839
+	#else
056839
+	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
056839
+	CPU=${UNAME_MACHINE}
056839
+	#else
056839
+	CPU=
056839
+	#endif
056839
+	#endif
056839
+EOF
056839
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
056839
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
056839
+	;;
056839
+    or32:Linux:*:*)
056839
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
+	exit ;;
056839
+    padre:Linux:*:*)
056839
+	echo sparc-unknown-linux-gnu
056839
+	exit ;;
263533
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
263533
+	echo hppa64-unknown-linux-gnu
056839
+	exit ;;
263533
     parisc:Linux:*:* | hppa:Linux:*:*)
263533
 	# Look for CPU level
056839
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
056839
@@ -929,14 +976,17 @@ EOF
263533
 	  *)    echo hppa-unknown-linux-gnu ;;
263533
 	esac
263533
 	exit ;;
263533
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
263533
-	echo hppa64-unknown-linux-gnu
263533
+    ppc64:Linux:*:*)
263533
+	echo powerpc64-unknown-linux-gnu
263533
+	exit ;;
263533
+    ppc:Linux:*:*)
263533
+	echo powerpc-unknown-linux-gnu
263533
 	exit ;;
263533
     s390:Linux:*:* | s390x:Linux:*:*)
263533
 	echo ${UNAME_MACHINE}-ibm-linux
263533
 	exit ;;
263533
     sh64*:Linux:*:*)
263533
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
 	exit ;;
263533
     sh*:Linux:*:*)
263533
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
056839
@@ -944,75 +994,18 @@ EOF
263533
     sparc:Linux:*:* | sparc64:Linux:*:*)
263533
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
 	exit ;;
263533
+    tile*:Linux:*:*)
263533
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
+	exit ;;
263533
     vax:Linux:*:*)
263533
 	echo ${UNAME_MACHINE}-dec-linux-gnu
263533
 	exit ;;
263533
     x86_64:Linux:*:*)
263533
-	echo x86_64-unknown-linux-gnu
263533
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
+	exit ;;
263533
+    xtensa*:Linux:*:*)
263533
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
263533
 	exit ;;
263533
-    i*86:Linux:*:*)
263533
-	# The BFD linker knows what the default object file format is, so
263533
-	# first see if it will tell us. cd to the root directory to prevent
263533
-	# problems with other programs or directories called `ld' in the path.
263533
-	# Set LC_ALL=C to ensure ld outputs messages in English.
263533
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
263533
-			 | sed -ne '/supported targets:/!d
263533
-				    s/[ 	][ 	]*/ /g
263533
-				    s/.*supported targets: *//
263533
-				    s/ .*//
263533
-				    p'`
263533
-        case "$ld_supported_targets" in
263533
-	  elf32-i386)
263533
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
263533
-		;;
263533
-	  a.out-i386-linux)
263533
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
263533
-		exit ;;
263533
-	  coff-i386)
263533
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
263533
-		exit ;;
263533
-	  "")
263533
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
263533
-		# one that does not give us useful --help.
263533
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
263533
-		exit ;;
263533
-	esac
263533
-	# Determine whether the default compiler is a.out or elf
263533
-	eval $set_cc_for_build
263533
-	sed 's/^	//' << EOF >$dummy.c
263533
-	#include <features.h>
263533
-	#ifdef __ELF__
263533
-	# ifdef __GLIBC__
263533
-	#  if __GLIBC__ >= 2
263533
-	LIBC=gnu
263533
-	#  else
263533
-	LIBC=gnulibc1
263533
-	#  endif
263533
-	# else
263533
-	LIBC=gnulibc1
263533
-	# endif
263533
-	#else
263533
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
263533
-	LIBC=gnu
263533
-	#else
263533
-	LIBC=gnuaout
263533
-	#endif
263533
-	#endif
263533
-	#ifdef __dietlibc__
263533
-	LIBC=dietlibc
263533
-	#endif
263533
-EOF
263533
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
263533
-	    /^LIBC/{
263533
-		s: ::g
263533
-		p
263533
-	    }'`"
263533
-	test x"${LIBC}" != x && {
263533
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
263533
-		exit
263533
-	}
263533
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
263533
-	;;
263533
     i*86:DYNIX/ptx:4*:*)
263533
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
263533
 	# earlier versions are messed up and put the nodename in both
056839
@@ -1020,11 +1013,11 @@ EOF
263533
 	echo i386-sequent-sysv4
263533
 	exit ;;
263533
     i*86:UNIX_SV:4.2MP:2.*)
263533
-        # Unixware is an offshoot of SVR4, but it has its own version
263533
-        # number series starting with 2...
263533
-        # I am not positive that other SVR4 systems won't match this,
263533
+	# Unixware is an offshoot of SVR4, but it has its own version
263533
+	# number series starting with 2...
263533
+	# I am not positive that other SVR4 systems won't match this,
263533
 	# I just have to hope.  -- rms.
263533
-        # Use sysv4.2uw... so that sysv4* matches it.
263533
+	# Use sysv4.2uw... so that sysv4* matches it.
263533
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
263533
 	exit ;;
263533
     i*86:OS/2:*:*)
056839
@@ -1041,7 +1034,7 @@ EOF
263533
     i*86:syllable:*:*)
263533
 	echo ${UNAME_MACHINE}-pc-syllable
263533
 	exit ;;
263533
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
263533
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
263533
 	echo i386-unknown-lynxos${UNAME_RELEASE}
263533
 	exit ;;
263533
     i*86:*DOS:*:*)
056839
@@ -1056,7 +1049,7 @@ EOF
263533
 	fi
263533
 	exit ;;
263533
     i*86:*:5:[678]*)
263533
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
263533
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
263533
 	case `/bin/uname -X | grep "^Machine"` in
263533
 	    *486*)	     UNAME_MACHINE=i486 ;;
263533
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
056839
@@ -1084,10 +1077,13 @@ EOF
263533
 	exit ;;
263533
     pc:*:*:*)
263533
 	# Left here for compatibility:
263533
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
263533
-        # the processor, so we play safe by assuming i386.
263533
-	echo i386-pc-msdosdjgpp
263533
-        exit ;;
263533
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
263533
+	# the processor, so we play safe by assuming i586.
263533
+	# Note: whatever this is, it MUST be the same as what config.sub
263533
+	# prints for the "djgpp" host, or else GDB configury will decide that
263533
+	# this is a cross-build.
263533
+	echo i586-pc-msdosdjgpp
263533
+	exit ;;
263533
     Intel:Mach:3*:*)
263533
 	echo i386-pc-mach3
263533
 	exit ;;
056839
@@ -1122,8 +1118,18 @@ EOF
263533
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
263533
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
263533
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
263533
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
263533
-          && { echo i486-ncr-sysv4; exit; } ;;
263533
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
263533
+	  && { echo i486-ncr-sysv4; exit; } ;;
263533
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
263533
+	OS_REL='.3'
263533
+	test -r /etc/.relid \
263533
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
263533
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
263533
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
263533
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
263533
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
263533
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
263533
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
263533
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
263533
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
263533
 	exit ;;
056839
@@ -1136,7 +1142,7 @@ EOF
263533
     rs6000:LynxOS:2.*:*)
263533
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
263533
 	exit ;;
263533
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
263533
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
263533
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
263533
 	exit ;;
263533
     SM[BE]S:UNIX_SV:*:*)
056839
@@ -1156,10 +1162,10 @@ EOF
263533
 		echo ns32k-sni-sysv
263533
 	fi
263533
 	exit ;;
263533
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
263533
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
263533
-        echo i586-unisys-sysv4
263533
-        exit ;;
263533
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
263533
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
263533
+	echo i586-unisys-sysv4
263533
+	exit ;;
263533
     *:UNIX_System_V:4*:FTX*)
263533
 	# From Gerald Hewes <hewes@openmarket.com>.
263533
 	# How about differentiating between stratus architectures? -djm
056839
@@ -1185,11 +1191,11 @@ EOF
263533
 	exit ;;
263533
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
263533
 	if [ -d /usr/nec ]; then
263533
-	        echo mips-nec-sysv${UNAME_RELEASE}
263533
+		echo mips-nec-sysv${UNAME_RELEASE}
263533
 	else
263533
-	        echo mips-unknown-sysv${UNAME_RELEASE}
263533
+		echo mips-unknown-sysv${UNAME_RELEASE}
263533
 	fi
263533
-        exit ;;
263533
+	exit ;;
263533
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
263533
 	echo powerpc-be-beos
263533
 	exit ;;
056839
@@ -1199,6 +1205,12 @@ EOF
263533
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
263533
 	echo i586-pc-beos
263533
 	exit ;;
263533
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
263533
+	echo i586-pc-haiku
263533
+	exit ;;
263533
+    x86_64:Haiku:*:*)
263533
+	echo x86_64-unknown-haiku
263533
+	exit ;;
263533
     SX-4:SUPER-UX:*:*)
263533
 	echo sx4-nec-superux${UNAME_RELEASE}
263533
 	exit ;;
056839
@@ -1208,6 +1220,15 @@ EOF
263533
     SX-6:SUPER-UX:*:*)
263533
 	echo sx6-nec-superux${UNAME_RELEASE}
263533
 	exit ;;
263533
+    SX-7:SUPER-UX:*:*)
263533
+	echo sx7-nec-superux${UNAME_RELEASE}
263533
+	exit ;;
263533
+    SX-8:SUPER-UX:*:*)
263533
+	echo sx8-nec-superux${UNAME_RELEASE}
263533
+	exit ;;
263533
+    SX-8R:SUPER-UX:*:*)
263533
+	echo sx8r-nec-superux${UNAME_RELEASE}
263533
+	exit ;;
263533
     Power*:Rhapsody:*:*)
263533
 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
263533
 	exit ;;
056839
@@ -1217,6 +1238,16 @@ EOF
263533
     *:Darwin:*:*)
263533
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
263533
 	case $UNAME_PROCESSOR in
263533
+	    i386)
263533
+		eval $set_cc_for_build
263533
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
263533
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
263533
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
263533
+		      grep IS_64BIT_ARCH >/dev/null
263533
+		  then
263533
+		      UNAME_PROCESSOR="x86_64"
263533
+		  fi
263533
+		fi ;;
263533
 	    unknown) UNAME_PROCESSOR=powerpc ;;
263533
 	esac
263533
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
056839
@@ -1232,7 +1263,10 @@ EOF
263533
     *:QNX:*:4*)
263533
 	echo i386-pc-qnx
263533
 	exit ;;
263533
-    NSE-?:NONSTOP_KERNEL:*:*)
263533
+    NEO-?:NONSTOP_KERNEL:*:*)
263533
+	echo neo-tandem-nsk${UNAME_RELEASE}
263533
+	exit ;;
263533
+    NSE-*:NONSTOP_KERNEL:*:*)
263533
 	echo nse-tandem-nsk${UNAME_RELEASE}
263533
 	exit ;;
263533
     NSR-?:NONSTOP_KERNEL:*:*)
056839
@@ -1277,13 +1311,13 @@ EOF
263533
 	echo pdp10-unknown-its
263533
 	exit ;;
263533
     SEI:*:*:SEIUX)
263533
-        echo mips-sei-seiux${UNAME_RELEASE}
263533
+	echo mips-sei-seiux${UNAME_RELEASE}
263533
 	exit ;;
263533
     *:DragonFly:*:*)
263533
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
263533
 	exit ;;
263533
     *:*VMS:*:*)
263533
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
263533
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
263533
 	case "${UNAME_MACHINE}" in
263533
 	    A*) echo alpha-dec-vms ; exit ;;
263533
 	    I*) echo ia64-dec-vms ; exit ;;
056839
@@ -1298,11 +1332,14 @@ EOF
263533
     i*86:rdos:*:*)
263533
 	echo ${UNAME_MACHINE}-pc-rdos
263533
 	exit ;;
263533
+    i*86:AROS:*:*)
263533
+	echo ${UNAME_MACHINE}-pc-aros
263533
+	exit ;;
263533
+    x86_64:VMkernel:*:*)
263533
+	echo ${UNAME_MACHINE}-unknown-esx
263533
+	exit ;;
263533
 esac
263533
 
263533
-#echo '(No uname command or uname output not recognized.)' 1>&2
263533
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
263533
-
263533
 eval $set_cc_for_build
263533
 cat >$dummy.c <
263533
 #ifdef _SEQUENT_
056839
@@ -1320,11 +1357,11 @@ main ()
263533
 #include <sys/param.h>
263533
   printf ("m68k-sony-newsos%s\n",
263533
 #ifdef NEWSOS4
263533
-          "4"
263533
+	"4"
263533
 #else
263533
-	  ""
263533
+	""
263533
 #endif
263533
-         ); exit (0);
263533
+	); exit (0);
263533
 #endif
263533
 #endif
263533
 
056839
@@ -1458,9 +1495,9 @@ This script, last modified $timestamp, has failed to recognize
263533
 the operating system you are using. It is advised that you
263533
 download the most up to date version of the config scripts from
263533
 
263533
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
263533
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
263533
 and
263533
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
263533
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
263533
 
263533
 If the version you run ($0) is already up to date, please
263533
 send the following data and any information you think might be
056839
diff --git a/config.sub b/config.sub
056839
index fab0aa3..826e4c6 100755
056839
--- a/config.sub
056839
+++ b/config.sub
263533
@@ -1,10 +1,10 @@
263533
 #! /bin/sh
263533
 # Configuration validation subroutine script.
263533
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
263533
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
263533
-#   Inc.
263533
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
263533
+#   2011, 2012 Free Software Foundation, Inc.
263533
 
263533
-timestamp='2006-09-20'
263533
+timestamp='2012-10-10'
263533
 
263533
 # This file is (in principle) common to ALL GNU software.
263533
 # The presence of a machine in this file suggests that SOME GNU software
056839
@@ -21,9 +21,7 @@ timestamp='2006-09-20'
263533
 # GNU General Public License for more details.
263533
 #
263533
 # You should have received a copy of the GNU General Public License
263533
-# along with this program; if not, write to the Free Software
263533
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
263533
-# 02110-1301, USA.
263533
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
263533
 #
263533
 # As a special exception to the GNU General Public License, if you
263533
 # distribute this file as part of a program that contains a
056839
@@ -32,13 +30,16 @@ timestamp='2006-09-20'
263533
 
263533
 
263533
 # Please send patches to <config-patches@gnu.org>.  Submit a context
263533
-# diff and a properly formatted ChangeLog entry.
263533
+# diff and a properly formatted GNU ChangeLog entry.
263533
 #
263533
 # Configuration subroutine to validate and canonicalize a configuration type.
263533
 # Supply the specified configuration type as an argument.
263533
 # If it is invalid, we print an error message on stderr and exit with code 1.
263533
 # Otherwise, we print the canonical config type on stdout and succeed.
263533
 
263533
+# You can get the latest version of this script from:
263533
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
263533
+
263533
 # This file is supposed to be the same for all GNU packages
263533
 # and recognize all the CPU types, system types and aliases
263533
 # that are meaningful with *any* GNU software.
056839
@@ -72,7 +73,8 @@ Report bugs and patches to <config-patches@gnu.org>."
263533
 version="\
263533
 GNU config.sub ($timestamp)
263533
 
263533
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
263533
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
263533
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
263533
 Free Software Foundation, Inc.
263533
 
263533
 This is free software; see the source for copying conditions.  There is NO
056839
@@ -120,12 +122,18 @@ esac
263533
 # Here we must recognize all the valid KERNEL-OS combinations.
263533
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
263533
 case $maybe_os in
263533
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
263533
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
263533
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
263533
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
263533
+  knetbsd*-gnu* | netbsd*-gnu* | \
263533
+  kopensolaris*-gnu* | \
263533
   storm-chaos* | os2-emx* | rtmk-nova*)
263533
     os=-$maybe_os
263533
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
263533
     ;;
263533
+  android-linux)
263533
+    os=-linux-android
263533
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
263533
+    ;;
263533
   *)
263533
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
263533
     if [ $basic_machine != $1 ]
056839
@@ -148,10 +156,13 @@ case $os in
263533
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
263533
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
263533
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
263533
-	-apple | -axis | -knuth | -cray)
263533
+	-apple | -axis | -knuth | -cray | -microblaze*)
263533
 		os=
263533
 		basic_machine=$1
263533
 		;;
263533
+	-bluegene*)
263533
+		os=-cnk
263533
+		;;
263533
 	-sim | -cisco | -oki | -wec | -winbond)
263533
 		os=
263533
 		basic_machine=$1
056839
@@ -166,10 +177,10 @@ case $os in
263533
 		os=-chorusos
263533
 		basic_machine=$1
263533
 		;;
263533
- 	-chorusrdb)
263533
- 		os=-chorusrdb
263533
+	-chorusrdb)
263533
+		os=-chorusrdb
263533
 		basic_machine=$1
263533
- 		;;
263533
+		;;
263533
 	-hiux*)
263533
 		os=-hiuxwe2
263533
 		;;
056839
@@ -214,6 +225,12 @@ case $os in
263533
 	-isc*)
263533
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
263533
 		;;
263533
+	-lynx*178)
263533
+		os=-lynxos178
263533
+		;;
263533
+	-lynx*5)
263533
+		os=-lynxos5
263533
+		;;
263533
 	-lynx*)
263533
 		os=-lynxos
263533
 		;;
056839
@@ -238,24 +255,32 @@ case $basic_machine in
263533
 	# Some are omitted here because they have special meanings below.
263533
 	1750a | 580 \
263533
 	| a29k \
263533
+	| aarch64 | aarch64_be \
263533
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
263533
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
263533
 	| am33_2.0 \
263533
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
263533
+        | be32 | be64 \
263533
 	| bfin \
263533
 	| c4x | clipper \
263533
 	| d10v | d30v | dlx | dsp16xx \
263533
-	| fr30 | frv \
263533
+	| epiphany \
263533
+	| fido | fr30 | frv \
263533
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
263533
+	| hexagon \
263533
 	| i370 | i860 | i960 | ia64 \
263533
 	| ip2k | iq2000 \
263533
+	| le32 | le64 \
263533
+	| lm32 \
263533
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
263533
-	| maxq | mb | microblaze | mcore \
263533
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
263533
 	| mips | mipsbe | mipseb | mipsel | mipsle \
263533
 	| mips16 \
263533
 	| mips64 | mips64el \
263533
-	| mips64vr | mips64vrel \
263533
+	| mips64octeon | mips64octeonel \
263533
 	| mips64orion | mips64orionel \
263533
+	| mips64r5900 | mips64r5900el \
263533
+	| mips64vr | mips64vrel \
263533
 	| mips64vr4100 | mips64vr4100el \
263533
 	| mips64vr4300 | mips64vr4300el \
263533
 	| mips64vr5000 | mips64vr5000el \
056839
@@ -268,29 +293,42 @@ case $basic_machine in
263533
 	| mipsisa64sr71k | mipsisa64sr71kel \
263533
 	| mipstx39 | mipstx39el \
263533
 	| mn10200 | mn10300 \
263533
+	| moxie \
263533
 	| mt \
263533
 	| msp430 \
263533
+	| nds32 | nds32le | nds32be \
263533
 	| nios | nios2 \
263533
 	| ns16k | ns32k \
263533
+	| open8 \
263533
 	| or32 \
263533
 	| pdp10 | pdp11 | pj | pjl \
263533
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
263533
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
263533
 	| pyramid \
263533
+	| rl78 | rx \
263533
 	| score \
263533
-	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
263533
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
263533
 	| sh64 | sh64le \
263533
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
263533
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
263533
-	| spu | strongarm \
263533
-	| tahoe | thumb | tic4x | tic80 | tron \
263533
-	| v850 | v850e \
263533
+	| spu \
263533
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
263533
+	| ubicom32 \
263533
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
263533
 	| we32k \
263533
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
263533
-	| z8k)
263533
+	| x86 | xc16x | xstormy16 | xtensa \
263533
+	| z8k | z80)
263533
 		basic_machine=$basic_machine-unknown
263533
 		;;
263533
-	m6811 | m68hc11 | m6812 | m68hc12)
263533
-		# Motorola 68HC11/12.
263533
+	c54x)
263533
+		basic_machine=tic54x-unknown
263533
+		;;
263533
+	c55x)
263533
+		basic_machine=tic55x-unknown
263533
+		;;
263533
+	c6x)
263533
+		basic_machine=tic6x-unknown
263533
+		;;
263533
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
263533
 		basic_machine=$basic_machine-unknown
263533
 		os=-none
263533
 		;;
056839
@@ -300,6 +338,21 @@ case $basic_machine in
263533
 		basic_machine=mt-unknown
263533
 		;;
263533
 
263533
+	strongarm | thumb | xscale)
263533
+		basic_machine=arm-unknown
263533
+		;;
263533
+	xgate)
263533
+		basic_machine=$basic_machine-unknown
263533
+		os=-none
263533
+		;;
263533
+	xscaleeb)
263533
+		basic_machine=armeb-unknown
263533
+		;;
263533
+
263533
+	xscaleel)
263533
+		basic_machine=armel-unknown
263533
+		;;
263533
+
263533
 	# We use `pc' rather than `unknown'
263533
 	# because (1) that's what they normally are, and
263533
 	# (2) the word "unknown" tends to confuse beginning users.
056839
@@ -314,29 +367,37 @@ case $basic_machine in
263533
 	# Recognize the basic CPU types with company name.
263533
 	580-* \
263533
 	| a29k-* \
263533
+	| aarch64-* | aarch64_be-* \
263533
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
263533
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
263533
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
263533
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
263533
 	| avr-* | avr32-* \
263533
+	| be32-* | be64-* \
263533
 	| bfin-* | bs2000-* \
263533
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
263533
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
263533
 	| clipper-* | craynv-* | cydra-* \
263533
 	| d10v-* | d30v-* | dlx-* \
263533
 	| elxsi-* \
263533
-	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
263533
+	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
263533
 	| h8300-* | h8500-* \
263533
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
263533
+	| hexagon-* \
263533
 	| i*86-* | i860-* | i960-* | ia64-* \
263533
 	| ip2k-* | iq2000-* \
263533
+	| le32-* | le64-* \
263533
+	| lm32-* \
263533
 	| m32c-* | m32r-* | m32rle-* \
263533
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
263533
-	| m88110-* | m88k-* | maxq-* | mcore-* \
263533
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
263533
+	| microblaze-* | microblazeel-* \
263533
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
263533
 	| mips16-* \
263533
 	| mips64-* | mips64el-* \
263533
-	| mips64vr-* | mips64vrel-* \
263533
+	| mips64octeon-* | mips64octeonel-* \
263533
 	| mips64orion-* | mips64orionel-* \
263533
+	| mips64r5900-* | mips64r5900el-* \
263533
+	| mips64vr-* | mips64vrel-* \
263533
 	| mips64vr4100-* | mips64vr4100el-* \
263533
 	| mips64vr4300-* | mips64vr4300el-* \
263533
 	| mips64vr5000-* | mips64vr5000el-* \
056839
@@ -351,27 +412,36 @@ case $basic_machine in
263533
 	| mmix-* \
263533
 	| mt-* \
263533
 	| msp430-* \
263533
+	| nds32-* | nds32le-* | nds32be-* \
263533
 	| nios-* | nios2-* \
263533
 	| none-* | np1-* | ns16k-* | ns32k-* \
263533
+	| open8-* \
263533
 	| orion-* \
263533
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
263533
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
263533
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
263533
 	| pyramid-* \
263533
-	| romp-* | rs6000-* \
263533
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
263533
+	| rl78-* | romp-* | rs6000-* | rx-* \
263533
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
263533
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
263533
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
263533
 	| sparclite-* \
263533
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
263533
-	| tahoe-* | thumb-* \
263533
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
263533
+	| tahoe-* \
263533
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
263533
+	| tile*-* \
263533
 	| tron-* \
263533
-	| v850-* | v850e-* | vax-* \
263533
+	| ubicom32-* \
263533
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
263533
+	| vax-* \
263533
 	| we32k-* \
263533
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
263533
-	| xstormy16-* | xtensa-* \
263533
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
263533
+	| xstormy16-* | xtensa*-* \
263533
 	| ymp-* \
263533
-	| z8k-*)
263533
+	| z8k-* | z80-*)
263533
+		;;
263533
+	# Recognize the basic CPU types without company name, with glob match.
263533
+	xtensa*)
263533
+		basic_machine=$basic_machine-unknown
263533
 		;;
263533
 	# Recognize the various machine names and aliases which stand
263533
 	# for a CPU type and a company and sometimes even an OS.
056839
@@ -389,7 +459,7 @@ case $basic_machine in
263533
 		basic_machine=a29k-amd
263533
 		os=-udi
263533
 		;;
263533
-    	abacus)
263533
+	abacus)
263533
 		basic_machine=abacus-unknown
263533
 		;;
263533
 	adobe68k)
056839
@@ -435,6 +505,10 @@ case $basic_machine in
263533
 		basic_machine=m68k-apollo
263533
 		os=-bsd
263533
 		;;
263533
+	aros)
263533
+		basic_machine=i386-pc
263533
+		os=-aros
263533
+		;;
263533
 	aux)
263533
 		basic_machine=m68k-apple
263533
 		os=-aux
056839
@@ -443,10 +517,35 @@ case $basic_machine in
263533
 		basic_machine=ns32k-sequent
263533
 		os=-dynix
263533
 		;;
263533
+	blackfin)
263533
+		basic_machine=bfin-unknown
263533
+		os=-linux
263533
+		;;
263533
+	blackfin-*)
263533
+		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		os=-linux
263533
+		;;
263533
+	bluegene*)
263533
+		basic_machine=powerpc-ibm
263533
+		os=-cnk
263533
+		;;
263533
+	c54x-*)
263533
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		;;
263533
+	c55x-*)
263533
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		;;
263533
+	c6x-*)
263533
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		;;
263533
 	c90)
263533
 		basic_machine=c90-cray
263533
 		os=-unicos
263533
 		;;
263533
+	cegcc)
263533
+		basic_machine=arm-unknown
263533
+		os=-cegcc
263533
+		;;
263533
 	convex-c1)
263533
 		basic_machine=c1-convex
263533
 		os=-bsd
056839
@@ -475,8 +574,8 @@ case $basic_machine in
263533
 		basic_machine=craynv-cray
263533
 		os=-unicosmp
263533
 		;;
263533
-	cr16c)
263533
-		basic_machine=cr16c-unknown
263533
+	cr16 | cr16-*)
263533
+		basic_machine=cr16-unknown
263533
 		os=-elf
263533
 		;;
263533
 	crds | unos)
056839
@@ -514,6 +613,10 @@ case $basic_machine in
263533
 		basic_machine=m88k-motorola
263533
 		os=-sysv3
263533
 		;;
263533
+	dicos)
263533
+		basic_machine=i686-pc
263533
+		os=-dicos
263533
+		;;
263533
 	djgpp)
263533
 		basic_machine=i586-pc
263533
 		os=-msdosdjgpp
056839
@@ -629,7 +732,6 @@ case $basic_machine in
263533
 	i370-ibm* | ibm*)
263533
 		basic_machine=i370-ibm
263533
 		;;
263533
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
263533
 	i*86v32)
263533
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
263533
 		os=-sysv32
056839
@@ -668,6 +770,14 @@ case $basic_machine in
263533
 		basic_machine=m68k-isi
263533
 		os=-sysv
263533
 		;;
263533
+	m68knommu)
263533
+		basic_machine=m68k-unknown
263533
+		os=-linux
263533
+		;;
263533
+	m68knommu-*)
263533
+		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		os=-linux
263533
+		;;
263533
 	m88k-omron*)
263533
 		basic_machine=m88k-omron
263533
 		;;
056839
@@ -679,10 +789,21 @@ case $basic_machine in
263533
 		basic_machine=ns32k-utek
263533
 		os=-sysv
263533
 		;;
263533
+	microblaze*)
263533
+		basic_machine=microblaze-xilinx
263533
+		;;
263533
+	mingw64)
263533
+		basic_machine=x86_64-pc
263533
+		os=-mingw64
263533
+		;;
263533
 	mingw32)
263533
 		basic_machine=i386-pc
263533
 		os=-mingw32
263533
 		;;
263533
+	mingw32ce)
263533
+		basic_machine=arm-unknown
263533
+		os=-mingw32ce
263533
+		;;
263533
 	miniframe)
263533
 		basic_machine=m68000-convergent
263533
 		;;
056839
@@ -711,10 +832,18 @@ case $basic_machine in
263533
 	ms1-*)
263533
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
263533
 		;;
263533
+	msys)
263533
+		basic_machine=i386-pc
263533
+		os=-msys
263533
+		;;
263533
 	mvs)
263533
 		basic_machine=i370-ibm
263533
 		os=-mvs
263533
 		;;
263533
+	nacl)
263533
+		basic_machine=le32-unknown
263533
+		os=-nacl
263533
+		;;
263533
 	ncr3000)
263533
 		basic_machine=i486-ncr
263533
 		os=-sysv4
056839
@@ -779,6 +908,12 @@ case $basic_machine in
263533
 	np1)
263533
 		basic_machine=np1-gould
263533
 		;;
263533
+	neo-tandem)
263533
+		basic_machine=neo-tandem
263533
+		;;
263533
+	nse-tandem)
263533
+		basic_machine=nse-tandem
263533
+		;;
263533
 	nsr-tandem)
263533
 		basic_machine=nsr-tandem
263533
 		;;
056839
@@ -809,6 +944,14 @@ case $basic_machine in
263533
 		basic_machine=i860-intel
263533
 		os=-osf
263533
 		;;
263533
+	parisc)
263533
+		basic_machine=hppa-unknown
263533
+		os=-linux
263533
+		;;
263533
+	parisc-*)
263533
+		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		os=-linux
263533
+		;;
263533
 	pbd)
263533
 		basic_machine=sparc-tti
263533
 		;;
056839
@@ -853,9 +996,10 @@ case $basic_machine in
263533
 		;;
263533
 	power)	basic_machine=power-ibm
263533
 		;;
263533
-	ppc)	basic_machine=powerpc-unknown
263533
+	ppc | ppcbe)	basic_machine=powerpc-unknown
263533
 		;;
263533
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+	ppc-* | ppcbe-*)
263533
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
 		;;
263533
 	ppcle | powerpclittle | ppc-le | powerpc-little)
263533
 		basic_machine=powerpcle-unknown
056839
@@ -925,6 +1069,9 @@ case $basic_machine in
263533
 		basic_machine=sh-hitachi
263533
 		os=-hms
263533
 		;;
263533
+	sh5el)
263533
+		basic_machine=sh5le-unknown
263533
+		;;
263533
 	sh64)
263533
 		basic_machine=sh64-unknown
263533
 		;;
056839
@@ -946,6 +1093,9 @@ case $basic_machine in
263533
 		basic_machine=i860-stratus
263533
 		os=-sysv4
263533
 		;;
263533
+	strongarm-* | thumb-*)
263533
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
263533
+		;;
263533
 	sun2)
263533
 		basic_machine=m68000-sun
263533
 		;;
056839
@@ -1002,17 +1152,9 @@ case $basic_machine in
263533
 		basic_machine=t90-cray
263533
 		os=-unicos
263533
 		;;
263533
-	tic54x | c54x*)
263533
-		basic_machine=tic54x-unknown
263533
-		os=-coff
263533
-		;;
263533
-	tic55x | c55x*)
263533
-		basic_machine=tic55x-unknown
263533
-		os=-coff
263533
-		;;
263533
-	tic6x | c6x*)
263533
-		basic_machine=tic6x-unknown
263533
-		os=-coff
263533
+	tile*)
263533
+		basic_machine=$basic_machine-unknown
263533
+		os=-linux-gnu
263533
 		;;
263533
 	tx39)
263533
 		basic_machine=mipstx39-unknown
056839
@@ -1081,6 +1223,9 @@ case $basic_machine in
263533
 	xps | xps100)
263533
 		basic_machine=xps100-honeywell
263533
 		;;
263533
+	xscale-* | xscalee[bl]-*)
263533
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
263533
+		;;
263533
 	ymp)
263533
 		basic_machine=ymp-cray
263533
 		os=-unicos
056839
@@ -1089,6 +1234,10 @@ case $basic_machine in
263533
 		basic_machine=z8k-unknown
263533
 		os=-sim
263533
 		;;
263533
+	z80-*-coff)
263533
+		basic_machine=z80-unknown
263533
+		os=-sim
263533
+		;;
263533
 	none)
263533
 		basic_machine=none-none
263533
 		os=-none
056839
@@ -1127,7 +1276,7 @@ case $basic_machine in
263533
 	we32k)
263533
 		basic_machine=we32k-att
263533
 		;;
263533
-	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
263533
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
263533
 		basic_machine=sh-unknown
263533
 		;;
263533
 	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
056839
@@ -1174,9 +1323,12 @@ esac
263533
 if [ x"$os" != x"" ]
263533
 then
263533
 case $os in
263533
-        # First match some system type aliases
263533
-        # that might get confused with valid system types.
263533
+	# First match some system type aliases
263533
+	# that might get confused with valid system types.
263533
 	# -solaris* is a basic system type, with this one exception.
263533
+	-auroraux)
263533
+		os=-auroraux
263533
+		;;
263533
 	-solaris1 | -solaris1.*)
263533
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
263533
 		;;
056839
@@ -1197,21 +1349,23 @@ case $os in
263533
 	# Each alternative MUST END IN A *, to match a version number.
263533
 	# -sysv* is not here because it comes later, after sysvr4.
263533
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
263533
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
263533
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
263533
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
263533
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
263533
+	      | -sym* | -kopensolaris* \
263533
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
263533
-	      | -aos* \
263533
+	      | -aos* | -aros* \
263533
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
263533
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
263533
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
263533
-	      | -openbsd* | -solidbsd* \
263533
+	      | -bitrig* | -openbsd* | -solidbsd* \
263533
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
263533
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
263533
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
263533
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
263533
-	      | -chorusos* | -chorusrdb* \
263533
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
263533
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
263533
+	      | -chorusos* | -chorusrdb* | -cegcc* \
263533
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
263533
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
263533
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
263533
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
263533
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
263533
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
056839
@@ -1219,7 +1373,7 @@ case $os in
263533
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
263533
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
263533
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
263533
-	      | -skyos* | -haiku* | -rdos* | -toppers*)
263533
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
263533
 	# Remember, each alternative MUST END IN *, to match a version number.
263533
 		;;
263533
 	-qnx*)
056839
@@ -1258,7 +1412,7 @@ case $os in
263533
 	-opened*)
263533
 		os=-openedition
263533
 		;;
263533
-        -os400*)
263533
+	-os400*)
263533
 		os=-os400
263533
 		;;
263533
 	-wince*)
056839
@@ -1307,7 +1461,7 @@ case $os in
263533
 	-sinix*)
263533
 		os=-sysv4
263533
 		;;
263533
-        -tpf*)
263533
+	-tpf*)
263533
 		os=-tpf
263533
 		;;
263533
 	-triton*)
056839
@@ -1349,6 +1503,11 @@ case $os in
263533
 	-zvmoe)
263533
 		os=-zvmoe
263533
 		;;
263533
+	-dicos*)
263533
+		os=-dicos
263533
+		;;
263533
+	-nacl*)
263533
+		;;
263533
 	-none)
263533
 		;;
263533
 	*)
056839
@@ -1371,10 +1530,10 @@ else
263533
 # system, and we'll never get to this point.
263533
 
263533
 case $basic_machine in
263533
-        score-*)
263533
+	score-*)
263533
 		os=-elf
263533
 		;;
263533
-        spu-*)
263533
+	spu-*)
263533
 		os=-elf
263533
 		;;
263533
 	*-acorn)
056839
@@ -1386,8 +1545,20 @@ case $basic_machine in
263533
 	arm*-semi)
263533
 		os=-aout
263533
 		;;
263533
-        c4x-* | tic4x-*)
263533
-        	os=-coff
263533
+	c4x-* | tic4x-*)
263533
+		os=-coff
263533
+		;;
263533
+	hexagon-*)
263533
+		os=-elf
263533
+		;;
263533
+	tic54x-*)
263533
+		os=-coff
263533
+		;;
263533
+	tic55x-*)
263533
+		os=-coff
263533
+		;;
263533
+	tic6x-*)
263533
+		os=-coff
263533
 		;;
263533
 	# This must come before the *-dec entry.
263533
 	pdp10-*)
056839
@@ -1407,13 +1578,13 @@ case $basic_machine in
263533
 		;;
263533
 	m68000-sun)
263533
 		os=-sunos3
263533
-		# This also exists in the configure program, but was not the
263533
-		# default.
263533
-		# os=-sunos4
263533
 		;;
263533
 	m68*-cisco)
263533
 		os=-aout
263533
 		;;
263533
+	mep-*)
263533
+		os=-elf
263533
+		;;
263533
 	mips*-cisco)
263533
 		os=-elf
263533
 		;;
056839
@@ -1438,7 +1609,7 @@ case $basic_machine in
263533
 	*-ibm)
263533
 		os=-aix
263533
 		;;
263533
-    	*-knuth)
263533
+	*-knuth)
263533
 		os=-mmixware
263533
 		;;
263533
 	*-wec)
056839
@@ -1543,7 +1714,7 @@ case $basic_machine in
263533
 			-sunos*)
263533
 				vendor=sun
263533
 				;;
263533
-			-aix*)
263533
+			-cnk*|-aix*)
263533
 				vendor=ibm
263533
 				;;
263533
 			-beos*)
056839
-- 
056839
2.31.1
056839