1 |
#! /bin/sh |
#! /bin/sh |
2 |
# Configuration validation subroutine script. |
# Configuration validation subroutine script. |
3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 |
# Free Software Foundation, Inc. |
# 2011 Free Software Foundation, Inc. |
6 |
|
|
7 |
timestamp='2009-12-31' |
timestamp='2011-02-24' |
8 |
|
|
9 |
# This file is (in principle) common to ALL GNU software. |
# This file is (in principle) common to ALL GNU software. |
10 |
# The presence of a machine in this file suggests that SOME GNU software |
# The presence of a machine in this file suggests that SOME GNU software |
76 |
GNU config.sub ($timestamp) |
GNU config.sub ($timestamp) |
77 |
|
|
78 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
79 |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
80 |
Software Foundation, Inc. |
Software Foundation, Inc. |
81 |
|
|
82 |
This is free software; see the source for copying conditions. There is NO |
This is free software; see the source for copying conditions. There is NO |
124 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
125 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
126 |
case $maybe_os in |
case $maybe_os in |
127 |
nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
128 |
uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
129 |
|
knetbsd*-gnu* | netbsd*-gnu* | \ |
130 |
kopensolaris*-gnu* | \ |
kopensolaris*-gnu* | \ |
131 |
storm-chaos* | os2-emx* | rtmk-nova*) |
storm-chaos* | os2-emx* | rtmk-nova*) |
132 |
os=-$maybe_os |
os=-$maybe_os |
283 |
| moxie \ |
| moxie \ |
284 |
| mt \ |
| mt \ |
285 |
| msp430 \ |
| msp430 \ |
286 |
|
| nds32 | nds32le | nds32be \ |
287 |
| nios | nios2 \ |
| nios | nios2 \ |
288 |
| ns16k | ns32k \ |
| ns16k | ns32k \ |
289 |
| or32 \ |
| or32 \ |
297 |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
298 |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
299 |
| spu | strongarm \ |
| spu | strongarm \ |
300 |
| tahoe | thumb | tic4x | tic80 | tron \ |
| tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
301 |
| ubicom32 \ |
| ubicom32 \ |
302 |
| v850 | v850e \ |
| v850 | v850e \ |
303 |
| we32k \ |
| we32k \ |
305 |
| z8k | z80) |
| z8k | z80) |
306 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
307 |
;; |
;; |
308 |
|
c54x) |
309 |
|
basic_machine=tic54x-unknown |
310 |
|
;; |
311 |
|
c55x) |
312 |
|
basic_machine=tic55x-unknown |
313 |
|
;; |
314 |
|
c6x) |
315 |
|
basic_machine=tic6x-unknown |
316 |
|
;; |
317 |
m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
318 |
# Motorola 68HC11/12. |
# Motorola 68HC11/12. |
319 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
345 |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
346 |
| avr-* | avr32-* \ |
| avr-* | avr32-* \ |
347 |
| bfin-* | bs2000-* \ |
| bfin-* | bs2000-* \ |
348 |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| c[123]* | c30-* | [cjt]90-* | c4x-* \ |
349 |
| clipper-* | craynv-* | cydra-* \ |
| clipper-* | craynv-* | cydra-* \ |
350 |
| d10v-* | d30v-* | dlx-* \ |
| d10v-* | d30v-* | dlx-* \ |
351 |
| elxsi-* \ |
| elxsi-* \ |
379 |
| mmix-* \ |
| mmix-* \ |
380 |
| mt-* \ |
| mt-* \ |
381 |
| msp430-* \ |
| msp430-* \ |
382 |
|
| nds32-* | nds32le-* | nds32be-* \ |
383 |
| nios-* | nios2-* \ |
| nios-* | nios2-* \ |
384 |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| none-* | np1-* | ns16k-* | ns32k-* \ |
385 |
| orion-* \ |
| orion-* \ |
393 |
| sparclite-* \ |
| sparclite-* \ |
394 |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
395 |
| tahoe-* | thumb-* \ |
| tahoe-* | thumb-* \ |
396 |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
397 |
|
| tile-* | tilegx-* \ |
398 |
| tron-* \ |
| tron-* \ |
399 |
| ubicom32-* \ |
| ubicom32-* \ |
400 |
| v850-* | v850e-* | vax-* \ |
| v850-* | v850e-* | vax-* \ |
494 |
basic_machine=powerpc-ibm |
basic_machine=powerpc-ibm |
495 |
os=-cnk |
os=-cnk |
496 |
;; |
;; |
497 |
|
c54x-*) |
498 |
|
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
499 |
|
;; |
500 |
|
c55x-*) |
501 |
|
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
502 |
|
;; |
503 |
|
c6x-*) |
504 |
|
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
505 |
|
;; |
506 |
c90) |
c90) |
507 |
basic_machine=c90-cray |
basic_machine=c90-cray |
508 |
os=-unicos |
os=-unicos |
539 |
basic_machine=craynv-cray |
basic_machine=craynv-cray |
540 |
os=-unicosmp |
os=-unicosmp |
541 |
;; |
;; |
542 |
cr16) |
cr16 | cr16-*) |
543 |
basic_machine=cr16-unknown |
basic_machine=cr16-unknown |
544 |
os=-elf |
os=-elf |
545 |
;; |
;; |
862 |
np1) |
np1) |
863 |
basic_machine=np1-gould |
basic_machine=np1-gould |
864 |
;; |
;; |
865 |
|
neo-tandem) |
866 |
|
basic_machine=neo-tandem |
867 |
|
;; |
868 |
|
nse-tandem) |
869 |
|
basic_machine=nse-tandem |
870 |
|
;; |
871 |
nsr-tandem) |
nsr-tandem) |
872 |
basic_machine=nsr-tandem |
basic_machine=nsr-tandem |
873 |
;; |
;; |
1102 |
basic_machine=t90-cray |
basic_machine=t90-cray |
1103 |
os=-unicos |
os=-unicos |
1104 |
;; |
;; |
1105 |
tic54x | c54x*) |
# This must be matched before tile*. |
1106 |
basic_machine=tic54x-unknown |
tilegx*) |
1107 |
os=-coff |
basic_machine=tilegx-unknown |
1108 |
;; |
os=-linux-gnu |
|
tic55x | c55x*) |
|
|
basic_machine=tic55x-unknown |
|
|
os=-coff |
|
|
;; |
|
|
tic6x | c6x*) |
|
|
basic_machine=tic6x-unknown |
|
|
os=-coff |
|
1109 |
;; |
;; |
1110 |
tile*) |
tile*) |
1111 |
basic_machine=tile-unknown |
basic_machine=tile-unknown |
1316 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1317 |
| -chorusos* | -chorusrdb* | -cegcc* \ |
| -chorusos* | -chorusrdb* | -cegcc* \ |
1318 |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1319 |
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
| -mingw32* | -linux-gnu* | -linux-android* \ |
1320 |
|
| -linux-newlib* | -linux-uclibc* \ |
1321 |
| -uxpv* | -beos* | -mpeix* | -udk* \ |
| -uxpv* | -beos* | -mpeix* | -udk* \ |
1322 |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1323 |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1500 |
c4x-* | tic4x-*) |
c4x-* | tic4x-*) |
1501 |
os=-coff |
os=-coff |
1502 |
;; |
;; |
1503 |
|
tic54x-*) |
1504 |
|
os=-coff |
1505 |
|
;; |
1506 |
|
tic55x-*) |
1507 |
|
os=-coff |
1508 |
|
;; |
1509 |
|
tic6x-*) |
1510 |
|
os=-coff |
1511 |
|
;; |
1512 |
# This must come before the *-dec entry. |
# This must come before the *-dec entry. |
1513 |
pdp10-*) |
pdp10-*) |
1514 |
os=-tops20 |
os=-tops20 |