1.1 --- a/config.sub Sat Nov 17 01:30:01 2007 +0000
1.2 +++ b/config.sub Fri May 29 18:47:05 2015 +1000
1.5 # Configuration validation subroutine script.
1.6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
1.9 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1.10 +# 2011 Free Software Foundation, Inc.
1.12 -timestamp='2006-07-02'
1.13 +timestamp='2011-10-29'
1.15 # This file is (in principle) common to ALL GNU software.
1.16 # The presence of a machine in this file suggests that SOME GNU software
1.20 # Please send patches to <config-patches@gnu.org>. Submit a context
1.21 -# diff and a properly formatted ChangeLog entry.
1.22 +# diff and a properly formatted GNU ChangeLog entry.
1.24 # Configuration subroutine to validate and canonicalize a configuration type.
1.25 # Supply the specified configuration type as an argument.
1.26 # If it is invalid, we print an error message on stderr and exit with code 1.
1.27 # Otherwise, we print the canonical config type on stdout and succeed.
1.29 +# You can get the latest version of this script from:
1.30 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1.32 # This file is supposed to be the same for all GNU packages
1.33 # and recognize all the CPU types, system types and aliases
1.34 # that are meaningful with *any* GNU software.
1.37 GNU config.sub ($timestamp)
1.39 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.40 -Free Software Foundation, Inc.
1.41 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1.42 +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
1.43 +Software Foundation, Inc.
1.45 This is free software; see the source for copying conditions. There is NO
1.46 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1.47 @@ -120,8 +124,10 @@
1.48 # Here we must recognize all the valid KERNEL-OS combinations.
1.49 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1.51 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1.52 - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1.53 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
1.54 + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
1.55 + knetbsd*-gnu* | netbsd*-gnu* | \
1.56 + kopensolaris*-gnu* | \
1.57 storm-chaos* | os2-emx* | rtmk-nova*)
1.59 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1.60 @@ -148,10 +154,13 @@
1.61 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1.62 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1.63 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1.64 - -apple | -axis | -knuth | -cray)
1.65 + -apple | -axis | -knuth | -cray | -microblaze)
1.72 -sim | -cisco | -oki | -wec | -winbond)
1.75 @@ -166,10 +175,10 @@
1.89 @@ -242,20 +251,27 @@
1.90 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1.92 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1.96 | d10v | d30v | dlx | dsp16xx \
1.99 + | fido | fr30 | frv \
1.100 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1.102 | i370 | i860 | i960 | ia64 \
1.106 | m32c | m32r | m32rle | m68000 | m68k | m88k \
1.107 - | maxq | mb | microblaze | mcore \
1.108 + | maxq | mb | microblaze | mcore | mep | metag \
1.109 | mips | mipsbe | mipseb | mipsel | mipsle \
1.111 | mips64 | mips64el \
1.112 + | mips64octeon | mips64octeonel \
1.113 + | mips64orion | mips64orionel \
1.114 + | mips64r5900 | mips64r5900el \
1.115 | mips64vr | mips64vrel \
1.116 - | mips64orion | mips64orionel \
1.117 | mips64vr4100 | mips64vr4100el \
1.118 | mips64vr4300 | mips64vr4300el \
1.119 | mips64vr5000 | mips64vr5000el \
1.120 @@ -268,27 +284,42 @@
1.121 | mipsisa64sr71k | mipsisa64sr71kel \
1.122 | mipstx39 | mipstx39el \
1.123 | mn10200 | mn10300 \
1.127 + | nds32 | nds32le | nds32be \
1.132 | pdp10 | pdp11 | pj | pjl \
1.133 - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1.134 + | powerpc | powerpc64 | powerpc64le | powerpcle \
1.136 - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1.139 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1.141 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1.142 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1.143 - | spu | strongarm \
1.144 - | tahoe | thumb | tic4x | tic80 | tron \
1.147 + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
1.149 + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
1.151 - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
1.153 + | x86 | xc16x | xstormy16 | xtensa \
1.155 basic_machine=$basic_machine-unknown
1.157 - m6811 | m68hc11 | m6812 | m68hc12)
1.159 + basic_machine=tic54x-unknown
1.162 + basic_machine=tic55x-unknown
1.165 + basic_machine=tic6x-unknown
1.167 + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
1.168 # Motorola 68HC11/12.
1.169 basic_machine=$basic_machine-unknown
1.171 @@ -299,6 +330,18 @@
1.172 basic_machine=mt-unknown
1.175 + strongarm | thumb | xscale)
1.176 + basic_machine=arm-unknown
1.180 + basic_machine=armeb-unknown
1.184 + basic_machine=armel-unknown
1.187 # We use `pc' rather than `unknown'
1.188 # because (1) that's what they normally are, and
1.189 # (2) the word "unknown" tends to confuse beginning users.
1.190 @@ -318,24 +361,30 @@
1.191 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1.192 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
1.193 | avr-* | avr32-* \
1.194 + | be32-* | be64-* \
1.195 | bfin-* | bs2000-* \
1.196 - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1.197 + | c[123]* | c30-* | [cjt]90-* | c4x-* \
1.198 | clipper-* | craynv-* | cydra-* \
1.199 | d10v-* | d30v-* | dlx-* \
1.201 - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
1.202 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1.203 | h8300-* | h8500-* \
1.204 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1.206 | i*86-* | i860-* | i960-* | ia64-* \
1.207 | ip2k-* | iq2000-* \
1.208 + | le32-* | le64-* \
1.210 | m32c-* | m32r-* | m32rle-* \
1.211 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1.212 - | m88110-* | m88k-* | maxq-* | mcore-* \
1.213 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
1.214 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1.216 | mips64-* | mips64el-* \
1.217 + | mips64octeon-* | mips64octeonel-* \
1.218 + | mips64orion-* | mips64orionel-* \
1.219 + | mips64r5900-* | mips64r5900el-* \
1.220 | mips64vr-* | mips64vrel-* \
1.221 - | mips64orion-* | mips64orionel-* \
1.222 | mips64vr4100-* | mips64vr4100el-* \
1.223 | mips64vr4300-* | mips64vr4300el-* \
1.224 | mips64vr5000-* | mips64vr5000el-* \
1.225 @@ -350,27 +399,36 @@
1.229 + | nds32-* | nds32le-* | nds32be-* \
1.230 | nios-* | nios2-* \
1.231 | none-* | np1-* | ns16k-* | ns32k-* \
1.234 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1.235 - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1.236 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
1.238 - | romp-* | rs6000-* \
1.239 - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1.240 + | rl78-* | romp-* | rs6000-* | rx-* \
1.241 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1.242 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1.243 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1.245 - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1.246 - | tahoe-* | thumb-* \
1.247 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
1.249 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1.252 - | v850-* | v850e-* | vax-* \
1.254 + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
1.257 - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
1.258 - | xstormy16-* | xtensa-* \
1.259 + | x86-* | x86_64-* | xc16x-* | xps100-* \
1.260 + | xstormy16-* | xtensa*-* \
1.265 + # Recognize the basic CPU types without company name, with glob match.
1.267 + basic_machine=$basic_machine-unknown
1.269 # Recognize the various machine names and aliases which stand
1.270 # for a CPU type and a company and sometimes even an OS.
1.271 @@ -388,7 +446,7 @@
1.272 basic_machine=a29k-amd
1.277 basic_machine=abacus-unknown
1.280 @@ -434,6 +492,10 @@
1.281 basic_machine=m68k-apollo
1.285 + basic_machine=i386-pc
1.289 basic_machine=m68k-apple
1.291 @@ -442,10 +504,35 @@
1.292 basic_machine=ns32k-sequent
1.296 + basic_machine=bfin-unknown
1.300 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
1.304 + basic_machine=powerpc-ibm
1.308 + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
1.311 + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
1.314 + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
1.317 basic_machine=c90-cray
1.321 + basic_machine=arm-unknown
1.325 basic_machine=c1-convex
1.327 @@ -474,8 +561,8 @@
1.328 basic_machine=craynv-cray
1.332 - basic_machine=cr16c-unknown
1.334 + basic_machine=cr16-unknown
1.338 @@ -513,6 +600,10 @@
1.339 basic_machine=m88k-motorola
1.343 + basic_machine=i686-pc
1.347 basic_machine=i586-pc
1.349 @@ -667,6 +758,14 @@
1.350 basic_machine=m68k-isi
1.354 + basic_machine=m68k-unknown
1.358 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
1.362 basic_machine=m88k-omron
1.364 @@ -678,10 +777,17 @@
1.365 basic_machine=ns32k-utek
1.369 + basic_machine=microblaze-xilinx
1.372 basic_machine=i386-pc
1.376 + basic_machine=arm-unknown
1.380 basic_machine=m68000-convergent
1.382 @@ -714,6 +820,10 @@
1.383 basic_machine=i370-ibm
1.387 + basic_machine=le32-unknown
1.391 basic_machine=i486-ncr
1.393 @@ -778,6 +888,12 @@
1.395 basic_machine=np1-gould
1.398 + basic_machine=neo-tandem
1.401 + basic_machine=nse-tandem
1.404 basic_machine=nsr-tandem
1.406 @@ -808,6 +924,14 @@
1.407 basic_machine=i860-intel
1.411 + basic_machine=hppa-unknown
1.415 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
1.419 basic_machine=sparc-tti
1.421 @@ -852,9 +976,10 @@
1.423 power) basic_machine=power-ibm
1.425 - ppc) basic_machine=powerpc-unknown
1.426 + ppc | ppcbe) basic_machine=powerpc-unknown
1.428 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1.430 + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1.432 ppcle | powerpclittle | ppc-le | powerpc-little)
1.433 basic_machine=powerpcle-unknown
1.434 @@ -909,6 +1034,10 @@
1.436 basic_machine=mipsisa64sb1el-unknown
1.439 + basic_machine=mipsisa32-sde
1.443 basic_machine=mips-sei
1.445 @@ -920,6 +1049,9 @@
1.446 basic_machine=sh-hitachi
1.450 + basic_machine=sh5le-unknown
1.453 basic_machine=sh64-unknown
1.455 @@ -941,6 +1073,9 @@
1.456 basic_machine=i860-stratus
1.459 + strongarm-* | thumb-*)
1.460 + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1.463 basic_machine=m68000-sun
1.465 @@ -997,17 +1132,9 @@
1.466 basic_machine=t90-cray
1.470 - basic_machine=tic54x-unknown
1.474 - basic_machine=tic55x-unknown
1.478 - basic_machine=tic6x-unknown
1.481 + basic_machine=$basic_machine-unknown
1.485 basic_machine=mipstx39-unknown
1.486 @@ -1076,6 +1203,9 @@
1.488 basic_machine=xps100-honeywell
1.490 + xscale-* | xscalee[bl]-*)
1.491 + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1.494 basic_machine=ymp-cray
1.496 @@ -1084,6 +1214,10 @@
1.497 basic_machine=z8k-unknown
1.501 + basic_machine=z80-unknown
1.505 basic_machine=none-none
1.507 @@ -1122,7 +1256,7 @@
1.509 basic_machine=we32k-att
1.511 - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1.512 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1.513 basic_machine=sh-unknown
1.515 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1.516 @@ -1169,9 +1303,12 @@
1.517 if [ x"$os" != x"" ]
1.520 - # First match some system type aliases
1.521 - # that might get confused with valid system types.
1.522 + # First match some system type aliases
1.523 + # that might get confused with valid system types.
1.524 # -solaris* is a basic system type, with this one exception.
1.528 -solaris1 | -solaris1.*)
1.529 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1.531 @@ -1192,10 +1329,11 @@
1.532 # Each alternative MUST END IN A *, to match a version number.
1.533 # -sysv* is not here because it comes later, after sysvr4.
1.534 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1.535 - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1.536 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1.537 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1.538 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1.539 + | -sym* | -kopensolaris* \
1.540 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1.542 + | -aos* | -aros* \
1.543 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1.544 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1.545 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1.546 @@ -1204,9 +1342,10 @@
1.547 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1.548 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1.549 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1.550 - | -chorusos* | -chorusrdb* \
1.551 + | -chorusos* | -chorusrdb* | -cegcc* \
1.552 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1.553 - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1.554 + | -mingw32* | -linux-gnu* | -linux-android* \
1.555 + | -linux-newlib* | -linux-uclibc* \
1.556 | -uxpv* | -beos* | -mpeix* | -udk* \
1.557 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1.558 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1.559 @@ -1214,7 +1353,7 @@
1.560 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1.561 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1.562 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1.563 - | -skyos* | -haiku* | -rdos* | -toppers*)
1.564 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1.565 # Remember, each alternative MUST END IN *, to match a version number.
1.568 @@ -1253,7 +1392,7 @@
1.577 @@ -1302,7 +1441,7 @@
1.586 @@ -1344,6 +1483,11 @@
1.598 @@ -1366,7 +1510,10 @@
1.599 # system, and we'll never get to this point.
1.601 case $basic_machine in
1.610 @@ -1378,8 +1525,17 @@
1.628 # This must come before the *-dec entry.
1.630 @@ -1406,6 +1562,9 @@
1.640 @@ -1430,7 +1589,7 @@
1.649 @@ -1535,7 +1694,7 @@