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 Free Software Foundation, Inc. |
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2003-05-09' |
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 |
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* | 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*) |
122 |
os=-$maybe_os |
os=-$maybe_os |
123 |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 |
;; |
;; |
228 |
| a29k \ |
| a29k \ |
229 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
| 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 \ |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
233 |
| 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 \ |
| ip2k | iq2000 \ |
239 |
| m32r | m68000 | m68k | m88k | mcore \ |
| m32r | m68000 | m68k | m88k | mcore \ |
240 |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
| mips | mipsbe | mipseb | mipsel | mipsle \ |
241 |
| mips16 \ |
| mips16 \ |
248 |
| mipsisa32 | mipsisa32el \ |
| mipsisa32 | mipsisa32el \ |
249 |
| mipsisa32r2 | mipsisa32r2el \ |
| mipsisa32r2 | mipsisa32r2el \ |
250 |
| mipsisa64 | mipsisa64el \ |
| mipsisa64 | mipsisa64el \ |
251 |
|
| mipsisa64r2 | mipsisa64r2el \ |
252 |
| mipsisa64sb1 | mipsisa64sb1el \ |
| mipsisa64sb1 | mipsisa64sb1el \ |
253 |
| mipsisa64sr71k | mipsisa64sr71kel \ |
| mipsisa64sr71k | mipsisa64sr71kel \ |
254 |
| mipstx39 | mipstx39el \ |
| mipstx39 | mipstx39el \ |
263 |
| sh64 | sh64le \ |
| sh64 | sh64le \ |
264 |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ |
265 |
| strongarm \ |
| strongarm \ |
266 |
| tahoe | thumb | tic80 | tron \ |
| tahoe | thumb | tic4x | tic80 | tron \ |
267 |
| v850 | v850e \ |
| v850 | v850e \ |
268 |
| we32k \ |
| we32k \ |
269 |
| x86 | xscale | xstormy16 | xtensa \ |
| x86 | xscale | xstormy16 | xtensa \ |
306 |
| h8300-* | h8500-* \ |
| h8300-* | h8500-* \ |
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-* \ |
| ip2k-* | iq2000-* \ |
310 |
| m32r-* \ |
| m32r-* \ |
311 |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
312 |
| m88110-* | m88k-* | mcore-* \ |
| m88110-* | m88k-* | mcore-* \ |
321 |
| mipsisa32-* | mipsisa32el-* \ |
| mipsisa32-* | mipsisa32el-* \ |
322 |
| mipsisa32r2-* | mipsisa32r2el-* \ |
| mipsisa32r2-* | mipsisa32r2el-* \ |
323 |
| mipsisa64-* | mipsisa64el-* \ |
| mipsisa64-* | mipsisa64el-* \ |
324 |
|
| mipsisa64r2-* | mipsisa64r2el-* \ |
325 |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
| mipsisa64sb1-* | mipsisa64sb1el-* \ |
326 |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
| mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
327 |
| mipstx39-* | mipstx39el-* \ |
| mipstx39-* | mipstx39el-* \ |
774 |
pentiumpro | p6 | 6x86 | athlon | athlon_*) |
pentiumpro | p6 | 6x86 | athlon | athlon_*) |
775 |
basic_machine=i686-pc |
basic_machine=i686-pc |
776 |
;; |
;; |
777 |
pentiumii | pentium2) |
pentiumii | pentium2 | pentiumiii | pentium3) |
778 |
basic_machine=i686-pc |
basic_machine=i686-pc |
779 |
;; |
;; |
780 |
|
pentium4) |
781 |
|
basic_machine=i786-pc |
782 |
|
;; |
783 |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
784 |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
785 |
;; |
;; |
786 |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
787 |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
788 |
;; |
;; |
789 |
pentiumii-* | pentium2-*) |
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
790 |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
791 |
;; |
;; |
792 |
|
pentium4-*) |
793 |
|
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
794 |
|
;; |
795 |
pn) |
pn) |
796 |
basic_machine=pn-gould |
basic_machine=pn-gould |
797 |
;; |
;; |
850 |
sb1el) |
sb1el) |
851 |
basic_machine=mipsisa64sb1el-unknown |
basic_machine=mipsisa64sb1el-unknown |
852 |
;; |
;; |
853 |
|
sei) |
854 |
|
basic_machine=mips-sei |
855 |
|
os=-seiux |
856 |
|
;; |
857 |
sequent) |
sequent) |
858 |
basic_machine=i386-sequent |
basic_machine=i386-sequent |
859 |
;; |
;; |
861 |
basic_machine=sh-hitachi |
basic_machine=sh-hitachi |
862 |
os=-hms |
os=-hms |
863 |
;; |
;; |
864 |
|
sh64) |
865 |
|
basic_machine=sh64-unknown |
866 |
|
;; |
867 |
sparclite-wrs | simso-wrs) |
sparclite-wrs | simso-wrs) |
868 |
basic_machine=sparclite-wrs |
basic_machine=sparclite-wrs |
869 |
os=-vxworks |
os=-vxworks |
938 |
basic_machine=t90-cray |
basic_machine=t90-cray |
939 |
os=-unicos |
os=-unicos |
940 |
;; |
;; |
|
tic4x | c4x*) |
|
|
basic_machine=tic4x-unknown |
|
|
os=-coff |
|
|
;; |
|
941 |
tic54x | c54x*) |
tic54x | c54x*) |
942 |
basic_machine=tic54x-unknown |
basic_machine=tic54x-unknown |
943 |
os=-coff |
os=-coff |
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* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
| -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ |
1135 |
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
| -lynxos* | -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* \ |
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*) |
| -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*) |
1167 |
-mac*) |
-mac*) |
1168 |
os=`echo $os | sed -e 's|mac|macos|'` |
os=`echo $os | sed -e 's|mac|macos|'` |
1169 |
;; |
;; |
1170 |
|
-linux-dietlibc) |
1171 |
|
os=-linux-dietlibc |
1172 |
|
;; |
1173 |
-linux*) |
-linux*) |
1174 |
os=`echo $os | sed -e 's|linux|linux-gnu|'` |
os=`echo $os | sed -e 's|linux|linux-gnu|'` |
1175 |
;; |
;; |
1292 |
arm*-semi) |
arm*-semi) |
1293 |
os=-aout |
os=-aout |
1294 |
;; |
;; |
1295 |
|
c4x-* | tic4x-*) |
1296 |
|
os=-coff |
1297 |
|
;; |
1298 |
# This must come before the *-dec entry. |
# This must come before the *-dec entry. |
1299 |
pdp10-*) |
pdp10-*) |
1300 |
os=-tops20 |
os=-tops20 |