vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Petr Lautrbach df630e
diff --git a/config.guess b/config.guess
Petr Lautrbach df630e
index 78553c4..b94cde8 100755
Petr Lautrbach df630e
--- a/config.guess
Petr Lautrbach df630e
+++ b/config.guess
Petr Lautrbach df630e
@@ -2,9 +2,9 @@
Petr Lautrbach 894ab5
 # Attempt to guess a canonical system name.
Petr Lautrbach df630e
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
Petr Lautrbach df630e
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
Petr Lautrbach 894ab5
-#   2011 Free Software Foundation, Inc.
Petr Lautrbach df630e
+#   2011, 2012, 2013 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-timestamp='2011-01-23'
Petr Lautrbach df630e
+timestamp='2012-12-23'
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 # This file is free software; you can redistribute it and/or modify it
Petr Lautrbach 894ab5
 # under the terms of the GNU General Public License as published by
Petr Lautrbach df630e
@@ -17,9 +17,7 @@ timestamp='2011-01-23'
Petr Lautrbach 894ab5
 # General Public License for more details.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # You should have received a copy of the GNU General Public License
Petr Lautrbach 894ab5
-# along with this program; if not, write to the Free Software
Petr Lautrbach 894ab5
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
Petr Lautrbach 894ab5
-# 02110-1301, USA.
Petr Lautrbach 894ab5
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # As a special exception to the GNU General Public License, if you
Petr Lautrbach 894ab5
 # distribute this file as part of a program that contains a
Petr Lautrbach df630e
@@ -57,8 +55,8 @@ GNU config.guess ($timestamp)
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 Originally written by Per Bothner.
Petr Lautrbach df630e
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
Petr Lautrbach 894ab5
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
Petr Lautrbach 894ab5
-Software Foundation, Inc.
Petr Lautrbach df630e
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
Petr Lautrbach df630e
+2012, 2013 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 This is free software; see the source for copying conditions.  There is NO
Petr Lautrbach 894ab5
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Petr Lautrbach df630e
@@ -145,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
Petr Lautrbach 894ab5
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
     *:NetBSD:*:*)
Petr Lautrbach 894ab5
 	# NetBSD (nbsd) targets should (where applicable) match one or
Petr Lautrbach 894ab5
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
Petr Lautrbach 894ab5
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
Petr Lautrbach 894ab5
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
Petr Lautrbach 894ab5
 	# switched to ELF, *-*-netbsd* would select the old
Petr Lautrbach 894ab5
 	# object file format.  This provides both forward
Petr Lautrbach df630e
@@ -181,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
 		fi
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	    *)
Petr Lautrbach 894ab5
-	        os=netbsd
Petr Lautrbach 894ab5
+		os=netbsd
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	esac
Petr Lautrbach 894ab5
 	# The OS release
Petr Lautrbach df630e
@@ -202,6 +200,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
Petr Lautrbach 894ab5
 	echo "${machine}-${os}${release}"
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    *:Bitrig:*:*)
Petr Lautrbach 894ab5
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     *:OpenBSD:*:*)
Petr Lautrbach 894ab5
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
Petr Lautrbach df630e
@@ -224,7 +226,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	*5.*)
Petr Lautrbach 894ab5
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
Petr Lautrbach 894ab5
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	esac
Petr Lautrbach 894ab5
 	# According to Compaq, /usr/sbin/psrinfo has been available on
Petr Lautrbach df630e
@@ -299,12 +301,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
 	echo s390-ibm-zvmoe
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     *:OS400:*:*)
Petr Lautrbach 894ab5
-        echo powerpc-ibm-os400
Petr Lautrbach 894ab5
+	echo powerpc-ibm-os400
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
Petr Lautrbach 894ab5
 	echo arm-acorn-riscix${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
-    arm:riscos:*:*|arm:RISCOS:*:*)
Petr Lautrbach 894ab5
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
Petr Lautrbach 894ab5
 	echo arm-unknown-riscos
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
Petr Lautrbach df630e
@@ -398,23 +400,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Petr Lautrbach 894ab5
     # MiNT.  But MiNT is downward compatible to TOS, so this should
Petr Lautrbach 894ab5
     # be no problem.
Petr Lautrbach 894ab5
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
Petr Lautrbach 894ab5
-        echo m68k-atari-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	echo m68k-atari-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
Petr Lautrbach 894ab5
 	echo m68k-atari-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
Petr Lautrbach 894ab5
-        echo m68k-atari-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	echo m68k-atari-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
Petr Lautrbach 894ab5
-        echo m68k-milan-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	echo m68k-milan-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
Petr Lautrbach 894ab5
-        echo m68k-hades-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	echo m68k-hades-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
Petr Lautrbach 894ab5
-        echo m68k-unknown-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	echo m68k-unknown-mint${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     m68k:machten:*:*)
Petr Lautrbach 894ab5
 	echo m68k-apple-machten${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -484,8 +486,8 @@ EOF
Petr Lautrbach 894ab5
 	echo m88k-motorola-sysv3
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     AViiON:dgux:*:*)
Petr Lautrbach 894ab5
-        # DG/UX returns AViiON for all architectures
Petr Lautrbach 894ab5
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
Petr Lautrbach 894ab5
+	# DG/UX returns AViiON for all architectures
Petr Lautrbach 894ab5
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
Petr Lautrbach 894ab5
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
Petr Lautrbach 894ab5
 	then
Petr Lautrbach 894ab5
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
Petr Lautrbach df630e
@@ -498,7 +500,7 @@ EOF
Petr Lautrbach 894ab5
 	else
Petr Lautrbach 894ab5
 	    echo i586-dg-dgux${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
- 	exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
Petr Lautrbach 894ab5
 	echo m88k-dolphin-sysv3
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -598,52 +600,52 @@ EOF
Petr Lautrbach 894ab5
 	    9000/[678][0-9][0-9])
Petr Lautrbach 894ab5
 		if [ -x /usr/bin/getconf ]; then
Petr Lautrbach 894ab5
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
Petr Lautrbach 894ab5
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
Petr Lautrbach 894ab5
-                    case "${sc_cpu_version}" in
Petr Lautrbach 894ab5
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
Petr Lautrbach 894ab5
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
Petr Lautrbach 894ab5
-                      532)                      # CPU_PA_RISC2_0
Petr Lautrbach 894ab5
-                        case "${sc_kernel_bits}" in
Petr Lautrbach 894ab5
-                          32) HP_ARCH="hppa2.0n" ;;
Petr Lautrbach 894ab5
-                          64) HP_ARCH="hppa2.0w" ;;
Petr Lautrbach 894ab5
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
Petr Lautrbach 894ab5
+		    case "${sc_cpu_version}" in
Petr Lautrbach 894ab5
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
Petr Lautrbach 894ab5
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
Petr Lautrbach 894ab5
+		      532)                      # CPU_PA_RISC2_0
Petr Lautrbach 894ab5
+			case "${sc_kernel_bits}" in
Petr Lautrbach 894ab5
+			  32) HP_ARCH="hppa2.0n" ;;
Petr Lautrbach 894ab5
+			  64) HP_ARCH="hppa2.0w" ;;
Petr Lautrbach 894ab5
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
Petr Lautrbach 894ab5
-                        esac ;;
Petr Lautrbach 894ab5
-                    esac
Petr Lautrbach 894ab5
+			esac ;;
Petr Lautrbach 894ab5
+		    esac
Petr Lautrbach 894ab5
 		fi
Petr Lautrbach 894ab5
 		if [ "${HP_ARCH}" = "" ]; then
Petr Lautrbach 894ab5
 		    eval $set_cc_for_build
Petr Lautrbach 894ab5
-		    sed 's/^              //' << EOF >$dummy.c
Petr Lautrbach 894ab5
+		    sed 's/^		//' << EOF >$dummy.c
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-              #define _HPUX_SOURCE
Petr Lautrbach 894ab5
-              #include <stdlib.h>
Petr Lautrbach 894ab5
-              #include <unistd.h>
Petr Lautrbach df630e
+		#define _HPUX_SOURCE
Petr Lautrbach df630e
+		#include <stdlib.h>
Petr Lautrbach df630e
+		#include <unistd.h>
Petr Lautrbach df630e
 
Petr Lautrbach 894ab5
-              int main ()
Petr Lautrbach 894ab5
-              {
Petr Lautrbach 894ab5
-              #if defined(_SC_KERNEL_BITS)
Petr Lautrbach 894ab5
-                  long bits = sysconf(_SC_KERNEL_BITS);
Petr Lautrbach 894ab5
-              #endif
Petr Lautrbach 894ab5
-                  long cpu  = sysconf (_SC_CPU_VERSION);
Petr Lautrbach df630e
+		int main ()
Petr Lautrbach df630e
+		{
Petr Lautrbach df630e
+		#if defined(_SC_KERNEL_BITS)
Petr Lautrbach df630e
+		    long bits = sysconf(_SC_KERNEL_BITS);
Petr Lautrbach df630e
+		#endif
Petr Lautrbach df630e
+		    long cpu  = sysconf (_SC_CPU_VERSION);
Petr Lautrbach df630e
 
Petr Lautrbach 894ab5
-                  switch (cpu)
Petr Lautrbach 894ab5
-              	{
Petr Lautrbach 894ab5
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
Petr Lautrbach 894ab5
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
Petr Lautrbach 894ab5
-              	case CPU_PA_RISC2_0:
Petr Lautrbach 894ab5
-              #if defined(_SC_KERNEL_BITS)
Petr Lautrbach 894ab5
-              	    switch (bits)
Petr Lautrbach 894ab5
-              		{
Petr Lautrbach 894ab5
-              		case 64: puts ("hppa2.0w"); break;
Petr Lautrbach 894ab5
-              		case 32: puts ("hppa2.0n"); break;
Petr Lautrbach 894ab5
-              		default: puts ("hppa2.0"); break;
Petr Lautrbach 894ab5
-              		} break;
Petr Lautrbach 894ab5
-              #else  /* !defined(_SC_KERNEL_BITS) */
Petr Lautrbach 894ab5
-              	    puts ("hppa2.0"); break;
Petr Lautrbach 894ab5
-              #endif
Petr Lautrbach 894ab5
-              	default: puts ("hppa1.0"); break;
Petr Lautrbach 894ab5
-              	}
Petr Lautrbach 894ab5
-                  exit (0);
Petr Lautrbach 894ab5
-              }
Petr Lautrbach 894ab5
+		    switch (cpu)
Petr Lautrbach 894ab5
+			{
Petr Lautrbach 894ab5
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
Petr Lautrbach 894ab5
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
Petr Lautrbach 894ab5
+			case CPU_PA_RISC2_0:
Petr Lautrbach 894ab5
+		#if defined(_SC_KERNEL_BITS)
Petr Lautrbach 894ab5
+			    switch (bits)
Petr Lautrbach 894ab5
+				{
Petr Lautrbach 894ab5
+				case 64: puts ("hppa2.0w"); break;
Petr Lautrbach 894ab5
+				case 32: puts ("hppa2.0n"); break;
Petr Lautrbach 894ab5
+				default: puts ("hppa2.0"); break;
Petr Lautrbach 894ab5
+				} break;
Petr Lautrbach 894ab5
+		#else  /* !defined(_SC_KERNEL_BITS) */
Petr Lautrbach 894ab5
+			    puts ("hppa2.0"); break;
Petr Lautrbach 894ab5
+		#endif
Petr Lautrbach 894ab5
+			default: puts ("hppa1.0"); break;
Petr Lautrbach 894ab5
+			}
Petr Lautrbach 894ab5
+		    exit (0);
Petr Lautrbach 894ab5
+		}
Petr Lautrbach 894ab5
 EOF
Petr Lautrbach 894ab5
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
Petr Lautrbach 894ab5
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
Petr Lautrbach df630e
@@ -734,22 +736,22 @@ EOF
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
Petr Lautrbach 894ab5
 	echo c1-convex-bsd
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
Petr Lautrbach 894ab5
 	if getsysinfo -f scalar_acc
Petr Lautrbach 894ab5
 	then echo c32-convex-bsd
Petr Lautrbach 894ab5
 	else echo c2-convex-bsd
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
Petr Lautrbach 894ab5
 	echo c34-convex-bsd
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
Petr Lautrbach 894ab5
 	echo c38-convex-bsd
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
Petr Lautrbach 894ab5
 	echo c4-convex-bsd
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     CRAY*Y-MP:*:*:*)
Petr Lautrbach 894ab5
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -773,14 +775,14 @@ EOF
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
Petr Lautrbach 894ab5
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
Petr Lautrbach 894ab5
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Petr Lautrbach 894ab5
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
Petr Lautrbach 894ab5
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Petr Lautrbach 894ab5
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
Petr Lautrbach 894ab5
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     5000:UNIX_System_V:4.*:*)
Petr Lautrbach 894ab5
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Petr Lautrbach 894ab5
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
Petr Lautrbach 894ab5
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Petr Lautrbach 894ab5
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
Petr Lautrbach 894ab5
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
Petr Lautrbach 894ab5
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
Petr Lautrbach df630e
@@ -792,30 +794,35 @@ EOF
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     *:FreeBSD:*:*)
Petr Lautrbach 894ab5
-	case ${UNAME_MACHINE} in
Petr Lautrbach 894ab5
-	    pc98)
Petr Lautrbach 894ab5
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Petr Lautrbach 894ab5
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
Petr Lautrbach 894ab5
+	case ${UNAME_PROCESSOR} in
Petr Lautrbach 894ab5
 	    amd64)
Petr Lautrbach 894ab5
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Petr Lautrbach 894ab5
 	    *)
Petr Lautrbach 894ab5
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Petr Lautrbach 894ab5
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
Petr Lautrbach 894ab5
 	esac
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*:CYGWIN*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-cygwin
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    *:MINGW64*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-pc-mingw64
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     *:MINGW*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-mingw32
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    i*:MSYS*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-pc-msys
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     i*:windows32*:*)
Petr Lautrbach 894ab5
-    	# uname -m includes "-pc" on this system.
Petr Lautrbach 894ab5
-    	echo ${UNAME_MACHINE}-mingw32
Petr Lautrbach 894ab5
+	# uname -m includes "-pc" on this system.
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-mingw32
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*:PW*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-pw32
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     *:Interix*:*)
Petr Lautrbach 894ab5
-    	case ${UNAME_MACHINE} in
Petr Lautrbach 894ab5
+	case ${UNAME_MACHINE} in
Petr Lautrbach 894ab5
 	    x86)
Petr Lautrbach 894ab5
 		echo i586-pc-interix${UNAME_RELEASE}
Petr Lautrbach 894ab5
 		exit ;;
Petr Lautrbach df630e
@@ -861,6 +868,13 @@ EOF
Petr Lautrbach 894ab5
     i*86:Minix:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-minix
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    aarch64:Linux:*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
+    aarch64_be:Linux:*:*)
Petr Lautrbach 894ab5
+	UNAME_MACHINE=aarch64_be
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     alpha:Linux:*:*)
Petr Lautrbach 894ab5
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
Petr Lautrbach 894ab5
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
Petr Lautrbach df630e
@@ -870,7 +884,7 @@ EOF
Petr Lautrbach 894ab5
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
Petr Lautrbach 894ab5
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
Petr Lautrbach 894ab5
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
Petr Lautrbach 894ab5
-        esac
Petr Lautrbach 894ab5
+	esac
Petr Lautrbach 894ab5
 	objdump --private-headers /bin/sh | grep -q ld.so.1
Petr Lautrbach 894ab5
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
Petr Lautrbach df630e
@@ -882,20 +896,29 @@ EOF
Petr Lautrbach 894ab5
 	then
Petr Lautrbach 894ab5
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	else
Petr Lautrbach 894ab5
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
Petr Lautrbach 894ab5
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
Petr Lautrbach 894ab5
+		| grep -q __ARM_PCS_VFP
Petr Lautrbach 894ab5
+	    then
Petr Lautrbach 894ab5
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
Petr Lautrbach 894ab5
+	    else
Petr Lautrbach 894ab5
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
Petr Lautrbach 894ab5
+	    fi
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     avr32*:Linux:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     cris:Linux:*:*)
Petr Lautrbach 894ab5
-	echo cris-axis-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-axis-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     crisv32:Linux:*:*)
Petr Lautrbach 894ab5
-	echo crisv32-axis-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-axis-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     frv:Linux:*:*)
Petr Lautrbach 894ab5
-    	echo frv-unknown-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
+    hexagon:Linux:*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:Linux:*:*)
Petr Lautrbach 894ab5
 	LIBC=gnu
Petr Lautrbach df630e
@@ -937,7 +960,7 @@ EOF
Petr Lautrbach 894ab5
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
Petr Lautrbach 894ab5
 	;;
Petr Lautrbach 894ab5
     or32:Linux:*:*)
Petr Lautrbach 894ab5
-	echo or32-unknown-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     padre:Linux:*:*)
Petr Lautrbach 894ab5
 	echo sparc-unknown-linux-gnu
Petr Lautrbach df630e
@@ -963,7 +986,7 @@ EOF
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-ibm-linux
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     sh64*:Linux:*:*)
Petr Lautrbach 894ab5
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     sh*:Linux:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach df630e
@@ -972,16 +995,16 @@ EOF
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     tile*:Linux:*:*)
Petr Lautrbach 894ab5
-	echo ${UNAME_MACHINE}-tilera-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     vax:Linux:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-dec-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     x86_64:Linux:*:*)
Petr Lautrbach 894ab5
-	echo x86_64-unknown-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     xtensa*:Linux:*:*)
Petr Lautrbach 894ab5
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:DYNIX/ptx:4*:*)
Petr Lautrbach 894ab5
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
Petr Lautrbach df630e
@@ -990,11 +1013,11 @@ EOF
Petr Lautrbach 894ab5
 	echo i386-sequent-sysv4
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:UNIX_SV:4.2MP:2.*)
Petr Lautrbach 894ab5
-        # Unixware is an offshoot of SVR4, but it has its own version
Petr Lautrbach 894ab5
-        # number series starting with 2...
Petr Lautrbach 894ab5
-        # I am not positive that other SVR4 systems won't match this,
Petr Lautrbach 894ab5
+	# Unixware is an offshoot of SVR4, but it has its own version
Petr Lautrbach 894ab5
+	# number series starting with 2...
Petr Lautrbach 894ab5
+	# I am not positive that other SVR4 systems won't match this,
Petr Lautrbach 894ab5
 	# I just have to hope.  -- rms.
Petr Lautrbach 894ab5
-        # Use sysv4.2uw... so that sysv4* matches it.
Petr Lautrbach 894ab5
+	# Use sysv4.2uw... so that sysv4* matches it.
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:OS/2:*:*)
Petr Lautrbach df630e
@@ -1026,7 +1049,7 @@ EOF
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     i*86:*:5:[678]*)
Petr Lautrbach 894ab5
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
Petr Lautrbach 894ab5
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
Petr Lautrbach 894ab5
 	case `/bin/uname -X | grep "^Machine"` in
Petr Lautrbach 894ab5
 	    *486*)	     UNAME_MACHINE=i486 ;;
Petr Lautrbach 894ab5
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
Petr Lautrbach df630e
@@ -1054,13 +1077,13 @@ EOF
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     pc:*:*:*)
Petr Lautrbach 894ab5
 	# Left here for compatibility:
Petr Lautrbach 894ab5
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
Petr Lautrbach 894ab5
-        # the processor, so we play safe by assuming i586.
Petr Lautrbach 894ab5
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
Petr Lautrbach 894ab5
+	# the processor, so we play safe by assuming i586.
Petr Lautrbach 894ab5
 	# Note: whatever this is, it MUST be the same as what config.sub
Petr Lautrbach 894ab5
 	# prints for the "djgpp" host, or else GDB configury will decide that
Petr Lautrbach 894ab5
 	# this is a cross-build.
Petr Lautrbach 894ab5
 	echo i586-pc-msdosdjgpp
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     Intel:Mach:3*:*)
Petr Lautrbach 894ab5
 	echo i386-pc-mach3
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -1095,8 +1118,8 @@ EOF
Petr Lautrbach 894ab5
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
Petr Lautrbach 894ab5
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
Petr Lautrbach 894ab5
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
Petr Lautrbach 894ab5
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Petr Lautrbach 894ab5
-          && { echo i486-ncr-sysv4; exit; } ;;
Petr Lautrbach 894ab5
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Petr Lautrbach 894ab5
+	  && { echo i486-ncr-sysv4; exit; } ;;
Petr Lautrbach 894ab5
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
Petr Lautrbach 894ab5
 	OS_REL='.3'
Petr Lautrbach 894ab5
 	test -r /etc/.relid \
Petr Lautrbach df630e
@@ -1139,10 +1162,10 @@ EOF
Petr Lautrbach 894ab5
 		echo ns32k-sni-sysv
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
Petr Lautrbach 894ab5
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
Petr Lautrbach 894ab5
-        echo i586-unisys-sysv4
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
Petr Lautrbach 894ab5
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
Petr Lautrbach 894ab5
+	echo i586-unisys-sysv4
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     *:UNIX_System_V:4*:FTX*)
Petr Lautrbach 894ab5
 	# From Gerald Hewes <hewes@openmarket.com>.
Petr Lautrbach 894ab5
 	# How about differentiating between stratus architectures? -djm
Petr Lautrbach df630e
@@ -1168,11 +1191,11 @@ EOF
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
Petr Lautrbach 894ab5
 	if [ -d /usr/nec ]; then
Petr Lautrbach 894ab5
-	        echo mips-nec-sysv${UNAME_RELEASE}
Petr Lautrbach 894ab5
+		echo mips-nec-sysv${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	else
Petr Lautrbach 894ab5
-	        echo mips-unknown-sysv${UNAME_RELEASE}
Petr Lautrbach 894ab5
+		echo mips-unknown-sysv${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	fi
Petr Lautrbach 894ab5
-        exit ;;
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
Petr Lautrbach 894ab5
 	echo powerpc-be-beos
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -1185,6 +1208,9 @@ EOF
Petr Lautrbach 894ab5
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
Petr Lautrbach 894ab5
 	echo i586-pc-haiku
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    x86_64:Haiku:*:*)
Petr Lautrbach 894ab5
+	echo x86_64-unknown-haiku
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
     SX-4:SUPER-UX:*:*)
Petr Lautrbach 894ab5
 	echo sx4-nec-superux${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach df630e
@@ -1240,7 +1266,7 @@ EOF
Petr Lautrbach 894ab5
     NEO-?:NONSTOP_KERNEL:*:*)
Petr Lautrbach 894ab5
 	echo neo-tandem-nsk${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
-    NSE-?:NONSTOP_KERNEL:*:*)
Petr Lautrbach 894ab5
+    NSE-*:NONSTOP_KERNEL:*:*)
Petr Lautrbach 894ab5
 	echo nse-tandem-nsk${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     NSR-?:NONSTOP_KERNEL:*:*)
Petr Lautrbach df630e
@@ -1285,13 +1311,13 @@ EOF
Petr Lautrbach 894ab5
 	echo pdp10-unknown-its
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     SEI:*:*:SEIUX)
Petr Lautrbach 894ab5
-        echo mips-sei-seiux${UNAME_RELEASE}
Petr Lautrbach 894ab5
+	echo mips-sei-seiux${UNAME_RELEASE}
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     *:DragonFly:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
     *:*VMS:*:*)
Petr Lautrbach 894ab5
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
Petr Lautrbach 894ab5
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
Petr Lautrbach 894ab5
 	case "${UNAME_MACHINE}" in
Petr Lautrbach 894ab5
 	    A*) echo alpha-dec-vms ; exit ;;
Petr Lautrbach 894ab5
 	    I*) echo ia64-dec-vms ; exit ;;
Petr Lautrbach df630e
@@ -1309,11 +1335,11 @@ EOF
Petr Lautrbach 894ab5
     i*86:AROS:*:*)
Petr Lautrbach 894ab5
 	echo ${UNAME_MACHINE}-pc-aros
Petr Lautrbach 894ab5
 	exit ;;
Petr Lautrbach 894ab5
+    x86_64:VMkernel:*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-esx
Petr Lautrbach 894ab5
+	exit ;;
Petr Lautrbach 894ab5
 esac
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-#echo '(No uname command or uname output not recognized.)' 1>&2
Petr Lautrbach 894ab5
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
Petr Lautrbach 894ab5
-
Petr Lautrbach 894ab5
 eval $set_cc_for_build
Petr Lautrbach 894ab5
 cat >$dummy.c <
Petr Lautrbach 894ab5
 #ifdef _SEQUENT_
Petr Lautrbach df630e
@@ -1331,11 +1357,11 @@ main ()
Petr Lautrbach 894ab5
 #include <sys/param.h>
Petr Lautrbach 894ab5
   printf ("m68k-sony-newsos%s\n",
Petr Lautrbach 894ab5
 #ifdef NEWSOS4
Petr Lautrbach 894ab5
-          "4"
Petr Lautrbach 894ab5
+	"4"
Petr Lautrbach 894ab5
 #else
Petr Lautrbach 894ab5
-	  ""
Petr Lautrbach 894ab5
+	""
Petr Lautrbach 894ab5
 #endif
Petr Lautrbach 894ab5
-         ); exit (0);
Petr Lautrbach 894ab5
+	); exit (0);
Petr Lautrbach 894ab5
 #endif
Petr Lautrbach 894ab5
 #endif
Petr Lautrbach 894ab5
 
Petr Lautrbach df630e
diff --git a/config.sub b/config.sub
Petr Lautrbach df630e
index 2d81696..eee8dcc 100755
Petr Lautrbach df630e
--- a/config.sub
Petr Lautrbach df630e
+++ b/config.sub
Petr Lautrbach df630e
@@ -2,9 +2,9 @@
Petr Lautrbach 894ab5
 # Configuration validation subroutine script.
Petr Lautrbach df630e
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
Petr Lautrbach df630e
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
Petr Lautrbach 894ab5
-#   2011 Free Software Foundation, Inc.
Petr Lautrbach df630e
+#   2011, 2012, 2013 Free Software Foundation, Inc.
Petr Lautrbach df630e
 
Petr Lautrbach 894ab5
-timestamp='2011-01-01'
Petr Lautrbach df630e
+timestamp='2012-12-23'
Petr Lautrbach df630e
 
Petr Lautrbach df630e
 # This file is (in principle) common to ALL GNU software.
Petr Lautrbach df630e
 # The presence of a machine in this file suggests that SOME GNU software
Petr Lautrbach df630e
@@ -21,9 +21,7 @@ timestamp='2011-01-01'
Petr Lautrbach df630e
 # GNU General Public License for more details.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # You should have received a copy of the GNU General Public License
Petr Lautrbach 894ab5
-# along with this program; if not, write to the Free Software
Petr Lautrbach 894ab5
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
Petr Lautrbach 894ab5
-# 02110-1301, USA.
Petr Lautrbach 894ab5
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # As a special exception to the GNU General Public License, if you
Petr Lautrbach 894ab5
 # distribute this file as part of a program that contains a
Petr Lautrbach df630e
@@ -76,8 +74,8 @@ version="\
Petr Lautrbach 894ab5
 GNU config.sub ($timestamp)
Petr Lautrbach 894ab5
 
Petr Lautrbach df630e
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
Petr Lautrbach 894ab5
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Petr Lautrbach 894ab5
-Software Foundation, Inc.
Petr Lautrbach df630e
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
Petr Lautrbach df630e
+2012, 2013 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 This is free software; see the source for copying conditions.  There is NO
Petr Lautrbach 894ab5
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Petr Lautrbach df630e
@@ -125,13 +123,17 @@ esac
Petr Lautrbach 894ab5
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
Petr Lautrbach 894ab5
 case $maybe_os in
Petr Lautrbach 894ab5
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
Petr Lautrbach 894ab5
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
Petr Lautrbach 894ab5
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
Petr Lautrbach 894ab5
   knetbsd*-gnu* | netbsd*-gnu* | \
Petr Lautrbach 894ab5
   kopensolaris*-gnu* | \
Petr Lautrbach 894ab5
   storm-chaos* | os2-emx* | rtmk-nova*)
Petr Lautrbach 894ab5
     os=-$maybe_os
Petr Lautrbach 894ab5
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
Petr Lautrbach 894ab5
     ;;
Petr Lautrbach 894ab5
+  android-linux)
Petr Lautrbach 894ab5
+    os=-linux-android
Petr Lautrbach 894ab5
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
Petr Lautrbach 894ab5
+    ;;
Petr Lautrbach 894ab5
   *)
Petr Lautrbach 894ab5
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
Petr Lautrbach 894ab5
     if [ $basic_machine != $1 ]
Petr Lautrbach df630e
@@ -154,12 +156,12 @@ case $os in
Petr Lautrbach 894ab5
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
Petr Lautrbach 894ab5
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
Petr Lautrbach 894ab5
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
Petr Lautrbach 894ab5
-	-apple | -axis | -knuth | -cray | -microblaze)
Petr Lautrbach 894ab5
+	-apple | -axis | -knuth | -cray | -microblaze*)
Petr Lautrbach 894ab5
 		os=
Petr Lautrbach 894ab5
 		basic_machine=$1
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        -bluegene*)
Petr Lautrbach 894ab5
-	        os=-cnk
Petr Lautrbach 894ab5
+	-bluegene*)
Petr Lautrbach 894ab5
+		os=-cnk
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	-sim | -cisco | -oki | -wec | -winbond)
Petr Lautrbach 894ab5
 		os=
Petr Lautrbach df630e
@@ -175,10 +177,10 @@ case $os in
Petr Lautrbach 894ab5
 		os=-chorusos
Petr Lautrbach 894ab5
 		basic_machine=$1
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
- 	-chorusrdb)
Petr Lautrbach 894ab5
- 		os=-chorusrdb
Petr Lautrbach 894ab5
+	-chorusrdb)
Petr Lautrbach 894ab5
+		os=-chorusrdb
Petr Lautrbach 894ab5
 		basic_machine=$1
Petr Lautrbach 894ab5
- 		;;
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	-hiux*)
Petr Lautrbach 894ab5
 		os=-hiuxwe2
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -223,6 +225,12 @@ case $os in
Petr Lautrbach 894ab5
 	-isc*)
Petr Lautrbach 894ab5
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	-lynx*178)
Petr Lautrbach 894ab5
+		os=-lynxos178
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+	-lynx*5)
Petr Lautrbach 894ab5
+		os=-lynxos5
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	-lynx*)
Petr Lautrbach 894ab5
 		os=-lynxos
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -247,20 +255,27 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	# Some are omitted here because they have special meanings below.
Petr Lautrbach 894ab5
 	1750a | 580 \
Petr Lautrbach 894ab5
 	| a29k \
Petr Lautrbach 894ab5
+	| aarch64 | aarch64_be \
Petr Lautrbach 894ab5
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
Petr Lautrbach 894ab5
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
Petr Lautrbach 894ab5
 	| am33_2.0 \
Petr Lautrbach 894ab5
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
Petr Lautrbach 894ab5
+	| arc \
Petr Lautrbach 894ab5
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
Petr Lautrbach 894ab5
+	| avr | avr32 \
Petr Lautrbach 894ab5
+	| be32 | be64 \
Petr Lautrbach 894ab5
 	| bfin \
Petr Lautrbach 894ab5
 	| c4x | clipper \
Petr Lautrbach 894ab5
 	| d10v | d30v | dlx | dsp16xx \
Petr Lautrbach 894ab5
+	| epiphany \
Petr Lautrbach 894ab5
 	| fido | fr30 | frv \
Petr Lautrbach 894ab5
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
Petr Lautrbach 894ab5
+	| hexagon \
Petr Lautrbach 894ab5
 	| i370 | i860 | i960 | ia64 \
Petr Lautrbach 894ab5
 	| ip2k | iq2000 \
Petr Lautrbach 894ab5
+	| le32 | le64 \
Petr Lautrbach 894ab5
 	| lm32 \
Petr Lautrbach 894ab5
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
Petr Lautrbach 894ab5
-	| maxq | mb | microblaze | mcore | mep | metag \
Petr Lautrbach 894ab5
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
Petr Lautrbach 894ab5
 	| mips | mipsbe | mipseb | mipsel | mipsle \
Petr Lautrbach 894ab5
 	| mips16 \
Petr Lautrbach 894ab5
 	| mips64 | mips64el \
Petr Lautrbach df630e
@@ -286,22 +301,23 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	| nds32 | nds32le | nds32be \
Petr Lautrbach df630e
 	| nios | nios2 \
Petr Lautrbach 894ab5
 	| ns16k | ns32k \
Petr Lautrbach 894ab5
+	| open8 \
Petr Lautrbach df630e
 	| or32 \
Petr Lautrbach 894ab5
 	| pdp10 | pdp11 | pj | pjl \
Petr Lautrbach 894ab5
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
Petr Lautrbach 894ab5
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
Petr Lautrbach 894ab5
 	| pyramid \
Petr Lautrbach 894ab5
-	| rx \
Petr Lautrbach 894ab5
+	| rl78 | rx \
Petr Lautrbach 894ab5
 	| score \
Petr Lautrbach 894ab5
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
Petr Lautrbach 894ab5
 	| sh64 | sh64le \
Petr Lautrbach 894ab5
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
Petr Lautrbach 894ab5
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
Petr Lautrbach 894ab5
-	| spu | strongarm \
Petr Lautrbach 894ab5
-	| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
Petr Lautrbach 894ab5
+	| spu \
Petr Lautrbach 894ab5
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
Petr Lautrbach 894ab5
 	| ubicom32 \
Petr Lautrbach 894ab5
-	| v850 | v850e \
Petr Lautrbach 894ab5
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
Petr Lautrbach 894ab5
 	| we32k \
Petr Lautrbach 894ab5
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
Petr Lautrbach 894ab5
+	| x86 | xc16x | xstormy16 | xtensa \
Petr Lautrbach 894ab5
 	| z8k | z80)
Petr Lautrbach 894ab5
 		basic_machine=$basic_machine-unknown
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -314,8 +330,7 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	c6x)
Petr Lautrbach 894ab5
 		basic_machine=tic6x-unknown
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
Petr Lautrbach 894ab5
-		# Motorola 68HC11/12.
Petr Lautrbach 894ab5
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
Petr Lautrbach 894ab5
 		basic_machine=$basic_machine-unknown
Petr Lautrbach 894ab5
 		os=-none
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -325,6 +340,21 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=mt-unknown
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
+	strongarm | thumb | xscale)
Petr Lautrbach 894ab5
+		basic_machine=arm-unknown
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+	xgate)
Petr Lautrbach 894ab5
+		basic_machine=$basic_machine-unknown
Petr Lautrbach 894ab5
+		os=-none
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+	xscaleeb)
Petr Lautrbach 894ab5
+		basic_machine=armeb-unknown
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+
Petr Lautrbach 894ab5
+	xscaleel)
Petr Lautrbach 894ab5
+		basic_machine=armel-unknown
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+
Petr Lautrbach 894ab5
 	# We use `pc' rather than `unknown'
Petr Lautrbach 894ab5
 	# because (1) that's what they normally are, and
Petr Lautrbach 894ab5
 	# (2) the word "unknown" tends to confuse beginning users.
Petr Lautrbach df630e
@@ -339,11 +369,13 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	# Recognize the basic CPU types with company name.
Petr Lautrbach 894ab5
 	580-* \
Petr Lautrbach 894ab5
 	| a29k-* \
Petr Lautrbach 894ab5
+	| aarch64-* | aarch64_be-* \
Petr Lautrbach 894ab5
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
Petr Lautrbach 894ab5
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
Petr Lautrbach 894ab5
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
Petr Lautrbach 894ab5
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
Petr Lautrbach 894ab5
 	| avr-* | avr32-* \
Petr Lautrbach 894ab5
+	| be32-* | be64-* \
Petr Lautrbach 894ab5
 	| bfin-* | bs2000-* \
Petr Lautrbach 894ab5
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
Petr Lautrbach 894ab5
 	| clipper-* | craynv-* | cydra-* \
Petr Lautrbach df630e
@@ -352,12 +384,15 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
Petr Lautrbach 894ab5
 	| h8300-* | h8500-* \
Petr Lautrbach 894ab5
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
Petr Lautrbach 894ab5
+	| hexagon-* \
Petr Lautrbach 894ab5
 	| i*86-* | i860-* | i960-* | ia64-* \
Petr Lautrbach 894ab5
 	| ip2k-* | iq2000-* \
Petr Lautrbach 894ab5
+	| le32-* | le64-* \
Petr Lautrbach 894ab5
 	| lm32-* \
Petr Lautrbach 894ab5
 	| m32c-* | m32r-* | m32rle-* \
Petr Lautrbach 894ab5
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
Petr Lautrbach 894ab5
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
Petr Lautrbach 894ab5
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
Petr Lautrbach 894ab5
+	| microblaze-* | microblazeel-* \
Petr Lautrbach 894ab5
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
Petr Lautrbach 894ab5
 	| mips16-* \
Petr Lautrbach 894ab5
 	| mips64-* | mips64el-* \
Petr Lautrbach df630e
@@ -382,24 +417,26 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	| nds32-* | nds32le-* | nds32be-* \
Petr Lautrbach df630e
 	| nios-* | nios2-* \
Petr Lautrbach 894ab5
 	| none-* | np1-* | ns16k-* | ns32k-* \
Petr Lautrbach 894ab5
+	| open8-* \
Petr Lautrbach 894ab5
 	| orion-* \
Petr Lautrbach 894ab5
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
Petr Lautrbach 894ab5
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
Petr Lautrbach 894ab5
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
Petr Lautrbach 894ab5
 	| pyramid-* \
Petr Lautrbach 894ab5
-	| romp-* | rs6000-* | rx-* \
Petr Lautrbach 894ab5
+	| rl78-* | romp-* | rs6000-* | rx-* \
Petr Lautrbach 894ab5
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
Petr Lautrbach 894ab5
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
Petr Lautrbach 894ab5
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
Petr Lautrbach 894ab5
 	| sparclite-* \
Petr Lautrbach 894ab5
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
Petr Lautrbach 894ab5
-	| tahoe-* | thumb-* \
Petr Lautrbach 894ab5
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
Petr Lautrbach 894ab5
+	| tahoe-* \
Petr Lautrbach 894ab5
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
Petr Lautrbach 894ab5
-	| tile-* | tilegx-* \
Petr Lautrbach 894ab5
+	| tile*-* \
Petr Lautrbach 894ab5
 	| tron-* \
Petr Lautrbach 894ab5
 	| ubicom32-* \
Petr Lautrbach 894ab5
-	| v850-* | v850e-* | vax-* \
Petr Lautrbach 894ab5
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
Petr Lautrbach 894ab5
+	| vax-* \
Petr Lautrbach 894ab5
 	| we32k-* \
Petr Lautrbach 894ab5
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
Petr Lautrbach 894ab5
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
Petr Lautrbach 894ab5
 	| xstormy16-* | xtensa*-* \
Petr Lautrbach 894ab5
 	| ymp-* \
Petr Lautrbach 894ab5
 	| z8k-* | z80-*)
Petr Lautrbach df630e
@@ -424,7 +461,7 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=a29k-amd
Petr Lautrbach 894ab5
 		os=-udi
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-    	abacus)
Petr Lautrbach 894ab5
+	abacus)
Petr Lautrbach 894ab5
 		basic_machine=abacus-unknown
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	adobe68k)
Petr Lautrbach df630e
@@ -507,7 +544,7 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=c90-cray
Petr Lautrbach 894ab5
 		os=-unicos
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        cegcc)
Petr Lautrbach 894ab5
+	cegcc)
Petr Lautrbach 894ab5
 		basic_machine=arm-unknown
Petr Lautrbach 894ab5
 		os=-cegcc
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -697,7 +734,6 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	i370-ibm* | ibm*)
Petr Lautrbach 894ab5
 		basic_machine=i370-ibm
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
Petr Lautrbach 894ab5
 	i*86v32)
Petr Lautrbach 894ab5
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
Petr Lautrbach 894ab5
 		os=-sysv32
Petr Lautrbach df630e
@@ -755,9 +791,13 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=ns32k-utek
Petr Lautrbach 894ab5
 		os=-sysv
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        microblaze)
Petr Lautrbach 894ab5
+	microblaze*)
Petr Lautrbach 894ab5
 		basic_machine=microblaze-xilinx
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	mingw64)
Petr Lautrbach 894ab5
+		basic_machine=x86_64-pc
Petr Lautrbach 894ab5
+		os=-mingw64
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	mingw32)
Petr Lautrbach 894ab5
 		basic_machine=i386-pc
Petr Lautrbach 894ab5
 		os=-mingw32
Petr Lautrbach df630e
@@ -794,10 +834,18 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	ms1-*)
Petr Lautrbach 894ab5
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	msys)
Petr Lautrbach 894ab5
+		basic_machine=i386-pc
Petr Lautrbach 894ab5
+		os=-msys
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	mvs)
Petr Lautrbach 894ab5
 		basic_machine=i370-ibm
Petr Lautrbach 894ab5
 		os=-mvs
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	nacl)
Petr Lautrbach 894ab5
+		basic_machine=le32-unknown
Petr Lautrbach 894ab5
+		os=-nacl
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	ncr3000)
Petr Lautrbach 894ab5
 		basic_machine=i486-ncr
Petr Lautrbach 894ab5
 		os=-sysv4
Petr Lautrbach df630e
@@ -862,10 +910,10 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	np1)
Petr Lautrbach 894ab5
 		basic_machine=np1-gould
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        neo-tandem)
Petr Lautrbach 894ab5
+	neo-tandem)
Petr Lautrbach 894ab5
 		basic_machine=neo-tandem
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        nse-tandem)
Petr Lautrbach 894ab5
+	nse-tandem)
Petr Lautrbach 894ab5
 		basic_machine=nse-tandem
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	nsr-tandem)
Petr Lautrbach df630e
@@ -950,9 +998,10 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	power)	basic_machine=power-ibm
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-	ppc)	basic_machine=powerpc-unknown
Petr Lautrbach 894ab5
+	ppc | ppcbe)	basic_machine=powerpc-unknown
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
Petr Lautrbach 894ab5
+	ppc-* | ppcbe-*)
Petr Lautrbach 894ab5
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	ppcle | powerpclittle | ppc-le | powerpc-little)
Petr Lautrbach 894ab5
 		basic_machine=powerpcle-unknown
Petr Lautrbach df630e
@@ -977,7 +1026,11 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=i586-unknown
Petr Lautrbach 894ab5
 		os=-pw32
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-	rdos)
Petr Lautrbach 894ab5
+	rdos | rdos64)
Petr Lautrbach 894ab5
+		basic_machine=x86_64-pc
Petr Lautrbach 894ab5
+		os=-rdos
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+	rdos32)
Petr Lautrbach 894ab5
 		basic_machine=i386-pc
Petr Lautrbach 894ab5
 		os=-rdos
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -1046,6 +1099,9 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=i860-stratus
Petr Lautrbach 894ab5
 		os=-sysv4
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	strongarm-* | thumb-*)
Petr Lautrbach 894ab5
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	sun2)
Petr Lautrbach 894ab5
 		basic_machine=m68000-sun
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach df630e
@@ -1102,13 +1158,8 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		basic_machine=t90-cray
Petr Lautrbach 894ab5
 		os=-unicos
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        # This must be matched before tile*.
Petr Lautrbach 894ab5
-        tilegx*)
Petr Lautrbach 894ab5
-		basic_machine=tilegx-unknown
Petr Lautrbach 894ab5
-		os=-linux-gnu
Petr Lautrbach 894ab5
-		;;
Petr Lautrbach 894ab5
 	tile*)
Petr Lautrbach 894ab5
-		basic_machine=tile-unknown
Petr Lautrbach 894ab5
+		basic_machine=$basic_machine-unknown
Petr Lautrbach 894ab5
 		os=-linux-gnu
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	tx39)
Petr Lautrbach df630e
@@ -1178,6 +1229,9 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	xps | xps100)
Petr Lautrbach 894ab5
 		basic_machine=xps100-honeywell
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	xscale-* | xscalee[bl]-*)
Petr Lautrbach 894ab5
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	ymp)
Petr Lautrbach 894ab5
 		basic_machine=ymp-cray
Petr Lautrbach 894ab5
 		os=-unicos
Petr Lautrbach df630e
@@ -1275,11 +1329,11 @@ esac
Petr Lautrbach 894ab5
 if [ x"$os" != x"" ]
Petr Lautrbach 894ab5
 then
Petr Lautrbach 894ab5
 case $os in
Petr Lautrbach 894ab5
-        # First match some system type aliases
Petr Lautrbach 894ab5
-        # that might get confused with valid system types.
Petr Lautrbach 894ab5
+	# First match some system type aliases
Petr Lautrbach 894ab5
+	# that might get confused with valid system types.
Petr Lautrbach 894ab5
 	# -solaris* is a basic system type, with this one exception.
Petr Lautrbach 894ab5
-        -auroraux)
Petr Lautrbach 894ab5
-	        os=-auroraux
Petr Lautrbach 894ab5
+	-auroraux)
Petr Lautrbach 894ab5
+		os=-auroraux
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	-solaris1 | -solaris1.*)
Petr Lautrbach 894ab5
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
Petr Lautrbach df630e
@@ -1309,15 +1363,15 @@ case $os in
Petr Lautrbach 894ab5
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
Petr Lautrbach 894ab5
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
Petr Lautrbach 894ab5
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
Petr Lautrbach 894ab5
-	      | -openbsd* | -solidbsd* \
Petr Lautrbach 894ab5
+	      | -bitrig* | -openbsd* | -solidbsd* \
Petr Lautrbach 894ab5
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
Petr Lautrbach 894ab5
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
Petr Lautrbach 894ab5
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
Petr Lautrbach 894ab5
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
Petr Lautrbach 894ab5
 	      | -chorusos* | -chorusrdb* | -cegcc* \
Petr Lautrbach 894ab5
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
Petr Lautrbach 894ab5
-	      | -mingw32* | -linux-gnu* | -linux-android* \
Petr Lautrbach 894ab5
-	      | -linux-newlib* | -linux-uclibc* \
Petr Lautrbach 894ab5
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
Petr Lautrbach 894ab5
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
Petr Lautrbach 894ab5
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
Petr Lautrbach 894ab5
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
Petr Lautrbach 894ab5
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
Petr Lautrbach 894ab5
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
Petr Lautrbach df630e
@@ -1364,7 +1418,7 @@ case $os in
Petr Lautrbach 894ab5
 	-opened*)
Petr Lautrbach 894ab5
 		os=-openedition
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        -os400*)
Petr Lautrbach 894ab5
+	-os400*)
Petr Lautrbach 894ab5
 		os=-os400
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	-wince*)
Petr Lautrbach df630e
@@ -1413,7 +1467,7 @@ case $os in
Petr Lautrbach 894ab5
 	-sinix*)
Petr Lautrbach 894ab5
 		os=-sysv4
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        -tpf*)
Petr Lautrbach 894ab5
+	-tpf*)
Petr Lautrbach 894ab5
 		os=-tpf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	-triton*)
Petr Lautrbach df630e
@@ -1458,8 +1512,8 @@ case $os in
Petr Lautrbach 894ab5
 	-dicos*)
Petr Lautrbach 894ab5
 		os=-dicos
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        -nacl*)
Petr Lautrbach 894ab5
-	        ;;
Petr Lautrbach 894ab5
+	-nacl*)
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	-none)
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	*)
Petr Lautrbach df630e
@@ -1482,10 +1536,10 @@ else
Petr Lautrbach 894ab5
 # system, and we'll never get to this point.
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 case $basic_machine in
Petr Lautrbach 894ab5
-        score-*)
Petr Lautrbach 894ab5
+	score-*)
Petr Lautrbach 894ab5
 		os=-elf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        spu-*)
Petr Lautrbach 894ab5
+	spu-*)
Petr Lautrbach 894ab5
 		os=-elf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	*-acorn)
Petr Lautrbach df630e
@@ -1497,8 +1551,11 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	arm*-semi)
Petr Lautrbach 894ab5
 		os=-aout
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        c4x-* | tic4x-*)
Petr Lautrbach 894ab5
-        	os=-coff
Petr Lautrbach 894ab5
+	c4x-* | tic4x-*)
Petr Lautrbach 894ab5
+		os=-coff
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
+	hexagon-*)
Petr Lautrbach 894ab5
+		os=-elf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	tic54x-*)
Petr Lautrbach 894ab5
 		os=-coff
Petr Lautrbach df630e
@@ -1527,14 +1584,11 @@ case $basic_machine in
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	m68000-sun)
Petr Lautrbach 894ab5
 		os=-sunos3
Petr Lautrbach 894ab5
-		# This also exists in the configure program, but was not the
Petr Lautrbach 894ab5
-		# default.
Petr Lautrbach 894ab5
-		# os=-sunos4
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	m68*-cisco)
Petr Lautrbach 894ab5
 		os=-aout
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-        mep-*)
Petr Lautrbach 894ab5
+	mep-*)
Petr Lautrbach 894ab5
 		os=-elf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	mips*-cisco)
Petr Lautrbach df630e
@@ -1561,7 +1615,7 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	*-ibm)
Petr Lautrbach 894ab5
 		os=-aix
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-    	*-knuth)
Petr Lautrbach 894ab5
+	*-knuth)
Petr Lautrbach 894ab5
 		os=-mmixware
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
 	*-wec)