~ubuntu-branches/ubuntu/natty/bluefish/natty-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Davide Puricelli (evo)
  • Date: 2005-04-23 17:05:18 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050423170518-pb8zi3vg32cm6g04
Tags: 1.0-1
* Acknowledge NMU, thanks Leo; closes: #291222.
* Updated debian/ files, thanks Daniel Leidert. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
 
#   Free Software Foundation, Inc.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2001-05-11'
 
6
timestamp='2005-02-10'
7
7
 
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
29
29
# configuration script generated by Autoconf, you may include it under
30
30
# the same distribution terms that you use for the rest of that program.
31
31
 
32
 
# Please send patches to <config-patches@gnu.org>.
 
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
 
33
# diff and a properly formatted ChangeLog entry.
33
34
#
34
35
# Configuration subroutine to validate and canonicalize a configuration type.
35
36
# Supply the specified configuration type as an argument.
69
70
version="\
70
71
GNU config.sub ($timestamp)
71
72
 
72
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
73
74
Free Software Foundation, Inc.
74
75
 
75
76
This is free software; see the source for copying conditions.  There is NO
117
118
# Here we must recognize all the valid KERNEL-OS combinations.
118
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119
120
case $maybe_os in
120
 
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
 
121
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
 
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
121
123
    os=-$maybe_os
122
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123
125
    ;;
143
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146
 
        -apple | -axis)
 
148
        -apple | -axis | -knuth | -cray)
147
149
                os=
148
150
                basic_machine=$1
149
151
                ;;
157
159
                os=-vxworks
158
160
                basic_machine=$1
159
161
                ;;
 
162
        -chorusos*)
 
163
                os=-chorusos
 
164
                basic_machine=$1
 
165
                ;;
 
166
        -chorusrdb)
 
167
                os=-chorusrdb
 
168
                basic_machine=$1
 
169
                ;;
160
170
        -hiux*)
161
171
                os=-hiuxwe2
162
172
                ;;
215
225
case $basic_machine in
216
226
        # Recognize the basic CPU types without company name.
217
227
        # Some are omitted here because they have special meanings below.
218
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
219
 
                | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
220
 
                | pyramid | mn10200 | mn10300 | tron | a29k \
221
 
                | 580 | i960 | h8300 \
222
 
                | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
223
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
224
 
                | hppa64 \
225
 
                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
226
 
                | alphaev6[78] \
227
 
                | we32k | ns16k | clipper | i370 | sh | sh[34] \
228
 
                | powerpc | powerpcle \
229
 
                | 1750a | dsp16xx | pdp10 | pdp11 \
230
 
                | mips16 | mips64 | mipsel | mips64el \
231
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
232
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
233
 
                | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
234
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
235
 
                | v850 | c4x \
236
 
                | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
237
 
                | pj | pjl | h8500 | z8k)
 
228
        1750a | 580 \
 
229
        | a29k \
 
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
 
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | c4x | clipper \
 
235
        | d10v | d30v | dlx | dsp16xx \
 
236
        | fr30 | frv \
 
237
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
238
        | i370 | i860 | i960 | ia64 \
 
239
        | ip2k | iq2000 \
 
240
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
241
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
242
        | mips16 \
 
243
        | mips64 | mips64el \
 
244
        | mips64vr | mips64vrel \
 
245
        | mips64orion | mips64orionel \
 
246
        | mips64vr4100 | mips64vr4100el \
 
247
        | mips64vr4300 | mips64vr4300el \
 
248
        | mips64vr5000 | mips64vr5000el \
 
249
        | mipsisa32 | mipsisa32el \
 
250
        | mipsisa32r2 | mipsisa32r2el \
 
251
        | mipsisa64 | mipsisa64el \
 
252
        | mipsisa64r2 | mipsisa64r2el \
 
253
        | mipsisa64sb1 | mipsisa64sb1el \
 
254
        | mipsisa64sr71k | mipsisa64sr71kel \
 
255
        | mipstx39 | mipstx39el \
 
256
        | mn10200 | mn10300 \
 
257
        | msp430 \
 
258
        | ns16k | ns32k \
 
259
        | openrisc | or32 \
 
260
        | pdp10 | pdp11 | pj | pjl \
 
261
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
262
        | pyramid \
 
263
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
264
        | sh64 | sh64le \
 
265
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
 
266
        | strongarm \
 
267
        | tahoe | thumb | tic4x | tic80 | tron \
 
268
        | v850 | v850e \
 
269
        | we32k \
 
270
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
 
271
        | z8k)
238
272
                basic_machine=$basic_machine-unknown
239
273
                ;;
240
274
        m6811 | m68hc11 | m6812 | m68hc12)
242
276
                basic_machine=$basic_machine-unknown
243
277
                os=-none
244
278
                ;;
245
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65 | z8k)
 
279
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
246
280
                ;;
247
281
 
248
282
        # We use `pc' rather than `unknown'
257
291
                exit 1
258
292
                ;;
259
293
        # Recognize the basic CPU types with company name.
260
 
        # FIXME: clean up the formatting here.
261
 
        vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
262
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
263
 
              | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
264
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
265
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
266
 
              | xmp-* | ymp-* \
267
 
              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
268
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
269
 
              | hppa2.0n-* | hppa64-* \
270
 
              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
271
 
              | alphaev6[78]-* \
272
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
273
 
              | clipper-* | orion-* \
274
 
              | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
275
 
              | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
276
 
              | mips16-* | mips64-* | mipsel-* \
277
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
278
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
279
 
              | mipstx39-* | mipstx39el-* | mcore-* \
280
 
              | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
281
 
              | [cjt]90-* \
282
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
283
 
              | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
284
 
              | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
 
294
        580-* \
 
295
        | a29k-* \
 
296
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
297
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
298
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
299
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
300
        | avr-* \
 
301
        | bs2000-* \
 
302
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
303
        | clipper-* | craynv-* | cydra-* \
 
304
        | d10v-* | d30v-* | dlx-* \
 
305
        | elxsi-* \
 
306
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
307
        | h8300-* | h8500-* \
 
308
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
309
        | i*86-* | i860-* | i960-* | ia64-* \
 
310
        | ip2k-* | iq2000-* \
 
311
        | m32r-* | m32rle-* \
 
312
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
313
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
314
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
315
        | mips16-* \
 
316
        | mips64-* | mips64el-* \
 
317
        | mips64vr-* | mips64vrel-* \
 
318
        | mips64orion-* | mips64orionel-* \
 
319
        | mips64vr4100-* | mips64vr4100el-* \
 
320
        | mips64vr4300-* | mips64vr4300el-* \
 
321
        | mips64vr5000-* | mips64vr5000el-* \
 
322
        | mipsisa32-* | mipsisa32el-* \
 
323
        | mipsisa32r2-* | mipsisa32r2el-* \
 
324
        | mipsisa64-* | mipsisa64el-* \
 
325
        | mipsisa64r2-* | mipsisa64r2el-* \
 
326
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
327
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
328
        | mipstx39-* | mipstx39el-* \
 
329
        | mmix-* \
 
330
        | msp430-* \
 
331
        | none-* | np1-* | ns16k-* | ns32k-* \
 
332
        | orion-* \
 
333
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
334
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
335
        | pyramid-* \
 
336
        | romp-* | rs6000-* \
 
337
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
338
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
339
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
 
340
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
341
        | tahoe-* | thumb-* \
 
342
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
343
        | tron-* \
 
344
        | v850-* | v850e-* | vax-* \
 
345
        | we32k-* \
 
346
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
347
        | xstormy16-* | xtensa-* \
 
348
        | ymp-* \
 
349
        | z8k-*)
285
350
                ;;
286
351
        # Recognize the various machine names and aliases which stand
287
352
        # for a CPU type and a company and sometimes even an OS.
299
364
                basic_machine=a29k-amd
300
365
                os=-udi
301
366
                ;;
 
367
        abacus)
 
368
                basic_machine=abacus-unknown
 
369
                ;;
302
370
        adobe68k)
303
371
                basic_machine=m68010-adobe
304
372
                os=-scout
313
381
                basic_machine=a29k-none
314
382
                os=-bsd
315
383
                ;;
 
384
        amd64)
 
385
                basic_machine=x86_64-pc
 
386
                ;;
 
387
        amd64-*)
 
388
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
389
                ;;
316
390
        amdahl)
317
391
                basic_machine=580-amdahl
318
392
                os=-sysv
344
418
                basic_machine=ns32k-sequent
345
419
                os=-dynix
346
420
                ;;
 
421
        c90)
 
422
                basic_machine=c90-cray
 
423
                os=-unicos
 
424
                ;;
347
425
        convex-c1)
348
426
                basic_machine=c1-convex
349
427
                os=-bsd
364
442
                basic_machine=c38-convex
365
443
                os=-bsd
366
444
                ;;
367
 
        cray | ymp)
368
 
                basic_machine=ymp-cray
369
 
                os=-unicos
370
 
                ;;
371
 
        cray2)
372
 
                basic_machine=cray2-cray
373
 
                os=-unicos
374
 
                ;;
375
 
        [cjt]90)
376
 
                basic_machine=${basic_machine}-cray
377
 
                os=-unicos
 
445
        cray | j90)
 
446
                basic_machine=j90-cray
 
447
                os=-unicos
 
448
                ;;
 
449
        craynv)
 
450
                basic_machine=craynv-cray
 
451
                os=-unicosmp
 
452
                ;;
 
453
        cr16c)
 
454
                basic_machine=cr16c-unknown
 
455
                os=-elf
378
456
                ;;
379
457
        crds | unos)
380
458
                basic_machine=m68k-crds
381
459
                ;;
 
460
        crisv32 | crisv32-* | etraxfs*)
 
461
                basic_machine=crisv32-axis
 
462
                ;;
382
463
        cris | cris-* | etrax*)
383
464
                basic_machine=cris-axis
384
465
                ;;
 
466
        crx)
 
467
                basic_machine=crx-unknown
 
468
                os=-elf
 
469
                ;;
385
470
        da30 | da30-*)
386
471
                basic_machine=m68k-da30
387
472
                ;;
388
473
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
389
474
                basic_machine=mips-dec
390
475
                ;;
 
476
        decsystem10* | dec10*)
 
477
                basic_machine=pdp10-dec
 
478
                os=-tops10
 
479
                ;;
 
480
        decsystem20* | dec20*)
 
481
                basic_machine=pdp10-dec
 
482
                os=-tops20
 
483
                ;;
391
484
        delta | 3300 | motorola-3300 | motorola-delta \
392
485
              | 3300-motorola | delta-motorola)
393
486
                basic_machine=m68k-motorola
396
489
                basic_machine=m88k-motorola
397
490
                os=-sysv3
398
491
                ;;
 
492
        djgpp)
 
493
                basic_machine=i586-pc
 
494
                os=-msdosdjgpp
 
495
                ;;
399
496
        dpx20 | dpx20-*)
400
497
                basic_machine=rs6000-bull
401
498
                os=-bosx
568
665
                basic_machine=m68k-atari
569
666
                os=-mint
570
667
                ;;
571
 
        mipsel*-linux*)
572
 
                basic_machine=mipsel-unknown
573
 
                os=-linux-gnu
574
 
                ;;
575
 
        mips*-linux*)
576
 
                basic_machine=mips-unknown
577
 
                os=-linux-gnu
578
 
                ;;
579
668
        mips3*-*)
580
669
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
581
670
                ;;
582
671
        mips3*)
583
672
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
584
673
                ;;
585
 
        mmix*)
586
 
                basic_machine=mmix-knuth
587
 
                os=-mmixware
588
 
                ;;
589
674
        monitor)
590
675
                basic_machine=m68k-rom68k
591
676
                os=-coff
592
677
                ;;
 
678
        morphos)
 
679
                basic_machine=powerpc-unknown
 
680
                os=-morphos
 
681
                ;;
593
682
        msdos)
594
683
                basic_machine=i386-pc
595
684
                os=-msdos
669
758
                basic_machine=hppa1.1-oki
670
759
                os=-proelf
671
760
                ;;
 
761
        or32 | or32-*)
 
762
                basic_machine=or32-unknown
 
763
                os=-coff
 
764
                ;;
 
765
        os400)
 
766
                basic_machine=powerpc-ibm
 
767
                os=-os400
 
768
                ;;
672
769
        OSE68000 | ose68000)
673
770
                basic_machine=m68000-ericsson
674
771
                os=-ose
691
788
        pbb)
692
789
                basic_machine=m68k-tti
693
790
                ;;
694
 
        pc532 | pc532-*)
 
791
        pc532 | pc532-*)
695
792
                basic_machine=ns32k-pc532
696
793
                ;;
697
 
        pentium | p5 | k5 | k6 | nexgen)
 
794
        pentium | p5 | k5 | k6 | nexgen | viac3)
698
795
                basic_machine=i586-pc
699
796
                ;;
700
 
        pentiumpro | p6 | 6x86 | athlon)
701
 
                basic_machine=i686-pc
702
 
                ;;
703
 
        pentiumii | pentium2)
704
 
                basic_machine=i686-pc
705
 
                ;;
706
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
 
797
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
798
                basic_machine=i686-pc
 
799
                ;;
 
800
        pentiumii | pentium2 | pentiumiii | pentium3)
 
801
                basic_machine=i686-pc
 
802
                ;;
 
803
        pentium4)
 
804
                basic_machine=i786-pc
 
805
                ;;
 
806
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
707
807
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
708
808
                ;;
709
809
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
710
810
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
711
811
                ;;
712
 
        pentiumii-* | pentium2-*)
 
812
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
713
813
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
714
814
                ;;
 
815
        pentium4-*)
 
816
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
817
                ;;
715
818
        pn)
716
819
                basic_machine=pn-gould
717
820
                ;;
718
821
        power)  basic_machine=power-ibm
719
822
                ;;
720
823
        ppc)    basic_machine=powerpc-unknown
721
 
                ;;
 
824
                ;;
722
825
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
723
826
                ;;
724
827
        ppcle | powerpclittle | ppc-le | powerpc-little)
725
828
                basic_machine=powerpcle-unknown
726
 
                ;;
 
829
                ;;
727
830
        ppcle-* | powerpclittle-*)
728
831
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
729
832
                ;;
 
833
        ppc64)  basic_machine=powerpc64-unknown
 
834
                ;;
 
835
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
836
                ;;
 
837
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
838
                basic_machine=powerpc64le-unknown
 
839
                ;;
 
840
        ppc64le-* | powerpc64little-*)
 
841
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
842
                ;;
730
843
        ps2)
731
844
                basic_machine=i386-ibm
732
845
                ;;
744
857
        rtpc | rtpc-*)
745
858
                basic_machine=romp-ibm
746
859
                ;;
 
860
        s390 | s390-*)
 
861
                basic_machine=s390-ibm
 
862
                ;;
 
863
        s390x | s390x-*)
 
864
                basic_machine=s390x-ibm
 
865
                ;;
747
866
        sa29200)
748
867
                basic_machine=a29k-amd
749
868
                os=-udi
750
869
                ;;
 
870
        sb1)
 
871
                basic_machine=mipsisa64sb1-unknown
 
872
                ;;
 
873
        sb1el)
 
874
                basic_machine=mipsisa64sb1el-unknown
 
875
                ;;
 
876
        sei)
 
877
                basic_machine=mips-sei
 
878
                os=-seiux
 
879
                ;;
751
880
        sequent)
752
881
                basic_machine=i386-sequent
753
882
                ;;
755
884
                basic_machine=sh-hitachi
756
885
                os=-hms
757
886
                ;;
758
 
        sparclite-wrs)
 
887
        sh64)
 
888
                basic_machine=sh64-unknown
 
889
                ;;
 
890
        sparclite-wrs | simso-wrs)
759
891
                basic_machine=sparclite-wrs
760
892
                os=-vxworks
761
893
                ;;
822
954
                os=-dynix
823
955
                ;;
824
956
        t3e)
825
 
                basic_machine=t3e-cray
 
957
                basic_machine=alphaev5-cray
 
958
                os=-unicos
 
959
                ;;
 
960
        t90)
 
961
                basic_machine=t90-cray
826
962
                os=-unicos
827
963
                ;;
828
964
        tic54x | c54x*)
829
965
                basic_machine=tic54x-unknown
830
966
                os=-coff
831
967
                ;;
 
968
        tic55x | c55x*)
 
969
                basic_machine=tic55x-unknown
 
970
                os=-coff
 
971
                ;;
 
972
        tic6x | c6x*)
 
973
                basic_machine=tic6x-unknown
 
974
                os=-coff
 
975
                ;;
832
976
        tx39)
833
977
                basic_machine=mipstx39-unknown
834
978
                ;;
835
979
        tx39el)
836
980
                basic_machine=mipstx39el-unknown
837
981
                ;;
 
982
        toad1)
 
983
                basic_machine=pdp10-xkl
 
984
                os=-tops20
 
985
                ;;
838
986
        tower | tower-32)
839
987
                basic_machine=m68k-ncr
840
988
                ;;
 
989
        tpf)
 
990
                basic_machine=s390x-ibm
 
991
                os=-tpf
 
992
                ;;
841
993
        udi29k)
842
994
                basic_machine=a29k-amd
843
995
                os=-udi
859
1011
                os=-vms
860
1012
                ;;
861
1013
        vpp*|vx|vx-*)
862
 
               basic_machine=f301-fujitsu
863
 
               ;;
 
1014
                basic_machine=f301-fujitsu
 
1015
                ;;
864
1016
        vxworks960)
865
1017
                basic_machine=i960-wrs
866
1018
                os=-vxworks
881
1033
                basic_machine=hppa1.1-winbond
882
1034
                os=-proelf
883
1035
                ;;
884
 
        xmp)
885
 
                basic_machine=xmp-cray
886
 
                os=-unicos
 
1036
        xbox)
 
1037
                basic_machine=i686-pc
 
1038
                os=-mingw32
887
1039
                ;;
888
 
        xps | xps100)
 
1040
        xps | xps100)
889
1041
                basic_machine=xps100-honeywell
890
1042
                ;;
 
1043
        ymp)
 
1044
                basic_machine=ymp-cray
 
1045
                os=-unicos
 
1046
                ;;
891
1047
        z8k-*-coff)
892
1048
                basic_machine=z8k-unknown
893
1049
                os=-sim
908
1064
        op60c)
909
1065
                basic_machine=hppa1.1-oki
910
1066
                ;;
911
 
        mips)
912
 
                if [ x$os = x-linux-gnu ]; then
913
 
                        basic_machine=mips-unknown
914
 
                else
915
 
                        basic_machine=mips-mips
916
 
                fi
917
 
                ;;
918
1067
        romp)
919
1068
                basic_machine=romp-ibm
920
1069
                ;;
 
1070
        mmix)
 
1071
                basic_machine=mmix-knuth
 
1072
                ;;
921
1073
        rs6000)
922
1074
                basic_machine=rs6000-ibm
923
1075
                ;;
934
1086
        we32k)
935
1087
                basic_machine=we32k-att
936
1088
                ;;
937
 
        sh3 | sh4)
 
1089
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
938
1090
                basic_machine=sh-unknown
939
1091
                ;;
940
 
        sparc | sparcv9 | sparcv9b)
 
1092
        sh64)
 
1093
                basic_machine=sh64-unknown
 
1094
                ;;
 
1095
        sparc | sparcv8 | sparcv9 | sparcv9b)
941
1096
                basic_machine=sparc-sun
942
1097
                ;;
943
 
        cydra)
 
1098
        cydra)
944
1099
                basic_machine=cydra-cydrome
945
1100
                ;;
946
1101
        orion)
955
1110
        pmac | pmac-mpw)
956
1111
                basic_machine=powerpc-apple
957
1112
                ;;
958
 
        c4x*)
959
 
                basic_machine=c4x-none
960
 
                os=-coff
961
 
                ;;
962
1113
        *-unknown)
963
1114
                # Make sure to match an already-canonicalized machine name.
964
1115
                ;;
1014
1165
              | -aos* \
1015
1166
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1016
1167
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1017
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1018
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1168
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1169
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1170
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019
1171
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020
1172
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
 
1173
              | -chorusos* | -chorusrdb* \
1021
1174
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1175
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1176
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1024
1177
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
 
1178
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1179
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1180
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1181
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1026
1182
        # Remember, each alternative MUST END IN *, to match a version number.
1027
1183
                ;;
1028
1184
        -qnx*)
1034
1190
                        ;;
1035
1191
                esac
1036
1192
                ;;
 
1193
        -nto-qnx*)
 
1194
                ;;
1037
1195
        -nto*)
1038
 
                os=-nto-qnx
 
1196
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1039
1197
                ;;
1040
1198
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1041
1199
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1044
1202
        -mac*)
1045
1203
                os=`echo $os | sed -e 's|mac|macos|'`
1046
1204
                ;;
 
1205
        -linux-dietlibc)
 
1206
                os=-linux-dietlibc
 
1207
                ;;
1047
1208
        -linux*)
1048
1209
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1049
1210
                ;;
1056
1217
        -opened*)
1057
1218
                os=-openedition
1058
1219
                ;;
 
1220
        -os400*)
 
1221
                os=-os400
 
1222
                ;;
1059
1223
        -wince*)
1060
1224
                os=-wince
1061
1225
                ;;
1074
1238
        -acis*)
1075
1239
                os=-aos
1076
1240
                ;;
 
1241
        -atheos*)
 
1242
                os=-atheos
 
1243
                ;;
 
1244
        -syllable*)
 
1245
                os=-syllable
 
1246
                ;;
1077
1247
        -386bsd)
1078
1248
                os=-bsd
1079
1249
                ;;
1080
1250
        -ctix* | -uts*)
1081
1251
                os=-sysv
1082
1252
                ;;
 
1253
        -nova*)
 
1254
                os=-rtmk-nova
 
1255
                ;;
1083
1256
        -ns2 )
1084
 
                os=-nextstep2
 
1257
                os=-nextstep2
1085
1258
                ;;
1086
1259
        -nsk*)
1087
1260
                os=-nsk
1093
1266
        -sinix*)
1094
1267
                os=-sysv4
1095
1268
                ;;
 
1269
        -tpf*)
 
1270
                os=-tpf
 
1271
                ;;
1096
1272
        -triton*)
1097
1273
                os=-sysv3
1098
1274
                ;;
1120
1296
        -xenix)
1121
1297
                os=-xenix
1122
1298
                ;;
1123
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1124
 
                os=-mint
 
1299
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1300
                os=-mint
 
1301
                ;;
 
1302
        -aros*)
 
1303
                os=-aros
 
1304
                ;;
 
1305
        -kaos*)
 
1306
                os=-kaos
 
1307
                ;;
 
1308
        -zvmoe)
 
1309
                os=-zvmoe
1125
1310
                ;;
1126
1311
        -none)
1127
1312
                ;;
1154
1339
        arm*-semi)
1155
1340
                os=-aout
1156
1341
                ;;
 
1342
    c4x-* | tic4x-*)
 
1343
        os=-coff
 
1344
        ;;
 
1345
        # This must come before the *-dec entry.
1157
1346
        pdp10-*)
1158
1347
                os=-tops20
1159
1348
                ;;
1160
 
        pdp11-*)
 
1349
        pdp11-*)
1161
1350
                os=-none
1162
1351
                ;;
1163
1352
        *-dec | vax-*)
1184
1373
        mips*-*)
1185
1374
                os=-elf
1186
1375
                ;;
 
1376
        or32-*)
 
1377
                os=-coff
 
1378
                ;;
1187
1379
        *-tti)  # must be before sparc entry or we get the wrong os.
1188
1380
                os=-sysv3
1189
1381
                ;;
1196
1388
        *-ibm)
1197
1389
                os=-aix
1198
1390
                ;;
 
1391
        *-knuth)
 
1392
                os=-mmixware
 
1393
                ;;
1199
1394
        *-wec)
1200
1395
                os=-proelf
1201
1396
                ;;
1247
1442
        *-next)
1248
1443
                os=-nextstep3
1249
1444
                ;;
1250
 
        *-gould)
 
1445
        *-gould)
1251
1446
                os=-sysv
1252
1447
                ;;
1253
 
        *-highlevel)
 
1448
        *-highlevel)
1254
1449
                os=-bsd
1255
1450
                ;;
1256
1451
        *-encore)
1257
1452
                os=-bsd
1258
1453
                ;;
1259
 
        *-sgi)
 
1454
        *-sgi)
1260
1455
                os=-irix
1261
1456
                ;;
1262
 
        *-siemens)
 
1457
        *-siemens)
1263
1458
                os=-sysv4
1264
1459
                ;;
1265
1460
        *-masscomp)
1328
1523
                        -mvs* | -opened*)
1329
1524
                                vendor=ibm
1330
1525
                                ;;
 
1526
                        -os400*)
 
1527
                                vendor=ibm
 
1528
                                ;;
1331
1529
                        -ptx*)
1332
1530
                                vendor=sequent
1333
1531
                                ;;
1334
 
                        -vxsim* | -vxworks*)
 
1532
                        -tpf*)
 
1533
                                vendor=ibm
 
1534
                                ;;
 
1535
                        -vxsim* | -vxworks* | -windiss*)
1335
1536
                                vendor=wrs
1336
1537
                                ;;
1337
1538
                        -aux*)
1346
1547
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347
1548
                                vendor=atari
1348
1549
                                ;;
 
1550
                        -vos*)
 
1551
                                vendor=stratus
 
1552
                                ;;
1349
1553
                esac
1350
1554
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1351
1555
                ;;