~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

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 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2001-06-08'
 
6
timestamp='2004-03-12'
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.
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* | windows32-*)
 
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
    ;;
223
225
case $basic_machine in
224
226
        # Recognize the basic CPU types without company name.
225
227
        # Some are omitted here because they have special meanings below.
226
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
227
 
                | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
228
 
                | pyramid | mn10200 | mn10300 | tron | a29k \
229
 
                | 580 | i960 | h8300 \
230
 
                | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
231
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
232
 
                | hppa64 \
233
 
                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
234
 
                | alphaev6[78] \
235
 
                | we32k | ns16k | clipper | i370 | sh | sh[34] \
236
 
                | powerpc | powerpcle \
237
 
                | 1750a | dsp16xx | pdp10 | pdp11 \
238
 
                | mips16 | mips64 | mipsel | mips64el \
239
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
240
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
241
 
                | mips64vr5000 | mips64vr5000el | mcore | s390 | s390x \
242
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
243
 
                | v850 | c4x \
244
 
                | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
245
 
                | 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 | 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 | xstormy16 | xtensa \
 
271
        | z8k)
246
272
                basic_machine=$basic_machine-unknown
247
273
                ;;
248
274
        m6811 | m68hc11 | m6812 | m68hc12)
265
291
                exit 1
266
292
                ;;
267
293
        # Recognize the basic CPU types with company name.
268
 
        # FIXME: clean up the formatting here.
269
 
        vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
270
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
271
 
              | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
272
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
273
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
274
 
              | xmp-* | ymp-* \
275
 
              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
276
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
277
 
              | hppa2.0n-* | hppa64-* \
278
 
              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
279
 
              | alphaev6[78]-* \
280
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
281
 
              | clipper-* | orion-* \
282
 
              | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
283
 
              | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
284
 
              | mips16-* | mips64-* | mipsel-* \
285
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
286
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
287
 
              | mipstx39-* | mipstx39el-* | mcore-* \
288
 
              | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
289
 
              | [cjt]90-* \
290
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
291
 
              | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
292
 
              | 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-* | 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-* | 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
        | msp430-* \
 
330
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
331
        | orion-* \
 
332
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
333
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
334
        | pyramid-* \
 
335
        | romp-* | rs6000-* \
 
336
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
337
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
338
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
 
339
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
340
        | tahoe-* | thumb-* \
 
341
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
342
        | tron-* \
 
343
        | v850-* | v850e-* | vax-* \
 
344
        | we32k-* \
 
345
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
 
346
        | xtensa-* \
 
347
        | ymp-* \
 
348
        | z8k-*)
293
349
                ;;
294
350
        # Recognize the various machine names and aliases which stand
295
351
        # for a CPU type and a company and sometimes even an OS.
307
363
                basic_machine=a29k-amd
308
364
                os=-udi
309
365
                ;;
 
366
        abacus)
 
367
                basic_machine=abacus-unknown
 
368
                ;;
310
369
        adobe68k)
311
370
                basic_machine=m68010-adobe
312
371
                os=-scout
321
380
                basic_machine=a29k-none
322
381
                os=-bsd
323
382
                ;;
 
383
        amd64)
 
384
                basic_machine=x86_64-pc
 
385
                ;;
 
386
        amd64-*)
 
387
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
388
                ;;
324
389
        amdahl)
325
390
                basic_machine=580-amdahl
326
391
                os=-sysv
352
417
                basic_machine=ns32k-sequent
353
418
                os=-dynix
354
419
                ;;
 
420
        c90)
 
421
                basic_machine=c90-cray
 
422
                os=-unicos
 
423
                ;;
355
424
        convex-c1)
356
425
                basic_machine=c1-convex
357
426
                os=-bsd
372
441
                basic_machine=c38-convex
373
442
                os=-bsd
374
443
                ;;
375
 
        cray | ymp)
376
 
                basic_machine=ymp-cray
377
 
                os=-unicos
378
 
                ;;
379
 
        cray2)
380
 
                basic_machine=cray2-cray
381
 
                os=-unicos
382
 
                ;;
383
 
        [cjt]90)
384
 
                basic_machine=${basic_machine}-cray
385
 
                os=-unicos
 
444
        cray | j90)
 
445
                basic_machine=j90-cray
 
446
                os=-unicos
 
447
                ;;
 
448
        cr16c)
 
449
                basic_machine=cr16c-unknown
 
450
                os=-elf
386
451
                ;;
387
452
        crds | unos)
388
453
                basic_machine=m68k-crds
390
455
        cris | cris-* | etrax*)
391
456
                basic_machine=cris-axis
392
457
                ;;
 
458
        crx)
 
459
                basic_machine=crx-unknown
 
460
                os=-elf
 
461
                ;;
393
462
        da30 | da30-*)
394
463
                basic_machine=m68k-da30
395
464
                ;;
396
465
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
397
466
                basic_machine=mips-dec
398
467
                ;;
 
468
        decsystem10* | dec10*)
 
469
                basic_machine=pdp10-dec
 
470
                os=-tops10
 
471
                ;;
 
472
        decsystem20* | dec20*)
 
473
                basic_machine=pdp10-dec
 
474
                os=-tops20
 
475
                ;;
399
476
        delta | 3300 | motorola-3300 | motorola-delta \
400
477
              | 3300-motorola | delta-motorola)
401
478
                basic_machine=m68k-motorola
576
653
                basic_machine=m68k-atari
577
654
                os=-mint
578
655
                ;;
579
 
        mipsel*-linux*)
580
 
                basic_machine=mipsel-unknown
581
 
                os=-linux-gnu
582
 
                ;;
583
 
        mips*-linux*)
584
 
                basic_machine=mips-unknown
585
 
                os=-linux-gnu
586
 
                ;;
587
656
        mips3*-*)
588
657
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
589
658
                ;;
598
667
                basic_machine=m68k-rom68k
599
668
                os=-coff
600
669
                ;;
 
670
        morphos)
 
671
                basic_machine=powerpc-unknown
 
672
                os=-morphos
 
673
                ;;
601
674
        msdos)
602
675
                basic_machine=i386-pc
603
676
                os=-msdos
670
743
        np1)
671
744
                basic_machine=np1-gould
672
745
                ;;
 
746
        nv1)
 
747
                basic_machine=nv1-cray
 
748
                os=-unicosmp
 
749
                ;;
673
750
        nsr-tandem)
674
751
                basic_machine=nsr-tandem
675
752
                ;;
677
754
                basic_machine=hppa1.1-oki
678
755
                os=-proelf
679
756
                ;;
 
757
        or32 | or32-*)
 
758
                basic_machine=or32-unknown
 
759
                os=-coff
 
760
                ;;
 
761
        os400)
 
762
                basic_machine=powerpc-ibm
 
763
                os=-os400
 
764
                ;;
680
765
        OSE68000 | ose68000)
681
766
                basic_machine=m68000-ericsson
682
767
                os=-ose
699
784
        pbb)
700
785
                basic_machine=m68k-tti
701
786
                ;;
702
 
        pc532 | pc532-*)
 
787
        pc532 | pc532-*)
703
788
                basic_machine=ns32k-pc532
704
789
                ;;
705
 
        pentium | p5 | k5 | k6 | nexgen)
 
790
        pentium | p5 | k5 | k6 | nexgen | viac3)
706
791
                basic_machine=i586-pc
707
792
                ;;
708
 
        pentiumpro | p6 | 6x86 | athlon)
709
 
                basic_machine=i686-pc
710
 
                ;;
711
 
        pentiumii | pentium2)
712
 
                basic_machine=i686-pc
713
 
                ;;
714
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
 
793
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
794
                basic_machine=i686-pc
 
795
                ;;
 
796
        pentiumii | pentium2 | pentiumiii | pentium3)
 
797
                basic_machine=i686-pc
 
798
                ;;
 
799
        pentium4)
 
800
                basic_machine=i786-pc
 
801
                ;;
 
802
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
715
803
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
716
804
                ;;
717
805
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
718
806
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
719
807
                ;;
720
 
        pentiumii-* | pentium2-*)
 
808
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
721
809
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
722
810
                ;;
 
811
        pentium4-*)
 
812
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
813
                ;;
723
814
        pn)
724
815
                basic_machine=pn-gould
725
816
                ;;
726
817
        power)  basic_machine=power-ibm
727
818
                ;;
728
819
        ppc)    basic_machine=powerpc-unknown
729
 
                ;;
 
820
                ;;
730
821
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
731
822
                ;;
732
823
        ppcle | powerpclittle | ppc-le | powerpc-little)
733
824
                basic_machine=powerpcle-unknown
734
 
                ;;
 
825
                ;;
735
826
        ppcle-* | powerpclittle-*)
736
827
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
737
828
                ;;
 
829
        ppc64)  basic_machine=powerpc64-unknown
 
830
                ;;
 
831
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
832
                ;;
 
833
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
834
                basic_machine=powerpc64le-unknown
 
835
                ;;
 
836
        ppc64le-* | powerpc64little-*)
 
837
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
838
                ;;
738
839
        ps2)
739
840
                basic_machine=i386-ibm
740
841
                ;;
752
853
        rtpc | rtpc-*)
753
854
                basic_machine=romp-ibm
754
855
                ;;
 
856
        s390 | s390-*)
 
857
                basic_machine=s390-ibm
 
858
                ;;
 
859
        s390x | s390x-*)
 
860
                basic_machine=s390x-ibm
 
861
                ;;
755
862
        sa29200)
756
863
                basic_machine=a29k-amd
757
864
                os=-udi
758
865
                ;;
 
866
        sb1)
 
867
                basic_machine=mipsisa64sb1-unknown
 
868
                ;;
 
869
        sb1el)
 
870
                basic_machine=mipsisa64sb1el-unknown
 
871
                ;;
 
872
        sei)
 
873
                basic_machine=mips-sei
 
874
                os=-seiux
 
875
                ;;
759
876
        sequent)
760
877
                basic_machine=i386-sequent
761
878
                ;;
763
880
                basic_machine=sh-hitachi
764
881
                os=-hms
765
882
                ;;
766
 
        sparclite-wrs)
 
883
        sh64)
 
884
                basic_machine=sh64-unknown
 
885
                ;;
 
886
        sparclite-wrs | simso-wrs)
767
887
                basic_machine=sparclite-wrs
768
888
                os=-vxworks
769
889
                ;;
830
950
                os=-dynix
831
951
                ;;
832
952
        t3e)
833
 
                basic_machine=t3e-cray
 
953
                basic_machine=alphaev5-cray
 
954
                os=-unicos
 
955
                ;;
 
956
        t90)
 
957
                basic_machine=t90-cray
834
958
                os=-unicos
835
959
                ;;
836
960
        tic54x | c54x*)
837
961
                basic_machine=tic54x-unknown
838
962
                os=-coff
839
963
                ;;
 
964
        tic55x | c55x*)
 
965
                basic_machine=tic55x-unknown
 
966
                os=-coff
 
967
                ;;
 
968
        tic6x | c6x*)
 
969
                basic_machine=tic6x-unknown
 
970
                os=-coff
 
971
                ;;
840
972
        tx39)
841
973
                basic_machine=mipstx39-unknown
842
974
                ;;
843
975
        tx39el)
844
976
                basic_machine=mipstx39el-unknown
845
977
                ;;
 
978
        toad1)
 
979
                basic_machine=pdp10-xkl
 
980
                os=-tops20
 
981
                ;;
846
982
        tower | tower-32)
847
983
                basic_machine=m68k-ncr
848
984
                ;;
 
985
        tpf)
 
986
                basic_machine=s390x-ibm
 
987
                os=-tpf
 
988
                ;;
849
989
        udi29k)
850
990
                basic_machine=a29k-amd
851
991
                os=-udi
867
1007
                os=-vms
868
1008
                ;;
869
1009
        vpp*|vx|vx-*)
870
 
               basic_machine=f301-fujitsu
871
 
               ;;
 
1010
                basic_machine=f301-fujitsu
 
1011
                ;;
872
1012
        vxworks960)
873
1013
                basic_machine=i960-wrs
874
1014
                os=-vxworks
889
1029
                basic_machine=hppa1.1-winbond
890
1030
                os=-proelf
891
1031
                ;;
892
 
        windows32)
893
 
                basic_machine=i386-pc
894
 
                os=-windows32-msvcrt
895
 
                ;;
896
 
        xmp)
897
 
                basic_machine=xmp-cray
898
 
                os=-unicos
899
 
                ;;
900
 
        xps | xps100)
 
1032
        xps | xps100)
901
1033
                basic_machine=xps100-honeywell
902
1034
                ;;
 
1035
        ymp)
 
1036
                basic_machine=ymp-cray
 
1037
                os=-unicos
 
1038
                ;;
903
1039
        z8k-*-coff)
904
1040
                basic_machine=z8k-unknown
905
1041
                os=-sim
920
1056
        op60c)
921
1057
                basic_machine=hppa1.1-oki
922
1058
                ;;
923
 
        mips)
924
 
                if [ x$os = x-linux-gnu ]; then
925
 
                        basic_machine=mips-unknown
926
 
                else
927
 
                        basic_machine=mips-mips
928
 
                fi
929
 
                ;;
930
1059
        romp)
931
1060
                basic_machine=romp-ibm
932
1061
                ;;
946
1075
        we32k)
947
1076
                basic_machine=we32k-att
948
1077
                ;;
949
 
        sh3 | sh4)
 
1078
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
950
1079
                basic_machine=sh-unknown
951
1080
                ;;
952
 
        sparc | sparcv9 | sparcv9b)
 
1081
        sh64)
 
1082
                basic_machine=sh64-unknown
 
1083
                ;;
 
1084
        sparc | sparcv8 | sparcv9 | sparcv9b)
953
1085
                basic_machine=sparc-sun
954
1086
                ;;
955
 
        cydra)
 
1087
        cydra)
956
1088
                basic_machine=cydra-cydrome
957
1089
                ;;
958
1090
        orion)
967
1099
        pmac | pmac-mpw)
968
1100
                basic_machine=powerpc-apple
969
1101
                ;;
970
 
        c4x*)
971
 
                basic_machine=c4x-none
972
 
                os=-coff
973
 
                ;;
974
1102
        *-unknown)
975
1103
                # Make sure to match an already-canonicalized machine name.
976
1104
                ;;
1026
1154
              | -aos* \
1027
1155
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1028
1156
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1029
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1030
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1157
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1158
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1159
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1031
1160
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1032
1161
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1033
1162
              | -chorusos* | -chorusrdb* \
1034
1163
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1035
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1036
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1164
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1165
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1037
1166
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1038
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
 
1167
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1168
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1169
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1170
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1039
1171
        # Remember, each alternative MUST END IN *, to match a version number.
1040
1172
                ;;
1041
1173
        -qnx*)
1047
1179
                        ;;
1048
1180
                esac
1049
1181
                ;;
 
1182
        -nto-qnx*)
 
1183
                ;;
1050
1184
        -nto*)
1051
 
                os=-nto-qnx
 
1185
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1052
1186
                ;;
1053
1187
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1054
1188
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1057
1191
        -mac*)
1058
1192
                os=`echo $os | sed -e 's|mac|macos|'`
1059
1193
                ;;
 
1194
        -linux-dietlibc)
 
1195
                os=-linux-dietlibc
 
1196
                ;;
1060
1197
        -linux*)
1061
1198
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1062
1199
                ;;
1069
1206
        -opened*)
1070
1207
                os=-openedition
1071
1208
                ;;
 
1209
        -os400*)
 
1210
                os=-os400
 
1211
                ;;
1072
1212
        -wince*)
1073
1213
                os=-wince
1074
1214
                ;;
1087
1227
        -acis*)
1088
1228
                os=-aos
1089
1229
                ;;
 
1230
        -atheos*)
 
1231
                os=-atheos
 
1232
                ;;
 
1233
        -syllable*)
 
1234
                os=-syllable
 
1235
                ;;
1090
1236
        -386bsd)
1091
1237
                os=-bsd
1092
1238
                ;;
1093
1239
        -ctix* | -uts*)
1094
1240
                os=-sysv
1095
1241
                ;;
 
1242
        -nova*)
 
1243
                os=-rtmk-nova
 
1244
                ;;
1096
1245
        -ns2 )
1097
 
                os=-nextstep2
 
1246
                os=-nextstep2
1098
1247
                ;;
1099
1248
        -nsk*)
1100
1249
                os=-nsk
1106
1255
        -sinix*)
1107
1256
                os=-sysv4
1108
1257
                ;;
 
1258
        -tpf*)
 
1259
                os=-tpf
 
1260
                ;;
1109
1261
        -triton*)
1110
1262
                os=-sysv3
1111
1263
                ;;
1133
1285
        -xenix)
1134
1286
                os=-xenix
1135
1287
                ;;
1136
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1137
 
                os=-mint
 
1288
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1289
                os=-mint
 
1290
                ;;
 
1291
        -aros*)
 
1292
                os=-aros
 
1293
                ;;
 
1294
        -kaos*)
 
1295
                os=-kaos
1138
1296
                ;;
1139
1297
        -none)
1140
1298
                ;;
1167
1325
        arm*-semi)
1168
1326
                os=-aout
1169
1327
                ;;
 
1328
    c4x-* | tic4x-*)
 
1329
        os=-coff
 
1330
        ;;
 
1331
        # This must come before the *-dec entry.
1170
1332
        pdp10-*)
1171
1333
                os=-tops20
1172
1334
                ;;
1173
 
        pdp11-*)
 
1335
        pdp11-*)
1174
1336
                os=-none
1175
1337
                ;;
1176
1338
        *-dec | vax-*)
1197
1359
        mips*-*)
1198
1360
                os=-elf
1199
1361
                ;;
 
1362
        or32-*)
 
1363
                os=-coff
 
1364
                ;;
1200
1365
        *-tti)  # must be before sparc entry or we get the wrong os.
1201
1366
                os=-sysv3
1202
1367
                ;;
1260
1425
        *-next)
1261
1426
                os=-nextstep3
1262
1427
                ;;
1263
 
        *-gould)
 
1428
        *-gould)
1264
1429
                os=-sysv
1265
1430
                ;;
1266
 
        *-highlevel)
 
1431
        *-highlevel)
1267
1432
                os=-bsd
1268
1433
                ;;
1269
1434
        *-encore)
1270
1435
                os=-bsd
1271
1436
                ;;
1272
 
        *-sgi)
 
1437
        *-sgi)
1273
1438
                os=-irix
1274
1439
                ;;
1275
 
        *-siemens)
 
1440
        *-siemens)
1276
1441
                os=-sysv4
1277
1442
                ;;
1278
1443
        *-masscomp)
1341
1506
                        -mvs* | -opened*)
1342
1507
                                vendor=ibm
1343
1508
                                ;;
 
1509
                        -os400*)
 
1510
                                vendor=ibm
 
1511
                                ;;
1344
1512
                        -ptx*)
1345
1513
                                vendor=sequent
1346
1514
                                ;;
1347
 
                        -vxsim* | -vxworks*)
 
1515
                        -tpf*)
 
1516
                                vendor=ibm
 
1517
                                ;;
 
1518
                        -vxsim* | -vxworks* | -windiss*)
1348
1519
                                vendor=wrs
1349
1520
                                ;;
1350
1521
                        -aux*)
1359
1530
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1360
1531
                                vendor=atari
1361
1532
                                ;;
 
1533
                        -vos*)
 
1534
                                vendor=stratus
 
1535
                                ;;
1362
1536
                esac
1363
1537
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1364
1538
                ;;