~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-11-18 21:47:41 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (2.3.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20091118214741-g7a4ij0qz0aydfyx
Tags: upstream-2.2.0a
ImportĀ upstreamĀ versionĀ 2.2.0a

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, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
 
#   2011 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
 
5
#   Inc.
6
6
 
7
 
timestamp='2011-03-23'
 
7
timestamp='2007-06-28'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
32
32
 
33
33
 
34
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted GNU ChangeLog entry.
 
35
# diff and a properly formatted ChangeLog entry.
36
36
#
37
37
# Configuration subroutine to validate and canonicalize a configuration type.
38
38
# Supply the specified configuration type as an argument.
39
39
# If it is invalid, we print an error message on stderr and exit with code 1.
40
40
# Otherwise, we print the canonical config type on stdout and succeed.
41
41
 
42
 
# You can get the latest version of this script from:
43
 
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
44
 
 
45
42
# This file is supposed to be the same for all GNU packages
46
43
# and recognize all the CPU types, system types and aliases
47
44
# that are meaningful with *any* GNU software.
75
72
version="\
76
73
GNU config.sub ($timestamp)
77
74
 
78
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80
 
Software Foundation, Inc.
 
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
76
Free Software Foundation, Inc.
81
77
 
82
78
This is free software; see the source for copying conditions.  There is NO
83
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
120
# Here we must recognize all the valid KERNEL-OS combinations.
125
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
122
case $maybe_os in
127
 
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129
 
  knetbsd*-gnu* | netbsd*-gnu* | \
130
 
  kopensolaris*-gnu* | \
 
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
131
125
  storm-chaos* | os2-emx* | rtmk-nova*)
132
126
    os=-$maybe_os
133
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
154
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
151
        -apple | -axis | -knuth | -cray)
158
152
                os=
159
153
                basic_machine=$1
160
154
                ;;
161
 
        -bluegene*)
162
 
                os=-cnk
163
 
                ;;
164
155
        -sim | -cisco | -oki | -wec | -winbond)
165
156
                os=
166
157
                basic_machine=$1
175
166
                os=-chorusos
176
167
                basic_machine=$1
177
168
                ;;
178
 
        -chorusrdb)
179
 
                os=-chorusrdb
 
169
        -chorusrdb)
 
170
                os=-chorusrdb
180
171
                basic_machine=$1
181
 
                ;;
 
172
                ;;
182
173
        -hiux*)
183
174
                os=-hiuxwe2
184
175
                ;;
258
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
259
250
        | i370 | i860 | i960 | ia64 \
260
251
        | ip2k | iq2000 \
261
 
        | lm32 \
262
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
263
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
253
        | maxq | mb | microblaze | mcore | mep \
264
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
265
255
        | mips16 \
266
256
        | mips64 | mips64el \
267
 
        | mips64octeon | mips64octeonel \
 
257
        | mips64vr | mips64vrel \
268
258
        | mips64orion | mips64orionel \
269
 
        | mips64r5900 | mips64r5900el \
270
 
        | mips64vr | mips64vrel \
271
259
        | mips64vr4100 | mips64vr4100el \
272
260
        | mips64vr4300 | mips64vr4300el \
273
261
        | mips64vr5000 | mips64vr5000el \
280
268
        | mipsisa64sr71k | mipsisa64sr71kel \
281
269
        | mipstx39 | mipstx39el \
282
270
        | mn10200 | mn10300 \
283
 
        | moxie \
284
271
        | mt \
285
272
        | msp430 \
286
 
        | nds32 | nds32le | nds32be \
287
273
        | nios | nios2 \
288
274
        | ns16k | ns32k \
289
 
        | open8 \
290
275
        | or32 \
291
276
        | pdp10 | pdp11 | pj | pjl \
292
 
        | powerpc | powerpc64 | powerpc64le | powerpcle \
 
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
293
278
        | pyramid \
294
 
        | rx \
295
279
        | score \
296
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
297
281
        | sh64 | sh64le \
298
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
299
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
300
 
        | spu \
301
 
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
302
 
        | ubicom32 \
 
284
        | spu | strongarm \
 
285
        | tahoe | thumb | tic4x | tic80 | tron \
303
286
        | v850 | v850e \
304
287
        | we32k \
305
 
        | x86 | xc16x | xstormy16 | xtensa \
306
 
        | z8k | z80)
 
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
289
        | z8k)
307
290
                basic_machine=$basic_machine-unknown
308
291
                ;;
309
 
        c54x)
310
 
                basic_machine=tic54x-unknown
311
 
                ;;
312
 
        c55x)
313
 
                basic_machine=tic55x-unknown
314
 
                ;;
315
 
        c6x)
316
 
                basic_machine=tic6x-unknown
317
 
                ;;
318
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
292
        m6811 | m68hc11 | m6812 | m68hc12)
319
293
                # Motorola 68HC11/12.
320
294
                basic_machine=$basic_machine-unknown
321
295
                os=-none
326
300
                basic_machine=mt-unknown
327
301
                ;;
328
302
 
329
 
        strongarm | thumb | xscale)
330
 
                basic_machine=arm-unknown
331
 
                ;;
332
 
 
333
 
        xscaleeb)
334
 
                basic_machine=armeb-unknown
335
 
                ;;
336
 
 
337
 
        xscaleel)
338
 
                basic_machine=armel-unknown
339
 
                ;;
340
 
 
341
303
        # We use `pc' rather than `unknown'
342
304
        # because (1) that's what they normally are, and
343
305
        # (2) the word "unknown" tends to confuse beginning users.
358
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
359
321
        | avr-* | avr32-* \
360
322
        | bfin-* | bs2000-* \
361
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
362
324
        | clipper-* | craynv-* | cydra-* \
363
325
        | d10v-* | d30v-* | dlx-* \
364
326
        | elxsi-* \
367
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
368
330
        | i*86-* | i860-* | i960-* | ia64-* \
369
331
        | ip2k-* | iq2000-* \
370
 
        | lm32-* \
371
332
        | m32c-* | m32r-* | m32rle-* \
372
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
373
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
374
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
375
336
        | mips16-* \
376
337
        | mips64-* | mips64el-* \
377
 
        | mips64octeon-* | mips64octeonel-* \
 
338
        | mips64vr-* | mips64vrel-* \
378
339
        | mips64orion-* | mips64orionel-* \
379
 
        | mips64r5900-* | mips64r5900el-* \
380
 
        | mips64vr-* | mips64vrel-* \
381
340
        | mips64vr4100-* | mips64vr4100el-* \
382
341
        | mips64vr4300-* | mips64vr4300el-* \
383
342
        | mips64vr5000-* | mips64vr5000el-* \
392
351
        | mmix-* \
393
352
        | mt-* \
394
353
        | msp430-* \
395
 
        | nds32-* | nds32le-* | nds32be-* \
396
354
        | nios-* | nios2-* \
397
355
        | none-* | np1-* | ns16k-* | ns32k-* \
398
 
        | open8-* \
399
356
        | orion-* \
400
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
401
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
 
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
402
359
        | pyramid-* \
403
 
        | romp-* | rs6000-* | rx-* \
404
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
360
        | romp-* | rs6000-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
405
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
406
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
407
364
        | sparclite-* \
408
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
409
 
        | tahoe-* \
 
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
366
        | tahoe-* | thumb-* \
410
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
411
 
        | tile-* | tilegx-* \
412
368
        | tron-* \
413
 
        | ubicom32-* \
414
369
        | v850-* | v850e-* | vax-* \
415
370
        | we32k-* \
416
 
        | x86-* | x86_64-* | xc16x-* | xps100-* \
417
 
        | xstormy16-* | xtensa*-* \
 
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
372
        | xstormy16-* | xtensa-* \
418
373
        | ymp-* \
419
 
        | z8k-* | z80-*)
420
 
                ;;
421
 
        # Recognize the basic CPU types without company name, with glob match.
422
 
        xtensa*)
423
 
                basic_machine=$basic_machine-unknown
 
374
        | z8k-*)
424
375
                ;;
425
376
        # Recognize the various machine names and aliases which stand
426
377
        # for a CPU type and a company and sometimes even an OS.
438
389
                basic_machine=a29k-amd
439
390
                os=-udi
440
391
                ;;
441
 
        abacus)
 
392
        abacus)
442
393
                basic_machine=abacus-unknown
443
394
                ;;
444
395
        adobe68k)
484
435
                basic_machine=m68k-apollo
485
436
                os=-bsd
486
437
                ;;
487
 
        aros)
488
 
                basic_machine=i386-pc
489
 
                os=-aros
490
 
                ;;
491
438
        aux)
492
439
                basic_machine=m68k-apple
493
440
                os=-aux
496
443
                basic_machine=ns32k-sequent
497
444
                os=-dynix
498
445
                ;;
499
 
        blackfin)
500
 
                basic_machine=bfin-unknown
501
 
                os=-linux
502
 
                ;;
503
 
        blackfin-*)
504
 
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
505
 
                os=-linux
506
 
                ;;
507
 
        bluegene*)
508
 
                basic_machine=powerpc-ibm
509
 
                os=-cnk
510
 
                ;;
511
 
        c54x-*)
512
 
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
513
 
                ;;
514
 
        c55x-*)
515
 
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
516
 
                ;;
517
 
        c6x-*)
518
 
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
519
 
                ;;
520
446
        c90)
521
447
                basic_machine=c90-cray
522
448
                os=-unicos
523
449
                ;;
524
 
        cegcc)
525
 
                basic_machine=arm-unknown
526
 
                os=-cegcc
527
 
                ;;
528
450
        convex-c1)
529
451
                basic_machine=c1-convex
530
452
                os=-bsd
553
475
                basic_machine=craynv-cray
554
476
                os=-unicosmp
555
477
                ;;
556
 
        cr16 | cr16-*)
 
478
        cr16)
557
479
                basic_machine=cr16-unknown
558
480
                os=-elf
559
481
                ;;
592
514
                basic_machine=m88k-motorola
593
515
                os=-sysv3
594
516
                ;;
595
 
        dicos)
596
 
                basic_machine=i686-pc
597
 
                os=-dicos
598
 
                ;;
599
517
        djgpp)
600
518
                basic_machine=i586-pc
601
519
                os=-msdosdjgpp
750
668
                basic_machine=m68k-isi
751
669
                os=-sysv
752
670
                ;;
753
 
        m68knommu)
754
 
                basic_machine=m68k-unknown
755
 
                os=-linux
756
 
                ;;
757
 
        m68knommu-*)
758
 
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
759
 
                os=-linux
760
 
                ;;
761
671
        m88k-omron*)
762
672
                basic_machine=m88k-omron
763
673
                ;;
769
679
                basic_machine=ns32k-utek
770
680
                os=-sysv
771
681
                ;;
772
 
        microblaze)
773
 
                basic_machine=microblaze-xilinx
774
 
                ;;
775
682
        mingw32)
776
683
                basic_machine=i386-pc
777
684
                os=-mingw32
876
783
        np1)
877
784
                basic_machine=np1-gould
878
785
                ;;
879
 
        neo-tandem)
880
 
                basic_machine=neo-tandem
881
 
                ;;
882
 
        nse-tandem)
883
 
                basic_machine=nse-tandem
884
 
                ;;
885
786
        nsr-tandem)
886
787
                basic_machine=nsr-tandem
887
788
                ;;
912
813
                basic_machine=i860-intel
913
814
                os=-osf
914
815
                ;;
915
 
        parisc)
916
 
                basic_machine=hppa-unknown
917
 
                os=-linux
918
 
                ;;
919
 
        parisc-*)
920
 
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
921
 
                os=-linux
922
 
                ;;
923
816
        pbd)
924
817
                basic_machine=sparc-tti
925
818
                ;;
964
857
                ;;
965
858
        power)  basic_machine=power-ibm
966
859
                ;;
967
 
        ppc | ppcbe)    basic_machine=powerpc-unknown
 
860
        ppc)    basic_machine=powerpc-unknown
968
861
                ;;
969
 
        ppc-* | ppcbe-*)
970
 
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
862
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
971
863
                ;;
972
864
        ppcle | powerpclittle | ppc-le | powerpc-little)
973
865
                basic_machine=powerpcle-unknown
1061
953
                basic_machine=i860-stratus
1062
954
                os=-sysv4
1063
955
                ;;
1064
 
        strongarm-* | thumb-*)
1065
 
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1066
 
                ;;
1067
956
        sun2)
1068
957
                basic_machine=m68000-sun
1069
958
                ;;
1120
1009
                basic_machine=t90-cray
1121
1010
                os=-unicos
1122
1011
                ;;
1123
 
        # This must be matched before tile*.
1124
 
        tilegx*)
1125
 
                basic_machine=tilegx-unknown
1126
 
                os=-linux-gnu
1127
 
                ;;
1128
 
        tile*)
1129
 
                basic_machine=tile-unknown
1130
 
                os=-linux-gnu
 
1012
        tic54x | c54x*)
 
1013
                basic_machine=tic54x-unknown
 
1014
                os=-coff
 
1015
                ;;
 
1016
        tic55x | c55x*)
 
1017
                basic_machine=tic55x-unknown
 
1018
                os=-coff
 
1019
                ;;
 
1020
        tic6x | c6x*)
 
1021
                basic_machine=tic6x-unknown
 
1022
                os=-coff
1131
1023
                ;;
1132
1024
        tx39)
1133
1025
                basic_machine=mipstx39-unknown
1196
1088
        xps | xps100)
1197
1089
                basic_machine=xps100-honeywell
1198
1090
                ;;
1199
 
        xscale-* | xscalee[bl]-*)
1200
 
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1201
 
                ;;
1202
1091
        ymp)
1203
1092
                basic_machine=ymp-cray
1204
1093
                os=-unicos
1207
1096
                basic_machine=z8k-unknown
1208
1097
                os=-sim
1209
1098
                ;;
1210
 
        z80-*-coff)
1211
 
                basic_machine=z80-unknown
1212
 
                os=-sim
1213
 
                ;;
1214
1099
        none)
1215
1100
                basic_machine=none-none
1216
1101
                os=-none
1249
1134
        we32k)
1250
1135
                basic_machine=we32k-att
1251
1136
                ;;
1252
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
1137
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1253
1138
                basic_machine=sh-unknown
1254
1139
                ;;
1255
1140
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1296
1181
if [ x"$os" != x"" ]
1297
1182
then
1298
1183
case $os in
1299
 
        # First match some system type aliases
1300
 
        # that might get confused with valid system types.
 
1184
        # First match some system type aliases
 
1185
        # that might get confused with valid system types.
1301
1186
        # -solaris* is a basic system type, with this one exception.
1302
 
        -auroraux)
1303
 
                os=-auroraux
1304
 
                ;;
1305
1187
        -solaris1 | -solaris1.*)
1306
1188
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1307
1189
                ;;
1322
1204
        # Each alternative MUST END IN A *, to match a version number.
1323
1205
        # -sysv* is not here because it comes later, after sysvr4.
1324
1206
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1325
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1326
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1327
 
              | -sym* | -kopensolaris* \
 
1207
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1208
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1328
1209
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1329
 
              | -aos* | -aros* \
 
1210
              | -aos* \
1330
1211
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1331
1212
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1332
1213
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1335
1216
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1336
1217
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1337
1218
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1338
 
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1219
              | -chorusos* | -chorusrdb* \
1339
1220
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1340
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1341
 
              | -linux-newlib* | -linux-uclibc* \
 
1221
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1342
1222
              | -uxpv* | -beos* | -mpeix* | -udk* \
1343
1223
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1344
1224
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1346
1226
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1347
1227
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1348
1228
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1349
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1229
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1350
1230
        # Remember, each alternative MUST END IN *, to match a version number.
1351
1231
                ;;
1352
1232
        -qnx*)
1385
1265
        -opened*)
1386
1266
                os=-openedition
1387
1267
                ;;
1388
 
        -os400*)
 
1268
        -os400*)
1389
1269
                os=-os400
1390
1270
                ;;
1391
1271
        -wince*)
1434
1314
        -sinix*)
1435
1315
                os=-sysv4
1436
1316
                ;;
1437
 
        -tpf*)
 
1317
        -tpf*)
1438
1318
                os=-tpf
1439
1319
                ;;
1440
1320
        -triton*)
1476
1356
        -zvmoe)
1477
1357
                os=-zvmoe
1478
1358
                ;;
1479
 
        -dicos*)
1480
 
                os=-dicos
1481
 
                ;;
1482
 
        -nacl*)
1483
 
                ;;
1484
1359
        -none)
1485
1360
                ;;
1486
1361
        *)
1503
1378
# system, and we'll never get to this point.
1504
1379
 
1505
1380
case $basic_machine in
1506
 
        score-*)
 
1381
        score-*)
1507
1382
                os=-elf
1508
1383
                ;;
1509
 
        spu-*)
 
1384
        spu-*)
1510
1385
                os=-elf
1511
1386
                ;;
1512
1387
        *-acorn)
1518
1393
        arm*-semi)
1519
1394
                os=-aout
1520
1395
                ;;
1521
 
        c4x-* | tic4x-*)
1522
 
                os=-coff
1523
 
                ;;
1524
 
        tic54x-*)
1525
 
                os=-coff
1526
 
                ;;
1527
 
        tic55x-*)
1528
 
                os=-coff
1529
 
                ;;
1530
 
        tic6x-*)
1531
 
                os=-coff
 
1396
        c4x-* | tic4x-*)
 
1397
                os=-coff
1532
1398
                ;;
1533
1399
        # This must come before the *-dec entry.
1534
1400
        pdp10-*)
1555
1421
        m68*-cisco)
1556
1422
                os=-aout
1557
1423
                ;;
1558
 
        mep-*)
 
1424
        mep-*)
1559
1425
                os=-elf
1560
1426
                ;;
1561
1427
        mips*-cisco)
1582
1448
        *-ibm)
1583
1449
                os=-aix
1584
1450
                ;;
1585
 
        *-knuth)
 
1451
        *-knuth)
1586
1452
                os=-mmixware
1587
1453
                ;;
1588
1454
        *-wec)
1687
1553
                        -sunos*)
1688
1554
                                vendor=sun
1689
1555
                                ;;
1690
 
                        -cnk*|-aix*)
 
1556
                        -aix*)
1691
1557
                                vendor=ibm
1692
1558
                                ;;
1693
1559
                        -beos*)