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