summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-07 08:56:05 +1100
committerDamien Miller <djm@mindrot.org>2000-01-07 08:56:05 +1100
commit2edcda5d4c716e849459e87faeb3b03c1282cbbe (patch)
tree8d5e5caeb4ea34bd3204e9266d5d6d1a1efee166 /config.sub
parent105b7f073ac053d8f00d2b79d9fd8555d34a84f3 (diff)
- New config.sub and config.guess to fix problems on SCO. Supplied
by Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub316
1 files changed, 290 insertions, 26 deletions
diff --git a/config.sub b/config.sub
index 00bea6e6a..cecbe74df 100755
--- a/config.sub
+++ b/config.sub
@@ -1,6 +1,6 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script, version 1.1. 2# Configuration validation subroutine script, version 1.1.
3# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. 3# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
4# This file is (in principle) common to ALL GNU software. 4# This file is (in principle) common to ALL GNU software.
5# The presence of a machine in this file suggests that SOME GNU software 5# The presence of a machine in this file suggests that SOME GNU software
6# can handle that machine. It does not imply ALL GNU software can. 6# can handle that machine. It does not imply ALL GNU software can.
@@ -98,11 +98,21 @@ case $os in
98 os= 98 os=
99 basic_machine=$1 99 basic_machine=$1
100 ;; 100 ;;
101 -sim | -cisco | -oki | -wec | -winbond)
102 os=
103 basic_machine=$1
104 ;;
105 -scout)
106 ;;
107 -wrs)
108 os=-vxworks
109 basic_machine=$1
110 ;;
101 -hiux*) 111 -hiux*)
102 os=-hiuxwe2 112 os=-hiuxwe2
103 ;; 113 ;;
104 -sco5) 114 -sco5)
105 os=sco3.2v5 115 os=-sco3.2v5
106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 116 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
107 ;; 117 ;;
108 -sco4) 118 -sco4)
@@ -121,6 +131,9 @@ case $os in
121 os=-sco3.2v2 131 os=-sco3.2v2
122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
123 ;; 133 ;;
134 -udk*)
135 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
136 ;;
124 -isc) 137 -isc)
125 os=-isc2.2 138 os=-isc2.2
126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 139 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -151,12 +164,17 @@ case $basic_machine in
151 # Some are omitted here because they have special meanings below. 164 # Some are omitted here because they have special meanings below.
152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 165 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 166 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
154 | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ 167 | 580 | i960 | h8300 \
155 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ 168 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
156 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ 169 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
157 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ 170 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
158 | mipstx39 | mipstx39el \ 171 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
159 | sparc | sparclet | sparclite | sparc64 | v850) 172 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
173 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
174 | mips64vr5000 | miprs64vr5000el \
175 | m88110 | m680[012346]0 | m683?2 | m68360 | m5200 | z8k | v70 \
176 | sparc | sparclet | sparclite | sparc64 | sparc86x | sparcv9 \
177 | thumb | v850 | c4x | d10v | h8500 | w65 | fr30)
160 basic_machine=$basic_machine-unknown 178 basic_machine=$basic_machine-unknown
161 ;; 179 ;;
162 # We use `pc' rather than `unknown' 180 # We use `pc' rather than `unknown'
@@ -174,24 +192,41 @@ case $basic_machine in
174 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ 192 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
175 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 193 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
176 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 194 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
177 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ 195 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
178 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ 196 | xmp-* | ymp-* \
179 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ 197 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
180 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ 198 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
199 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
200 | clipper-* | orion-* \
181 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 201 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
182 | sparc64-* | mips64-* | mipsel-* \ 202 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
183 | mips64el-* | mips64orion-* | mips64orionel-* \ 203 | mips64el-* | mips64orion-* | mips64orionel-* \
204 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
184 | mipstx39-* | mipstx39el-* \ 205 | mipstx39-* | mipstx39el-* \
185 | f301-*) 206 | f301-* | arm*-* | t3e-* \
207 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
208 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
186 ;; 209 ;;
187 # Recognize the various machine names and aliases which stand 210 # Recognize the various machine names and aliases which stand
188 # for a CPU type and a company and sometimes even an OS. 211 # for a CPU type and a company and sometimes even an OS.
212 386bsd)
213 basic_machine=i386-unknown
214 os=-bsd
215 ;;
189 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 216 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
190 basic_machine=m68000-att 217 basic_machine=m68000-att
191 ;; 218 ;;
192 3b*) 219 3b*)
193 basic_machine=we32k-att 220 basic_machine=we32k-att
194 ;; 221 ;;
222 a29khif)
223 basic_machine=a29k-amd
224 os=-udi
225 ;;
226 adobe68k)
227 basic_machine=m68010-adobe
228 os=-scout
229 ;;
195 alliant | fx80) 230 alliant | fx80)
196 basic_machine=fx80-alliant 231 basic_machine=fx80-alliant
197 ;; 232 ;;
@@ -221,6 +256,10 @@ case $basic_machine in
221 basic_machine=m68k-apollo 256 basic_machine=m68k-apollo
222 os=-sysv 257 os=-sysv
223 ;; 258 ;;
259 apollo68bsd)
260 basic_machine=m68k-apollo
261 os=-bsd
262 ;;
224 aux) 263 aux)
225 basic_machine=m68k-apple 264 basic_machine=m68k-apple
226 os=-aux 265 os=-aux
@@ -297,6 +336,10 @@ case $basic_machine in
297 encore | umax | mmax) 336 encore | umax | mmax)
298 basic_machine=ns32k-encore 337 basic_machine=ns32k-encore
299 ;; 338 ;;
339 es1800 | OSE68k | ose68k | ose | OSE)
340 basic_machine=m68k-ericsson
341 os=-ose
342 ;;
300 fx2800) 343 fx2800)
301 basic_machine=i860-alliant 344 basic_machine=i860-alliant
302 ;; 345 ;;
@@ -315,6 +358,14 @@ case $basic_machine in
315 basic_machine=h8300-hitachi 358 basic_machine=h8300-hitachi
316 os=-hms 359 os=-hms
317 ;; 360 ;;
361 h8300xray)
362 basic_machine=h8300-hitachi
363 os=-xray
364 ;;
365 h8500hms)
366 basic_machine=h8500-hitachi
367 os=-hms
368 ;;
318 harris) 369 harris)
319 basic_machine=m88k-harris 370 basic_machine=m88k-harris
320 os=-sysv3 371 os=-sysv3
@@ -330,13 +381,30 @@ case $basic_machine in
330 basic_machine=m68k-hp 381 basic_machine=m68k-hp
331 os=-hpux 382 os=-hpux
332 ;; 383 ;;
384 hp3k9[0-9][0-9] | hp9[0-9][0-9])
385 basic_machine=hppa1.0-hp
386 ;;
333 hp9k2[0-9][0-9] | hp9k31[0-9]) 387 hp9k2[0-9][0-9] | hp9k31[0-9])
334 basic_machine=m68000-hp 388 basic_machine=m68000-hp
335 ;; 389 ;;
336 hp9k3[2-9][0-9]) 390 hp9k3[2-9][0-9])
337 basic_machine=m68k-hp 391 basic_machine=m68k-hp
338 ;; 392 ;;
339 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) 393 hp9k6[0-9][0-9] | hp6[0-9][0-9])
394 basic_machine=hppa1.0-hp
395 ;;
396 hp9k7[0-79][0-9] | hp7[0-79][0-9])
397 basic_machine=hppa1.1-hp
398 ;;
399 hp9k78[0-9] | hp78[0-9])
400 # FIXME: really hppa2.0-hp
401 basic_machine=hppa1.1-hp
402 ;;
403 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
404 # FIXME: really hppa2.0-hp
405 basic_machine=hppa1.1-hp
406 ;;
407 hp9k8[0-9][13679] | hp8[0-9][13679])
340 basic_machine=hppa1.1-hp 408 basic_machine=hppa1.1-hp
341 ;; 409 ;;
342 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 410 hp9k8[0-9][0-9] | hp8[0-9][0-9])
@@ -345,9 +413,16 @@ case $basic_machine in
345 hppa-next) 413 hppa-next)
346 os=-nextstep3 414 os=-nextstep3
347 ;; 415 ;;
416 hppaosf)
417 basic_machine=hppa1.1-hp
418 os=-osf
419 ;;
420 hppro)
421 basic_machine=hppa1.1-hp
422 os=-proelf
423 ;;
348 i370-ibm* | ibm*) 424 i370-ibm* | ibm*)
349 basic_machine=i370-ibm 425 basic_machine=i370-ibm
350 os=-mvs
351 ;; 426 ;;
352# I'm not sure what "Sysv32" means. Should this be sysv3.2? 427# I'm not sure what "Sysv32" means. Should this be sysv3.2?
353 i[34567]86v32) 428 i[34567]86v32)
@@ -366,6 +441,22 @@ case $basic_machine in
366 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 441 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
367 os=-solaris2 442 os=-solaris2
368 ;; 443 ;;
444 i386mach)
445 basic_machine=i386-mach
446 os=-mach
447 ;;
448 i386-vsta | vsta)
449 basic_machine=i386-unknown
450 os=-vsta
451 ;;
452 i386-go32 | go32)
453 basic_machine=i386-unknown
454 os=-go32
455 ;;
456 i386-mingw32 | mingw32)
457 basic_machine=i386-unknown
458 os=-mingw32
459 ;;
369 iris | iris4d) 460 iris | iris4d)
370 basic_machine=mips-sgi 461 basic_machine=mips-sgi
371 case $os in 462 case $os in
@@ -394,6 +485,10 @@ case $basic_machine in
394 miniframe) 485 miniframe)
395 basic_machine=m68000-convergent 486 basic_machine=m68000-convergent
396 ;; 487 ;;
488 *mint | *MiNT)
489 basic_machine=m68k-atari
490 os=-mint
491 ;;
397 mipsel*-linux*) 492 mipsel*-linux*)
398 basic_machine=mipsel-unknown 493 basic_machine=mipsel-unknown
399 os=-linux-gnu 494 os=-linux-gnu
@@ -408,10 +503,30 @@ case $basic_machine in
408 mips3*) 503 mips3*)
409 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 504 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
410 ;; 505 ;;
506 monitor)
507 basic_machine=m68k-rom68k
508 os=-coff
509 ;;
510 msdos)
511 basic_machine=i386-unknown
512 os=-msdos
513 ;;
514 mvs)
515 basic_machine=i370-ibm
516 os=-mvs
517 ;;
411 ncr3000) 518 ncr3000)
412 basic_machine=i486-ncr 519 basic_machine=i486-ncr
413 os=-sysv4 520 os=-sysv4
414 ;; 521 ;;
522 netbsd386)
523 basic_machine=i386-unknown
524 os=-netbsd
525 ;;
526 netwinder)
527 basic_machine=armv4l-corel
528 os=-linux
529 ;;
415 news | news700 | news800 | news900) 530 news | news700 | news800 | news900)
416 basic_machine=m68k-sony 531 basic_machine=m68k-sony
417 os=-newsos 532 os=-newsos
@@ -424,6 +539,10 @@ case $basic_machine in
424 basic_machine=mips-sony 539 basic_machine=mips-sony
425 os=-newsos 540 os=-newsos
426 ;; 541 ;;
542 necv70)
543 basic_machine=v70-nec
544 os=-sysv
545 ;;
427 next | m*-next ) 546 next | m*-next )
428 basic_machine=m68k-next 547 basic_machine=m68k-next
429 case $os in 548 case $os in
@@ -449,9 +568,25 @@ case $basic_machine in
449 basic_machine=i960-intel 568 basic_machine=i960-intel
450 os=-nindy 569 os=-nindy
451 ;; 570 ;;
571 mon960)
572 basic_machine=i960-intel
573 os=-mon960
574 ;;
452 np1) 575 np1)
453 basic_machine=np1-gould 576 basic_machine=np1-gould
454 ;; 577 ;;
578 op50n-* | op60c-*)
579 basic_machine=hppa1.1-oki
580 os=-proelf
581 ;;
582 OSE68000 | ose68000)
583 basic_machine=m68000-ericsson
584 os=-ose
585 ;;
586 os68k)
587 basic_machine=m68k-none
588 os=-os68k
589 ;;
455 pa-hitachi) 590 pa-hitachi)
456 basic_machine=hppa1.1-hitachi 591 basic_machine=hppa1.1-hitachi
457 os=-hiuxwe2 592 os=-hiuxwe2
@@ -469,19 +604,19 @@ case $basic_machine in
469 pc532 | pc532-*) 604 pc532 | pc532-*)
470 basic_machine=ns32k-pc532 605 basic_machine=ns32k-pc532
471 ;; 606 ;;
472 pentium | p5 | k5 | nexen) 607 pentium | p5 | k5 | k6 | nexen)
473 basic_machine=i586-pc 608 basic_machine=i586-pc
474 ;; 609 ;;
475 pentiumpro | p6 | k6 | 6x86) 610 pentiumpro | p6 | 6x86)
476 basic_machine=i686-pc 611 basic_machine=i686-pc
477 ;; 612 ;;
478 pentiumii | pentium2) 613 pentiumii | pentium2)
479 basic_machine=i786-pc 614 basic_machine=i786-pc
480 ;; 615 ;;
481 pentium-* | p5-* | k5-* | nexen-*) 616 pentium-* | p5-* | k5-* | k6-* | nexen-*)
482 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 617 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
483 ;; 618 ;;
484 pentiumpro-* | p6-* | k6-* | 6x86-*) 619 pentiumpro-* | p6-* | 6x86-*)
485 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 620 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
486 ;; 621 ;;
487 pentiumii-* | pentium2-*) 622 pentiumii-* | pentium2-*)
@@ -505,12 +640,20 @@ case $basic_machine in
505 ps2) 640 ps2)
506 basic_machine=i386-ibm 641 basic_machine=i386-ibm
507 ;; 642 ;;
643 rom68k)
644 basic_machine=m68k-rom68k
645 os=-coff
646 ;;
508 rm[46]00) 647 rm[46]00)
509 basic_machine=mips-siemens 648 basic_machine=mips-siemens
510 ;; 649 ;;
511 rtpc | rtpc-*) 650 rtpc | rtpc-*)
512 basic_machine=romp-ibm 651 basic_machine=romp-ibm
513 ;; 652 ;;
653 sa29200)
654 basic_machine=a29k-amd
655 os=-udi
656 ;;
514 sequent) 657 sequent)
515 basic_machine=i386-sequent 658 basic_machine=i386-sequent
516 ;; 659 ;;
@@ -518,6 +661,10 @@ case $basic_machine in
518 basic_machine=sh-hitachi 661 basic_machine=sh-hitachi
519 os=-hms 662 os=-hms
520 ;; 663 ;;
664 sparclite-wrs)
665 basic_machine=sparclite-wrs
666 os=-vxworks
667 ;;
521 sps7) 668 sps7)
522 basic_machine=m68k-bull 669 basic_machine=m68k-bull
523 os=-sysv2 670 os=-sysv2
@@ -525,6 +672,13 @@ case $basic_machine in
525 spur) 672 spur)
526 basic_machine=spur-unknown 673 basic_machine=spur-unknown
527 ;; 674 ;;
675 st2000)
676 basic_machine=m68k-tandem
677 ;;
678 stratus)
679 basic_machine=i860-stratus
680 os=-sysv4
681 ;;
528 sun2) 682 sun2)
529 basic_machine=m68000-sun 683 basic_machine=m68000-sun
530 ;; 684 ;;
@@ -569,6 +723,10 @@ case $basic_machine in
569 basic_machine=i386-sequent 723 basic_machine=i386-sequent
570 os=-dynix 724 os=-dynix
571 ;; 725 ;;
726 t3e)
727 basic_machine=t3e-cray
728 os=-unicos
729 ;;
572 tx39) 730 tx39)
573 basic_machine=mipstx39-unknown 731 basic_machine=mipstx39-unknown
574 ;; 732 ;;
@@ -586,6 +744,10 @@ case $basic_machine in
586 basic_machine=a29k-nyu 744 basic_machine=a29k-nyu
587 os=-sym1 745 os=-sym1
588 ;; 746 ;;
747 v810 | necv810)
748 basic_machine=v810-nec
749 os=-none
750 ;;
589 vaxv) 751 vaxv)
590 basic_machine=vax-dec 752 basic_machine=vax-dec
591 os=-sysv 753 os=-sysv
@@ -609,6 +771,14 @@ case $basic_machine in
609 basic_machine=a29k-wrs 771 basic_machine=a29k-wrs
610 os=-vxworks 772 os=-vxworks
611 ;; 773 ;;
774 w65*)
775 basic_machine=w65-wdc
776 os=-none
777 ;;
778 w89k-*)
779 basic_machine=hppa1.1-winbond
780 os=-proelf
781 ;;
612 xmp) 782 xmp)
613 basic_machine=xmp-cray 783 basic_machine=xmp-cray
614 os=-unicos 784 os=-unicos
@@ -616,6 +786,10 @@ case $basic_machine in
616 xps | xps100) 786 xps | xps100)
617 basic_machine=xps100-honeywell 787 basic_machine=xps100-honeywell
618 ;; 788 ;;
789 z8k-*-coff)
790 basic_machine=z8k-unknown
791 os=-sim
792 ;;
619 none) 793 none)
620 basic_machine=none-none 794 basic_machine=none-none
621 os=-none 795 os=-none
@@ -623,6 +797,15 @@ case $basic_machine in
623 797
624# Here we handle the default manufacturer of certain CPU types. It is in 798# Here we handle the default manufacturer of certain CPU types. It is in
625# some cases the only manufacturer, in others, it is the most popular. 799# some cases the only manufacturer, in others, it is the most popular.
800 w89k)
801 basic_machine=hppa1.1-winbond
802 ;;
803 op50n)
804 basic_machine=hppa1.1-oki
805 ;;
806 op60c)
807 basic_machine=hppa1.1-oki
808 ;;
626 mips) 809 mips)
627 if [ x$os = x-linux-gnu ]; then 810 if [ x$os = x-linux-gnu ]; then
628 basic_machine=mips-unknown 811 basic_machine=mips-unknown
@@ -645,7 +828,7 @@ case $basic_machine in
645 we32k) 828 we32k)
646 basic_machine=we32k-att 829 basic_machine=we32k-att
647 ;; 830 ;;
648 sparc) 831 sparc | sparcv9)
649 basic_machine=sparc-sun 832 basic_machine=sparc-sun
650 ;; 833 ;;
651 cydra) 834 cydra)
@@ -657,6 +840,16 @@ case $basic_machine in
657 orion105) 840 orion105)
658 basic_machine=clipper-highlevel 841 basic_machine=clipper-highlevel
659 ;; 842 ;;
843 mac | mpw | mac-mpw)
844 basic_machine=m68k-apple
845 ;;
846 pmac | pmac-mpw)
847 basic_machine=powerpc-apple
848 ;;
849 c4x*)
850 basic_machine=c4x-none
851 os=-coff
852 ;;
660 *) 853 *)
661 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 854 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
662 exit 1 855 exit 1
@@ -706,17 +899,25 @@ case $os in
706 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 899 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
707 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 900 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
708 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 901 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
709 | -aos* \ 902 | -aos* | -opened* \
710 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 903 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
711 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 904 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
712 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 905 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
713 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ 906 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
714 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 907 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
715 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 908 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
716 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 909 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
717 | -mingw32* | -linux-gnu* | -uxpv* | -beos*) 910 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
911 | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
718 # Remember, each alternative MUST END IN *, to match a version number. 912 # Remember, each alternative MUST END IN *, to match a version number.
719 ;; 913 ;;
914 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
915 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
916 | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
917 ;;
918 -mac*)
919 os=`echo $os | sed -e 's|mac|macos|'`
920 ;;
720 -linux*) 921 -linux*)
721 os=`echo $os | sed -e 's|linux|linux-gnu|'` 922 os=`echo $os | sed -e 's|linux|linux-gnu|'`
722 ;; 923 ;;
@@ -726,6 +927,9 @@ case $os in
726 -sunos6*) 927 -sunos6*)
727 os=`echo $os | sed -e 's|sunos6|solaris3|'` 928 os=`echo $os | sed -e 's|sunos6|solaris3|'`
728 ;; 929 ;;
930 -opened*)
931 os=-openedition
932 ;;
729 -osfrose*) 933 -osfrose*)
730 os=-osfrose 934 os=-osfrose
731 ;; 935 ;;
@@ -741,6 +945,9 @@ case $os in
741 -acis*) 945 -acis*)
742 os=-aos 946 os=-aos
743 ;; 947 ;;
948 -386bsd)
949 os=-bsd
950 ;;
744 -ctix* | -uts*) 951 -ctix* | -uts*)
745 os=-sysv 952 os=-sysv
746 ;; 953 ;;
@@ -772,9 +979,18 @@ case $os in
772 # This must come after -sysvr4. 979 # This must come after -sysvr4.
773 -sysv*) 980 -sysv*)
774 ;; 981 ;;
982 -ose*)
983 os=-ose
984 ;;
985 -es1800*)
986 os=-ose
987 ;;
775 -xenix) 988 -xenix)
776 os=-xenix 989 os=-xenix
777 ;; 990 ;;
991 -*mint | -*MiNT)
992 os=-mint
993 ;;
778 -none) 994 -none)
779 ;; 995 ;;
780 *) 996 *)
@@ -800,6 +1016,9 @@ case $basic_machine in
800 *-acorn) 1016 *-acorn)
801 os=-riscix1.2 1017 os=-riscix1.2
802 ;; 1018 ;;
1019 arm*-corel)
1020 os=-linux
1021 ;;
803 arm*-semi) 1022 arm*-semi)
804 os=-aout 1023 os=-aout
805 ;; 1024 ;;
@@ -821,6 +1040,15 @@ case $basic_machine in
821 # default. 1040 # default.
822 # os=-sunos4 1041 # os=-sunos4
823 ;; 1042 ;;
1043 m68*-cisco)
1044 os=-aout
1045 ;;
1046 mips*-cisco)
1047 os=-elf
1048 ;;
1049 mips*-*)
1050 os=-elf
1051 ;;
824 *-tti) # must be before sparc entry or we get the wrong os. 1052 *-tti) # must be before sparc entry or we get the wrong os.
825 os=-sysv3 1053 os=-sysv3
826 ;; 1054 ;;
@@ -833,6 +1061,15 @@ case $basic_machine in
833 *-ibm) 1061 *-ibm)
834 os=-aix 1062 os=-aix
835 ;; 1063 ;;
1064 *-wec)
1065 os=-proelf
1066 ;;
1067 *-winbond)
1068 os=-proelf
1069 ;;
1070 *-oki)
1071 os=-proelf
1072 ;;
836 *-hp) 1073 *-hp)
837 os=-hpux 1074 os=-hpux
838 ;; 1075 ;;
@@ -896,6 +1133,18 @@ case $basic_machine in
896 f301-fujitsu) 1133 f301-fujitsu)
897 os=-uxpv 1134 os=-uxpv
898 ;; 1135 ;;
1136 *-rom68k)
1137 os=-coff
1138 ;;
1139 *-*bug)
1140 os=-coff
1141 ;;
1142 *-apple)
1143 os=-macos
1144 ;;
1145 *-atari*)
1146 os=-mint
1147 ;;
899 *) 1148 *)
900 os=-none 1149 os=-none
901 ;; 1150 ;;
@@ -917,9 +1166,15 @@ case $basic_machine in
917 -aix*) 1166 -aix*)
918 vendor=ibm 1167 vendor=ibm
919 ;; 1168 ;;
1169 -beos*)
1170 vendor=be
1171 ;;
920 -hpux*) 1172 -hpux*)
921 vendor=hp 1173 vendor=hp
922 ;; 1174 ;;
1175 -mpeix*)
1176 vendor=hp
1177 ;;
923 -hiux*) 1178 -hiux*)
924 vendor=hitachi 1179 vendor=hitachi
925 ;; 1180 ;;
@@ -935,7 +1190,7 @@ case $basic_machine in
935 -genix*) 1190 -genix*)
936 vendor=ns 1191 vendor=ns
937 ;; 1192 ;;
938 -mvs*) 1193 -mvs* | -opened*)
939 vendor=ibm 1194 vendor=ibm
940 ;; 1195 ;;
941 -ptx*) 1196 -ptx*)
@@ -947,6 +1202,15 @@ case $basic_machine in
947 -aux*) 1202 -aux*)
948 vendor=apple 1203 vendor=apple
949 ;; 1204 ;;
1205 -hms*)
1206 vendor=hitachi
1207 ;;
1208 -mpw* | -macos*)
1209 vendor=apple
1210 ;;
1211 -*mint | -*MiNT)
1212 vendor=atari
1213 ;;
950 esac 1214 esac
951 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1215 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
952 ;; 1216 ;;