Blame SOURCES/apr-util-1.5.2-aarch64.patch

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