933ad0
diff -urN apr-util-1.4.1/build/config.guess apr-util-1.4.1-aarch64/build/config.guess
933ad0
--- apr-util-1.5.2/build/config.guess.aarch64
933ad0
+++ apr-util-1.5.2/build/config.guess
933ad0
@@ -1,14 +1,12 @@
933ad0
 #! /bin/sh
933ad0
 # Attempt to guess a canonical system name.
933ad0
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
933ad0
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
933ad0
-#   2011 Free Software Foundation, Inc.
933ad0
+#   Copyright 1992-2013 Free Software Foundation, Inc.
933ad0
 
933ad0
-timestamp='2011-05-11'
933ad0
+timestamp='2013-02-12'
933ad0
 
933ad0
 # This file is free software; you can redistribute it and/or modify it
933ad0
 # under the terms of the GNU General Public License as published by
933ad0
-# the Free Software Foundation; either version 2 of the License, or
933ad0
+# the Free Software Foundation; either version 3 of the License, or
933ad0
 # (at your option) any later version.
933ad0
 #
933ad0
 # This program is distributed in the hope that it will be useful, but
933ad0
@@ -17,26 +15,22 @@ timestamp='2011-05-11'
933ad0
 # General Public License for more details.
933ad0
 #
933ad0
 # You should have received a copy of the GNU General Public License
933ad0
-# along with this program; if not, write to the Free Software
933ad0
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
933ad0
-# 02110-1301, USA.
933ad0
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
933ad0
 #
933ad0
 # As a special exception to the GNU General Public License, if you
933ad0
 # distribute this file as part of a program that contains a
933ad0
 # configuration script generated by Autoconf, you may include it under
933ad0
-# the same distribution terms that you use for the rest of that program.
933ad0
-
933ad0
-
933ad0
-# Originally written by Per Bothner.  Please send patches (context
933ad0
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
933ad0
-# entry.
933ad0
+# the same distribution terms that you use for the rest of that
933ad0
+# program.  This Exception is an additional permission under section 7
933ad0
+# of the GNU General Public License, version 3 ("GPLv3").
933ad0
 #
933ad0
-# This script attempts to guess a canonical system name similar to
933ad0
-# config.sub.  If it succeeds, it prints the system name on stdout, and
933ad0
-# exits with 0.  Otherwise, it exits with 1.
933ad0
+# Originally written by Per Bothner.
933ad0
 #
933ad0
 # You can get the latest version of this script from:
933ad0
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
933ad0
+#
933ad0
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
933ad0
+
933ad0
 
933ad0
 me=`echo "$0" | sed -e 's,.*/,,'`
933ad0
 
933ad0
@@ -56,9 +50,7 @@ version="\
933ad0
 GNU config.guess ($timestamp)
933ad0
 
933ad0
 Originally written by Per Bothner.
933ad0
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
933ad0
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
933ad0
-Software Foundation, Inc.
933ad0
+Copyright 1992-2013 Free Software Foundation, Inc.
933ad0
 
933ad0
 This is free software; see the source for copying conditions.  There is NO
933ad0
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
933ad0
@@ -145,7 +137,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` |
933ad0
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
933ad0
     *:NetBSD:*:*)
933ad0
 	# NetBSD (nbsd) targets should (where applicable) match one or
933ad0
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
933ad0
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
933ad0
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
933ad0
 	# switched to ELF, *-*-netbsd* would select the old
933ad0
 	# object file format.  This provides both forward
933ad0
@@ -202,6 +194,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
933ad0
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
933ad0
 	echo "${machine}-${os}${release}"
933ad0
 	exit ;;
933ad0
+    *:Bitrig:*:*)
933ad0
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
933ad0
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
933ad0
+	exit ;;
933ad0
     *:OpenBSD:*:*)
933ad0
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
933ad0
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
933ad0
@@ -304,7 +300,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
933ad0
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
933ad0
 	echo arm-acorn-riscix${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
-    arm:riscos:*:*|arm:RISCOS:*:*)
933ad0
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
933ad0
 	echo arm-unknown-riscos
933ad0
 	exit ;;
933ad0
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
933ad0
@@ -792,21 +788,26 @@ EOF
933ad0
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
     *:FreeBSD:*:*)
933ad0
-	case ${UNAME_MACHINE} in
933ad0
-	    pc98)
933ad0
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
933ad0
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
933ad0
+	case ${UNAME_PROCESSOR} in
933ad0
 	    amd64)
933ad0
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
933ad0
 	    *)
933ad0
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
933ad0
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
933ad0
 	esac
933ad0
 	exit ;;
933ad0
     i*:CYGWIN*:*)
933ad0
 	echo ${UNAME_MACHINE}-pc-cygwin
933ad0
 	exit ;;
933ad0
+    *:MINGW64*:*)
933ad0
+	echo ${UNAME_MACHINE}-pc-mingw64
933ad0
+	exit ;;
933ad0
     *:MINGW*:*)
933ad0
 	echo ${UNAME_MACHINE}-pc-mingw32
933ad0
 	exit ;;
933ad0
+    i*:MSYS*:*)
933ad0
+	echo ${UNAME_MACHINE}-pc-msys
933ad0
+	exit ;;
933ad0
     i*:windows32*:*)
933ad0
 	# uname -m includes "-pc" on this system.
933ad0
 	echo ${UNAME_MACHINE}-mingw32
933ad0
@@ -861,6 +862,13 @@ EOF
933ad0
     i*86:Minix:*:*)
933ad0
 	echo ${UNAME_MACHINE}-pc-minix
933ad0
 	exit ;;
933ad0
+    aarch64:Linux:*:*)
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
+    aarch64_be:Linux:*:*)
933ad0
+	UNAME_MACHINE=aarch64_be
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
     alpha:Linux:*:*)
933ad0
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
933ad0
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
933ad0
@@ -895,13 +903,16 @@ EOF
933ad0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     cris:Linux:*:*)
933ad0
-	echo cris-axis-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-axis-linux-gnu
933ad0
 	exit ;;
933ad0
     crisv32:Linux:*:*)
933ad0
-	echo crisv32-axis-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-axis-linux-gnu
933ad0
 	exit ;;
933ad0
     frv:Linux:*:*)
933ad0
-	echo frv-unknown-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
+    hexagon:Linux:*:*)
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     i*86:Linux:*:*)
933ad0
 	LIBC=gnu
933ad0
@@ -942,8 +953,11 @@ EOF
933ad0
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
933ad0
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933ad0
 	;;
933ad0
+    or1k:Linux:*:*)
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
     or32:Linux:*:*)
933ad0
-	echo or32-unknown-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     padre:Linux:*:*)
933ad0
 	echo sparc-unknown-linux-gnu
933ad0
@@ -978,13 +992,13 @@ EOF
933ad0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     tile*:Linux:*:*)
933ad0
-	echo ${UNAME_MACHINE}-tilera-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     vax:Linux:*:*)
933ad0
 	echo ${UNAME_MACHINE}-dec-linux-gnu
933ad0
 	exit ;;
933ad0
     x86_64:Linux:*:*)
933ad0
-	echo x86_64-unknown-linux-gnu
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
     xtensa*:Linux:*:*)
933ad0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
@@ -1191,6 +1205,9 @@ EOF
933ad0
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
933ad0
 	echo i586-pc-haiku
933ad0
 	exit ;;
933ad0
+    x86_64:Haiku:*:*)
933ad0
+	echo x86_64-unknown-haiku
933ad0
+	exit ;;
933ad0
     SX-4:SUPER-UX:*:*)
933ad0
 	echo sx4-nec-superux${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
@@ -1246,7 +1263,7 @@ EOF
933ad0
     NEO-?:NONSTOP_KERNEL:*:*)
933ad0
 	echo neo-tandem-nsk${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
-    NSE-?:NONSTOP_KERNEL:*:*)
933ad0
+    NSE-*:NONSTOP_KERNEL:*:*)
933ad0
 	echo nse-tandem-nsk${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
     NSR-?:NONSTOP_KERNEL:*:*)
933ad0
@@ -1315,11 +1332,11 @@ EOF
933ad0
     i*86:AROS:*:*)
933ad0
 	echo ${UNAME_MACHINE}-pc-aros
933ad0
 	exit ;;
933ad0
+    x86_64:VMkernel:*:*)
933ad0
+	echo ${UNAME_MACHINE}-unknown-esx
933ad0
+	exit ;;
933ad0
 esac
933ad0
 
933ad0
-#echo '(No uname command or uname output not recognized.)' 1>&2
933ad0
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
933ad0
-
933ad0
 eval $set_cc_for_build
933ad0
 cat >$dummy.c <
933ad0
 #ifdef _SEQUENT_
933ad0
--- apr-util-1.5.2/build/config.sub.aarch64
933ad0
+++ apr-util-1.5.2/build/config.sub
933ad0
@@ -1,38 +1,31 @@
933ad0
 #! /bin/sh
933ad0
 # Configuration validation subroutine script.
933ad0
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
933ad0
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
933ad0
-#   2011 Free Software Foundation, Inc.
933ad0
-
933ad0
-timestamp='2011-03-23'
933ad0
-
933ad0
-# This file is (in principle) common to ALL GNU software.
933ad0
-# The presence of a machine in this file suggests that SOME GNU software
933ad0
-# can handle that machine.  It does not imply ALL GNU software can.
933ad0
-#
933ad0
-# This file is free software; you can redistribute it and/or modify
933ad0
-# it under the terms of the GNU General Public License as published by
933ad0
-# the Free Software Foundation; either version 2 of the License, or
933ad0
+#   Copyright 1992-2013 Free Software Foundation, Inc.
933ad0
+
933ad0
+timestamp='2013-02-12'
933ad0
+
933ad0
+# This file is free software; you can redistribute it and/or modify it
933ad0
+# under the terms of the GNU General Public License as published by
933ad0
+# the Free Software Foundation; either version 3 of the License, or
933ad0
 # (at your option) any later version.
933ad0
 #
933ad0
-# This program is distributed in the hope that it will be useful,
933ad0
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
933ad0
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
933ad0
-# GNU General Public License for more details.
933ad0
+# This program is distributed in the hope that it will be useful, but
933ad0
+# WITHOUT ANY WARRANTY; without even the implied warranty of
933ad0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
933ad0
+# General Public License for more details.
933ad0
 #
933ad0
 # You should have received a copy of the GNU General Public License
933ad0
-# along with this program; if not, write to the Free Software
933ad0
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
933ad0
-# 02110-1301, USA.
933ad0
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
933ad0
 #
933ad0
 # As a special exception to the GNU General Public License, if you
933ad0
 # distribute this file as part of a program that contains a
933ad0
 # configuration script generated by Autoconf, you may include it under
933ad0
-# the same distribution terms that you use for the rest of that program.
933ad0
+# the same distribution terms that you use for the rest of that
933ad0
+# program.  This Exception is an additional permission under section 7
933ad0
+# of the GNU General Public License, version 3 ("GPLv3").
933ad0
 
933ad0
 
933ad0
-# Please send patches to <config-patches@gnu.org>.  Submit a context
933ad0
-# diff and a properly formatted GNU ChangeLog entry.
933ad0
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
933ad0
 #
933ad0
 # Configuration subroutine to validate and canonicalize a configuration type.
933ad0
 # Supply the specified configuration type as an argument.
933ad0
@@ -75,9 +68,7 @@ Report bugs and patches to 
933ad0
 version="\
933ad0
 GNU config.sub ($timestamp)
933ad0
 
933ad0
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
933ad0
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
933ad0
-Software Foundation, Inc.
933ad0
+Copyright 1992-2013 Free Software Foundation, Inc.
933ad0
 
933ad0
 This is free software; see the source for copying conditions.  There is NO
933ad0
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
933ad0
@@ -125,13 +116,17 @@ esac
933ad0
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
933ad0
 case $maybe_os in
933ad0
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
933ad0
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
933ad0
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
933ad0
   knetbsd*-gnu* | netbsd*-gnu* | \
933ad0
   kopensolaris*-gnu* | \
933ad0
   storm-chaos* | os2-emx* | rtmk-nova*)
933ad0
     os=-$maybe_os
933ad0
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
933ad0
     ;;
933ad0
+  android-linux)
933ad0
+    os=-linux-android
933ad0
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
933ad0
+    ;;
933ad0
   *)
933ad0
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
933ad0
     if [ $basic_machine != $1 ]
933ad0
@@ -154,7 +149,7 @@ case $os in
933ad0
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
933ad0
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
933ad0
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
933ad0
-	-apple | -axis | -knuth | -cray | -microblaze)
933ad0
+	-apple | -axis | -knuth | -cray | -microblaze*)
933ad0
 		os=
933ad0
 		basic_machine=$1
933ad0
 		;;
933ad0
@@ -223,6 +218,12 @@ case $os in
933ad0
 	-isc*)
933ad0
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
933ad0
 		;;
933ad0
+	-lynx*178)
933ad0
+		os=-lynxos178
933ad0
+		;;
933ad0
+	-lynx*5)
933ad0
+		os=-lynxos5
933ad0
+		;;
933ad0
 	-lynx*)
933ad0
 		os=-lynxos
933ad0
 		;;
933ad0
@@ -247,20 +248,27 @@ case $basic_machine in
933ad0
 	# Some are omitted here because they have special meanings below.
933ad0
 	1750a | 580 \
933ad0
 	| a29k \
933ad0
+	| aarch64 | aarch64_be \
933ad0
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
933ad0
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
933ad0
 	| am33_2.0 \
933ad0
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
933ad0
+	| arc \
933ad0
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
933ad0
+	| avr | avr32 \
933ad0
+	| be32 | be64 \
933ad0
 	| bfin \
933ad0
 	| c4x | clipper \
933ad0
 	| d10v | d30v | dlx | dsp16xx \
933ad0
+	| epiphany \
933ad0
 	| fido | fr30 | frv \
933ad0
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
933ad0
+	| hexagon \
933ad0
 	| i370 | i860 | i960 | ia64 \
933ad0
 	| ip2k | iq2000 \
933ad0
+	| le32 | le64 \
933ad0
 	| lm32 \
933ad0
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
933ad0
-	| maxq | mb | microblaze | mcore | mep | metag \
933ad0
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
933ad0
 	| mips | mipsbe | mipseb | mipsel | mipsle \
933ad0
 	| mips16 \
933ad0
 	| mips64 | mips64el \
933ad0
@@ -278,20 +286,21 @@ case $basic_machine in
933ad0
 	| mipsisa64r2 | mipsisa64r2el \
933ad0
 	| mipsisa64sb1 | mipsisa64sb1el \
933ad0
 	| mipsisa64sr71k | mipsisa64sr71kel \
933ad0
+	| mipsr5900 | mipsr5900el \
933ad0
 	| mipstx39 | mipstx39el \
933ad0
 	| mn10200 | mn10300 \
933ad0
 	| moxie \
933ad0
 	| mt \
933ad0
 	| msp430 \
933ad0
 	| nds32 | nds32le | nds32be \
933ad0
-	| nios | nios2 \
933ad0
+	| nios | nios2 | nios2eb | nios2el \
933ad0
 	| ns16k | ns32k \
933ad0
 	| open8 \
933ad0
-	| or32 \
933ad0
+	| or1k | or32 \
933ad0
 	| pdp10 | pdp11 | pj | pjl \
933ad0
 	| powerpc | powerpc64 | powerpc64le | powerpcle \
933ad0
 	| pyramid \
933ad0
-	| rx \
933ad0
+	| rl78 | rx \
933ad0
 	| score \
933ad0
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
933ad0
 	| sh64 | sh64le \
933ad0
@@ -300,7 +309,7 @@ case $basic_machine in
933ad0
 	| spu \
933ad0
 	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
933ad0
 	| ubicom32 \
933ad0
-	| v850 | v850e \
933ad0
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
933ad0
 	| we32k \
933ad0
 	| x86 | xc16x | xstormy16 | xtensa \
933ad0
 	| z8k | z80)
933ad0
@@ -315,8 +324,7 @@ case $basic_machine in
933ad0
 	c6x)
933ad0
 		basic_machine=tic6x-unknown
933ad0
 		;;
933ad0
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
933ad0
-		# Motorola 68HC11/12.
933ad0
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
933ad0
 		basic_machine=$basic_machine-unknown
933ad0
 		os=-none
933ad0
 		;;
933ad0
@@ -329,7 +337,10 @@ case $basic_machine in
933ad0
 	strongarm | thumb | xscale)
933ad0
 		basic_machine=arm-unknown
933ad0
 		;;
933ad0
-
933ad0
+	xgate)
933ad0
+		basic_machine=$basic_machine-unknown
933ad0
+		os=-none
933ad0
+		;;
933ad0
 	xscaleeb)
933ad0
 		basic_machine=armeb-unknown
933ad0
 		;;
933ad0
@@ -352,11 +363,13 @@ case $basic_machine in
933ad0
 	# Recognize the basic CPU types with company name.
933ad0
 	580-* \
933ad0
 	| a29k-* \
933ad0
+	| aarch64-* | aarch64_be-* \
933ad0
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
933ad0
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
933ad0
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
933ad0
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
933ad0
 	| avr-* | avr32-* \
933ad0
+	| be32-* | be64-* \
933ad0
 	| bfin-* | bs2000-* \
933ad0
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
933ad0
 	| clipper-* | craynv-* | cydra-* \
933ad0
@@ -365,12 +378,15 @@ case $basic_machine in
933ad0
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
933ad0
 	| h8300-* | h8500-* \
933ad0
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
933ad0
+	| hexagon-* \
933ad0
 	| i*86-* | i860-* | i960-* | ia64-* \
933ad0
 	| ip2k-* | iq2000-* \
933ad0
+	| le32-* | le64-* \
933ad0
 	| lm32-* \
933ad0
 	| m32c-* | m32r-* | m32rle-* \
933ad0
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
933ad0
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
933ad0
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
933ad0
+	| microblaze-* | microblazeel-* \
933ad0
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
933ad0
 	| mips16-* \
933ad0
 	| mips64-* | mips64el-* \
933ad0
@@ -388,19 +404,20 @@ case $basic_machine in
933ad0
 	| mipsisa64r2-* | mipsisa64r2el-* \
933ad0
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
933ad0
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
933ad0
+	| mipsr5900-* | mipsr5900el-* \
933ad0
 	| mipstx39-* | mipstx39el-* \
933ad0
 	| mmix-* \
933ad0
 	| mt-* \
933ad0
 	| msp430-* \
933ad0
 	| nds32-* | nds32le-* | nds32be-* \
933ad0
-	| nios-* | nios2-* \
933ad0
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
933ad0
 	| none-* | np1-* | ns16k-* | ns32k-* \
933ad0
 	| open8-* \
933ad0
 	| orion-* \
933ad0
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
933ad0
 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
933ad0
 	| pyramid-* \
933ad0
-	| romp-* | rs6000-* | rx-* \
933ad0
+	| rl78-* | romp-* | rs6000-* | rx-* \
933ad0
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
933ad0
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
933ad0
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
933ad0
@@ -408,10 +425,11 @@ case $basic_machine in
933ad0
 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
933ad0
 	| tahoe-* \
933ad0
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
933ad0
-	| tile-* | tilegx-* \
933ad0
+	| tile*-* \
933ad0
 	| tron-* \
933ad0
 	| ubicom32-* \
933ad0
-	| v850-* | v850e-* | vax-* \
933ad0
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
933ad0
+	| vax-* \
933ad0
 	| we32k-* \
933ad0
 	| x86-* | x86_64-* | xc16x-* | xps100-* \
933ad0
 	| xstormy16-* | xtensa*-* \
933ad0
@@ -711,7 +729,6 @@ case $basic_machine in
933ad0
 	i370-ibm* | ibm*)
933ad0
 		basic_machine=i370-ibm
933ad0
 		;;
933ad0
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
933ad0
 	i*86v32)
933ad0
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
933ad0
 		os=-sysv32
933ad0
@@ -769,9 +786,13 @@ case $basic_machine in
933ad0
 		basic_machine=ns32k-utek
933ad0
 		os=-sysv
933ad0
 		;;
933ad0
-	microblaze)
933ad0
+	microblaze*)
933ad0
 		basic_machine=microblaze-xilinx
933ad0
 		;;
933ad0
+	mingw64)
933ad0
+		basic_machine=x86_64-pc
933ad0
+		os=-mingw64
933ad0
+		;;
933ad0
 	mingw32)
933ad0
 		basic_machine=i386-pc
933ad0
 		os=-mingw32
933ad0
@@ -808,10 +829,18 @@ case $basic_machine in
933ad0
 	ms1-*)
933ad0
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
933ad0
 		;;
933ad0
+	msys)
933ad0
+		basic_machine=i386-pc
933ad0
+		os=-msys
933ad0
+		;;
933ad0
 	mvs)
933ad0
 		basic_machine=i370-ibm
933ad0
 		os=-mvs
933ad0
 		;;
933ad0
+	nacl)
933ad0
+		basic_machine=le32-unknown
933ad0
+		os=-nacl
933ad0
+		;;
933ad0
 	ncr3000)
933ad0
 		basic_machine=i486-ncr
933ad0
 		os=-sysv4
933ad0
@@ -992,7 +1021,11 @@ case $basic_machine in
933ad0
 		basic_machine=i586-unknown
933ad0
 		os=-pw32
933ad0
 		;;
933ad0
-	rdos)
933ad0
+	rdos | rdos64)
933ad0
+		basic_machine=x86_64-pc
933ad0
+		os=-rdos
933ad0
+		;;
933ad0
+	rdos32)
933ad0
 		basic_machine=i386-pc
933ad0
 		os=-rdos
933ad0
 		;;
933ad0
@@ -1120,13 +1153,8 @@ case $basic_machine in
933ad0
 		basic_machine=t90-cray
933ad0
 		os=-unicos
933ad0
 		;;
933ad0
-	# This must be matched before tile*.
933ad0
-	tilegx*)
933ad0
-		basic_machine=tilegx-unknown
933ad0
-		os=-linux-gnu
933ad0
-		;;
933ad0
 	tile*)
933ad0
-		basic_machine=tile-unknown
933ad0
+		basic_machine=$basic_machine-unknown
933ad0
 		os=-linux-gnu
933ad0
 		;;
933ad0
 	tx39)
933ad0
@@ -1324,21 +1352,21 @@ case $os in
933ad0
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
933ad0
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
933ad0
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
933ad0
-	      | -sym* | -kopensolaris* \
933ad0
+	      | -sym* | -kopensolaris* | -plan9* \
933ad0
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
933ad0
 	      | -aos* | -aros* \
933ad0
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
933ad0
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
933ad0
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
933ad0
-	      | -openbsd* | -solidbsd* \
933ad0
+	      | -bitrig* | -openbsd* | -solidbsd* \
933ad0
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
933ad0
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
933ad0
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
933ad0
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
933ad0
 	      | -chorusos* | -chorusrdb* | -cegcc* \
933ad0
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
933ad0
-	      | -mingw32* | -linux-gnu* | -linux-android* \
933ad0
-	      | -linux-newlib* | -linux-uclibc* \
933ad0
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
933ad0
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
933ad0
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
933ad0
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
933ad0
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
933ad0
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
933ad0
@@ -1470,9 +1498,6 @@ case $os in
933ad0
 	-aros*)
933ad0
 		os=-aros
933ad0
 		;;
933ad0
-	-kaos*)
933ad0
-		os=-kaos
933ad0
-		;;
933ad0
 	-zvmoe)
933ad0
 		os=-zvmoe
933ad0
 		;;
933ad0
@@ -1521,6 +1546,9 @@ case $basic_machine in
933ad0
 	c4x-* | tic4x-*)
933ad0
 		os=-coff
933ad0
 		;;
933ad0
+	hexagon-*)
933ad0
+		os=-elf
933ad0
+		;;
933ad0
 	tic54x-*)
933ad0
 		os=-coff
933ad0
 		;;
933ad0
@@ -1548,9 +1576,6 @@ case $basic_machine in
933ad0
 		;;
933ad0
 	m68000-sun)
933ad0
 		os=-sunos3
933ad0
-		# This also exists in the configure program, but was not the
933ad0
-		# default.
933ad0
-		# os=-sunos4
933ad0
 		;;
933ad0
 	m68*-cisco)
933ad0
 		os=-aout
933ad0
@@ -1564,6 +1589,9 @@ case $basic_machine in
933ad0
 	mips*-*)
933ad0
 		os=-elf
933ad0
 		;;
933ad0
+	or1k-*)
933ad0
+		os=-elf
933ad0
+		;;
933ad0
 	or32-*)
933ad0
 		os=-coff
933ad0
 		;;
933ad0
--- apr-util-1.5.2/xml/expat/conftools/config.guess.aarch64
933ad0
+++ apr-util-1.5.2/xml/expat/conftools/config.guess
933ad0
@@ -204,6 +204,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
933ad0
 	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
933ad0
 	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
+    *:Bitrig:*:*)
933ad0
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
933ad0
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
933ad0
+	exit ;;
933ad0
     *:OpenBSD:*:*)
933ad0
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
933ad0
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
933ad0
@@ -306,7 +310,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
933ad0
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
933ad0
 	echo arm-acorn-riscix${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
-    arm:riscos:*:*|arm:RISCOS:*:*)
933ad0
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
933ad0
 	echo arm-unknown-riscos
933ad0
 	exit ;;
933ad0
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
933ad0
@@ -875,6 +879,13 @@ EOF
933ad0
 	UNAME_MACHINE=aarch64_be
933ad0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
 	exit ;;
933ad0
+    aarch64:Linux:*:*)
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
+    aarch64_be:Linux:*:*)
933ad0
+	UNAME_MACHINE=aarch64_be
933ad0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
933ad0
+	exit ;;
933ad0
     alpha:Linux:*:*)
933ad0
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
933ad0
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
933ad0
@@ -1208,6 +1219,9 @@ EOF
933ad0
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
933ad0
 	echo i586-pc-haiku
933ad0
 	exit ;;
933ad0
+    x86_64:Haiku:*:*)
933ad0
+	echo x86_64-unknown-haiku
933ad0
+	exit ;;
933ad0
     SX-4:SUPER-UX:*:*)
933ad0
 	echo sx4-nec-superux${UNAME_RELEASE}
933ad0
 	exit ;;
933ad0
--- apr-util-1.5.2/xml/expat/conftools/config.sub.aarch64
933ad0
+++ apr-util-1.5.2/xml/expat/conftools/config.sub
933ad0
@@ -156,7 +156,7 @@ case $os in
933ad0
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
933ad0
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
933ad0
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
933ad0
-	-apple | -axis | -knuth | -cray | -microblaze)
933ad0
+	-apple | -axis | -knuth | -cray | -microblaze*)
933ad0
 		os=
933ad0
 		basic_machine=$1
933ad0
 		;;
933ad0
@@ -231,6 +231,12 @@ case $os in
933ad0
 	-lynx*5)
933ad0
 		os=-lynxos5
933ad0
 		;;
933ad0
+	-lynx*178)
933ad0
+		os=-lynxos178
933ad0
+		;;
933ad0
+	-lynx*5)
933ad0
+		os=-lynxos5
933ad0
+		;;
933ad0
 	-lynx*)
933ad0
 		os=-lynxos
933ad0
 		;;
933ad0
@@ -1549,6 +1555,9 @@ case $basic_machine in
933ad0
 		;;
933ad0
 	hexagon-*)
933ad0
 		os=-elf
933ad0
+		;;
933ad0
+	hexagon-*)
933ad0
+		os=-elf
933ad0
 		;;
933ad0
 	tic54x-*)
933ad0
 		os=-coff