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, 2004, 2005, 2006 Free Software Foundation, |
5 |
|
# Inc. |
6 |
|
|
7 |
timestamp='2005-12-23' |
timestamp='2006-07-02' |
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 |
241 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
242 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
243 |
| am33_2.0 \ |
| am33_2.0 \ |
244 |
| 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 | avr32 \ |
245 |
| bfin \ |
| bfin \ |
246 |
| c4x | clipper \ |
| c4x | clipper \ |
247 |
| d10v | d30v | dlx | dsp16xx | dvp \ |
| d10v | d30v | dlx | dsp16xx | dvp \ |
249 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
250 |
| i370 | i860 | i960 | ia64 \ |
| i370 | i860 | i960 | ia64 \ |
251 |
| ip2k | iq2000 \ |
| ip2k | iq2000 \ |
252 |
| m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
| m32c | m32r | m32rle | m68000 | m68k | m88k \ |
253 |
|
| maxq | mb | microblaze | mcore \ |
254 |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
255 |
| mips16 \ |
| mips16 \ |
256 |
| mips64 | mips64el \ |
| mips64 | mips64el \ |
270 |
| mn10200 | mn10300 \ |
| mn10200 | mn10300 \ |
271 |
| mt \ |
| mt \ |
272 |
| msp430 \ |
| msp430 \ |
273 |
|
| nios | nios2 \ |
274 |
| ns16k | ns32k \ |
| ns16k | ns32k \ |
275 |
| or32 \ |
| or32 \ |
276 |
| pdp10 | pdp11 | pj | pjl \ |
| pdp10 | pdp11 | pj | pjl \ |
277 |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
278 |
| pyramid \ |
| pyramid \ |
279 |
| sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
| sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
280 |
| sh64 | sh64le \ |
| sh64 | sh64le \ |
281 |
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
282 |
| sparcv8 | sparcv9 | sparcv9b \ |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
283 |
| strongarm \ |
| spu | strongarm \ |
284 |
| tahoe | thumb | tic4x | tic80 | tron \ |
| tahoe | thumb | tic4x | tic80 | tron \ |
285 |
| v850 | v850e \ |
| v850 | v850e \ |
286 |
| we32k \ |
| we32k \ |
288 |
| z8k) |
| z8k) |
289 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
290 |
;; |
;; |
|
m32c) |
|
|
basic_machine=$basic_machine-unknown |
|
|
;; |
|
291 |
m6811 | m68hc11 | m6812 | m68hc12) |
m6811 | m68hc11 | m6812 | m68hc12) |
292 |
# Motorola 68HC11/12. |
# Motorola 68HC11/12. |
293 |
basic_machine=$basic_machine-unknown |
basic_machine=$basic_machine-unknown |
298 |
ms1) |
ms1) |
299 |
basic_machine=mt-unknown |
basic_machine=mt-unknown |
300 |
;; |
;; |
|
nios2 | nios2-* | nios2 | nios2-*) |
|
|
basic_machine=nios2-altera |
|
|
os=-none |
|
|
;; |
|
301 |
|
|
302 |
# We use `pc' rather than `unknown' |
# We use `pc' rather than `unknown' |
303 |
# because (1) that's what they normally are, and |
# because (1) that's what they normally are, and |
317 |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
318 |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
319 |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
320 |
| avr-* \ |
| avr-* | avr32-* \ |
321 |
| bfin-* | bs2000-* \ |
| bfin-* | bs2000-* \ |
322 |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
323 |
| clipper-* | craynv-* | cydra-* \ |
| clipper-* | craynv-* | cydra-* \ |
328 |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
329 |
| i*86-* | i860-* | i960-* | ia64-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ |
330 |
| ip2k-* | iq2000-* \ |
| ip2k-* | iq2000-* \ |
331 |
| m32r-* | m32rle-* \ |
| m32c-* | m32r-* | m32rle-* \ |
332 |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
333 |
| m88110-* | m88k-* | maxq-* | mcore-* \ |
| m88110-* | m88k-* | maxq-* | mcore-* \ |
334 |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
350 |
| mmix-* \ |
| mmix-* \ |
351 |
| mt-* \ |
| mt-* \ |
352 |
| msp430-* \ |
| msp430-* \ |
353 |
|
| nios-* | nios2-* \ |
354 |
| none-* | np1-* | ns16k-* | ns32k-* \ |
| none-* | np1-* | ns16k-* | ns32k-* \ |
355 |
| orion-* \ |
| orion-* \ |
356 |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
357 |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
358 |
| pyramid-* \ |
| pyramid-* \ |
359 |
| romp-* | rs6000-* \ |
| romp-* | rs6000-* \ |
360 |
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
361 |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
362 |
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
363 |
| sparclite-* \ |
| sparclite-* \ |
364 |
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
365 |
| tahoe-* | thumb-* \ |
| tahoe-* | thumb-* \ |
366 |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
367 |
| tron-* \ |
| tron-* \ |
372 |
| ymp-* \ |
| ymp-* \ |
373 |
| z8k-*) |
| z8k-*) |
374 |
;; |
;; |
|
m32c-*) |
|
|
;; |
|
375 |
# Recognize the various machine names and aliases which stand |
# Recognize the various machine names and aliases which stand |
376 |
# for a CPU type and a company and sometimes even an OS. |
# for a CPU type and a company and sometimes even an OS. |
377 |
386bsd) |
386bsd) |
1143 |
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1144 |
basic_machine=sh-unknown |
basic_machine=sh-unknown |
1145 |
;; |
;; |
1146 |
sparc | sparcv8 | sparcv9 | sparcv9b) |
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
1147 |
basic_machine=sparc-sun |
basic_machine=sparc-sun |
1148 |
;; |
;; |
1149 |
cydra) |
cydra) |
1216 |
| -aos* \ |
| -aos* \ |
1217 |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1218 |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1219 |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1220 |
|
| -openbsd* | -solidbsd* \ |
1221 |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1222 |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1223 |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1232 |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1233 |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1234 |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1235 |
| -skyos* | -haiku* | -rdos* | -irx*) |
| -skyos* | -haiku* | -rdos* | -toppers* | -irx*) |
1236 |
# Remember, each alternative MUST END IN *, to match a version number. |
# Remember, each alternative MUST END IN *, to match a version number. |
1237 |
;; |
;; |
1238 |
-qnx*) |
-qnx*) |
1384 |
# system, and we'll never get to this point. |
# system, and we'll never get to this point. |
1385 |
|
|
1386 |
case $basic_machine in |
case $basic_machine in |
1387 |
|
spu-*) |
1388 |
|
os=-elf |
1389 |
|
;; |
1390 |
*-acorn) |
*-acorn) |
1391 |
os=-riscix1.2 |
os=-riscix1.2 |
1392 |
;; |
;; |
1396 |
arm*-semi) |
arm*-semi) |
1397 |
os=-aout |
os=-aout |
1398 |
;; |
;; |
1399 |
c4x-* | tic4x-*) |
c4x-* | tic4x-*) |
1400 |
os=-coff |
os=-coff |
1401 |
;; |
;; |
1402 |
# This must come before the *-dec entry. |
# This must come before the *-dec entry. |
1403 |
pdp10-*) |
pdp10-*) |
1404 |
os=-tops20 |
os=-tops20 |