Blame SOURCES/bacula-aarch64.patch

2785c5
diff -urN bacula-5.2.13/autoconf/config.guess bacula-5.2.13-aarch64/autoconf/config.guess
2785c5
--- bacula-5.2.13/autoconf/config.guess	2013-02-19 13:21:35.000000000 -0600
2785c5
+++ bacula-5.2.13-aarch64/autoconf/config.guess	2013-03-07 19:51:13.347596401 -0600
2785c5
@@ -1,10 +1,10 @@
2785c5
 #! /bin/sh
2785c5
 # Attempt to guess a canonical system name.
2785c5
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2785c5
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2785c5
-#   Free Software Foundation, Inc.
2785c5
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2785c5
+#   2011, 2012 Free Software Foundation, Inc.
2785c5
 
2785c5
-timestamp='2009-06-10'
2785c5
+timestamp='2012-09-25'
2785c5
 
2785c5
 # This file is free software; you can redistribute it and/or modify it
2785c5
 # under the terms of the GNU General Public License as published by
2785c5
@@ -17,9 +17,7 @@
2785c5
 # General Public License for more details.
2785c5
 #
2785c5
 # You should have received a copy of the GNU General Public License
2785c5
-# along with this program; if not, write to the Free Software
2785c5
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
2785c5
-# 02110-1301, USA.
2785c5
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
2785c5
 #
2785c5
 # As a special exception to the GNU General Public License, if you
2785c5
 # distribute this file as part of a program that contains a
2785c5
@@ -27,16 +25,16 @@
2785c5
 # the same distribution terms that you use for the rest of that program.
2785c5
 
2785c5
 
2785c5
-# Originally written by Per Bothner <per@bothner.com>.
2785c5
-# Please send patches to <config-patches@gnu.org>.  Submit a context
2785c5
-# diff and a properly formatted ChangeLog entry.
2785c5
+# Originally written by Per Bothner.  Please send patches (context
2785c5
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
2785c5
+# entry.
2785c5
 #
2785c5
 # This script attempts to guess a canonical system name similar to
2785c5
 # config.sub.  If it succeeds, it prints the system name on stdout, and
2785c5
 # exits with 0.  Otherwise, it exits with 1.
2785c5
 #
2785c5
-# The plan is that this can be called by configure scripts if you
2785c5
-# don't specify an explicit build system type.
2785c5
+# You can get the latest version of this script from:
2785c5
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
2785c5
 
2785c5
 me=`echo "$0" | sed -e 's,.*/,,'`
2785c5
 
2785c5
@@ -56,8 +54,9 @@
2785c5
 GNU config.guess ($timestamp)
2785c5
 
2785c5
 Originally written by Per Bothner.
2785c5
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2785c5
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2785c5
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2785c5
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2785c5
+Free Software Foundation, Inc.
2785c5
 
2785c5
 This is free software; see the source for copying conditions.  There is NO
2785c5
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2785c5
@@ -144,7 +143,7 @@
2785c5
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
2785c5
     *:NetBSD:*:*)
2785c5
 	# NetBSD (nbsd) targets should (where applicable) match one or
2785c5
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
2785c5
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
2785c5
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
2785c5
 	# switched to ELF, *-*-netbsd* would select the old
2785c5
 	# object file format.  This provides both forward
2785c5
@@ -180,7 +179,7 @@
2785c5
 		fi
2785c5
 		;;
2785c5
 	    *)
2785c5
-	        os=netbsd
2785c5
+		os=netbsd
2785c5
 		;;
2785c5
 	esac
2785c5
 	# The OS release
2785c5
@@ -201,6 +200,10 @@
2785c5
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2785c5
 	echo "${machine}-${os}${release}"
2785c5
 	exit ;;
2785c5
+    *:Bitrig:*:*)
2785c5
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
2785c5
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
     *:OpenBSD:*:*)
2785c5
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2785c5
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2785c5
@@ -223,7 +226,7 @@
2785c5
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2785c5
 		;;
2785c5
 	*5.*)
2785c5
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2785c5
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2785c5
 		;;
2785c5
 	esac
2785c5
 	# According to Compaq, /usr/sbin/psrinfo has been available on
2785c5
@@ -269,7 +272,10 @@
2785c5
 	# A Xn.n version is an unreleased experimental baselevel.
2785c5
 	# 1.2 uses "1.2" for uname -r.
2785c5
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2785c5
-	exit ;;
2785c5
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
2785c5
+	exitcode=$?
2785c5
+	trap '' 0
2785c5
+	exit $exitcode ;;
2785c5
     Alpha\ *:Windows_NT*:*)
2785c5
 	# How do we know it's Interix rather than the generic POSIX subsystem?
2785c5
 	# Should we change UNAME_MACHINE based on the output of uname instead
2785c5
@@ -295,12 +301,12 @@
2785c5
 	echo s390-ibm-zvmoe
2785c5
 	exit ;;
2785c5
     *:OS400:*:*)
2785c5
-        echo powerpc-ibm-os400
2785c5
+	echo powerpc-ibm-os400
2785c5
 	exit ;;
2785c5
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2785c5
 	echo arm-acorn-riscix${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
-    arm:riscos:*:*|arm:RISCOS:*:*)
2785c5
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
2785c5
 	echo arm-unknown-riscos
2785c5
 	exit ;;
2785c5
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
2785c5
@@ -333,6 +339,9 @@
2785c5
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
2785c5
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
2785c5
 	exit ;;
2785c5
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
2785c5
+	echo i386-pc-auroraux${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
2785c5
 	eval $set_cc_for_build
2785c5
 	SUN_ARCH="i386"
2785c5
@@ -391,23 +400,23 @@
2785c5
     # MiNT.  But MiNT is downward compatible to TOS, so this should
2785c5
     # be no problem.
2785c5
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
2785c5
-        echo m68k-atari-mint${UNAME_RELEASE}
2785c5
+	echo m68k-atari-mint${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
2785c5
 	echo m68k-atari-mint${UNAME_RELEASE}
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
2785c5
-        echo m68k-atari-mint${UNAME_RELEASE}
2785c5
+	echo m68k-atari-mint${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
2785c5
-        echo m68k-milan-mint${UNAME_RELEASE}
2785c5
-        exit ;;
2785c5
+	echo m68k-milan-mint${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
2785c5
-        echo m68k-hades-mint${UNAME_RELEASE}
2785c5
-        exit ;;
2785c5
+	echo m68k-hades-mint${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
2785c5
-        echo m68k-unknown-mint${UNAME_RELEASE}
2785c5
-        exit ;;
2785c5
+	echo m68k-unknown-mint${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
     m68k:machten:*:*)
2785c5
 	echo m68k-apple-machten${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
@@ -477,8 +486,8 @@
2785c5
 	echo m88k-motorola-sysv3
2785c5
 	exit ;;
2785c5
     AViiON:dgux:*:*)
2785c5
-        # DG/UX returns AViiON for all architectures
2785c5
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
2785c5
+	# DG/UX returns AViiON for all architectures
2785c5
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
2785c5
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
2785c5
 	then
2785c5
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
2785c5
@@ -491,7 +500,7 @@
2785c5
 	else
2785c5
 	    echo i586-dg-dgux${UNAME_RELEASE}
2785c5
 	fi
2785c5
- 	exit ;;
2785c5
+	exit ;;
2785c5
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
2785c5
 	echo m88k-dolphin-sysv3
2785c5
 	exit ;;
2785c5
@@ -548,7 +557,7 @@
2785c5
 		echo rs6000-ibm-aix3.2
2785c5
 	fi
2785c5
 	exit ;;
2785c5
-    *:AIX:*:[456])
2785c5
+    *:AIX:*:[4567])
2785c5
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
2785c5
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
2785c5
 		IBM_ARCH=rs6000
2785c5
@@ -591,52 +600,52 @@
2785c5
 	    9000/[678][0-9][0-9])
2785c5
 		if [ -x /usr/bin/getconf ]; then
2785c5
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
2785c5
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2785c5
-                    case "${sc_cpu_version}" in
2785c5
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2785c5
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2785c5
-                      532)                      # CPU_PA_RISC2_0
2785c5
-                        case "${sc_kernel_bits}" in
2785c5
-                          32) HP_ARCH="hppa2.0n" ;;
2785c5
-                          64) HP_ARCH="hppa2.0w" ;;
2785c5
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
2785c5
+		    case "${sc_cpu_version}" in
2785c5
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
2785c5
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
2785c5
+		      532)                      # CPU_PA_RISC2_0
2785c5
+			case "${sc_kernel_bits}" in
2785c5
+			  32) HP_ARCH="hppa2.0n" ;;
2785c5
+			  64) HP_ARCH="hppa2.0w" ;;
2785c5
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
2785c5
-                        esac ;;
2785c5
-                    esac
2785c5
+			esac ;;
2785c5
+		    esac
2785c5
 		fi
2785c5
 		if [ "${HP_ARCH}" = "" ]; then
2785c5
 		    eval $set_cc_for_build
2785c5
-		    sed 's/^              //' << EOF >$dummy.c
2785c5
+		    sed 's/^		//' << EOF >$dummy.c
2785c5
+
2785c5
+		#define _HPUX_SOURCE
2785c5
+		#include <stdlib.h>
2785c5
+		#include <unistd.h>
2785c5
+
2785c5
+		int main ()
2785c5
+		{
2785c5
+		#if defined(_SC_KERNEL_BITS)
2785c5
+		    long bits = sysconf(_SC_KERNEL_BITS);
2785c5
+		#endif
2785c5
+		    long cpu  = sysconf (_SC_CPU_VERSION);
2785c5
 
2785c5
-              #define _HPUX_SOURCE
2785c5
-              #include <stdlib.h>
2785c5
-              #include <unistd.h>
2785c5
-
2785c5
-              int main ()
2785c5
-              {
2785c5
-              #if defined(_SC_KERNEL_BITS)
2785c5
-                  long bits = sysconf(_SC_KERNEL_BITS);
2785c5
-              #endif
2785c5
-                  long cpu  = sysconf (_SC_CPU_VERSION);
2785c5
-
2785c5
-                  switch (cpu)
2785c5
-              	{
2785c5
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2785c5
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2785c5
-              	case CPU_PA_RISC2_0:
2785c5
-              #if defined(_SC_KERNEL_BITS)
2785c5
-              	    switch (bits)
2785c5
-              		{
2785c5
-              		case 64: puts ("hppa2.0w"); break;
2785c5
-              		case 32: puts ("hppa2.0n"); break;
2785c5
-              		default: puts ("hppa2.0"); break;
2785c5
-              		} break;
2785c5
-              #else  /* !defined(_SC_KERNEL_BITS) */
2785c5
-              	    puts ("hppa2.0"); break;
2785c5
-              #endif
2785c5
-              	default: puts ("hppa1.0"); break;
2785c5
-              	}
2785c5
-                  exit (0);
2785c5
-              }
2785c5
+		    switch (cpu)
2785c5
+			{
2785c5
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
2785c5
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
2785c5
+			case CPU_PA_RISC2_0:
2785c5
+		#if defined(_SC_KERNEL_BITS)
2785c5
+			    switch (bits)
2785c5
+				{
2785c5
+				case 64: puts ("hppa2.0w"); break;
2785c5
+				case 32: puts ("hppa2.0n"); break;
2785c5
+				default: puts ("hppa2.0"); break;
2785c5
+				} break;
2785c5
+		#else  /* !defined(_SC_KERNEL_BITS) */
2785c5
+			    puts ("hppa2.0"); break;
2785c5
+		#endif
2785c5
+			default: puts ("hppa1.0"); break;
2785c5
+			}
2785c5
+		    exit (0);
2785c5
+		}
2785c5
 EOF
2785c5
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
2785c5
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
2785c5
@@ -727,22 +736,22 @@
2785c5
 	exit ;;
2785c5
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
2785c5
 	echo c1-convex-bsd
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
2785c5
 	if getsysinfo -f scalar_acc
2785c5
 	then echo c32-convex-bsd
2785c5
 	else echo c2-convex-bsd
2785c5
 	fi
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
2785c5
 	echo c34-convex-bsd
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
2785c5
 	echo c38-convex-bsd
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
2785c5
 	echo c4-convex-bsd
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     CRAY*Y-MP:*:*:*)
2785c5
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
2785c5
 	exit ;;
2785c5
@@ -766,14 +775,14 @@
2785c5
 	exit ;;
2785c5
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
2785c5
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2785c5
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2785c5
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2785c5
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2785c5
-        exit ;;
2785c5
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2785c5
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
2785c5
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2785c5
+	exit ;;
2785c5
     5000:UNIX_System_V:4.*:*)
2785c5
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2785c5
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2785c5
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2785c5
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
2785c5
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
2785c5
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
2785c5
 	exit ;;
2785c5
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
2785c5
@@ -785,34 +794,39 @@
2785c5
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
     *:FreeBSD:*:*)
2785c5
-	case ${UNAME_MACHINE} in
2785c5
-	    pc98)
2785c5
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2785c5
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
2785c5
+	case ${UNAME_PROCESSOR} in
2785c5
 	    amd64)
2785c5
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2785c5
 	    *)
2785c5
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2785c5
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
2785c5
 	esac
2785c5
 	exit ;;
2785c5
     i*:CYGWIN*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-cygwin
2785c5
 	exit ;;
2785c5
+    *:MINGW64*:*)
2785c5
+	echo ${UNAME_MACHINE}-pc-mingw64
2785c5
+	exit ;;
2785c5
     *:MINGW*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-mingw32
2785c5
 	exit ;;
2785c5
+    i*:MSYS*:*)
2785c5
+	echo ${UNAME_MACHINE}-pc-msys
2785c5
+	exit ;;
2785c5
     i*:windows32*:*)
2785c5
-    	# uname -m includes "-pc" on this system.
2785c5
-    	echo ${UNAME_MACHINE}-mingw32
2785c5
+	# uname -m includes "-pc" on this system.
2785c5
+	echo ${UNAME_MACHINE}-mingw32
2785c5
 	exit ;;
2785c5
     i*:PW*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-pw32
2785c5
 	exit ;;
2785c5
-    *:Interix*:[3456]*)
2785c5
-    	case ${UNAME_MACHINE} in
2785c5
+    *:Interix*:*)
2785c5
+	case ${UNAME_MACHINE} in
2785c5
 	    x86)
2785c5
 		echo i586-pc-interix${UNAME_RELEASE}
2785c5
 		exit ;;
2785c5
-	    EM64T | authenticamd | genuineintel)
2785c5
+	    authenticamd | genuineintel | EM64T)
2785c5
 		echo x86_64-unknown-interix${UNAME_RELEASE}
2785c5
 		exit ;;
2785c5
 	    IA64)
2785c5
@@ -854,6 +868,27 @@
2785c5
     i*86:Minix:*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-minix
2785c5
 	exit ;;
2785c5
+    aarch64:Linux:*:*)
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
+    aarch64_be:Linux:*:*)
2785c5
+	UNAME_MACHINE=aarch64_be
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
+    alpha:Linux:*:*)
2785c5
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2785c5
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
2785c5
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
2785c5
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
2785c5
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
2785c5
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
2785c5
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
2785c5
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
2785c5
+	esac
2785c5
+	objdump --private-headers /bin/sh | grep -q ld.so.1
2785c5
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2785c5
+	exit ;;
2785c5
     arm*:Linux:*:*)
2785c5
 	eval $set_cc_for_build
2785c5
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
2785c5
@@ -861,20 +896,40 @@
2785c5
 	then
2785c5
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	else
2785c5
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
2785c5
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
2785c5
+		| grep -q __ARM_PCS_VFP
2785c5
+	    then
2785c5
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
2785c5
+	    else
2785c5
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
2785c5
+	    fi
2785c5
 	fi
2785c5
 	exit ;;
2785c5
     avr32*:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
     cris:Linux:*:*)
2785c5
-	echo cris-axis-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-axis-linux-gnu
2785c5
 	exit ;;
2785c5
     crisv32:Linux:*:*)
2785c5
-	echo crisv32-axis-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-axis-linux-gnu
2785c5
 	exit ;;
2785c5
     frv:Linux:*:*)
2785c5
-    	echo frv-unknown-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
+    hexagon:Linux:*:*)
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
+    i*86:Linux:*:*)
2785c5
+	LIBC=gnu
2785c5
+	eval $set_cc_for_build
2785c5
+	sed 's/^	//' << EOF >$dummy.c
2785c5
+	#ifdef __dietlibc__
2785c5
+	LIBC=dietlibc
2785c5
+	#endif
2785c5
+EOF
2785c5
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
2785c5
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
2785c5
 	exit ;;
2785c5
     ia64:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
@@ -901,39 +956,18 @@
2785c5
 	#endif
2785c5
 	#endif
2785c5
 EOF
2785c5
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
2785c5
-	    /^CPU/{
2785c5
-		s: ::g
2785c5
-		p
2785c5
-	    }'`"
2785c5
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
2785c5
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
2785c5
 	;;
2785c5
     or32:Linux:*:*)
2785c5
-	echo or32-unknown-linux-gnu
2785c5
-	exit ;;
2785c5
-    ppc:Linux:*:*)
2785c5
-	echo powerpc-unknown-linux-gnu
2785c5
-	exit ;;
2785c5
-    ppc64:Linux:*:*)
2785c5
-	echo powerpc64-unknown-linux-gnu
2785c5
-	exit ;;
2785c5
-    alpha:Linux:*:*)
2785c5
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2785c5
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
2785c5
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
2785c5
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
2785c5
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
2785c5
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
2785c5
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
2785c5
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
2785c5
-        esac
2785c5
-	objdump --private-headers /bin/sh | grep -q ld.so.1
2785c5
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2785c5
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
     padre:Linux:*:*)
2785c5
 	echo sparc-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
2785c5
+	echo hppa64-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
     parisc:Linux:*:* | hppa:Linux:*:*)
2785c5
 	# Look for CPU level
2785c5
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
2785c5
@@ -942,14 +976,17 @@
2785c5
 	  *)    echo hppa-unknown-linux-gnu ;;
2785c5
 	esac
2785c5
 	exit ;;
2785c5
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
2785c5
-	echo hppa64-unknown-linux-gnu
2785c5
+    ppc64:Linux:*:*)
2785c5
+	echo powerpc64-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
+    ppc:Linux:*:*)
2785c5
+	echo powerpc-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
     s390:Linux:*:* | s390x:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-ibm-linux
2785c5
 	exit ;;
2785c5
     sh64*:Linux:*:*)
2785c5
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
     sh*:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
@@ -957,67 +994,18 @@
2785c5
     sparc:Linux:*:* | sparc64:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
+    tile*:Linux:*:*)
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	exit ;;
2785c5
     vax:Linux:*:*)
2785c5
 	echo ${UNAME_MACHINE}-dec-linux-gnu
2785c5
 	exit ;;
2785c5
     x86_64:Linux:*:*)
2785c5
-	echo x86_64-unknown-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
     xtensa*:Linux:*:*)
2785c5
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
2785c5
 	exit ;;
2785c5
-    i*86:Linux:*:*)
2785c5
-	# The BFD linker knows what the default object file format is, so
2785c5
-	# first see if it will tell us. cd to the root directory to prevent
2785c5
-	# problems with other programs or directories called `ld' in the path.
2785c5
-	# Set LC_ALL=C to ensure ld outputs messages in English.
2785c5
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
2785c5
-			 | sed -ne '/supported targets:/!d
2785c5
-				    s/[ 	][ 	]*/ /g
2785c5
-				    s/.*supported targets: *//
2785c5
-				    s/ .*//
2785c5
-				    p'`
2785c5
-        case "$ld_supported_targets" in
2785c5
-	  elf32-i386)
2785c5
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
2785c5
-		;;
2785c5
-	esac
2785c5
-	# Determine whether the default compiler is a.out or elf
2785c5
-	eval $set_cc_for_build
2785c5
-	sed 's/^	//' << EOF >$dummy.c
2785c5
-	#include <features.h>
2785c5
-	#ifdef __ELF__
2785c5
-	# ifdef __GLIBC__
2785c5
-	#  if __GLIBC__ >= 2
2785c5
-	LIBC=gnu
2785c5
-	#  else
2785c5
-	LIBC=gnulibc1
2785c5
-	#  endif
2785c5
-	# else
2785c5
-	LIBC=gnulibc1
2785c5
-	# endif
2785c5
-	#else
2785c5
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
2785c5
-	LIBC=gnu
2785c5
-	#else
2785c5
-	LIBC=gnuaout
2785c5
-	#endif
2785c5
-	#endif
2785c5
-	#ifdef __dietlibc__
2785c5
-	LIBC=dietlibc
2785c5
-	#endif
2785c5
-EOF
2785c5
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
2785c5
-	    /^LIBC/{
2785c5
-		s: ::g
2785c5
-		p
2785c5
-	    }'`"
2785c5
-	test x"${LIBC}" != x && {
2785c5
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
2785c5
-		exit
2785c5
-	}
2785c5
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
2785c5
-	;;
2785c5
     i*86:DYNIX/ptx:4*:*)
2785c5
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2785c5
 	# earlier versions are messed up and put the nodename in both
2785c5
@@ -1025,11 +1013,11 @@
2785c5
 	echo i386-sequent-sysv4
2785c5
 	exit ;;
2785c5
     i*86:UNIX_SV:4.2MP:2.*)
2785c5
-        # Unixware is an offshoot of SVR4, but it has its own version
2785c5
-        # number series starting with 2...
2785c5
-        # I am not positive that other SVR4 systems won't match this,
2785c5
+	# Unixware is an offshoot of SVR4, but it has its own version
2785c5
+	# number series starting with 2...
2785c5
+	# I am not positive that other SVR4 systems won't match this,
2785c5
 	# I just have to hope.  -- rms.
2785c5
-        # Use sysv4.2uw... so that sysv4* matches it.
2785c5
+	# Use sysv4.2uw... so that sysv4* matches it.
2785c5
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
2785c5
 	exit ;;
2785c5
     i*86:OS/2:*:*)
2785c5
@@ -1061,7 +1049,7 @@
2785c5
 	fi
2785c5
 	exit ;;
2785c5
     i*86:*:5:[678]*)
2785c5
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
2785c5
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
2785c5
 	case `/bin/uname -X | grep "^Machine"` in
2785c5
 	    *486*)	     UNAME_MACHINE=i486 ;;
2785c5
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
2785c5
@@ -1089,13 +1077,13 @@
2785c5
 	exit ;;
2785c5
     pc:*:*:*)
2785c5
 	# Left here for compatibility:
2785c5
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
2785c5
-        # the processor, so we play safe by assuming i586.
2785c5
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
2785c5
+	# the processor, so we play safe by assuming i586.
2785c5
 	# Note: whatever this is, it MUST be the same as what config.sub
2785c5
 	# prints for the "djgpp" host, or else GDB configury will decide that
2785c5
 	# this is a cross-build.
2785c5
 	echo i586-pc-msdosdjgpp
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     Intel:Mach:3*:*)
2785c5
 	echo i386-pc-mach3
2785c5
 	exit ;;
2785c5
@@ -1130,8 +1118,8 @@
2785c5
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
2785c5
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
2785c5
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
2785c5
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2785c5
-          && { echo i486-ncr-sysv4; exit; } ;;
2785c5
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
2785c5
+	  && { echo i486-ncr-sysv4; exit; } ;;
2785c5
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
2785c5
 	OS_REL='.3'
2785c5
 	test -r /etc/.relid \
2785c5
@@ -1174,10 +1162,10 @@
2785c5
 		echo ns32k-sni-sysv
2785c5
 	fi
2785c5
 	exit ;;
2785c5
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2785c5
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
2785c5
-        echo i586-unisys-sysv4
2785c5
-        exit ;;
2785c5
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
2785c5
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
2785c5
+	echo i586-unisys-sysv4
2785c5
+	exit ;;
2785c5
     *:UNIX_System_V:4*:FTX*)
2785c5
 	# From Gerald Hewes <hewes@openmarket.com>.
2785c5
 	# How about differentiating between stratus architectures? -djm
2785c5
@@ -1203,11 +1191,11 @@
2785c5
 	exit ;;
2785c5
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
2785c5
 	if [ -d /usr/nec ]; then
2785c5
-	        echo mips-nec-sysv${UNAME_RELEASE}
2785c5
+		echo mips-nec-sysv${UNAME_RELEASE}
2785c5
 	else
2785c5
-	        echo mips-unknown-sysv${UNAME_RELEASE}
2785c5
+		echo mips-unknown-sysv${UNAME_RELEASE}
2785c5
 	fi
2785c5
-        exit ;;
2785c5
+	exit ;;
2785c5
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
2785c5
 	echo powerpc-be-beos
2785c5
 	exit ;;
2785c5
@@ -1220,6 +1208,9 @@
2785c5
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
2785c5
 	echo i586-pc-haiku
2785c5
 	exit ;;
2785c5
+    x86_64:Haiku:*:*)
2785c5
+	echo x86_64-unknown-haiku
2785c5
+	exit ;;
2785c5
     SX-4:SUPER-UX:*:*)
2785c5
 	echo sx4-nec-superux${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
@@ -1247,6 +1238,16 @@
2785c5
     *:Darwin:*:*)
2785c5
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
2785c5
 	case $UNAME_PROCESSOR in
2785c5
+	    i386)
2785c5
+		eval $set_cc_for_build
2785c5
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2785c5
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
2785c5
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2785c5
+		      grep IS_64BIT_ARCH >/dev/null
2785c5
+		  then
2785c5
+		      UNAME_PROCESSOR="x86_64"
2785c5
+		  fi
2785c5
+		fi ;;
2785c5
 	    unknown) UNAME_PROCESSOR=powerpc ;;
2785c5
 	esac
2785c5
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2785c5
@@ -1262,7 +1263,10 @@
2785c5
     *:QNX:*:4*)
2785c5
 	echo i386-pc-qnx
2785c5
 	exit ;;
2785c5
-    NSE-?:NONSTOP_KERNEL:*:*)
2785c5
+    NEO-?:NONSTOP_KERNEL:*:*)
2785c5
+	echo neo-tandem-nsk${UNAME_RELEASE}
2785c5
+	exit ;;
2785c5
+    NSE-*:NONSTOP_KERNEL:*:*)
2785c5
 	echo nse-tandem-nsk${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
     NSR-?:NONSTOP_KERNEL:*:*)
2785c5
@@ -1307,13 +1311,13 @@
2785c5
 	echo pdp10-unknown-its
2785c5
 	exit ;;
2785c5
     SEI:*:*:SEIUX)
2785c5
-        echo mips-sei-seiux${UNAME_RELEASE}
2785c5
+	echo mips-sei-seiux${UNAME_RELEASE}
2785c5
 	exit ;;
2785c5
     *:DragonFly:*:*)
2785c5
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2785c5
 	exit ;;
2785c5
     *:*VMS:*:*)
2785c5
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
2785c5
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
2785c5
 	case "${UNAME_MACHINE}" in
2785c5
 	    A*) echo alpha-dec-vms ; exit ;;
2785c5
 	    I*) echo ia64-dec-vms ; exit ;;
2785c5
@@ -1331,11 +1335,11 @@
2785c5
     i*86:AROS:*:*)
2785c5
 	echo ${UNAME_MACHINE}-pc-aros
2785c5
 	exit ;;
2785c5
+    x86_64:VMkernel:*:*)
2785c5
+	echo ${UNAME_MACHINE}-unknown-esx
2785c5
+	exit ;;
2785c5
 esac
2785c5
 
2785c5
-#echo '(No uname command or uname output not recognized.)' 1>&2
2785c5
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
2785c5
-
2785c5
 eval $set_cc_for_build
2785c5
 cat >$dummy.c <
2785c5
 #ifdef _SEQUENT_
2785c5
@@ -1353,11 +1357,11 @@
2785c5
 #include <sys/param.h>
2785c5
   printf ("m68k-sony-newsos%s\n",
2785c5
 #ifdef NEWSOS4
2785c5
-          "4"
2785c5
+	"4"
2785c5
 #else
2785c5
-	  ""
2785c5
+	""
2785c5
 #endif
2785c5
-         ); exit (0);
2785c5
+	); exit (0);
2785c5
 #endif
2785c5
 #endif
2785c5
 
2785c5
diff -urN bacula-5.2.13/autoconf/config.sub bacula-5.2.13-aarch64/autoconf/config.sub
2785c5
--- bacula-5.2.13/autoconf/config.sub	2013-02-19 13:21:35.000000000 -0600
2785c5
+++ bacula-5.2.13-aarch64/autoconf/config.sub	2013-03-07 19:51:13.355595494 -0600
2785c5
@@ -1,10 +1,10 @@
2785c5
 #! /bin/sh
2785c5
 # Configuration validation subroutine script.
2785c5
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2785c5
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2785c5
-#   Free Software Foundation, Inc.
2785c5
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2785c5
+#   2011, 2012 Free Software Foundation, Inc.
2785c5
 
2785c5
-timestamp='2009-06-11'
2785c5
+timestamp='2012-10-10'
2785c5
 
2785c5
 # This file is (in principle) common to ALL GNU software.
2785c5
 # The presence of a machine in this file suggests that SOME GNU software
2785c5
@@ -21,9 +21,7 @@
2785c5
 # GNU General Public License for more details.
2785c5
 #
2785c5
 # You should have received a copy of the GNU General Public License
2785c5
-# along with this program; if not, write to the Free Software
2785c5
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
2785c5
-# 02110-1301, USA.
2785c5
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
2785c5
 #
2785c5
 # As a special exception to the GNU General Public License, if you
2785c5
 # distribute this file as part of a program that contains a
2785c5
@@ -32,13 +30,16 @@
2785c5
 
2785c5
 
2785c5
 # Please send patches to <config-patches@gnu.org>.  Submit a context
2785c5
-# diff and a properly formatted ChangeLog entry.
2785c5
+# diff and a properly formatted GNU ChangeLog entry.
2785c5
 #
2785c5
 # Configuration subroutine to validate and canonicalize a configuration type.
2785c5
 # Supply the specified configuration type as an argument.
2785c5
 # If it is invalid, we print an error message on stderr and exit with code 1.
2785c5
 # Otherwise, we print the canonical config type on stdout and succeed.
2785c5
 
2785c5
+# You can get the latest version of this script from:
2785c5
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
2785c5
+
2785c5
 # This file is supposed to be the same for all GNU packages
2785c5
 # and recognize all the CPU types, system types and aliases
2785c5
 # that are meaningful with *any* GNU software.
2785c5
@@ -72,8 +73,9 @@
2785c5
 version="\
2785c5
 GNU config.sub ($timestamp)
2785c5
 
2785c5
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2785c5
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2785c5
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2785c5
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2785c5
+Free Software Foundation, Inc.
2785c5
 
2785c5
 This is free software; see the source for copying conditions.  There is NO
2785c5
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2785c5
@@ -120,13 +122,18 @@
2785c5
 # Here we must recognize all the valid KERNEL-OS combinations.
2785c5
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
2785c5
 case $maybe_os in
2785c5
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
2785c5
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
2785c5
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
2785c5
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
2785c5
+  knetbsd*-gnu* | netbsd*-gnu* | \
2785c5
   kopensolaris*-gnu* | \
2785c5
   storm-chaos* | os2-emx* | rtmk-nova*)
2785c5
     os=-$maybe_os
2785c5
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
2785c5
     ;;
2785c5
+  android-linux)
2785c5
+    os=-linux-android
2785c5
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
2785c5
+    ;;
2785c5
   *)
2785c5
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
2785c5
     if [ $basic_machine != $1 ]
2785c5
@@ -149,12 +156,12 @@
2785c5
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
2785c5
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
2785c5
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
2785c5
-	-apple | -axis | -knuth | -cray)
2785c5
+	-apple | -axis | -knuth | -cray | -microblaze*)
2785c5
 		os=
2785c5
 		basic_machine=$1
2785c5
 		;;
2785c5
-        -bluegene*)
2785c5
-	        os=-cnk
2785c5
+	-bluegene*)
2785c5
+		os=-cnk
2785c5
 		;;
2785c5
 	-sim | -cisco | -oki | -wec | -winbond)
2785c5
 		os=
2785c5
@@ -170,10 +177,10 @@
2785c5
 		os=-chorusos
2785c5
 		basic_machine=$1
2785c5
 		;;
2785c5
- 	-chorusrdb)
2785c5
- 		os=-chorusrdb
2785c5
+	-chorusrdb)
2785c5
+		os=-chorusrdb
2785c5
 		basic_machine=$1
2785c5
- 		;;
2785c5
+		;;
2785c5
 	-hiux*)
2785c5
 		os=-hiuxwe2
2785c5
 		;;
2785c5
@@ -218,6 +225,12 @@
2785c5
 	-isc*)
2785c5
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2785c5
 		;;
2785c5
+	-lynx*178)
2785c5
+		os=-lynxos178
2785c5
+		;;
2785c5
+	-lynx*5)
2785c5
+		os=-lynxos5
2785c5
+		;;
2785c5
 	-lynx*)
2785c5
 		os=-lynxos
2785c5
 		;;
2785c5
@@ -242,20 +255,25 @@
2785c5
 	# Some are omitted here because they have special meanings below.
2785c5
 	1750a | 580 \
2785c5
 	| a29k \
2785c5
+	| aarch64 | aarch64_be \
2785c5
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2785c5
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2785c5
 	| am33_2.0 \
2785c5
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
2785c5
+        | be32 | be64 \
2785c5
 	| bfin \
2785c5
 	| c4x | clipper \
2785c5
 	| d10v | d30v | dlx | dsp16xx \
2785c5
+	| epiphany \
2785c5
 	| fido | fr30 | frv \
2785c5
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2785c5
+	| hexagon \
2785c5
 	| i370 | i860 | i960 | ia64 \
2785c5
 	| ip2k | iq2000 \
2785c5
+	| le32 | le64 \
2785c5
 	| lm32 \
2785c5
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
2785c5
-	| maxq | mb | microblaze | mcore | mep | metag \
2785c5
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
2785c5
 	| mips | mipsbe | mipseb | mipsel | mipsle \
2785c5
 	| mips16 \
2785c5
 	| mips64 | mips64el \
2785c5
@@ -278,27 +296,39 @@
2785c5
 	| moxie \
2785c5
 	| mt \
2785c5
 	| msp430 \
2785c5
+	| nds32 | nds32le | nds32be \
2785c5
 	| nios | nios2 \
2785c5
 	| ns16k | ns32k \
2785c5
+	| open8 \
2785c5
 	| or32 \
2785c5
 	| pdp10 | pdp11 | pj | pjl \
2785c5
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2785c5
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
2785c5
 	| pyramid \
2785c5
+	| rl78 | rx \
2785c5
 	| score \
2785c5
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2785c5
 	| sh64 | sh64le \
2785c5
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
2785c5
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
2785c5
-	| spu | strongarm \
2785c5
-	| tahoe | thumb | tic4x | tic80 | tron \
2785c5
-	| v850 | v850e \
2785c5
+	| spu \
2785c5
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
2785c5
+	| ubicom32 \
2785c5
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
2785c5
 	| we32k \
2785c5
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
2785c5
+	| x86 | xc16x | xstormy16 | xtensa \
2785c5
 	| z8k | z80)
2785c5
 		basic_machine=$basic_machine-unknown
2785c5
 		;;
2785c5
-	m6811 | m68hc11 | m6812 | m68hc12)
2785c5
-		# Motorola 68HC11/12.
2785c5
+	c54x)
2785c5
+		basic_machine=tic54x-unknown
2785c5
+		;;
2785c5
+	c55x)
2785c5
+		basic_machine=tic55x-unknown
2785c5
+		;;
2785c5
+	c6x)
2785c5
+		basic_machine=tic6x-unknown
2785c5
+		;;
2785c5
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
2785c5
 		basic_machine=$basic_machine-unknown
2785c5
 		os=-none
2785c5
 		;;
2785c5
@@ -308,6 +338,21 @@
2785c5
 		basic_machine=mt-unknown
2785c5
 		;;
2785c5
 
2785c5
+	strongarm | thumb | xscale)
2785c5
+		basic_machine=arm-unknown
2785c5
+		;;
2785c5
+	xgate)
2785c5
+		basic_machine=$basic_machine-unknown
2785c5
+		os=-none
2785c5
+		;;
2785c5
+	xscaleeb)
2785c5
+		basic_machine=armeb-unknown
2785c5
+		;;
2785c5
+
2785c5
+	xscaleel)
2785c5
+		basic_machine=armel-unknown
2785c5
+		;;
2785c5
+
2785c5
 	# We use `pc' rather than `unknown'
2785c5
 	# because (1) that's what they normally are, and
2785c5
 	# (2) the word "unknown" tends to confuse beginning users.
2785c5
@@ -322,25 +367,30 @@
2785c5
 	# Recognize the basic CPU types with company name.
2785c5
 	580-* \
2785c5
 	| a29k-* \
2785c5
+	| aarch64-* | aarch64_be-* \
2785c5
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
2785c5
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
2785c5
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
2785c5
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
2785c5
 	| avr-* | avr32-* \
2785c5
+	| be32-* | be64-* \
2785c5
 	| bfin-* | bs2000-* \
2785c5
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
2785c5
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
2785c5
 	| clipper-* | craynv-* | cydra-* \
2785c5
 	| d10v-* | d30v-* | dlx-* \
2785c5
 	| elxsi-* \
2785c5
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
2785c5
 	| h8300-* | h8500-* \
2785c5
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
2785c5
+	| hexagon-* \
2785c5
 	| i*86-* | i860-* | i960-* | ia64-* \
2785c5
 	| ip2k-* | iq2000-* \
2785c5
+	| le32-* | le64-* \
2785c5
 	| lm32-* \
2785c5
 	| m32c-* | m32r-* | m32rle-* \
2785c5
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
2785c5
 	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
2785c5
+	| microblaze-* | microblazeel-* \
2785c5
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
2785c5
 	| mips16-* \
2785c5
 	| mips64-* | mips64el-* \
2785c5
@@ -362,24 +412,29 @@
2785c5
 	| mmix-* \
2785c5
 	| mt-* \
2785c5
 	| msp430-* \
2785c5
+	| nds32-* | nds32le-* | nds32be-* \
2785c5
 	| nios-* | nios2-* \
2785c5
 	| none-* | np1-* | ns16k-* | ns32k-* \
2785c5
+	| open8-* \
2785c5
 	| orion-* \
2785c5
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
2785c5
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
2785c5
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
2785c5
 	| pyramid-* \
2785c5
-	| romp-* | rs6000-* \
2785c5
+	| rl78-* | romp-* | rs6000-* | rx-* \
2785c5
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
2785c5
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
2785c5
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
2785c5
 	| sparclite-* \
2785c5
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
2785c5
-	| tahoe-* | thumb-* \
2785c5
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
2785c5
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
2785c5
+	| tahoe-* \
2785c5
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
2785c5
+	| tile*-* \
2785c5
 	| tron-* \
2785c5
-	| v850-* | v850e-* | vax-* \
2785c5
+	| ubicom32-* \
2785c5
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
2785c5
+	| vax-* \
2785c5
 	| we32k-* \
2785c5
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
2785c5
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
2785c5
 	| xstormy16-* | xtensa*-* \
2785c5
 	| ymp-* \
2785c5
 	| z8k-* | z80-*)
2785c5
@@ -404,7 +459,7 @@
2785c5
 		basic_machine=a29k-amd
2785c5
 		os=-udi
2785c5
 		;;
2785c5
-    	abacus)
2785c5
+	abacus)
2785c5
 		basic_machine=abacus-unknown
2785c5
 		;;
2785c5
 	adobe68k)
2785c5
@@ -474,11 +529,20 @@
2785c5
 		basic_machine=powerpc-ibm
2785c5
 		os=-cnk
2785c5
 		;;
2785c5
+	c54x-*)
2785c5
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
+		;;
2785c5
+	c55x-*)
2785c5
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
+		;;
2785c5
+	c6x-*)
2785c5
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
+		;;
2785c5
 	c90)
2785c5
 		basic_machine=c90-cray
2785c5
 		os=-unicos
2785c5
 		;;
2785c5
-        cegcc)
2785c5
+	cegcc)
2785c5
 		basic_machine=arm-unknown
2785c5
 		os=-cegcc
2785c5
 		;;
2785c5
@@ -510,7 +574,7 @@
2785c5
 		basic_machine=craynv-cray
2785c5
 		os=-unicosmp
2785c5
 		;;
2785c5
-	cr16)
2785c5
+	cr16 | cr16-*)
2785c5
 		basic_machine=cr16-unknown
2785c5
 		os=-elf
2785c5
 		;;
2785c5
@@ -668,7 +732,6 @@
2785c5
 	i370-ibm* | ibm*)
2785c5
 		basic_machine=i370-ibm
2785c5
 		;;
2785c5
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
2785c5
 	i*86v32)
2785c5
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
2785c5
 		os=-sysv32
2785c5
@@ -726,6 +789,13 @@
2785c5
 		basic_machine=ns32k-utek
2785c5
 		os=-sysv
2785c5
 		;;
2785c5
+	microblaze*)
2785c5
+		basic_machine=microblaze-xilinx
2785c5
+		;;
2785c5
+	mingw64)
2785c5
+		basic_machine=x86_64-pc
2785c5
+		os=-mingw64
2785c5
+		;;
2785c5
 	mingw32)
2785c5
 		basic_machine=i386-pc
2785c5
 		os=-mingw32
2785c5
@@ -762,10 +832,18 @@
2785c5
 	ms1-*)
2785c5
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
2785c5
 		;;
2785c5
+	msys)
2785c5
+		basic_machine=i386-pc
2785c5
+		os=-msys
2785c5
+		;;
2785c5
 	mvs)
2785c5
 		basic_machine=i370-ibm
2785c5
 		os=-mvs
2785c5
 		;;
2785c5
+	nacl)
2785c5
+		basic_machine=le32-unknown
2785c5
+		os=-nacl
2785c5
+		;;
2785c5
 	ncr3000)
2785c5
 		basic_machine=i486-ncr
2785c5
 		os=-sysv4
2785c5
@@ -830,6 +908,12 @@
2785c5
 	np1)
2785c5
 		basic_machine=np1-gould
2785c5
 		;;
2785c5
+	neo-tandem)
2785c5
+		basic_machine=neo-tandem
2785c5
+		;;
2785c5
+	nse-tandem)
2785c5
+		basic_machine=nse-tandem
2785c5
+		;;
2785c5
 	nsr-tandem)
2785c5
 		basic_machine=nsr-tandem
2785c5
 		;;
2785c5
@@ -912,9 +996,10 @@
2785c5
 		;;
2785c5
 	power)	basic_machine=power-ibm
2785c5
 		;;
2785c5
-	ppc)	basic_machine=powerpc-unknown
2785c5
+	ppc | ppcbe)	basic_machine=powerpc-unknown
2785c5
 		;;
2785c5
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
+	ppc-* | ppcbe-*)
2785c5
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
 		;;
2785c5
 	ppcle | powerpclittle | ppc-le | powerpc-little)
2785c5
 		basic_machine=powerpcle-unknown
2785c5
@@ -1008,6 +1093,9 @@
2785c5
 		basic_machine=i860-stratus
2785c5
 		os=-sysv4
2785c5
 		;;
2785c5
+	strongarm-* | thumb-*)
2785c5
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
2785c5
+		;;
2785c5
 	sun2)
2785c5
 		basic_machine=m68000-sun
2785c5
 		;;
2785c5
@@ -1064,20 +1152,8 @@
2785c5
 		basic_machine=t90-cray
2785c5
 		os=-unicos
2785c5
 		;;
2785c5
-	tic54x | c54x*)
2785c5
-		basic_machine=tic54x-unknown
2785c5
-		os=-coff
2785c5
-		;;
2785c5
-	tic55x | c55x*)
2785c5
-		basic_machine=tic55x-unknown
2785c5
-		os=-coff
2785c5
-		;;
2785c5
-	tic6x | c6x*)
2785c5
-		basic_machine=tic6x-unknown
2785c5
-		os=-coff
2785c5
-		;;
2785c5
 	tile*)
2785c5
-		basic_machine=tile-unknown
2785c5
+		basic_machine=$basic_machine-unknown
2785c5
 		os=-linux-gnu
2785c5
 		;;
2785c5
 	tx39)
2785c5
@@ -1147,6 +1223,9 @@
2785c5
 	xps | xps100)
2785c5
 		basic_machine=xps100-honeywell
2785c5
 		;;
2785c5
+	xscale-* | xscalee[bl]-*)
2785c5
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
2785c5
+		;;
2785c5
 	ymp)
2785c5
 		basic_machine=ymp-cray
2785c5
 		os=-unicos
2785c5
@@ -1244,9 +1323,12 @@
2785c5
 if [ x"$os" != x"" ]
2785c5
 then
2785c5
 case $os in
2785c5
-        # First match some system type aliases
2785c5
-        # that might get confused with valid system types.
2785c5
+	# First match some system type aliases
2785c5
+	# that might get confused with valid system types.
2785c5
 	# -solaris* is a basic system type, with this one exception.
2785c5
+	-auroraux)
2785c5
+		os=-auroraux
2785c5
+		;;
2785c5
 	-solaris1 | -solaris1.*)
2785c5
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
2785c5
 		;;
2785c5
@@ -1268,21 +1350,22 @@
2785c5
 	# -sysv* is not here because it comes later, after sysvr4.
2785c5
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
2785c5
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
2785c5
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
2785c5
-	      | -kopensolaris* \
2785c5
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
2785c5
+	      | -sym* | -kopensolaris* \
2785c5
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
2785c5
 	      | -aos* | -aros* \
2785c5
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
2785c5
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
2785c5
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
2785c5
-	      | -openbsd* | -solidbsd* \
2785c5
+	      | -bitrig* | -openbsd* | -solidbsd* \
2785c5
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
2785c5
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
2785c5
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
2785c5
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
2785c5
 	      | -chorusos* | -chorusrdb* | -cegcc* \
2785c5
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2785c5
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
2785c5
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
2785c5
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
2785c5
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
2785c5
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
2785c5
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
2785c5
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
2785c5
@@ -1290,7 +1373,7 @@
2785c5
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
2785c5
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
2785c5
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
2785c5
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
2785c5
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
2785c5
 	# Remember, each alternative MUST END IN *, to match a version number.
2785c5
 		;;
2785c5
 	-qnx*)
2785c5
@@ -1329,7 +1412,7 @@
2785c5
 	-opened*)
2785c5
 		os=-openedition
2785c5
 		;;
2785c5
-        -os400*)
2785c5
+	-os400*)
2785c5
 		os=-os400
2785c5
 		;;
2785c5
 	-wince*)
2785c5
@@ -1378,7 +1461,7 @@
2785c5
 	-sinix*)
2785c5
 		os=-sysv4
2785c5
 		;;
2785c5
-        -tpf*)
2785c5
+	-tpf*)
2785c5
 		os=-tpf
2785c5
 		;;
2785c5
 	-triton*)
2785c5
@@ -1423,6 +1506,8 @@
2785c5
 	-dicos*)
2785c5
 		os=-dicos
2785c5
 		;;
2785c5
+	-nacl*)
2785c5
+		;;
2785c5
 	-none)
2785c5
 		;;
2785c5
 	*)
2785c5
@@ -1445,10 +1530,10 @@
2785c5
 # system, and we'll never get to this point.
2785c5
 
2785c5
 case $basic_machine in
2785c5
-        score-*)
2785c5
+	score-*)
2785c5
 		os=-elf
2785c5
 		;;
2785c5
-        spu-*)
2785c5
+	spu-*)
2785c5
 		os=-elf
2785c5
 		;;
2785c5
 	*-acorn)
2785c5
@@ -1460,8 +1545,20 @@
2785c5
 	arm*-semi)
2785c5
 		os=-aout
2785c5
 		;;
2785c5
-        c4x-* | tic4x-*)
2785c5
-        	os=-coff
2785c5
+	c4x-* | tic4x-*)
2785c5
+		os=-coff
2785c5
+		;;
2785c5
+	hexagon-*)
2785c5
+		os=-elf
2785c5
+		;;
2785c5
+	tic54x-*)
2785c5
+		os=-coff
2785c5
+		;;
2785c5
+	tic55x-*)
2785c5
+		os=-coff
2785c5
+		;;
2785c5
+	tic6x-*)
2785c5
+		os=-coff
2785c5
 		;;
2785c5
 	# This must come before the *-dec entry.
2785c5
 	pdp10-*)
2785c5
@@ -1481,14 +1578,11 @@
2785c5
 		;;
2785c5
 	m68000-sun)
2785c5
 		os=-sunos3
2785c5
-		# This also exists in the configure program, but was not the
2785c5
-		# default.
2785c5
-		# os=-sunos4
2785c5
 		;;
2785c5
 	m68*-cisco)
2785c5
 		os=-aout
2785c5
 		;;
2785c5
-        mep-*)
2785c5
+	mep-*)
2785c5
 		os=-elf
2785c5
 		;;
2785c5
 	mips*-cisco)
2785c5
@@ -1515,7 +1609,7 @@
2785c5
 	*-ibm)
2785c5
 		os=-aix
2785c5
 		;;
2785c5
-    	*-knuth)
2785c5
+	*-knuth)
2785c5
 		os=-mmixware
2785c5
 		;;
2785c5
 	*-wec)