Blame SOURCES/bacula-aarch64.patch

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