| 1 |
|
#! /bin/sh |
| 2 |
|
# Configuration validation subroutine script. |
| 3 |
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 |
< |
# 2000, 2001, 2002 Free Software Foundation, Inc. |
| 4 |
> |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 5 |
|
|
| 6 |
< |
timestamp='2002-11-30' |
| 6 |
> |
timestamp='2003-08-18' |
| 7 |
|
|
| 8 |
|
# This file is (in principle) common to ALL GNU software. |
| 9 |
|
# The presence of a machine in this file suggests that SOME GNU software |
| 118 |
|
# Here we must recognize all the valid KERNEL-OS combinations. |
| 119 |
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
| 120 |
|
case $maybe_os in |
| 121 |
< |
nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
| 121 |
> |
nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
| 122 |
|
os=-$maybe_os |
| 123 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
| 124 |
|
;; |
| 228 |
|
| a29k \ |
| 229 |
|
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| 230 |
|
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 231 |
+ |
| am33_2.0 \ |
| 232 |
|
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
| 233 |
< |
| clipper \ |
| 233 |
> |
| c4x | clipper \ |
| 234 |
|
| d10v | d30v | dlx | dsp16xx \ |
| 235 |
|
| fr30 | frv \ |
| 236 |
|
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| 237 |
|
| i370 | i860 | i960 | ia64 \ |
| 238 |
< |
| ip2k \ |
| 238 |
> |
| ip2k | iq2000 \ |
| 239 |
|
| m32r | m68000 | m68k | m88k | mcore \ |
| 240 |
|
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| 241 |
|
| mips16 \ |
| 246 |
|
| mips64vr4300 | mips64vr4300el \ |
| 247 |
|
| mips64vr5000 | mips64vr5000el \ |
| 248 |
|
| mipsisa32 | mipsisa32el \ |
| 249 |
+ |
| mipsisa32r2 | mipsisa32r2el \ |
| 250 |
|
| mipsisa64 | mipsisa64el \ |
| 251 |
+ |
| mipsisa64r2 | mipsisa64r2el \ |
| 252 |
|
| mipsisa64sb1 | mipsisa64sb1el \ |
| 253 |
|
| mipsisa64sr71k | mipsisa64sr71kel \ |
| 254 |
|
| mipstx39 | mipstx39el \ |
| 255 |
|
| mn10200 | mn10300 \ |
| 256 |
+ |
| msp430 \ |
| 257 |
|
| ns16k | ns32k \ |
| 258 |
|
| openrisc | or32 \ |
| 259 |
|
| pdp10 | pdp11 | pj | pjl \ |
| 260 |
|
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| 261 |
|
| pyramid \ |
| 262 |
< |
| sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| 262 |
> |
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| 263 |
|
| sh64 | sh64le \ |
| 264 |
|
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
| 265 |
|
| strongarm \ |
| 266 |
< |
| tahoe | thumb | tic80 | tron \ |
| 266 |
> |
| tahoe | thumb | tic4x | tic80 | tron \ |
| 267 |
|
| v850 | v850e \ |
| 268 |
|
| we32k \ |
| 269 |
|
| x86 | xscale | xstormy16 | xtensa \ |
| 298 |
|
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| 299 |
|
| avr-* \ |
| 300 |
|
| bs2000-* \ |
| 301 |
< |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ |
| 301 |
> |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| 302 |
|
| clipper-* | cydra-* \ |
| 303 |
|
| d10v-* | d30v-* | dlx-* \ |
| 304 |
|
| elxsi-* \ |
| 306 |
|
| h8300-* | h8500-* \ |
| 307 |
|
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| 308 |
|
| i*86-* | i860-* | i960-* | ia64-* \ |
| 309 |
< |
| ip2k-* \ |
| 309 |
> |
| ip2k-* | iq2000-* \ |
| 310 |
|
| m32r-* \ |
| 311 |
|
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| 312 |
|
| m88110-* | m88k-* | mcore-* \ |
| 319 |
|
| mips64vr4300-* | mips64vr4300el-* \ |
| 320 |
|
| mips64vr5000-* | mips64vr5000el-* \ |
| 321 |
|
| mipsisa32-* | mipsisa32el-* \ |
| 322 |
+ |
| mipsisa32r2-* | mipsisa32r2el-* \ |
| 323 |
|
| mipsisa64-* | mipsisa64el-* \ |
| 324 |
+ |
| mipsisa64r2-* | mipsisa64r2el-* \ |
| 325 |
|
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
| 326 |
|
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| 327 |
< |
| mipstx39 | mipstx39el \ |
| 328 |
< |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| 327 |
> |
| mipstx39-* | mipstx39el-* \ |
| 328 |
> |
| msp430-* \ |
| 329 |
> |
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
| 330 |
|
| orion-* \ |
| 331 |
|
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| 332 |
|
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| 333 |
|
| pyramid-* \ |
| 334 |
|
| romp-* | rs6000-* \ |
| 335 |
< |
| sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ |
| 335 |
> |
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| 336 |
|
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| 337 |
|
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
| 338 |
|
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
| 339 |
< |
| tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ |
| 339 |
> |
| tahoe-* | thumb-* \ |
| 340 |
> |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 341 |
> |
| tron-* \ |
| 342 |
|
| v850-* | v850e-* | vax-* \ |
| 343 |
|
| we32k-* \ |
| 344 |
|
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
| 375 |
|
am29k) |
| 376 |
|
basic_machine=a29k-none |
| 377 |
|
os=-bsd |
| 378 |
+ |
;; |
| 379 |
+ |
amd64) |
| 380 |
+ |
basic_machine=x86_64-pc |
| 381 |
|
;; |
| 382 |
|
amdahl) |
| 383 |
|
basic_machine=580-amdahl |
| 727 |
|
;; |
| 728 |
|
np1) |
| 729 |
|
basic_machine=np1-gould |
| 730 |
+ |
;; |
| 731 |
+ |
nv1) |
| 732 |
+ |
basic_machine=nv1-cray |
| 733 |
+ |
os=-unicosmp |
| 734 |
|
;; |
| 735 |
|
nsr-tandem) |
| 736 |
|
basic_machine=nsr-tandem |
| 774 |
|
pentiumpro | p6 | 6x86 | athlon | athlon_*) |
| 775 |
|
basic_machine=i686-pc |
| 776 |
|
;; |
| 777 |
< |
pentiumii | pentium2) |
| 777 |
> |
pentiumii | pentium2 | pentiumiii | pentium3) |
| 778 |
|
basic_machine=i686-pc |
| 779 |
|
;; |
| 780 |
+ |
pentium4) |
| 781 |
+ |
basic_machine=i786-pc |
| 782 |
+ |
;; |
| 783 |
|
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
| 784 |
|
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 785 |
|
;; |
| 786 |
|
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
| 787 |
|
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 788 |
|
;; |
| 789 |
< |
pentiumii-* | pentium2-*) |
| 789 |
> |
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
| 790 |
|
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 791 |
|
;; |
| 792 |
+ |
pentium4-*) |
| 793 |
+ |
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 794 |
+ |
;; |
| 795 |
|
pn) |
| 796 |
|
basic_machine=pn-gould |
| 797 |
|
;; |
| 850 |
|
sb1el) |
| 851 |
|
basic_machine=mipsisa64sb1el-unknown |
| 852 |
|
;; |
| 853 |
+ |
sei) |
| 854 |
+ |
basic_machine=mips-sei |
| 855 |
+ |
os=-seiux |
| 856 |
+ |
;; |
| 857 |
|
sequent) |
| 858 |
|
basic_machine=i386-sequent |
| 859 |
|
;; |
| 861 |
|
basic_machine=sh-hitachi |
| 862 |
|
os=-hms |
| 863 |
|
;; |
| 864 |
+ |
sh64) |
| 865 |
+ |
basic_machine=sh64-unknown |
| 866 |
+ |
;; |
| 867 |
|
sparclite-wrs | simso-wrs) |
| 868 |
|
basic_machine=sparclite-wrs |
| 869 |
|
os=-vxworks |
| 930 |
|
basic_machine=i386-sequent |
| 931 |
|
os=-dynix |
| 932 |
|
;; |
| 904 |
– |
t3d) |
| 905 |
– |
basic_machine=alpha-cray |
| 906 |
– |
os=-unicos |
| 907 |
– |
;; |
| 933 |
|
t3e) |
| 934 |
|
basic_machine=alphaev5-cray |
| 935 |
|
os=-unicos |
| 938 |
|
basic_machine=t90-cray |
| 939 |
|
os=-unicos |
| 940 |
|
;; |
| 916 |
– |
tic4x | c4x*) |
| 917 |
– |
basic_machine=tic4x-unknown |
| 918 |
– |
os=-coff |
| 919 |
– |
;; |
| 941 |
|
tic54x | c54x*) |
| 942 |
|
basic_machine=tic54x-unknown |
| 943 |
|
os=-coff |
| 944 |
|
;; |
| 945 |
+ |
tic55x | c55x*) |
| 946 |
+ |
basic_machine=tic55x-unknown |
| 947 |
+ |
os=-coff |
| 948 |
+ |
;; |
| 949 |
+ |
tic6x | c6x*) |
| 950 |
+ |
basic_machine=tic6x-unknown |
| 951 |
+ |
os=-coff |
| 952 |
+ |
;; |
| 953 |
|
tx39) |
| 954 |
|
basic_machine=mipstx39-unknown |
| 955 |
|
;; |
| 1052 |
|
we32k) |
| 1053 |
|
basic_machine=we32k-att |
| 1054 |
|
;; |
| 1055 |
< |
sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) |
| 1055 |
> |
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
| 1056 |
|
basic_machine=sh-unknown |
| 1057 |
|
;; |
| 1058 |
|
sh64) |
| 1131 |
|
| -aos* \ |
| 1132 |
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| 1133 |
|
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| 1134 |
< |
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
| 1134 |
> |
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ |
| 1135 |
|
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| 1136 |
|
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| 1137 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 1143 |
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| 1144 |
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| 1145 |
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| 1146 |
< |
| -powermax* | -dnix*) |
| 1146 |
> |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei*) |
| 1147 |
|
# Remember, each alternative MUST END IN *, to match a version number. |
| 1148 |
|
;; |
| 1149 |
|
-qnx*) |
| 1166 |
|
;; |
| 1167 |
|
-mac*) |
| 1168 |
|
os=`echo $os | sed -e 's|mac|macos|'` |
| 1169 |
+ |
;; |
| 1170 |
+ |
-linux-dietlibc) |
| 1171 |
+ |
os=-linux-dietlibc |
| 1172 |
|
;; |
| 1173 |
|
-linux*) |
| 1174 |
|
os=`echo $os | sed -e 's|linux|linux-gnu|'` |
| 1254 |
|
;; |
| 1255 |
|
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
| 1256 |
|
os=-mint |
| 1257 |
+ |
;; |
| 1258 |
+ |
-aros*) |
| 1259 |
+ |
os=-aros |
| 1260 |
+ |
;; |
| 1261 |
+ |
-kaos*) |
| 1262 |
+ |
os=-kaos |
| 1263 |
|
;; |
| 1264 |
|
-none) |
| 1265 |
|
;; |
| 1292 |
|
arm*-semi) |
| 1293 |
|
os=-aout |
| 1294 |
|
;; |
| 1295 |
+ |
c4x-* | tic4x-*) |
| 1296 |
+ |
os=-coff |
| 1297 |
+ |
;; |
| 1298 |
|
# This must come before the *-dec entry. |
| 1299 |
|
pdp10-*) |
| 1300 |
|
os=-tops20 |