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 Free Software Foundation, Inc. |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2005-04-22' |
timestamp='2003-10-07' |
7 |
|
|
8 |
# This file is (in principle) common to ALL GNU software. |
# This file is (in principle) common to ALL GNU software. |
9 |
# 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 |
70 |
version="\ |
version="\ |
71 |
GNU config.sub ($timestamp) |
GNU config.sub ($timestamp) |
72 |
|
|
73 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
74 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
75 |
|
|
76 |
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 |
118 |
# Here we must recognize all the valid KERNEL-OS combinations. |
# Here we must recognize all the valid KERNEL-OS combinations. |
119 |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 |
case $maybe_os in |
case $maybe_os in |
121 |
nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ |
nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
|
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
|
122 |
os=-$maybe_os |
os=-$maybe_os |
123 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 |
;; |
;; |
144 |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
145 |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
146 |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
147 |
-apple | -axis | -knuth | -cray) |
-apple | -axis) |
148 |
os= |
os= |
149 |
basic_machine=$1 |
basic_machine=$1 |
150 |
;; |
;; |
230 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 |
| am33_2.0 \ |
| am33_2.0 \ |
232 |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
|
| bfin \ |
|
233 |
| c4x | clipper \ |
| c4x | clipper \ |
234 |
| d10v | d30v | dlx | dsp16xx \ |
| d10v | d30v | dlx | dsp16xx \ |
235 |
| fr30 | frv \ |
| fr30 | frv \ |
236 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
237 |
| i370 | i860 | i960 | ia64 \ |
| i370 | i860 | i960 | ia64 \ |
238 |
| ip2k | iq2000 \ |
| ip2k | iq2000 \ |
239 |
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
| m32r | m68000 | m68k | m88k | mcore \ |
240 |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
241 |
| mips16 \ |
| mips16 \ |
242 |
| mips64 | mips64el \ |
| mips64 | mips64el \ |
261 |
| pyramid \ |
| pyramid \ |
262 |
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
263 |
| sh64 | sh64le \ |
| sh64 | sh64le \ |
264 |
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
|
| sparcv8 | sparcv9 | sparcv9b \ |
|
265 |
| strongarm \ |
| strongarm \ |
266 |
| tahoe | thumb | tic4x | tic80 | tron \ |
| tahoe | thumb | tic4x | tic80 | tron \ |
267 |
| v850 | v850e \ |
| v850 | v850e \ |
268 |
| we32k \ |
| we32k \ |
269 |
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
| x86 | xscale | xstormy16 | xtensa \ |
270 |
| z8k) |
| z8k) |
271 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
272 |
;; |
;; |
297 |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
298 |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
299 |
| avr-* \ |
| avr-* \ |
300 |
| bfin-* | bs2000-* \ |
| bs2000-* \ |
301 |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
302 |
| clipper-* | craynv-* | cydra-* \ |
| clipper-* | cydra-* \ |
303 |
| d10v-* | d30v-* | dlx-* \ |
| d10v-* | d30v-* | dlx-* \ |
304 |
| elxsi-* \ |
| elxsi-* \ |
305 |
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
307 |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
308 |
| i*86-* | i860-* | i960-* | ia64-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ |
309 |
| ip2k-* | iq2000-* \ |
| ip2k-* | iq2000-* \ |
310 |
| m32r-* | m32rle-* \ |
| m32r-* \ |
311 |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
312 |
| m88110-* | m88k-* | maxq-* | mcore-* \ |
| m88110-* | m88k-* | mcore-* \ |
313 |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
314 |
| mips16-* \ |
| mips16-* \ |
315 |
| mips64-* | mips64el-* \ |
| mips64-* | mips64el-* \ |
325 |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
326 |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
327 |
| mipstx39-* | mipstx39el-* \ |
| mipstx39-* | mipstx39el-* \ |
|
| mmix-* \ |
|
328 |
| msp430-* \ |
| msp430-* \ |
329 |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
330 |
| orion-* \ |
| orion-* \ |
331 |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
332 |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
334 |
| romp-* | rs6000-* \ |
| romp-* | rs6000-* \ |
335 |
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
336 |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
337 |
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
338 |
| sparclite-* \ |
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
|
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
|
339 |
| tahoe-* | thumb-* \ |
| tahoe-* | thumb-* \ |
340 |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
341 |
| tron-* \ |
| tron-* \ |
342 |
| v850-* | v850e-* | vax-* \ |
| v850-* | v850e-* | vax-* \ |
343 |
| we32k-* \ |
| we32k-* \ |
344 |
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
345 |
| xstormy16-* | xtensa-* \ |
| xtensa-* \ |
346 |
| ymp-* \ |
| ymp-* \ |
347 |
| z8k-*) |
| z8k-*) |
348 |
;; |
;; |
362 |
basic_machine=a29k-amd |
basic_machine=a29k-amd |
363 |
os=-udi |
os=-udi |
364 |
;; |
;; |
|
abacus) |
|
|
basic_machine=abacus-unknown |
|
|
;; |
|
365 |
adobe68k) |
adobe68k) |
366 |
basic_machine=m68010-adobe |
basic_machine=m68010-adobe |
367 |
os=-scout |
os=-scout |
379 |
amd64) |
amd64) |
380 |
basic_machine=x86_64-pc |
basic_machine=x86_64-pc |
381 |
;; |
;; |
|
amd64-*) |
|
|
basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
;; |
|
382 |
amdahl) |
amdahl) |
383 |
basic_machine=580-amdahl |
basic_machine=580-amdahl |
384 |
os=-sysv |
os=-sysv |
438 |
basic_machine=j90-cray |
basic_machine=j90-cray |
439 |
os=-unicos |
os=-unicos |
440 |
;; |
;; |
|
craynv) |
|
|
basic_machine=craynv-cray |
|
|
os=-unicosmp |
|
|
;; |
|
|
cr16c) |
|
|
basic_machine=cr16c-unknown |
|
|
os=-elf |
|
|
;; |
|
441 |
crds | unos) |
crds | unos) |
442 |
basic_machine=m68k-crds |
basic_machine=m68k-crds |
443 |
;; |
;; |
|
crisv32 | crisv32-* | etraxfs*) |
|
|
basic_machine=crisv32-axis |
|
|
;; |
|
444 |
cris | cris-* | etrax*) |
cris | cris-* | etrax*) |
445 |
basic_machine=cris-axis |
basic_machine=cris-axis |
446 |
;; |
;; |
|
crx) |
|
|
basic_machine=crx-unknown |
|
|
os=-elf |
|
|
;; |
|
447 |
da30 | da30-*) |
da30 | da30-*) |
448 |
basic_machine=m68k-da30 |
basic_machine=m68k-da30 |
449 |
;; |
;; |
466 |
basic_machine=m88k-motorola |
basic_machine=m88k-motorola |
467 |
os=-sysv3 |
os=-sysv3 |
468 |
;; |
;; |
|
djgpp) |
|
|
basic_machine=i586-pc |
|
|
os=-msdosdjgpp |
|
|
;; |
|
469 |
dpx20 | dpx20-*) |
dpx20 | dpx20-*) |
470 |
basic_machine=rs6000-bull |
basic_machine=rs6000-bull |
471 |
os=-bosx |
os=-bosx |
644 |
mips3*) |
mips3*) |
645 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
646 |
;; |
;; |
647 |
|
mmix*) |
648 |
|
basic_machine=mmix-knuth |
649 |
|
os=-mmixware |
650 |
|
;; |
651 |
monitor) |
monitor) |
652 |
basic_machine=m68k-rom68k |
basic_machine=m68k-rom68k |
653 |
os=-coff |
os=-coff |
728 |
np1) |
np1) |
729 |
basic_machine=np1-gould |
basic_machine=np1-gould |
730 |
;; |
;; |
731 |
|
nv1) |
732 |
|
basic_machine=nv1-cray |
733 |
|
os=-unicosmp |
734 |
|
;; |
735 |
nsr-tandem) |
nsr-tandem) |
736 |
basic_machine=nsr-tandem |
basic_machine=nsr-tandem |
737 |
;; |
;; |
743 |
basic_machine=or32-unknown |
basic_machine=or32-unknown |
744 |
os=-coff |
os=-coff |
745 |
;; |
;; |
|
os400) |
|
|
basic_machine=powerpc-ibm |
|
|
os=-os400 |
|
|
;; |
|
746 |
OSE68000 | ose68000) |
OSE68000 | ose68000) |
747 |
basic_machine=m68000-ericsson |
basic_machine=m68000-ericsson |
748 |
os=-ose |
os=-ose |
963 |
tower | tower-32) |
tower | tower-32) |
964 |
basic_machine=m68k-ncr |
basic_machine=m68k-ncr |
965 |
;; |
;; |
|
tpf) |
|
|
basic_machine=s390x-ibm |
|
|
os=-tpf |
|
|
;; |
|
966 |
udi29k) |
udi29k) |
967 |
basic_machine=a29k-amd |
basic_machine=a29k-amd |
968 |
os=-udi |
os=-udi |
1006 |
basic_machine=hppa1.1-winbond |
basic_machine=hppa1.1-winbond |
1007 |
os=-proelf |
os=-proelf |
1008 |
;; |
;; |
|
xbox) |
|
|
basic_machine=i686-pc |
|
|
os=-mingw32 |
|
|
;; |
|
1009 |
xps | xps100) |
xps | xps100) |
1010 |
basic_machine=xps100-honeywell |
basic_machine=xps100-honeywell |
1011 |
;; |
;; |
1036 |
romp) |
romp) |
1037 |
basic_machine=romp-ibm |
basic_machine=romp-ibm |
1038 |
;; |
;; |
|
mmix) |
|
|
basic_machine=mmix-knuth |
|
|
;; |
|
1039 |
rs6000) |
rs6000) |
1040 |
basic_machine=rs6000-ibm |
basic_machine=rs6000-ibm |
1041 |
;; |
;; |
1058 |
sh64) |
sh64) |
1059 |
basic_machine=sh64-unknown |
basic_machine=sh64-unknown |
1060 |
;; |
;; |
1061 |
sparc | sparcv8 | sparcv9 | sparcv9b) |
sparc | sparcv9 | sparcv9b) |
1062 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
1063 |
;; |
;; |
1064 |
cydra) |
cydra) |
1131 |
| -aos* \ |
| -aos* \ |
1132 |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1133 |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1134 |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
| -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ |
1135 |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
|
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
|
1136 |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1137 |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1138 |
| -chorusos* | -chorusrdb* \ |
| -chorusos* | -chorusrdb* \ |
1139 |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1140 |
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1141 |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1142 |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1143 |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1144 |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1145 |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1146 |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*) |
1147 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
1148 |
;; |
;; |
1149 |
-qnx*) |
-qnx*) |
1182 |
-opened*) |
-opened*) |
1183 |
os=-openedition |
os=-openedition |
1184 |
;; |
;; |
|
-os400*) |
|
|
os=-os400 |
|
|
;; |
|
1185 |
-wince*) |
-wince*) |
1186 |
os=-wince |
os=-wince |
1187 |
;; |
;; |
1203 |
-atheos*) |
-atheos*) |
1204 |
os=-atheos |
os=-atheos |
1205 |
;; |
;; |
|
-syllable*) |
|
|
os=-syllable |
|
|
;; |
|
1206 |
-386bsd) |
-386bsd) |
1207 |
os=-bsd |
os=-bsd |
1208 |
;; |
;; |
1225 |
-sinix*) |
-sinix*) |
1226 |
os=-sysv4 |
os=-sysv4 |
1227 |
;; |
;; |
|
-tpf*) |
|
|
os=-tpf |
|
|
;; |
|
1228 |
-triton*) |
-triton*) |
1229 |
os=-sysv3 |
os=-sysv3 |
1230 |
;; |
;; |
1261 |
-kaos*) |
-kaos*) |
1262 |
os=-kaos |
os=-kaos |
1263 |
;; |
;; |
|
-zvmoe) |
|
|
os=-zvmoe |
|
|
;; |
|
1264 |
-none) |
-none) |
1265 |
;; |
;; |
1266 |
*) |
*) |
1341 |
*-ibm) |
*-ibm) |
1342 |
os=-aix |
os=-aix |
1343 |
;; |
;; |
|
*-knuth) |
|
|
os=-mmixware |
|
|
;; |
|
1344 |
*-wec) |
*-wec) |
1345 |
os=-proelf |
os=-proelf |
1346 |
;; |
;; |
1473 |
-mvs* | -opened*) |
-mvs* | -opened*) |
1474 |
vendor=ibm |
vendor=ibm |
1475 |
;; |
;; |
|
-os400*) |
|
|
vendor=ibm |
|
|
;; |
|
1476 |
-ptx*) |
-ptx*) |
1477 |
vendor=sequent |
vendor=sequent |
1478 |
;; |
;; |
|
-tpf*) |
|
|
vendor=ibm |
|
|
;; |
|
1479 |
-vxsim* | -vxworks* | -windiss*) |
-vxsim* | -vxworks* | -windiss*) |
1480 |
vendor=wrs |
vendor=wrs |
1481 |
;; |
;; |