~peter-pearse/ubuntu/oneiric/at/prop001

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-11-09 12:57:45 UTC
  • Revision ID: james.westby@ubuntu.com-20051109125745-64eslxy1v1jjm2gm
Tags: 3.1.9ubuntu1
* Merge to new Debian version.
* Derooting patch was accepted in Debian; manually reapply remaining Ubuntu
  changes to the clean Debian version (see below).
* debian/control: Only recommend mail-transport-agent and prefer postfix.
* debian/rc: LSB init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2002-01-02'
 
6
timestamp='2005-04-22'
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
70
70
version="\
71
71
GNU config.sub ($timestamp)
72
72
 
73
 
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
74
74
Free Software Foundation, Inc.
75
75
 
76
76
This is free software; see the source for copying conditions.  There is NO
118
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
120
case $maybe_os in
121
 
  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*)
122
123
    os=-$maybe_os
123
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
125
    ;;
144
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
 
        -apple | -axis)
 
148
        -apple | -axis | -knuth | -cray)
148
149
                os=
149
150
                basic_machine=$1
150
151
                ;;
228
229
        | a29k \
229
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
231
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | bfin \
232
235
        | c4x | clipper \
233
 
        | d10v | d30v | dsp16xx \
234
 
        | fr30 \
 
236
        | d10v | d30v | dlx | dsp16xx \
 
237
        | fr30 | frv \
235
238
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
239
        | i370 | i860 | i960 | ia64 \
237
 
        | m32r | m68000 | m68k | m88k | mcore \
238
 
        | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
239
 
        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
240
 
        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
241
 
        | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
242
 
        | mipsisa32 \
 
240
        | ip2k | iq2000 \
 
241
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
242
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
243
        | mips16 \
 
244
        | mips64 | mips64el \
 
245
        | mips64vr | mips64vrel \
 
246
        | mips64orion | mips64orionel \
 
247
        | mips64vr4100 | mips64vr4100el \
 
248
        | mips64vr4300 | mips64vr4300el \
 
249
        | mips64vr5000 | mips64vr5000el \
 
250
        | mipsisa32 | mipsisa32el \
 
251
        | mipsisa32r2 | mipsisa32r2el \
 
252
        | mipsisa64 | mipsisa64el \
 
253
        | mipsisa64r2 | mipsisa64r2el \
 
254
        | mipsisa64sb1 | mipsisa64sb1el \
 
255
        | mipsisa64sr71k | mipsisa64sr71kel \
 
256
        | mipstx39 | mipstx39el \
243
257
        | mn10200 | mn10300 \
 
258
        | msp430 \
244
259
        | ns16k | ns32k \
245
 
        | openrisc \
 
260
        | openrisc | or32 \
246
261
        | pdp10 | pdp11 | pj | pjl \
247
262
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
248
263
        | pyramid \
249
 
        | sh | sh[34] | sh[34]eb | shbe | shle \
250
 
        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
 
264
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
265
        | sh64 | sh64le \
 
266
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
267
        | sparcv8 | sparcv9 | sparcv9b \
251
268
        | strongarm \
252
 
        | tahoe | thumb | tic80 | tron \
 
269
        | tahoe | thumb | tic4x | tic80 | tron \
253
270
        | v850 | v850e \
254
271
        | we32k \
255
 
        | x86 | xscale | xstormy16 | xtensa \
 
272
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
256
273
        | z8k)
257
274
                basic_machine=$basic_machine-unknown
258
275
                ;;
281
298
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
282
299
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
283
300
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
284
 
        | arm-*  | armbe-* | armle-* | armv*-* \
 
301
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
285
302
        | avr-* \
286
 
        | bs2000-* \
287
 
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
288
 
        | clipper-* | cray2-* | cydra-* \
289
 
        | d10v-* | d30v-* \
 
303
        | bfin-* | bs2000-* \
 
304
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
305
        | clipper-* | craynv-* | cydra-* \
 
306
        | d10v-* | d30v-* | dlx-* \
290
307
        | elxsi-* \
291
 
        | f30[01]-* | f700-* | fr30-* | fx80-* \
 
308
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
292
309
        | h8300-* | h8500-* \
293
310
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294
311
        | i*86-* | i860-* | i960-* | ia64-* \
295
 
        | m32r-* \
296
 
        | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
297
 
        | m88110-* | m88k-* | mcore-* \
298
 
        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
299
 
        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
300
 
        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
301
 
        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
 
312
        | ip2k-* | iq2000-* \
 
313
        | m32r-* | m32rle-* \
 
314
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
315
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
316
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
317
        | mips16-* \
 
318
        | mips64-* | mips64el-* \
 
319
        | mips64vr-* | mips64vrel-* \
 
320
        | mips64orion-* | mips64orionel-* \
 
321
        | mips64vr4100-* | mips64vr4100el-* \
 
322
        | mips64vr4300-* | mips64vr4300el-* \
 
323
        | mips64vr5000-* | mips64vr5000el-* \
 
324
        | mipsisa32-* | mipsisa32el-* \
 
325
        | mipsisa32r2-* | mipsisa32r2el-* \
 
326
        | mipsisa64-* | mipsisa64el-* \
 
327
        | mipsisa64r2-* | mipsisa64r2el-* \
 
328
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
329
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
330
        | mipstx39-* | mipstx39el-* \
 
331
        | mmix-* \
 
332
        | msp430-* \
302
333
        | none-* | np1-* | ns16k-* | ns32k-* \
303
334
        | orion-* \
304
335
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305
336
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
306
337
        | pyramid-* \
307
338
        | romp-* | rs6000-* \
308
 
        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
309
 
        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
310
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
311
 
        | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
 
339
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
340
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
341
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
342
        | sparclite-* \
 
343
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
344
        | tahoe-* | thumb-* \
 
345
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
346
        | tron-* \
312
347
        | v850-* | v850e-* | vax-* \
313
348
        | we32k-* \
314
 
        | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
315
 
        | xtensa-* \
 
349
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
350
        | xstormy16-* | xtensa-* \
316
351
        | ymp-* \
317
352
        | z8k-*)
318
353
                ;;
332
367
                basic_machine=a29k-amd
333
368
                os=-udi
334
369
                ;;
 
370
        abacus)
 
371
                basic_machine=abacus-unknown
 
372
                ;;
335
373
        adobe68k)
336
374
                basic_machine=m68010-adobe
337
375
                os=-scout
346
384
                basic_machine=a29k-none
347
385
                os=-bsd
348
386
                ;;
 
387
        amd64)
 
388
                basic_machine=x86_64-pc
 
389
                ;;
 
390
        amd64-*)
 
391
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
392
                ;;
349
393
        amdahl)
350
394
                basic_machine=580-amdahl
351
395
                os=-sysv
377
421
                basic_machine=ns32k-sequent
378
422
                os=-dynix
379
423
                ;;
 
424
        c90)
 
425
                basic_machine=c90-cray
 
426
                os=-unicos
 
427
                ;;
380
428
        convex-c1)
381
429
                basic_machine=c1-convex
382
430
                os=-bsd
397
445
                basic_machine=c38-convex
398
446
                os=-bsd
399
447
                ;;
400
 
        cray | ymp)
401
 
                basic_machine=ymp-cray
402
 
                os=-unicos
403
 
                ;;
404
 
        cray2)
405
 
                basic_machine=cray2-cray
406
 
                os=-unicos
407
 
                ;;
408
 
        [cjt]90)
409
 
                basic_machine=${basic_machine}-cray
410
 
                os=-unicos
 
448
        cray | j90)
 
449
                basic_machine=j90-cray
 
450
                os=-unicos
 
451
                ;;
 
452
        craynv)
 
453
                basic_machine=craynv-cray
 
454
                os=-unicosmp
 
455
                ;;
 
456
        cr16c)
 
457
                basic_machine=cr16c-unknown
 
458
                os=-elf
411
459
                ;;
412
460
        crds | unos)
413
461
                basic_machine=m68k-crds
414
462
                ;;
 
463
        crisv32 | crisv32-* | etraxfs*)
 
464
                basic_machine=crisv32-axis
 
465
                ;;
415
466
        cris | cris-* | etrax*)
416
467
                basic_machine=cris-axis
417
468
                ;;
 
469
        crx)
 
470
                basic_machine=crx-unknown
 
471
                os=-elf
 
472
                ;;
418
473
        da30 | da30-*)
419
474
                basic_machine=m68k-da30
420
475
                ;;
437
492
                basic_machine=m88k-motorola
438
493
                os=-sysv3
439
494
                ;;
 
495
        djgpp)
 
496
                basic_machine=i586-pc
 
497
                os=-msdosdjgpp
 
498
                ;;
440
499
        dpx20 | dpx20-*)
441
500
                basic_machine=rs6000-bull
442
501
                os=-bosx
609
668
                basic_machine=m68k-atari
610
669
                os=-mint
611
670
                ;;
612
 
        mipsel*-linux*)
613
 
                basic_machine=mipsel-unknown
614
 
                os=-linux-gnu
615
 
                ;;
616
 
        mips*-linux*)
617
 
                basic_machine=mips-unknown
618
 
                os=-linux-gnu
619
 
                ;;
620
671
        mips3*-*)
621
672
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
622
673
                ;;
623
674
        mips3*)
624
675
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
625
676
                ;;
626
 
        mmix*)
627
 
                basic_machine=mmix-knuth
628
 
                os=-mmixware
629
 
                ;;
630
677
        monitor)
631
678
                basic_machine=m68k-rom68k
632
679
                os=-coff
714
761
                basic_machine=hppa1.1-oki
715
762
                os=-proelf
716
763
                ;;
 
764
        or32 | or32-*)
 
765
                basic_machine=or32-unknown
 
766
                os=-coff
 
767
                ;;
 
768
        os400)
 
769
                basic_machine=powerpc-ibm
 
770
                os=-os400
 
771
                ;;
717
772
        OSE68000 | ose68000)
718
773
                basic_machine=m68000-ericsson
719
774
                os=-ose
736
791
        pbb)
737
792
                basic_machine=m68k-tti
738
793
                ;;
739
 
        pc532 | pc532-*)
 
794
        pc532 | pc532-*)
740
795
                basic_machine=ns32k-pc532
741
796
                ;;
742
797
        pentium | p5 | k5 | k6 | nexgen | viac3)
743
798
                basic_machine=i586-pc
744
799
                ;;
745
 
        pentiumpro | p6 | 6x86 | athlon)
746
 
                basic_machine=i686-pc
747
 
                ;;
748
 
        pentiumii | pentium2)
749
 
                basic_machine=i686-pc
 
800
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
801
                basic_machine=i686-pc
 
802
                ;;
 
803
        pentiumii | pentium2 | pentiumiii | pentium3)
 
804
                basic_machine=i686-pc
 
805
                ;;
 
806
        pentium4)
 
807
                basic_machine=i786-pc
750
808
                ;;
751
809
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
752
810
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
754
812
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
755
813
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
756
814
                ;;
757
 
        pentiumii-* | pentium2-*)
 
815
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
758
816
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
759
817
                ;;
 
818
        pentium4-*)
 
819
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
820
                ;;
760
821
        pn)
761
822
                basic_machine=pn-gould
762
823
                ;;
763
824
        power)  basic_machine=power-ibm
764
825
                ;;
765
826
        ppc)    basic_machine=powerpc-unknown
766
 
                ;;
 
827
                ;;
767
828
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
768
829
                ;;
769
830
        ppcle | powerpclittle | ppc-le | powerpc-little)
770
831
                basic_machine=powerpcle-unknown
771
 
                ;;
 
832
                ;;
772
833
        ppcle-* | powerpclittle-*)
773
834
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
774
835
                ;;
775
836
        ppc64)  basic_machine=powerpc64-unknown
776
 
                ;;
 
837
                ;;
777
838
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
778
839
                ;;
779
840
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
780
841
                basic_machine=powerpc64le-unknown
781
 
                ;;
 
842
                ;;
782
843
        ppc64le-* | powerpc64little-*)
783
844
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
784
845
                ;;
809
870
                basic_machine=a29k-amd
810
871
                os=-udi
811
872
                ;;
 
873
        sb1)
 
874
                basic_machine=mipsisa64sb1-unknown
 
875
                ;;
 
876
        sb1el)
 
877
                basic_machine=mipsisa64sb1el-unknown
 
878
                ;;
 
879
        sei)
 
880
                basic_machine=mips-sei
 
881
                os=-seiux
 
882
                ;;
812
883
        sequent)
813
884
                basic_machine=i386-sequent
814
885
                ;;
816
887
                basic_machine=sh-hitachi
817
888
                os=-hms
818
889
                ;;
 
890
        sh64)
 
891
                basic_machine=sh64-unknown
 
892
                ;;
819
893
        sparclite-wrs | simso-wrs)
820
894
                basic_machine=sparclite-wrs
821
895
                os=-vxworks
883
957
                os=-dynix
884
958
                ;;
885
959
        t3e)
886
 
                basic_machine=t3e-cray
 
960
                basic_machine=alphaev5-cray
 
961
                os=-unicos
 
962
                ;;
 
963
        t90)
 
964
                basic_machine=t90-cray
887
965
                os=-unicos
888
966
                ;;
889
967
        tic54x | c54x*)
890
968
                basic_machine=tic54x-unknown
891
969
                os=-coff
892
970
                ;;
 
971
        tic55x | c55x*)
 
972
                basic_machine=tic55x-unknown
 
973
                os=-coff
 
974
                ;;
 
975
        tic6x | c6x*)
 
976
                basic_machine=tic6x-unknown
 
977
                os=-coff
 
978
                ;;
893
979
        tx39)
894
980
                basic_machine=mipstx39-unknown
895
981
                ;;
903
989
        tower | tower-32)
904
990
                basic_machine=m68k-ncr
905
991
                ;;
 
992
        tpf)
 
993
                basic_machine=s390x-ibm
 
994
                os=-tpf
 
995
                ;;
906
996
        udi29k)
907
997
                basic_machine=a29k-amd
908
998
                os=-udi
924
1014
                os=-vms
925
1015
                ;;
926
1016
        vpp*|vx|vx-*)
927
 
               basic_machine=f301-fujitsu
928
 
               ;;
 
1017
                basic_machine=f301-fujitsu
 
1018
                ;;
929
1019
        vxworks960)
930
1020
                basic_machine=i960-wrs
931
1021
                os=-vxworks
946
1036
                basic_machine=hppa1.1-winbond
947
1037
                os=-proelf
948
1038
                ;;
949
 
        windows32)
950
 
                basic_machine=i386-pc
951
 
                os=-windows32-msvcrt
952
 
                ;;
953
 
        xmp)
954
 
                basic_machine=xmp-cray
955
 
                os=-unicos
956
 
                ;;
957
 
        xps | xps100)
 
1039
        xbox)
 
1040
                basic_machine=i686-pc
 
1041
                os=-mingw32
 
1042
                ;;
 
1043
        xps | xps100)
958
1044
                basic_machine=xps100-honeywell
959
1045
                ;;
 
1046
        ymp)
 
1047
                basic_machine=ymp-cray
 
1048
                os=-unicos
 
1049
                ;;
960
1050
        z8k-*-coff)
961
1051
                basic_machine=z8k-unknown
962
1052
                os=-sim
977
1067
        op60c)
978
1068
                basic_machine=hppa1.1-oki
979
1069
                ;;
980
 
        mips)
981
 
                if [ x$os = x-linux-gnu ]; then
982
 
                        basic_machine=mips-unknown
983
 
                else
984
 
                        basic_machine=mips-mips
985
 
                fi
986
 
                ;;
987
1070
        romp)
988
1071
                basic_machine=romp-ibm
989
1072
                ;;
 
1073
        mmix)
 
1074
                basic_machine=mmix-knuth
 
1075
                ;;
990
1076
        rs6000)
991
1077
                basic_machine=rs6000-ibm
992
1078
                ;;
1003
1089
        we32k)
1004
1090
                basic_machine=we32k-att
1005
1091
                ;;
1006
 
        sh3 | sh4 | sh3eb | sh4eb)
 
1092
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1007
1093
                basic_machine=sh-unknown
1008
1094
                ;;
1009
 
        sparc | sparcv9 | sparcv9b)
 
1095
        sh64)
 
1096
                basic_machine=sh64-unknown
 
1097
                ;;
 
1098
        sparc | sparcv8 | sparcv9 | sparcv9b)
1010
1099
                basic_machine=sparc-sun
1011
1100
                ;;
1012
 
        cydra)
 
1101
        cydra)
1013
1102
                basic_machine=cydra-cydrome
1014
1103
                ;;
1015
1104
        orion)
1024
1113
        pmac | pmac-mpw)
1025
1114
                basic_machine=powerpc-apple
1026
1115
                ;;
1027
 
        c4x*)
1028
 
                basic_machine=c4x-none
1029
 
                os=-coff
1030
 
                ;;
1031
1116
        *-unknown)
1032
1117
                # Make sure to match an already-canonicalized machine name.
1033
1118
                ;;
1083
1168
              | -aos* \
1084
1169
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1085
1170
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1086
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1087
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1171
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1172
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1173
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1088
1174
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1089
1175
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1090
1176
              | -chorusos* | -chorusrdb* \
1091
1177
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1092
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1093
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1178
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1179
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1094
1180
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1095
1181
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1096
 
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
 
1182
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1183
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1184
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1097
1185
        # Remember, each alternative MUST END IN *, to match a version number.
1098
1186
                ;;
1099
1187
        -qnx*)
1105
1193
                        ;;
1106
1194
                esac
1107
1195
                ;;
 
1196
        -nto-qnx*)
 
1197
                ;;
1108
1198
        -nto*)
1109
 
                os=-nto-qnx
 
1199
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1110
1200
                ;;
1111
1201
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1112
1202
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1115
1205
        -mac*)
1116
1206
                os=`echo $os | sed -e 's|mac|macos|'`
1117
1207
                ;;
 
1208
        -linux-dietlibc)
 
1209
                os=-linux-dietlibc
 
1210
                ;;
1118
1211
        -linux*)
1119
1212
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1120
1213
                ;;
1127
1220
        -opened*)
1128
1221
                os=-openedition
1129
1222
                ;;
 
1223
        -os400*)
 
1224
                os=-os400
 
1225
                ;;
1130
1226
        -wince*)
1131
1227
                os=-wince
1132
1228
                ;;
1148
1244
        -atheos*)
1149
1245
                os=-atheos
1150
1246
                ;;
 
1247
        -syllable*)
 
1248
                os=-syllable
 
1249
                ;;
1151
1250
        -386bsd)
1152
1251
                os=-bsd
1153
1252
                ;;
1154
1253
        -ctix* | -uts*)
1155
1254
                os=-sysv
1156
1255
                ;;
 
1256
        -nova*)
 
1257
                os=-rtmk-nova
 
1258
                ;;
1157
1259
        -ns2 )
1158
 
                os=-nextstep2
 
1260
                os=-nextstep2
1159
1261
                ;;
1160
1262
        -nsk*)
1161
1263
                os=-nsk
1167
1269
        -sinix*)
1168
1270
                os=-sysv4
1169
1271
                ;;
 
1272
        -tpf*)
 
1273
                os=-tpf
 
1274
                ;;
1170
1275
        -triton*)
1171
1276
                os=-sysv3
1172
1277
                ;;
1194
1299
        -xenix)
1195
1300
                os=-xenix
1196
1301
                ;;
1197
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1198
 
                os=-mint
 
1302
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1303
                os=-mint
 
1304
                ;;
 
1305
        -aros*)
 
1306
                os=-aros
 
1307
                ;;
 
1308
        -kaos*)
 
1309
                os=-kaos
 
1310
                ;;
 
1311
        -zvmoe)
 
1312
                os=-zvmoe
1199
1313
                ;;
1200
1314
        -none)
1201
1315
                ;;
1228
1342
        arm*-semi)
1229
1343
                os=-aout
1230
1344
                ;;
 
1345
    c4x-* | tic4x-*)
 
1346
        os=-coff
 
1347
        ;;
1231
1348
        # This must come before the *-dec entry.
1232
1349
        pdp10-*)
1233
1350
                os=-tops20
1234
1351
                ;;
1235
 
        pdp11-*)
 
1352
        pdp11-*)
1236
1353
                os=-none
1237
1354
                ;;
1238
1355
        *-dec | vax-*)
1259
1376
        mips*-*)
1260
1377
                os=-elf
1261
1378
                ;;
 
1379
        or32-*)
 
1380
                os=-coff
 
1381
                ;;
1262
1382
        *-tti)  # must be before sparc entry or we get the wrong os.
1263
1383
                os=-sysv3
1264
1384
                ;;
1271
1391
        *-ibm)
1272
1392
                os=-aix
1273
1393
                ;;
 
1394
        *-knuth)
 
1395
                os=-mmixware
 
1396
                ;;
1274
1397
        *-wec)
1275
1398
                os=-proelf
1276
1399
                ;;
1322
1445
        *-next)
1323
1446
                os=-nextstep3
1324
1447
                ;;
1325
 
        *-gould)
 
1448
        *-gould)
1326
1449
                os=-sysv
1327
1450
                ;;
1328
 
        *-highlevel)
 
1451
        *-highlevel)
1329
1452
                os=-bsd
1330
1453
                ;;
1331
1454
        *-encore)
1332
1455
                os=-bsd
1333
1456
                ;;
1334
 
        *-sgi)
 
1457
        *-sgi)
1335
1458
                os=-irix
1336
1459
                ;;
1337
 
        *-siemens)
 
1460
        *-siemens)
1338
1461
                os=-sysv4
1339
1462
                ;;
1340
1463
        *-masscomp)
1403
1526
                        -mvs* | -opened*)
1404
1527
                                vendor=ibm
1405
1528
                                ;;
 
1529
                        -os400*)
 
1530
                                vendor=ibm
 
1531
                                ;;
1406
1532
                        -ptx*)
1407
1533
                                vendor=sequent
1408
1534
                                ;;
1409
 
                        -vxsim* | -vxworks*)
 
1535
                        -tpf*)
 
1536
                                vendor=ibm
 
1537
                                ;;
 
1538
                        -vxsim* | -vxworks* | -windiss*)
1410
1539
                                vendor=wrs
1411
1540
                                ;;
1412
1541
                        -aux*)