version 1.4 | | version 1.5 |
---|
| | |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | | # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| | |
timestamp='2003-05-09' | | timestamp='2003-10-07' |
| | |
# This file is (in principle) common to ALL GNU software. | | # This file is (in principle) common to ALL GNU software. |
# 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 |
| | |
# Here we must recognize all the valid KERNEL-OS combinations. | | # Here we must recognize all the valid KERNEL-OS combinations. |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
case $maybe_os in | | case $maybe_os in |
nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) | | nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
os=-$maybe_os | | os=-$maybe_os |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
;; | | ;; |
| | |
| a29k \ | | | a29k \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| | | am33_2.0 \ |
| 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 \ |
| clipper \ | | | c4x | clipper \ |
| d10v | d30v | dlx | dsp16xx \ | | | d10v | d30v | dlx | dsp16xx \ |
| fr30 | frv \ | | | fr30 | frv \ |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
| i370 | i860 | i960 | ia64 \ | | | i370 | i860 | i960 | ia64 \ |
| ip2k \ | | | ip2k | iq2000 \ |
| m32r | m68000 | m68k | m88k | mcore \ | | | m32r | m68000 | m68k | m88k | mcore \ |
| mips | mipsbe | mipseb | mipsel | mipsle \ | | | mips | mipsbe | mipseb | mipsel | mipsle \ |
| mips16 \ | | | mips16 \ |
| | |
| mipsisa32 | mipsisa32el \ | | | mipsisa32 | mipsisa32el \ |
| mipsisa32r2 | mipsisa32r2el \ | | | mipsisa32r2 | mipsisa32r2el \ |
| mipsisa64 | mipsisa64el \ | | | mipsisa64 | mipsisa64el \ |
| | | mipsisa64r2 | mipsisa64r2el \ |
| mipsisa64sb1 | mipsisa64sb1el \ | | | mipsisa64sb1 | mipsisa64sb1el \ |
| mipsisa64sr71k | mipsisa64sr71kel \ | | | mipsisa64sr71k | mipsisa64sr71kel \ |
| mipstx39 | mipstx39el \ | | | mipstx39 | mipstx39el \ |
| | |
| sh64 | sh64le \ | | | sh64 | sh64le \ |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | | | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
| strongarm \ | | | strongarm \ |
| tahoe | thumb | tic80 | tron \ | | | tahoe | thumb | tic4x | tic80 | tron \ |
| v850 | v850e \ | | | v850 | v850e \ |
| we32k \ | | | we32k \ |
| x86 | xscale | xstormy16 | xtensa \ | | | x86 | xscale | xstormy16 | xtensa \ |
| | |
| h8300-* | h8500-* \ | | | h8300-* | h8500-* \ |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
| i*86-* | i860-* | i960-* | ia64-* \ | | | i*86-* | i860-* | i960-* | ia64-* \ |
| ip2k-* \ | | | ip2k-* | iq2000-* \ |
| m32r-* \ | | | m32r-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| m88110-* | m88k-* | mcore-* \ | | | m88110-* | m88k-* | mcore-* \ |
| | |
| mipsisa32-* | mipsisa32el-* \ | | | mipsisa32-* | mipsisa32el-* \ |
| mipsisa32r2-* | mipsisa32r2el-* \ | | | mipsisa32r2-* | mipsisa32r2el-* \ |
| mipsisa64-* | mipsisa64el-* \ | | | mipsisa64-* | mipsisa64el-* \ |
| | | mipsisa64r2-* | mipsisa64r2el-* \ |
| mipsisa64sb1-* | mipsisa64sb1el-* \ | | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ | | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| mipstx39-* | mipstx39el-* \ | | | mipstx39-* | mipstx39el-* \ |
| | |
pentiumpro | p6 | 6x86 | athlon | athlon_*) | | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
basic_machine=i686-pc | | basic_machine=i686-pc |
;; | | ;; |
pentiumii | pentium2) | | pentiumii | pentium2 | pentiumiii | pentium3) |
basic_machine=i686-pc | | basic_machine=i686-pc |
;; | | ;; |
| | pentium4) |
| | basic_machine=i786-pc |
| | ;; |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
;; | | ;; |
pentiumpro-* | p6-* | 6x86-* | athlon-*) | | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
;; | | ;; |
pentiumii-* | pentium2-*) | | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
;; | | ;; |
| | pentium4-*) |
| | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
| | ;; |
pn) | | pn) |
basic_machine=pn-gould | | basic_machine=pn-gould |
;; | | ;; |
| | |
sb1el) | | sb1el) |
basic_machine=mipsisa64sb1el-unknown | | basic_machine=mipsisa64sb1el-unknown |
;; | | ;; |
| | sei) |
| | basic_machine=mips-sei |
| | os=-seiux |
| | ;; |
sequent) | | sequent) |
basic_machine=i386-sequent | | basic_machine=i386-sequent |
;; | | ;; |
| | |
basic_machine=sh-hitachi | | basic_machine=sh-hitachi |
os=-hms | | os=-hms |
;; | | ;; |
| | sh64) |
| | basic_machine=sh64-unknown |
| | ;; |
sparclite-wrs | simso-wrs) | | sparclite-wrs | simso-wrs) |
basic_machine=sparclite-wrs | | basic_machine=sparclite-wrs |
os=-vxworks | | os=-vxworks |
| | |
basic_machine=t90-cray | | basic_machine=t90-cray |
os=-unicos | | os=-unicos |
;; | | ;; |
tic4x | c4x*) | | |
basic_machine=tic4x-unknown | | |
os=-coff | | |
;; | | |
tic54x | c54x*) | | tic54x | c54x*) |
basic_machine=tic54x-unknown | | basic_machine=tic54x-unknown |
os=-coff | | os=-coff |
| | |
| -aos* \ | | | -aos* \ |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
| -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | | | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| | |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
| -powermax* | -dnix*) | | | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) |
# Remember, each alternative MUST END IN *, to match a version number. | | # Remember, each alternative MUST END IN *, to match a version number. |
;; | | ;; |
-qnx*) | | -qnx*) |
| | |
-mac*) | | -mac*) |
os=`echo $os | sed -e 's|mac|macos|'` | | os=`echo $os | sed -e 's|mac|macos|'` |
;; | | ;; |
| | -linux-dietlibc) |
| | os=-linux-dietlibc |
| | ;; |
-linux*) | | -linux*) |
os=`echo $os | sed -e 's|linux|linux-gnu|'` | | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
;; | | ;; |
| | |
arm*-semi) | | arm*-semi) |
os=-aout | | os=-aout |
;; | | ;; |
| | c4x-* | tic4x-*) |
| | os=-coff |
| | ;; |
# This must come before the *-dec entry. | | # This must come before the *-dec entry. |
pdp10-*) | | pdp10-*) |
os=-tops20 | | os=-tops20 |