5257f0
diff -urN ruby-2.0.0-p0/tool/config.guess ruby-2.0.0-p0-aarch64/tool/config.guess
5257f0
--- ruby-2.0.0-p0/tool/config.guess	2012-01-29 07:50:18.000000000 -0600
5257f0
+++ ruby-2.0.0-p0-aarch64/tool/config.guess	2013-03-08 07:15:49.233030866 -0600
5257f0
@@ -2,9 +2,9 @@
5257f0
 # Attempt to guess a canonical system name.
5257f0
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5257f0
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5257f0
-#   2011 Free Software Foundation, Inc.
5257f0
+#   2011, 2012 Free Software Foundation, Inc.
5257f0
 
5257f0
-timestamp='2011-11-11'
5257f0
+timestamp='2012-09-25'
5257f0
 
5257f0
 # This file is free software; you can redistribute it and/or modify it
5257f0
 # under the terms of the GNU General Public License as published by
5257f0
@@ -17,9 +17,7 @@
5257f0
 # General Public License for more details.
5257f0
 #
5257f0
 # You should have received a copy of the GNU General Public License
5257f0
-# along with this program; if not, write to the Free Software
5257f0
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
5257f0
-# 02110-1301, USA.
5257f0
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
5257f0
 #
5257f0
 # As a special exception to the GNU General Public License, if you
5257f0
 # distribute this file as part of a program that contains a
5257f0
@@ -57,8 +55,8 @@
5257f0
 
5257f0
 Originally written by Per Bothner.
5257f0
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
5257f0
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
5257f0
-Software Foundation, Inc.
5257f0
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
5257f0
+Free Software Foundation, Inc.
5257f0
 
5257f0
 This is free software; see the source for copying conditions.  There is NO
5257f0
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5257f0
@@ -145,7 +143,7 @@
5257f0
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5257f0
     *:NetBSD:*:*)
5257f0
 	# NetBSD (nbsd) targets should (where applicable) match one or
5257f0
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
5257f0
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
5257f0
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
5257f0
 	# switched to ELF, *-*-netbsd* would select the old
5257f0
 	# object file format.  This provides both forward
5257f0
@@ -202,6 +200,10 @@
5257f0
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
5257f0
 	echo "${machine}-${os}${release}"
5257f0
 	exit ;;
5257f0
+    *:Bitrig:*:*)
5257f0
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
5257f0
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
5257f0
+	exit ;;
5257f0
     *:OpenBSD:*:*)
5257f0
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
5257f0
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
5257f0
@@ -304,7 +306,7 @@
5257f0
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
5257f0
 	echo arm-acorn-riscix${UNAME_RELEASE}
5257f0
 	exit ;;
5257f0
-    arm:riscos:*:*|arm:RISCOS:*:*)
5257f0
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
5257f0
 	echo arm-unknown-riscos
5257f0
 	exit ;;
5257f0
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
5257f0
@@ -803,6 +805,9 @@
5257f0
     i*:CYGWIN*:*)
5257f0
 	echo ${UNAME_MACHINE}-pc-cygwin
5257f0
 	exit ;;
5257f0
+    *:MINGW64*:*)
5257f0
+	echo ${UNAME_MACHINE}-pc-mingw64
5257f0
+	exit ;;
5257f0
     *:MINGW*:*)
5257f0
 	echo ${UNAME_MACHINE}-pc-mingw32
5257f0
 	exit ;;
5257f0
@@ -863,6 +868,13 @@
5257f0
     i*86:Minix:*:*)
5257f0
 	echo ${UNAME_MACHINE}-pc-minix
5257f0
 	exit ;;
5257f0
+    aarch64:Linux:*:*)
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
+	exit ;;
5257f0
+    aarch64_be:Linux:*:*)
5257f0
+	UNAME_MACHINE=aarch64_be
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
+	exit ;;
5257f0
     alpha:Linux:*:*)
5257f0
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
5257f0
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
5257f0
@@ -897,16 +909,16 @@
5257f0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
 	exit ;;
5257f0
     cris:Linux:*:*)
5257f0
-	echo cris-axis-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-axis-linux-gnu
5257f0
 	exit ;;
5257f0
     crisv32:Linux:*:*)
5257f0
-	echo crisv32-axis-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-axis-linux-gnu
5257f0
 	exit ;;
5257f0
     frv:Linux:*:*)
5257f0
-	echo frv-unknown-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
 	exit ;;
5257f0
     hexagon:Linux:*:*)
5257f0
-	echo hexagon-unknown-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
 	exit ;;
5257f0
     i*86:Linux:*:*)
5257f0
 	LIBC=gnu
5257f0
@@ -948,7 +960,7 @@
5257f0
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
5257f0
 	;;
5257f0
     or32:Linux:*:*)
5257f0
-	echo or32-unknown-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
 	exit ;;
5257f0
     padre:Linux:*:*)
5257f0
 	echo sparc-unknown-linux-gnu
5257f0
@@ -989,7 +1001,7 @@
5257f0
 	echo ${UNAME_MACHINE}-dec-linux-gnu
5257f0
 	exit ;;
5257f0
     x86_64:Linux:*:*)
5257f0
-	echo x86_64-unknown-linux-gnu
5257f0
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
 	exit ;;
5257f0
     xtensa*:Linux:*:*)
5257f0
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
5257f0
@@ -1196,6 +1208,9 @@
5257f0
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
5257f0
 	echo i586-pc-haiku
5257f0
 	exit ;;
5257f0
+    x86_64:Haiku:*:*)
5257f0
+	echo x86_64-unknown-haiku
5257f0
+	exit ;;
5257f0
     SX-4:SUPER-UX:*:*)
5257f0
 	echo sx4-nec-superux${UNAME_RELEASE}
5257f0
 	exit ;;
5257f0
@@ -1251,7 +1266,7 @@
5257f0
     NEO-?:NONSTOP_KERNEL:*:*)
5257f0
 	echo neo-tandem-nsk${UNAME_RELEASE}
5257f0
 	exit ;;
5257f0
-    NSE-?:NONSTOP_KERNEL:*:*)
5257f0
+    NSE-*:NONSTOP_KERNEL:*:*)
5257f0
 	echo nse-tandem-nsk${UNAME_RELEASE}
5257f0
 	exit ;;
5257f0
     NSR-?:NONSTOP_KERNEL:*:*)
5257f0
@@ -1320,11 +1335,11 @@
5257f0
     i*86:AROS:*:*)
5257f0
 	echo ${UNAME_MACHINE}-pc-aros
5257f0
 	exit ;;
5257f0
+    x86_64:VMkernel:*:*)
5257f0
+	echo ${UNAME_MACHINE}-unknown-esx
5257f0
+	exit ;;
5257f0
 esac
5257f0
 
5257f0
-#echo '(No uname command or uname output not recognized.)' 1>&2
5257f0
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
5257f0
-
5257f0
 eval $set_cc_for_build
5257f0
 cat >$dummy.c <
5257f0
 #ifdef _SEQUENT_
5257f0
diff -urN ruby-2.0.0-p0/tool/config.sub ruby-2.0.0-p0-aarch64/tool/config.sub
5257f0
--- ruby-2.0.0-p0/tool/config.sub	2012-01-29 07:50:18.000000000 -0600
5257f0
+++ ruby-2.0.0-p0-aarch64/tool/config.sub	2013-03-08 07:15:49.328019902 -0600
5257f0
@@ -2,9 +2,9 @@
5257f0
 # Configuration validation subroutine script.
5257f0
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5257f0
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5257f0
-#   2011 Free Software Foundation, Inc.
5257f0
+#   2011, 2012 Free Software Foundation, Inc.
5257f0
 
5257f0
-timestamp='2011-11-11'
5257f0
+timestamp='2012-10-10'
5257f0
 
5257f0
 # This file is (in principle) common to ALL GNU software.
5257f0
 # The presence of a machine in this file suggests that SOME GNU software
5257f0
@@ -21,9 +21,7 @@
5257f0
 # GNU General Public License for more details.
5257f0
 #
5257f0
 # You should have received a copy of the GNU General Public License
5257f0
-# along with this program; if not, write to the Free Software
5257f0
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
5257f0
-# 02110-1301, USA.
5257f0
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
5257f0
 #
5257f0
 # As a special exception to the GNU General Public License, if you
5257f0
 # distribute this file as part of a program that contains a
5257f0
@@ -76,8 +74,8 @@
5257f0
 GNU config.sub ($timestamp)
5257f0
 
5257f0
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
5257f0
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
5257f0
-Software Foundation, Inc.
5257f0
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
5257f0
+Free Software Foundation, Inc.
5257f0
 
5257f0
 This is free software; see the source for copying conditions.  There is NO
5257f0
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5257f0
@@ -125,13 +123,17 @@
5257f0
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
5257f0
 case $maybe_os in
5257f0
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
5257f0
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
5257f0
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
5257f0
   knetbsd*-gnu* | netbsd*-gnu* | \
5257f0
   kopensolaris*-gnu* | \
5257f0
   storm-chaos* | os2-emx* | rtmk-nova*)
5257f0
     os=-$maybe_os
5257f0
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
5257f0
     ;;
5257f0
+  android-linux)
5257f0
+    os=-linux-android
5257f0
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
5257f0
+    ;;
5257f0
   *)
5257f0
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
5257f0
     if [ $basic_machine != $1 ]
5257f0
@@ -154,7 +156,7 @@
5257f0
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
5257f0
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
5257f0
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
5257f0
-	-apple | -axis | -knuth | -cray | -microblaze)
5257f0
+	-apple | -axis | -knuth | -cray | -microblaze*)
5257f0
 		os=
5257f0
 		basic_machine=$1
5257f0
 		;;
5257f0
@@ -223,6 +225,12 @@
5257f0
 	-isc*)
5257f0
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
5257f0
 		;;
5257f0
+	-lynx*178)
5257f0
+		os=-lynxos178
5257f0
+		;;
5257f0
+	-lynx*5)
5257f0
+		os=-lynxos5
5257f0
+		;;
5257f0
 	-lynx*)
5257f0
 		os=-lynxos
5257f0
 		;;
5257f0
@@ -247,6 +255,7 @@
5257f0
 	# Some are omitted here because they have special meanings below.
5257f0
 	1750a | 580 \
5257f0
 	| a29k \
5257f0
+	| aarch64 | aarch64_be \
5257f0
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5257f0
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
5257f0
 	| am33_2.0 \
5257f0
@@ -264,7 +273,7 @@
5257f0
 	| le32 | le64 \
5257f0
 	| lm32 \
5257f0
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
5257f0
-	| maxq | mb | microblaze | mcore | mep | metag \
5257f0
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
5257f0
 	| mips | mipsbe | mipseb | mipsel | mipsle \
5257f0
 	| mips16 \
5257f0
 	| mips64 | mips64el \
5257f0
@@ -319,8 +328,7 @@
5257f0
 	c6x)
5257f0
 		basic_machine=tic6x-unknown
5257f0
 		;;
5257f0
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
5257f0
-		# Motorola 68HC11/12.
5257f0
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
5257f0
 		basic_machine=$basic_machine-unknown
5257f0
 		os=-none
5257f0
 		;;
5257f0
@@ -333,7 +341,10 @@
5257f0
 	strongarm | thumb | xscale)
5257f0
 		basic_machine=arm-unknown
5257f0
 		;;
5257f0
-
5257f0
+	xgate)
5257f0
+		basic_machine=$basic_machine-unknown
5257f0
+		os=-none
5257f0
+		;;
5257f0
 	xscaleeb)
5257f0
 		basic_machine=armeb-unknown
5257f0
 		;;
5257f0
@@ -356,6 +367,7 @@
5257f0
 	# Recognize the basic CPU types with company name.
5257f0
 	580-* \
5257f0
 	| a29k-* \
5257f0
+	| aarch64-* | aarch64_be-* \
5257f0
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
5257f0
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
5257f0
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
5257f0
@@ -377,7 +389,8 @@
5257f0
 	| lm32-* \
5257f0
 	| m32c-* | m32r-* | m32rle-* \
5257f0
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
5257f0
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
5257f0
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
5257f0
+	| microblaze-* | microblazeel-* \
5257f0
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
5257f0
 	| mips16-* \
5257f0
 	| mips64-* | mips64el-* \
5257f0
@@ -719,7 +732,6 @@
5257f0
 	i370-ibm* | ibm*)
5257f0
 		basic_machine=i370-ibm
5257f0
 		;;
5257f0
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
5257f0
 	i*86v32)
5257f0
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
5257f0
 		os=-sysv32
5257f0
@@ -777,9 +789,13 @@
5257f0
 		basic_machine=ns32k-utek
5257f0
 		os=-sysv
5257f0
 		;;
5257f0
-	microblaze)
5257f0
+	microblaze*)
5257f0
 		basic_machine=microblaze-xilinx
5257f0
 		;;
5257f0
+	mingw64)
5257f0
+		basic_machine=x86_64-pc
5257f0
+		os=-mingw64
5257f0
+		;;
5257f0
 	mingw32)
5257f0
 		basic_machine=i386-pc
5257f0
 		os=-mingw32
5257f0
@@ -1341,15 +1357,15 @@
5257f0
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
5257f0
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
5257f0
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
5257f0
-	      | -openbsd* | -solidbsd* \
5257f0
+	      | -bitrig* | -openbsd* | -solidbsd* \
5257f0
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
5257f0
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
5257f0
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
5257f0
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
5257f0
 	      | -chorusos* | -chorusrdb* | -cegcc* \
5257f0
 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
5257f0
-	      | -mingw32* | -linux-gnu* | -linux-android* \
5257f0
-	      | -linux-newlib* | -linux-uclibc* \
5257f0
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
5257f0
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
5257f0
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
5257f0
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
5257f0
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
5257f0
@@ -1532,6 +1548,9 @@
5257f0
 	c4x-* | tic4x-*)
5257f0
 		os=-coff
5257f0
 		;;
5257f0
+	hexagon-*)
5257f0
+		os=-elf
5257f0
+		;;
5257f0
 	tic54x-*)
5257f0
 		os=-coff
5257f0
 		;;
5257f0
@@ -1559,9 +1578,6 @@
5257f0
 		;;
5257f0
 	m68000-sun)
5257f0
 		os=-sunos3
5257f0
-		# This also exists in the configure program, but was not the
5257f0
-		# default.
5257f0
-		# os=-sunos4
5257f0
 		;;
5257f0
 	m68*-cisco)
5257f0
 		os=-aout