| 1 |
|
#! /bin/sh |
| 2 |
|
# Configuration validation subroutine script. |
| 3 |
< |
# Copyright 1992-2014 Free Software Foundation, Inc. |
| 3 |
> |
# Copyright 1992-2017 Free Software Foundation, Inc. |
| 4 |
|
|
| 5 |
< |
timestamp='2014-12-03' |
| 5 |
> |
timestamp='2017-04-02' |
| 6 |
|
|
| 7 |
|
# This file is free software; you can redistribute it and/or modify it |
| 8 |
|
# under the terms of the GNU General Public License as published by |
| 33 |
|
# Otherwise, we print the canonical config type on stdout and succeed. |
| 34 |
|
|
| 35 |
|
# You can get the latest version of this script from: |
| 36 |
< |
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| 36 |
> |
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub |
| 37 |
|
|
| 38 |
|
# This file is supposed to be the same for all GNU packages |
| 39 |
|
# and recognize all the CPU types, system types and aliases |
| 53 |
|
me=`echo "$0" | sed -e 's,.*/,,'` |
| 54 |
|
|
| 55 |
|
usage="\ |
| 56 |
< |
Usage: $0 [OPTION] CPU-MFR-OPSYS |
| 57 |
< |
$0 [OPTION] ALIAS |
| 56 |
> |
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS |
| 57 |
|
|
| 58 |
|
Canonicalize a configuration name. |
| 59 |
|
|
| 67 |
|
version="\ |
| 68 |
|
GNU config.sub ($timestamp) |
| 69 |
|
|
| 70 |
< |
Copyright 1992-2014 Free Software Foundation, Inc. |
| 70 |
> |
Copyright 1992-2017 Free Software Foundation, Inc. |
| 71 |
|
|
| 72 |
|
This is free software; see the source for copying conditions. There is NO |
| 73 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 116 |
|
case $maybe_os in |
| 117 |
|
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 118 |
|
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 119 |
< |
knetbsd*-gnu* | netbsd*-gnu* | \ |
| 120 |
< |
kopensolaris*-gnu* | \ |
| 119 |
> |
knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
| 120 |
> |
kopensolaris*-gnu* | cloudabi*-eabi* | \ |
| 121 |
|
storm-chaos* | os2-emx* | rtmk-nova*) |
| 122 |
|
os=-$maybe_os |
| 123 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 254 |
|
| arc | arceb \ |
| 255 |
|
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ |
| 256 |
|
| avr | avr32 \ |
| 257 |
+ |
| ba \ |
| 258 |
|
| be32 | be64 \ |
| 259 |
|
| bfin \ |
| 260 |
|
| c4x | c8051 | clipper \ |
| 261 |
|
| d10v | d30v | dlx | dsp16xx \ |
| 262 |
< |
| epiphany \ |
| 263 |
< |
| fido | fr30 | frv \ |
| 262 |
> |
| e2k | epiphany \ |
| 263 |
> |
| fido | fr30 | frv | ft32 \ |
| 264 |
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 265 |
|
| hexagon \ |
| 266 |
< |
| i370 | i860 | i960 | ia64 \ |
| 266 |
> |
| i370 | i860 | i960 | ia16 | ia64 \ |
| 267 |
|
| ip2k | iq2000 \ |
| 268 |
|
| k1om \ |
| 269 |
|
| le32 | le64 \ |
| 301 |
|
| open8 | or1k | or1knd | or32 \ |
| 302 |
|
| pdp10 | pdp11 | pj | pjl \ |
| 303 |
|
| powerpc | powerpc64 | powerpc64le | powerpcle \ |
| 304 |
+ |
| pru \ |
| 305 |
|
| pyramid \ |
| 306 |
|
| riscv32 | riscv64 \ |
| 307 |
|
| rl78 | rx \ |
| 308 |
|
| score \ |
| 309 |
< |
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 309 |
> |
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 310 |
|
| sh64 | sh64le \ |
| 311 |
|
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| 312 |
|
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| 315 |
|
| ubicom32 \ |
| 316 |
|
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
| 317 |
|
| visium \ |
| 318 |
+ |
| wasm32 \ |
| 319 |
|
| we32k \ |
| 320 |
|
| x86 | xc16x | xstormy16 | xtensa \ |
| 321 |
|
| z8k | z80) |
| 378 |
|
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ |
| 379 |
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 380 |
|
| avr-* | avr32-* \ |
| 381 |
+ |
| ba-* \ |
| 382 |
|
| be32-* | be64-* \ |
| 383 |
|
| bfin-* | bs2000-* \ |
| 384 |
|
| c[123]* | c30-* | [cjt]90-* | c4x-* \ |
| 385 |
|
| c8051-* | clipper-* | craynv-* | cydra-* \ |
| 386 |
|
| d10v-* | d30v-* | dlx-* \ |
| 387 |
< |
| elxsi-* \ |
| 387 |
> |
| e2k-* | elxsi-* \ |
| 388 |
|
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
| 389 |
|
| h8300-* | h8500-* \ |
| 390 |
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 391 |
|
| hexagon-* \ |
| 392 |
< |
| i*86-* | i860-* | i960-* | ia64-* \ |
| 392 |
> |
| i*86-* | i860-* | i960-* | ia16-* | ia64-* \ |
| 393 |
|
| ip2k-* | iq2000-* \ |
| 394 |
|
| k1om-* \ |
| 395 |
|
| le32-* | le64-* \ |
| 430 |
|
| orion-* \ |
| 431 |
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 432 |
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
| 433 |
+ |
| pru-* \ |
| 434 |
|
| pyramid-* \ |
| 435 |
+ |
| riscv32-* | riscv64-* \ |
| 436 |
|
| rl78-* | romp-* | rs6000-* | rx-* \ |
| 437 |
|
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 438 |
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 439 |
|
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
| 440 |
|
| sparclite-* \ |
| 441 |
< |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
| 441 |
> |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ |
| 442 |
|
| tahoe-* \ |
| 443 |
|
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 444 |
|
| tile*-* \ |
| 447 |
|
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
| 448 |
|
| vax-* \ |
| 449 |
|
| visium-* \ |
| 450 |
+ |
| wasm32-* \ |
| 451 |
|
| we32k-* \ |
| 452 |
|
| x86-* | x86_64-* | xc16x-* | xps100-* \ |
| 453 |
|
| xstormy16-* | xtensa*-* \ |
| 524 |
|
basic_machine=i386-pc |
| 525 |
|
os=-aros |
| 526 |
|
;; |
| 527 |
+ |
asmjs) |
| 528 |
+ |
basic_machine=asmjs-unknown |
| 529 |
+ |
;; |
| 530 |
|
aux) |
| 531 |
|
basic_machine=m68k-apple |
| 532 |
|
os=-aux |
| 647 |
|
basic_machine=m68k-bull |
| 648 |
|
os=-sysv3 |
| 649 |
|
;; |
| 650 |
+ |
e500v[12]) |
| 651 |
+ |
basic_machine=powerpc-unknown |
| 652 |
+ |
os=$os"spe" |
| 653 |
+ |
;; |
| 654 |
+ |
e500v[12]-*) |
| 655 |
+ |
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 656 |
+ |
os=$os"spe" |
| 657 |
+ |
;; |
| 658 |
|
ebmon29k) |
| 659 |
|
basic_machine=a29k-amd |
| 660 |
|
os=-ebmon |
| 950 |
|
nsr-tandem) |
| 951 |
|
basic_machine=nsr-tandem |
| 952 |
|
;; |
| 953 |
+ |
nsx-tandem) |
| 954 |
+ |
basic_machine=nsx-tandem |
| 955 |
+ |
;; |
| 956 |
|
op50n-* | op60c-*) |
| 957 |
|
basic_machine=hppa1.1-oki |
| 958 |
|
os=-proelf |
| 1037 |
|
ppc-* | ppcbe-*) |
| 1038 |
|
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 1039 |
|
;; |
| 1040 |
< |
ppcle | powerpclittle | ppc-le | powerpc-little) |
| 1040 |
> |
ppcle | powerpclittle) |
| 1041 |
|
basic_machine=powerpcle-unknown |
| 1042 |
|
;; |
| 1043 |
|
ppcle-* | powerpclittle-*) |
| 1047 |
|
;; |
| 1048 |
|
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 1049 |
|
;; |
| 1050 |
< |
ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
| 1050 |
> |
ppc64le | powerpc64little) |
| 1051 |
|
basic_machine=powerpc64le-unknown |
| 1052 |
|
;; |
| 1053 |
|
ppc64le-* | powerpc64little-*) |
| 1248 |
|
basic_machine=a29k-wrs |
| 1249 |
|
os=-vxworks |
| 1250 |
|
;; |
| 1251 |
+ |
wasm32) |
| 1252 |
+ |
basic_machine=wasm32-unknown |
| 1253 |
+ |
;; |
| 1254 |
|
w65*) |
| 1255 |
|
basic_machine=w65-wdc |
| 1256 |
|
os=-none |
| 1396 |
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1397 |
|
| -sym* | -kopensolaris* | -plan9* \ |
| 1398 |
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
| 1399 |
< |
| -aos* | -aros* \ |
| 1399 |
> |
| -aos* | -aros* | -cloudabi* | -sortix* \ |
| 1400 |
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1401 |
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1402 |
|
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
| 1403 |
< |
| -bitrig* | -openbsd* | -solidbsd* \ |
| 1403 |
> |
| -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ |
| 1404 |
|
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| 1405 |
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1406 |
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1407 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1408 |
< |
| -chorusos* | -chorusrdb* | -cegcc* \ |
| 1408 |
> |
| -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ |
| 1409 |
|
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 1410 |
< |
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| 1410 |
> |
| -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
| 1411 |
|
| -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
| 1412 |
|
| -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
| 1413 |
|
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| 1416 |
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1417 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1418 |
|
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| 1419 |
< |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) |
| 1419 |
> |
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ |
| 1420 |
> |
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) |
| 1421 |
|
# Remember, each alternative MUST END IN *, to match a version number. |
| 1422 |
|
;; |
| 1423 |
|
-qnx*) |
| 1549 |
|
;; |
| 1550 |
|
-nacl*) |
| 1551 |
|
;; |
| 1552 |
+ |
-ios) |
| 1553 |
+ |
;; |
| 1554 |
|
-none) |
| 1555 |
|
;; |
| 1556 |
|
*) |
| 1646 |
|
sparc-* | *-sun) |
| 1647 |
|
os=-sunos4.1.1 |
| 1648 |
|
;; |
| 1649 |
+ |
pru-*) |
| 1650 |
+ |
os=-elf |
| 1651 |
+ |
;; |
| 1652 |
|
*-be) |
| 1653 |
|
os=-beos |
| 1654 |
|
;; |