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