vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Petr Lautrbach 894ab5
diff -up openssh-6.2p1/config.guess.aarch64 openssh-6.2p1/config.guess
Petr Lautrbach 894ab5
--- openssh-6.2p1/config.guess.aarch64	2013-04-16 17:56:50.213887042 +0200
Petr Lautrbach 894ab5
+++ openssh-6.2p1/config.guess	2013-04-16 17:57:03.380828155 +0200
Petr Lautrbach 894ab5
@@ -1,14 +1,12 @@
Petr Lautrbach 894ab5
 #! /bin/sh
Petr Lautrbach 894ab5
 # Attempt to guess a canonical system name.
Petr Lautrbach 894ab5
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
Petr Lautrbach 894ab5
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
Petr Lautrbach 894ab5
-#   2011 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
+#   Copyright 1992-2013 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-timestamp='2011-01-23'
Petr Lautrbach 894ab5
+timestamp='2013-02-12'
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 894ab5
-# the Free Software Foundation; either version 2 of the License, or
Petr Lautrbach 894ab5
+# the Free Software Foundation; either version 3 of the License, or
Petr Lautrbach 894ab5
 # (at your option) any later version.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # This program is distributed in the hope that it will be useful, but
Petr Lautrbach 894ab5
@@ -17,26 +15,22 @@ 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 894ab5
 # configuration script generated by Autoconf, you may include it under
Petr Lautrbach 894ab5
-# the same distribution terms that you use for the rest of that program.
Petr Lautrbach 894ab5
-
Petr Lautrbach 894ab5
-
Petr Lautrbach 894ab5
-# Originally written by Per Bothner.  Please send patches (context
Petr Lautrbach 894ab5
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
Petr Lautrbach 894ab5
-# entry.
Petr Lautrbach 894ab5
+# the same distribution terms that you use for the rest of that
Petr Lautrbach 894ab5
+# program.  This Exception is an additional permission under section 7
Petr Lautrbach 894ab5
+# of the GNU General Public License, version 3 ("GPLv3").
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
-# This script attempts to guess a canonical system name similar to
Petr Lautrbach 894ab5
-# config.sub.  If it succeeds, it prints the system name on stdout, and
Petr Lautrbach 894ab5
-# exits with 0.  Otherwise, it exits with 1.
Petr Lautrbach 894ab5
+# Originally written by Per Bothner.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # You can get the latest version of this script from:
Petr Lautrbach 894ab5
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
Petr Lautrbach 894ab5
+#
Petr Lautrbach 894ab5
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
Petr Lautrbach 894ab5
+
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 me=`echo "$0" | sed -e 's,.*/,,'`
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
@@ -56,9 +50,7 @@ version="\
Petr Lautrbach 894ab5
 GNU config.guess ($timestamp)
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 Originally written by Per Bothner.
Petr Lautrbach 894ab5
-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 894ab5
+Copyright 1992-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 894ab5
@@ -145,7 +137,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` |
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 894ab5
@@ -181,7 +173,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
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 894ab5
@@ -202,6 +194,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
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 894ab5
@@ -224,7 +220,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
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 894ab5
@@ -299,12 +295,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
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 894ab5
@@ -398,23 +394,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
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 894ab5
@@ -484,8 +480,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 894ab5
@@ -498,7 +494,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 894ab5
@@ -598,52 +594,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 894ab5
 
Petr Lautrbach 894ab5
-              #define _HPUX_SOURCE
Petr Lautrbach 894ab5
-              #include <stdlib.h>
Petr Lautrbach 894ab5
-              #include <unistd.h>
Petr Lautrbach 894ab5
-
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 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
+		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 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 894ab5
@@ -734,22 +730,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 894ab5
@@ -773,14 +769,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 894ab5
@@ -792,30 +788,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 894ab5
@@ -861,6 +862,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 894ab5
@@ -870,7 +878,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 894ab5
@@ -882,20 +890,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 894ab5
@@ -936,8 +953,11 @@ EOF
Petr Lautrbach 894ab5
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
Petr Lautrbach 894ab5
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
Petr Lautrbach 894ab5
 	;;
Petr Lautrbach 894ab5
+    or1k:Linux:*:*)
Petr Lautrbach 894ab5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
Petr Lautrbach 894ab5
+	exit ;;
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 894ab5
@@ -963,7 +983,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 894ab5
@@ -972,16 +992,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 894ab5
@@ -990,11 +1010,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 894ab5
@@ -1026,7 +1046,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 894ab5
@@ -1054,13 +1074,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 894ab5
@@ -1095,8 +1115,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 894ab5
@@ -1139,10 +1159,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 894ab5
@@ -1168,11 +1188,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 894ab5
@@ -1185,6 +1205,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 894ab5
@@ -1240,7 +1263,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 894ab5
@@ -1285,13 +1308,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 894ab5
@@ -1309,11 +1332,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 894ab5
@@ -1331,11 +1354,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 894ab5
diff -up openssh-6.2p1/config.sub.aarch64 openssh-6.2p1/config.sub
Petr Lautrbach 894ab5
--- openssh-6.2p1/config.sub.aarch64	2013-04-16 17:56:38.981937275 +0200
Petr Lautrbach 894ab5
+++ openssh-6.2p1/config.sub	2013-04-16 17:57:03.379828159 +0200
Petr Lautrbach 894ab5
@@ -1,38 +1,31 @@
Petr Lautrbach 894ab5
 #! /bin/sh
Petr Lautrbach 894ab5
 # Configuration validation subroutine script.
Petr Lautrbach 894ab5
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
Petr Lautrbach 894ab5
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
Petr Lautrbach 894ab5
-#   2011 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
-
Petr Lautrbach 894ab5
-timestamp='2011-01-01'
Petr Lautrbach 894ab5
-
Petr Lautrbach 894ab5
-# This file is (in principle) common to ALL GNU software.
Petr Lautrbach 894ab5
-# The presence of a machine in this file suggests that SOME GNU software
Petr Lautrbach 894ab5
-# can handle that machine.  It does not imply ALL GNU software can.
Petr Lautrbach 894ab5
-#
Petr Lautrbach 894ab5
-# This file is free software; you can redistribute it and/or modify
Petr Lautrbach 894ab5
-# it under the terms of the GNU General Public License as published by
Petr Lautrbach 894ab5
-# the Free Software Foundation; either version 2 of the License, or
Petr Lautrbach 894ab5
+#   Copyright 1992-2013 Free Software Foundation, Inc.
Petr Lautrbach 894ab5
+
Petr Lautrbach 894ab5
+timestamp='2013-02-12'
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 894ab5
+# the Free Software Foundation; either version 3 of the License, or
Petr Lautrbach 894ab5
 # (at your option) any later version.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
-# This program is distributed in the hope that it will be useful,
Petr Lautrbach 894ab5
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
Petr Lautrbach 894ab5
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Petr Lautrbach 894ab5
-# GNU General Public License for more details.
Petr Lautrbach 894ab5
+# This program is distributed in the hope that it will be useful, but
Petr Lautrbach 894ab5
+# WITHOUT ANY WARRANTY; without even the implied warranty of
Petr Lautrbach 894ab5
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
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 894ab5
 # configuration script generated by Autoconf, you may include it under
Petr Lautrbach 894ab5
-# the same distribution terms that you use for the rest of that program.
Petr Lautrbach 894ab5
+# the same distribution terms that you use for the rest of that
Petr Lautrbach 894ab5
+# program.  This Exception is an additional permission under section 7
Petr Lautrbach 894ab5
+# of the GNU General Public License, version 3 ("GPLv3").
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-# Please send patches to <config-patches@gnu.org>.  Submit a context
Petr Lautrbach 894ab5
-# diff and a properly formatted GNU ChangeLog entry.
Petr Lautrbach 894ab5
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
Petr Lautrbach 894ab5
 #
Petr Lautrbach 894ab5
 # Configuration subroutine to validate and canonicalize a configuration type.
Petr Lautrbach 894ab5
 # Supply the specified configuration type as an argument.
Petr Lautrbach 894ab5
@@ -75,9 +68,7 @@ Report bugs and patches to 
Petr Lautrbach 894ab5
 version="\
Petr Lautrbach 894ab5
 GNU config.sub ($timestamp)
Petr Lautrbach 894ab5
 
Petr Lautrbach 894ab5
-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 894ab5
+Copyright 1992-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 894ab5
@@ -125,13 +116,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 894ab5
@@ -154,12 +149,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 894ab5
@@ -175,10 +170,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 894ab5
@@ -223,6 +218,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 894ab5
@@ -247,20 +248,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 894ab5
@@ -278,30 +286,32 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	| mipsisa64r2 | mipsisa64r2el \
Petr Lautrbach 894ab5
 	| mipsisa64sb1 | mipsisa64sb1el \
Petr Lautrbach 894ab5
 	| mipsisa64sr71k | mipsisa64sr71kel \
Petr Lautrbach 894ab5
+	| mipsr5900 | mipsr5900el \
Petr Lautrbach 894ab5
 	| mipstx39 | mipstx39el \
Petr Lautrbach 894ab5
 	| mn10200 | mn10300 \
Petr Lautrbach 894ab5
 	| moxie \
Petr Lautrbach 894ab5
 	| mt \
Petr Lautrbach 894ab5
 	| msp430 \
Petr Lautrbach 894ab5
 	| nds32 | nds32le | nds32be \
Petr Lautrbach 894ab5
-	| nios | nios2 \
Petr Lautrbach 894ab5
+	| nios | nios2 | nios2eb | nios2el \
Petr Lautrbach 894ab5
 	| ns16k | ns32k \
Petr Lautrbach 894ab5
-	| or32 \
Petr Lautrbach 894ab5
+	| open8 \
Petr Lautrbach 894ab5
+	| or1k | 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 894ab5
@@ -314,8 +324,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 894ab5
@@ -325,6 +334,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 894ab5
@@ -339,11 +363,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 894ab5
@@ -352,12 +378,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 894ab5
@@ -375,31 +404,34 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	| mipsisa64r2-* | mipsisa64r2el-* \
Petr Lautrbach 894ab5
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
Petr Lautrbach 894ab5
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
Petr Lautrbach 894ab5
+	| mipsr5900-* | mipsr5900el-* \
Petr Lautrbach 894ab5
 	| mipstx39-* | mipstx39el-* \
Petr Lautrbach 894ab5
 	| mmix-* \
Petr Lautrbach 894ab5
 	| mt-* \
Petr Lautrbach 894ab5
 	| msp430-* \
Petr Lautrbach 894ab5
 	| nds32-* | nds32le-* | nds32be-* \
Petr Lautrbach 894ab5
-	| nios-* | nios2-* \
Petr Lautrbach 894ab5
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
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 894ab5
@@ -424,7 +456,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 894ab5
@@ -507,7 +539,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 894ab5
@@ -697,7 +729,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 894ab5
@@ -755,9 +786,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 894ab5
@@ -794,10 +829,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 894ab5
@@ -862,10 +905,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 894ab5
@@ -950,9 +993,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 894ab5
@@ -977,7 +1021,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 894ab5
@@ -1046,6 +1094,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 894ab5
@@ -1102,13 +1153,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 894ab5
@@ -1178,6 +1224,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 894ab5
@@ -1275,11 +1324,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 894ab5
@@ -1303,21 +1352,21 @@ case $os in
Petr Lautrbach 894ab5
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
Petr Lautrbach 894ab5
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
Petr Lautrbach 894ab5
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
Petr Lautrbach 894ab5
-	      | -sym* | -kopensolaris* \
Petr Lautrbach 894ab5
+	      | -sym* | -kopensolaris* | -plan9* \
Petr Lautrbach 894ab5
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
Petr Lautrbach 894ab5
 	      | -aos* | -aros* \
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 894ab5
@@ -1364,7 +1413,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 894ab5
@@ -1413,7 +1462,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 894ab5
@@ -1449,17 +1498,14 @@ case $os in
Petr Lautrbach 894ab5
 	-aros*)
Petr Lautrbach 894ab5
 		os=-aros
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
-	-kaos*)
Petr Lautrbach 894ab5
-		os=-kaos
Petr Lautrbach 894ab5
-		;;
Petr Lautrbach 894ab5
 	-zvmoe)
Petr Lautrbach 894ab5
 		os=-zvmoe
Petr Lautrbach 894ab5
 		;;
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 894ab5
@@ -1482,10 +1528,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 894ab5
@@ -1497,8 +1543,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 894ab5
@@ -1527,14 +1576,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 894ab5
@@ -1543,6 +1589,9 @@ case $basic_machine in
Petr Lautrbach 894ab5
 	mips*-*)
Petr Lautrbach 894ab5
 		os=-elf
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
+	or1k-*)
Petr Lautrbach 894ab5
+		os=-elf
Petr Lautrbach 894ab5
+		;;
Petr Lautrbach 894ab5
 	or32-*)
Petr Lautrbach 894ab5
 		os=-coff
Petr Lautrbach 894ab5
 		;;
Petr Lautrbach 894ab5
@@ -1561,7 +1610,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)