2
2
# Configuration validation subroutine script.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
# Free Software Foundation, Inc.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
223
225
case $basic_machine in
224
226
# Recognize the basic CPU types without company name.
225
227
# Some are omitted here because they have special meanings below.
226
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
227
| arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
228
| pyramid | mn10200 | mn10300 | tron | a29k \
229
| 580 | i960 | h8300 \
230
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
231
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
233
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
235
| we32k | ns16k | clipper | i370 | sh | sh[34] \
236
| powerpc | powerpcle \
237
| 1750a | dsp16xx | pdp10 | pdp11 \
238
| mips16 | mips64 | mipsel | mips64el \
239
| mips64orion | mips64orionel | mipstx39 | mipstx39el \
240
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
241
| mips64vr5000 | mips64vr5000el | mcore | s390 | s390x \
242
| sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
244
| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
245
| pj | pjl | h8500 | z8k)
230
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
235
| d10v | d30v | dlx | dsp16xx \
237
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
| i370 | i860 | i960 | ia64 \
240
| m32r | m32rle | m68000 | m68k | m88k | mcore \
241
| mips | mipsbe | mipseb | mipsel | mipsle \
243
| mips64 | mips64el \
244
| mips64vr | mips64vrel \
245
| mips64orion | mips64orionel \
246
| mips64vr4100 | mips64vr4100el \
247
| mips64vr4300 | mips64vr4300el \
248
| mips64vr5000 | mips64vr5000el \
249
| mipsisa32 | mipsisa32el \
250
| mipsisa32r2 | mipsisa32r2el \
251
| mipsisa64 | mipsisa64el \
252
| mipsisa64r2 | mipsisa64r2el \
253
| mipsisa64sb1 | mipsisa64sb1el \
254
| mipsisa64sr71k | mipsisa64sr71kel \
255
| mipstx39 | mipstx39el \
256
| mn10200 | mn10300 \
260
| pdp10 | pdp11 | pj | pjl \
261
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
263
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
265
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
267
| tahoe | thumb | tic4x | tic80 | tron \
270
| x86 | xscale | xstormy16 | xtensa \
246
272
basic_machine=$basic_machine-unknown
248
274
m6811 | m68hc11 | m6812 | m68hc12)
267
293
# Recognize the basic CPU types with company name.
268
# FIXME: clean up the formatting here.
269
vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
270
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
271
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
272
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
273
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
275
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
276
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
277
| hppa2.0n-* | hppa64-* \
278
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
280
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
281
| clipper-* | orion-* \
282
| sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
283
| powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
284
| mips16-* | mips64-* | mipsel-* \
285
| mips64el-* | mips64orion-* | mips64orionel-* \
286
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
287
| mipstx39-* | mipstx39el-* | mcore-* \
288
| f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
290
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
291
| thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
292
| bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
296
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
297
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
302
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
| clipper-* | cydra-* \
304
| d10v-* | d30v-* | dlx-* \
306
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
307
| h8300-* | h8500-* \
308
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
| i*86-* | i860-* | i960-* | ia64-* \
310
| ip2k-* | iq2000-* \
311
| m32r-* | m32rle-* \
312
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
| m88110-* | m88k-* | mcore-* \
314
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
316
| mips64-* | mips64el-* \
317
| mips64vr-* | mips64vrel-* \
318
| mips64orion-* | mips64orionel-* \
319
| mips64vr4100-* | mips64vr4100el-* \
320
| mips64vr4300-* | mips64vr4300el-* \
321
| mips64vr5000-* | mips64vr5000el-* \
322
| mipsisa32-* | mipsisa32el-* \
323
| mipsisa32r2-* | mipsisa32r2el-* \
324
| mipsisa64-* | mipsisa64el-* \
325
| mipsisa64r2-* | mipsisa64r2el-* \
326
| mipsisa64sb1-* | mipsisa64sb1el-* \
327
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
| mipstx39-* | mipstx39el-* \
330
| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
332
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335
| romp-* | rs6000-* \
336
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
337
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
339
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
340
| tahoe-* | thumb-* \
341
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
343
| v850-* | v850e-* | vax-* \
345
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
294
350
# Recognize the various machine names and aliases which stand
295
351
# for a CPU type and a company and sometimes even an OS.
700
785
basic_machine=m68k-tti
703
788
basic_machine=ns32k-pc532
705
pentium | p5 | k5 | k6 | nexgen)
790
pentium | p5 | k5 | k6 | nexgen | viac3)
706
791
basic_machine=i586-pc
708
pentiumpro | p6 | 6x86 | athlon)
709
basic_machine=i686-pc
711
pentiumii | pentium2)
712
basic_machine=i686-pc
714
pentium-* | p5-* | k5-* | k6-* | nexgen-*)
793
pentiumpro | p6 | 6x86 | athlon | athlon_*)
794
basic_machine=i686-pc
796
pentiumii | pentium2 | pentiumiii | pentium3)
797
basic_machine=i686-pc
800
basic_machine=i786-pc
802
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
715
803
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
717
805
pentiumpro-* | p6-* | 6x86-* | athlon-*)
718
806
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
720
pentiumii-* | pentium2-*)
808
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
721
809
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
812
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
724
815
basic_machine=pn-gould
726
817
power) basic_machine=power-ibm
728
819
ppc) basic_machine=powerpc-unknown
730
821
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
732
823
ppcle | powerpclittle | ppc-le | powerpc-little)
733
824
basic_machine=powerpcle-unknown
735
826
ppcle-* | powerpclittle-*)
736
827
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
829
ppc64) basic_machine=powerpc64-unknown
831
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
833
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
834
basic_machine=powerpc64le-unknown
836
ppc64le-* | powerpc64little-*)
837
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
739
840
basic_machine=i386-ibm
1027
1155
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1028
1156
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1029
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1030
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1157
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1158
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1031
1160
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1032
1161
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1033
1162
| -chorusos* | -chorusrdb* \
1034
1163
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1035
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1036
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1164
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1165
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1037
1166
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1038
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1167
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1039
1171
# Remember, each alternative MUST END IN *, to match a version number.