summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-09-06 18:20:57 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-09-06 18:20:57 +1000
commitc570ff7fa4a68f57ff8938ba0672ddba9c9a23f9 (patch)
tree1621406c19cdc610cf516b4ba79ba135e1649b80 /config.sub
parent661f63b7d2a89d91c29691ba8d01b825600e6789 (diff)
- (dtucker) [config.guess config.sub] Update to latest versions from
http://git.savannah.gnu.org/gitweb/ (2008-04-14 and 2008-06-16 respectively).
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub191
1 files changed, 147 insertions, 44 deletions
diff --git a/config.sub b/config.sub
index 519f2cd00..a649350a6 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5# Free Software Foundation, Inc.
5 6
6timestamp='2005-05-12' 7timestamp='2008-06-16'
7 8
8# This file is (in principle) common to ALL GNU software. 9# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 10# The presence of a machine in this file suggests that SOME GNU software
@@ -71,8 +72,8 @@ Report bugs and patches to <config-patches@gnu.org>."
71version="\ 72version="\
72GNU config.sub ($timestamp) 73GNU config.sub ($timestamp)
73 74
74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 75Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75Free Software Foundation, Inc. 762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76 77
77This is free software; see the source for copying conditions. There is NO 78This is free software; see the source for copying conditions. There is NO
78warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 79warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -119,8 +120,9 @@ esac
119# Here we must recognize all the valid KERNEL-OS combinations. 120# Here we must recognize all the valid KERNEL-OS combinations.
120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121case $maybe_os in 122case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
124 os=-$maybe_os 126 os=-$maybe_os
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126 ;; 128 ;;
@@ -171,6 +173,10 @@ case $os in
171 -hiux*) 173 -hiux*)
172 os=-hiuxwe2 174 os=-hiuxwe2
173 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
174 -sco5) 180 -sco5)
175 os=-sco3.2v5 181 os=-sco3.2v5
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -187,6 +193,10 @@ case $os in
187 # Don't forget version if it is 3.2v4 or newer. 193 # Don't forget version if it is 3.2v4 or newer.
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;; 195 ;;
196 -sco5v6*)
197 # Don't forget version if it is 3.2v4 or newer.
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
190 -sco*) 200 -sco*)
191 os=-sco3.2v2 201 os=-sco3.2v2
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -231,23 +241,27 @@ case $basic_machine in
231 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233 | am33_2.0 \ 243 | am33_2.0 \
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235 | bfin \ 245 | bfin \
236 | c4x | clipper \ 246 | c4x | clipper \
237 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx \
238 | fr30 | frv \ 248 | fido | fr30 | frv \
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
241 | ip2k | iq2000 \ 251 | ip2k | iq2000 \
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep | metag \
243 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
244 | mips16 \ 255 | mips16 \
245 | mips64 | mips64el \ 256 | mips64 | mips64el \
246 | mips64vr | mips64vrel \ 257 | mips64octeon | mips64octeonel \
247 | mips64orion | mips64orionel \ 258 | mips64orion | mips64orionel \
259 | mips64r5900 | mips64r5900el \
260 | mips64vr | mips64vrel \
248 | mips64vr4100 | mips64vr4100el \ 261 | mips64vr4100 | mips64vr4100el \
249 | mips64vr4300 | mips64vr4300el \ 262 | mips64vr4300 | mips64vr4300el \
250 | mips64vr5000 | mips64vr5000el \ 263 | mips64vr5000 | mips64vr5000el \
264 | mips64vr5900 | mips64vr5900el \
251 | mipsisa32 | mipsisa32el \ 265 | mipsisa32 | mipsisa32el \
252 | mipsisa32r2 | mipsisa32r2el \ 266 | mipsisa32r2 | mipsisa32r2el \
253 | mipsisa64 | mipsisa64el \ 267 | mipsisa64 | mipsisa64el \
@@ -256,21 +270,24 @@ case $basic_machine in
256 | mipsisa64sr71k | mipsisa64sr71kel \ 270 | mipsisa64sr71k | mipsisa64sr71kel \
257 | mipstx39 | mipstx39el \ 271 | mipstx39 | mipstx39el \
258 | mn10200 | mn10300 \ 272 | mn10200 | mn10300 \
273 | mt \
259 | msp430 \ 274 | msp430 \
275 | nios | nios2 \
260 | ns16k | ns32k \ 276 | ns16k | ns32k \
261 | openrisc | or32 \ 277 | or32 \
262 | pdp10 | pdp11 | pj | pjl \ 278 | pdp10 | pdp11 | pj | pjl \
263 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 279 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
264 | pyramid \ 280 | pyramid \
265 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 281 | score \
282 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
266 | sh64 | sh64le \ 283 | sh64 | sh64le \
267 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 284 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
268 | sparcv8 | sparcv9 | sparcv9b \ 285 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
269 | strongarm \ 286 | spu | strongarm \
270 | tahoe | thumb | tic4x | tic80 | tron \ 287 | tahoe | thumb | tic4x | tic80 | tron \
271 | v850 | v850e \ 288 | v850 | v850e \
272 | we32k \ 289 | we32k \
273 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 290 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
274 | z8k) 291 | z8k)
275 basic_machine=$basic_machine-unknown 292 basic_machine=$basic_machine-unknown
276 ;; 293 ;;
@@ -281,6 +298,9 @@ case $basic_machine in
281 ;; 298 ;;
282 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 299 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
283 ;; 300 ;;
301 ms1)
302 basic_machine=mt-unknown
303 ;;
284 304
285 # We use `pc' rather than `unknown' 305 # We use `pc' rather than `unknown'
286 # because (1) that's what they normally are, and 306 # because (1) that's what they normally are, and
@@ -300,28 +320,31 @@ case $basic_machine in
300 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 320 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
301 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 321 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
302 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 322 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
303 | avr-* \ 323 | avr-* | avr32-* \
304 | bfin-* | bs2000-* \ 324 | bfin-* | bs2000-* \
305 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 325 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
306 | clipper-* | craynv-* | cydra-* \ 326 | clipper-* | craynv-* | cydra-* \
307 | d10v-* | d30v-* | dlx-* \ 327 | d10v-* | d30v-* | dlx-* \
308 | elxsi-* \ 328 | elxsi-* \
309 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 329 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
310 | h8300-* | h8500-* \ 330 | h8300-* | h8500-* \
311 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 331 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
312 | i*86-* | i860-* | i960-* | ia64-* \ 332 | i*86-* | i860-* | i960-* | ia64-* \
313 | ip2k-* | iq2000-* \ 333 | ip2k-* | iq2000-* \
314 | m32r-* | m32rle-* \ 334 | m32c-* | m32r-* | m32rle-* \
315 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 335 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
316 | m88110-* | m88k-* | maxq-* | mcore-* \ 336 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
317 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 337 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
318 | mips16-* \ 338 | mips16-* \
319 | mips64-* | mips64el-* \ 339 | mips64-* | mips64el-* \
320 | mips64vr-* | mips64vrel-* \ 340 | mips64octeon-* | mips64octeonel-* \
321 | mips64orion-* | mips64orionel-* \ 341 | mips64orion-* | mips64orionel-* \
342 | mips64r5900-* | mips64r5900el-* \
343 | mips64vr-* | mips64vrel-* \
322 | mips64vr4100-* | mips64vr4100el-* \ 344 | mips64vr4100-* | mips64vr4100el-* \
323 | mips64vr4300-* | mips64vr4300el-* \ 345 | mips64vr4300-* | mips64vr4300el-* \
324 | mips64vr5000-* | mips64vr5000el-* \ 346 | mips64vr5000-* | mips64vr5000el-* \
347 | mips64vr5900-* | mips64vr5900el-* \
325 | mipsisa32-* | mipsisa32el-* \ 348 | mipsisa32-* | mipsisa32el-* \
326 | mipsisa32r2-* | mipsisa32r2el-* \ 349 | mipsisa32r2-* | mipsisa32r2el-* \
327 | mipsisa64-* | mipsisa64el-* \ 350 | mipsisa64-* | mipsisa64el-* \
@@ -330,28 +353,34 @@ case $basic_machine in
330 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 353 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
331 | mipstx39-* | mipstx39el-* \ 354 | mipstx39-* | mipstx39el-* \
332 | mmix-* \ 355 | mmix-* \
356 | mt-* \
333 | msp430-* \ 357 | msp430-* \
358 | nios-* | nios2-* \
334 | none-* | np1-* | ns16k-* | ns32k-* \ 359 | none-* | np1-* | ns16k-* | ns32k-* \
335 | orion-* \ 360 | orion-* \
336 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 361 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
337 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 362 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
338 | pyramid-* \ 363 | pyramid-* \
339 | romp-* | rs6000-* \ 364 | romp-* | rs6000-* \
340 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 365 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
341 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 366 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
342 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 367 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
343 | sparclite-* \ 368 | sparclite-* \
344 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 369 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
345 | tahoe-* | thumb-* \ 370 | tahoe-* | thumb-* \
346 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 371 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
347 | tron-* \ 372 | tron-* \
348 | v850-* | v850e-* | vax-* \ 373 | v850-* | v850e-* | vax-* \
349 | we32k-* \ 374 | we32k-* \
350 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 375 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
351 | xstormy16-* | xtensa-* \ 376 | xstormy16-* | xtensa*-* \
352 | ymp-* \ 377 | ymp-* \
353 | z8k-*) 378 | z8k-*)
354 ;; 379 ;;
380 # Recognize the basic CPU types without company name, with glob match.
381 xtensa*)
382 basic_machine=$basic_machine-unknown
383 ;;
355 # Recognize the various machine names and aliases which stand 384 # Recognize the various machine names and aliases which stand
356 # for a CPU type and a company and sometimes even an OS. 385 # for a CPU type and a company and sometimes even an OS.
357 386bsd) 386 386bsd)
@@ -422,10 +451,22 @@ case $basic_machine in
422 basic_machine=ns32k-sequent 451 basic_machine=ns32k-sequent
423 os=-dynix 452 os=-dynix
424 ;; 453 ;;
454 blackfin)
455 basic_machine=bfin-unknown
456 os=-linux
457 ;;
458 blackfin-*)
459 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
460 os=-linux
461 ;;
425 c90) 462 c90)
426 basic_machine=c90-cray 463 basic_machine=c90-cray
427 os=-unicos 464 os=-unicos
428 ;; 465 ;;
466 cegcc)
467 basic_machine=arm-unknown
468 os=-cegcc
469 ;;
429 convex-c1) 470 convex-c1)
430 basic_machine=c1-convex 471 basic_machine=c1-convex
431 os=-bsd 472 os=-bsd
@@ -454,8 +495,8 @@ case $basic_machine in
454 basic_machine=craynv-cray 495 basic_machine=craynv-cray
455 os=-unicosmp 496 os=-unicosmp
456 ;; 497 ;;
457 cr16c) 498 cr16)
458 basic_machine=cr16c-unknown 499 basic_machine=cr16-unknown
459 os=-elf 500 os=-elf
460 ;; 501 ;;
461 crds | unos) 502 crds | unos)
@@ -493,6 +534,10 @@ case $basic_machine in
493 basic_machine=m88k-motorola 534 basic_machine=m88k-motorola
494 os=-sysv3 535 os=-sysv3
495 ;; 536 ;;
537 dicos)
538 basic_machine=i686-pc
539 os=-dicos
540 ;;
496 djgpp) 541 djgpp)
497 basic_machine=i586-pc 542 basic_machine=i586-pc
498 os=-msdosdjgpp 543 os=-msdosdjgpp
@@ -647,6 +692,14 @@ case $basic_machine in
647 basic_machine=m68k-isi 692 basic_machine=m68k-isi
648 os=-sysv 693 os=-sysv
649 ;; 694 ;;
695 m68knommu)
696 basic_machine=m68k-unknown
697 os=-linux
698 ;;
699 m68knommu-*)
700 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
701 os=-linux
702 ;;
650 m88k-omron*) 703 m88k-omron*)
651 basic_machine=m88k-omron 704 basic_machine=m88k-omron
652 ;; 705 ;;
@@ -662,6 +715,10 @@ case $basic_machine in
662 basic_machine=i386-pc 715 basic_machine=i386-pc
663 os=-mingw32 716 os=-mingw32
664 ;; 717 ;;
718 mingw32ce)
719 basic_machine=arm-unknown
720 os=-mingw32ce
721 ;;
665 miniframe) 722 miniframe)
666 basic_machine=m68000-convergent 723 basic_machine=m68000-convergent
667 ;; 724 ;;
@@ -687,6 +744,9 @@ case $basic_machine in
687 basic_machine=i386-pc 744 basic_machine=i386-pc
688 os=-msdos 745 os=-msdos
689 ;; 746 ;;
747 ms1-*)
748 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
749 ;;
690 mvs) 750 mvs)
691 basic_machine=i370-ibm 751 basic_machine=i370-ibm
692 os=-mvs 752 os=-mvs
@@ -762,9 +822,8 @@ case $basic_machine in
762 basic_machine=hppa1.1-oki 822 basic_machine=hppa1.1-oki
763 os=-proelf 823 os=-proelf
764 ;; 824 ;;
765 or32 | or32-*) 825 openrisc | openrisc-*)
766 basic_machine=or32-unknown 826 basic_machine=or32-unknown
767 os=-coff
768 ;; 827 ;;
769 os400) 828 os400)
770 basic_machine=powerpc-ibm 829 basic_machine=powerpc-ibm
@@ -786,6 +845,14 @@ case $basic_machine in
786 basic_machine=i860-intel 845 basic_machine=i860-intel
787 os=-osf 846 os=-osf
788 ;; 847 ;;
848 parisc)
849 basic_machine=hppa-unknown
850 os=-linux
851 ;;
852 parisc-*)
853 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
854 os=-linux
855 ;;
789 pbd) 856 pbd)
790 basic_machine=sparc-tti 857 basic_machine=sparc-tti
791 ;; 858 ;;
@@ -795,6 +862,12 @@ case $basic_machine in
795 pc532 | pc532-*) 862 pc532 | pc532-*)
796 basic_machine=ns32k-pc532 863 basic_machine=ns32k-pc532
797 ;; 864 ;;
865 pc98)
866 basic_machine=i386-pc
867 ;;
868 pc98-*)
869 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
870 ;;
798 pentium | p5 | k5 | k6 | nexgen | viac3) 871 pentium | p5 | k5 | k6 | nexgen | viac3)
799 basic_machine=i586-pc 872 basic_machine=i586-pc
800 ;; 873 ;;
@@ -851,6 +924,10 @@ case $basic_machine in
851 basic_machine=i586-unknown 924 basic_machine=i586-unknown
852 os=-pw32 925 os=-pw32
853 ;; 926 ;;
927 rdos)
928 basic_machine=i386-pc
929 os=-rdos
930 ;;
854 rom68k) 931 rom68k)
855 basic_machine=m68k-rom68k 932 basic_machine=m68k-rom68k
856 os=-coff 933 os=-coff
@@ -877,6 +954,10 @@ case $basic_machine in
877 sb1el) 954 sb1el)
878 basic_machine=mipsisa64sb1el-unknown 955 basic_machine=mipsisa64sb1el-unknown
879 ;; 956 ;;
957 sde)
958 basic_machine=mipsisa32-sde
959 os=-elf
960 ;;
880 sei) 961 sei)
881 basic_machine=mips-sei 962 basic_machine=mips-sei
882 os=-seiux 963 os=-seiux
@@ -888,6 +969,9 @@ case $basic_machine in
888 basic_machine=sh-hitachi 969 basic_machine=sh-hitachi
889 os=-hms 970 os=-hms
890 ;; 971 ;;
972 sh5el)
973 basic_machine=sh5le-unknown
974 ;;
891 sh64) 975 sh64)
892 basic_machine=sh64-unknown 976 basic_machine=sh64-unknown
893 ;; 977 ;;
@@ -977,6 +1061,10 @@ case $basic_machine in
977 basic_machine=tic6x-unknown 1061 basic_machine=tic6x-unknown
978 os=-coff 1062 os=-coff
979 ;; 1063 ;;
1064 tile*)
1065 basic_machine=tile-unknown
1066 os=-linux-gnu
1067 ;;
980 tx39) 1068 tx39)
981 basic_machine=mipstx39-unknown 1069 basic_machine=mipstx39-unknown
982 ;; 1070 ;;
@@ -1090,13 +1178,10 @@ case $basic_machine in
1090 we32k) 1178 we32k)
1091 basic_machine=we32k-att 1179 basic_machine=we32k-att
1092 ;; 1180 ;;
1093 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1181 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1094 basic_machine=sh-unknown 1182 basic_machine=sh-unknown
1095 ;; 1183 ;;
1096 sh64) 1184 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1097 basic_machine=sh64-unknown
1098 ;;
1099 sparc | sparcv8 | sparcv9 | sparcv9b)
1100 basic_machine=sparc-sun 1185 basic_machine=sparc-sun
1101 ;; 1186 ;;
1102 cydra) 1187 cydra)
@@ -1169,20 +1254,23 @@ case $os in
1169 | -aos* \ 1254 | -aos* \
1170 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1255 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1171 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1256 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1172 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1257 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1258 | -openbsd* | -solidbsd* \
1173 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1259 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1174 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1260 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1175 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1261 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1176 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1262 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1177 | -chorusos* | -chorusrdb* \ 1263 | -chorusos* | -chorusrdb* | -cegcc* \
1178 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1264 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1179 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1265 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1266 | -uxpv* | -beos* | -mpeix* | -udk* \
1180 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1267 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1181 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1268 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1182 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1269 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1183 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1270 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1184 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1271 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1185 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -skyos*) 1272 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1273 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1186 # Remember, each alternative MUST END IN *, to match a version number. 1274 # Remember, each alternative MUST END IN *, to match a version number.
1187 ;; 1275 ;;
1188 -qnx*) 1276 -qnx*)
@@ -1200,7 +1288,7 @@ case $os in
1200 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1288 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1201 ;; 1289 ;;
1202 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1290 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1203 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1291 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1204 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1292 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1205 ;; 1293 ;;
1206 -mac*) 1294 -mac*)
@@ -1312,6 +1400,9 @@ case $os in
1312 -zvmoe) 1400 -zvmoe)
1313 os=-zvmoe 1401 os=-zvmoe
1314 ;; 1402 ;;
1403 -dicos*)
1404 os=-dicos
1405 ;;
1315 -none) 1406 -none)
1316 ;; 1407 ;;
1317 *) 1408 *)
@@ -1334,6 +1425,12 @@ else
1334# system, and we'll never get to this point. 1425# system, and we'll never get to this point.
1335 1426
1336case $basic_machine in 1427case $basic_machine in
1428 score-*)
1429 os=-elf
1430 ;;
1431 spu-*)
1432 os=-elf
1433 ;;
1337 *-acorn) 1434 *-acorn)
1338 os=-riscix1.2 1435 os=-riscix1.2
1339 ;; 1436 ;;
@@ -1343,9 +1440,9 @@ case $basic_machine in
1343 arm*-semi) 1440 arm*-semi)
1344 os=-aout 1441 os=-aout
1345 ;; 1442 ;;
1346 c4x-* | tic4x-*) 1443 c4x-* | tic4x-*)
1347 os=-coff 1444 os=-coff
1348 ;; 1445 ;;
1349 # This must come before the *-dec entry. 1446 # This must come before the *-dec entry.
1350 pdp10-*) 1447 pdp10-*)
1351 os=-tops20 1448 os=-tops20
@@ -1371,6 +1468,9 @@ case $basic_machine in
1371 m68*-cisco) 1468 m68*-cisco)
1372 os=-aout 1469 os=-aout
1373 ;; 1470 ;;
1471 mep-*)
1472 os=-elf
1473 ;;
1374 mips*-cisco) 1474 mips*-cisco)
1375 os=-elf 1475 os=-elf
1376 ;; 1476 ;;
@@ -1389,6 +1489,9 @@ case $basic_machine in
1389 *-be) 1489 *-be)
1390 os=-beos 1490 os=-beos
1391 ;; 1491 ;;
1492 *-haiku)
1493 os=-haiku
1494 ;;
1392 *-ibm) 1495 *-ibm)
1393 os=-aix 1496 os=-aix
1394 ;; 1497 ;;