~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/config/config.sub

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

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 Free Software Foundation,
5
 
#   Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-06-06'
 
7
timestamp='2011-08-23'
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 ChangeLog entry.
 
35
# diff and a properly formatted GNU 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
 
42
45
# This file is supposed to be the same for all GNU packages
43
46
# and recognize all the CPU types, system types and aliases
44
47
# that are meaningful with *any* GNU software.
72
75
version="\
73
76
GNU config.sub ($timestamp)
74
77
 
75
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
76
 
Free Software Foundation, Inc.
 
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.
77
81
 
78
82
This is free software; see the source for copying conditions.  There is NO
79
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
120
124
# Here we must recognize all the valid KERNEL-OS combinations.
121
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
126
case $maybe_os in
123
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
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* | \
125
131
  storm-chaos* | os2-emx* | rtmk-nova*)
126
132
    os=-$maybe_os
127
133
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
148
154
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
155
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
156
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
 
        -apple | -axis | -knuth | -cray)
 
157
        -apple | -axis | -knuth | -cray | -microblaze)
152
158
                os=
153
159
                basic_machine=$1
154
160
                ;;
 
161
        -bluegene*)
 
162
                os=-cnk
 
163
                ;;
155
164
        -sim | -cisco | -oki | -wec | -winbond)
156
165
                os=
157
166
                basic_machine=$1
166
175
                os=-chorusos
167
176
                basic_machine=$1
168
177
                ;;
169
 
        -chorusrdb)
170
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
171
180
                basic_machine=$1
172
 
                ;;
 
181
                ;;
173
182
        -hiux*)
174
183
                os=-hiuxwe2
175
184
                ;;
242
251
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243
252
        | am33_2.0 \
244
253
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245
 
        | bfin \
 
254
        | be32 | be64 \
246
255
        | bfin \
247
256
        | c4x | clipper \
248
257
        | d10v | d30v | dlx | dsp16xx \
249
 
        | fr30 | frv \
 
258
        | fido | fr30 | frv \
250
259
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
251
260
        | i370 | i860 | i960 | ia64 \
252
261
        | ip2k | iq2000 \
 
262
        | le32 | le64 \
 
263
        | lm32 \
253
264
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
254
 
        | maxq | mb | microblaze | mcore \
 
265
        | maxq | mb | microblaze | mcore | mep | metag \
255
266
        | mips | mipsbe | mipseb | mipsel | mipsle \
256
267
        | mips16 \
257
268
        | mips64 | mips64el \
 
269
        | mips64octeon | mips64octeonel \
 
270
        | mips64orion | mips64orionel \
 
271
        | mips64r5900 | mips64r5900el \
258
272
        | mips64vr | mips64vrel \
259
 
        | mips64orion | mips64orionel \
260
273
        | mips64vr4100 | mips64vr4100el \
261
274
        | mips64vr4300 | mips64vr4300el \
262
275
        | mips64vr5000 | mips64vr5000el \
269
282
        | mipsisa64sr71k | mipsisa64sr71kel \
270
283
        | mipstx39 | mipstx39el \
271
284
        | mn10200 | mn10300 \
 
285
        | moxie \
272
286
        | mt \
273
287
        | msp430 \
 
288
        | nds32 | nds32le | nds32be \
274
289
        | nios | nios2 \
275
290
        | ns16k | ns32k \
 
291
        | open8 \
276
292
        | or32 \
277
293
        | pdp10 | pdp11 | pj | pjl \
278
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
294
        | powerpc | powerpc64 | powerpc64le | powerpcle \
279
295
        | pyramid \
280
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
296
        | rx \
 
297
        | score \
 
298
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281
299
        | sh64 | sh64le \
282
300
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
301
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
 
        | spu | strongarm \
285
 
        | tahoe | thumb | tic4x | tic80 | tron \
286
 
        | v850 | v850e \
 
302
        | spu \
 
303
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
304
        | ubicom32 \
 
305
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
287
306
        | we32k \
288
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
289
 
        | z8k)
290
 
                basic_machine=$basic_machine-unknown
291
 
                ;;
292
 
        m32c)
293
 
                basic_machine=$basic_machine-unknown
294
 
                ;;
295
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
307
        | x86 | xc16x | xstormy16 | xtensa \
 
308
        | z8k | z80)
 
309
                basic_machine=$basic_machine-unknown
 
310
                ;;
 
311
        c54x)
 
312
                basic_machine=tic54x-unknown
 
313
                ;;
 
314
        c55x)
 
315
                basic_machine=tic55x-unknown
 
316
                ;;
 
317
        c6x)
 
318
                basic_machine=tic6x-unknown
 
319
                ;;
 
320
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
296
321
                # Motorola 68HC11/12.
297
322
                basic_machine=$basic_machine-unknown
298
323
                os=-none
303
328
                basic_machine=mt-unknown
304
329
                ;;
305
330
 
 
331
        strongarm | thumb | xscale)
 
332
                basic_machine=arm-unknown
 
333
                ;;
 
334
 
 
335
        xscaleeb)
 
336
                basic_machine=armeb-unknown
 
337
                ;;
 
338
 
 
339
        xscaleel)
 
340
                basic_machine=armel-unknown
 
341
                ;;
 
342
 
306
343
        # We use `pc' rather than `unknown'
307
344
        # because (1) that's what they normally are, and
308
345
        # (2) the word "unknown" tends to confuse beginning users.
322
359
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
323
360
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
324
361
        | avr-* | avr32-* \
 
362
        | be32-* | be64-* \
325
363
        | bfin-* | bs2000-* \
326
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
364
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
327
365
        | clipper-* | craynv-* | cydra-* \
328
366
        | d10v-* | d30v-* | dlx-* \
329
367
        | elxsi-* \
330
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
368
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
331
369
        | h8300-* | h8500-* \
332
370
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
333
371
        | i*86-* | i860-* | i960-* | ia64-* \
334
372
        | ip2k-* | iq2000-* \
 
373
        | le32-* | le64-* \
 
374
        | lm32-* \
335
375
        | m32c-* | m32r-* | m32rle-* \
336
376
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
337
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
377
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
338
378
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
339
379
        | mips16-* \
340
380
        | mips64-* | mips64el-* \
 
381
        | mips64octeon-* | mips64octeonel-* \
 
382
        | mips64orion-* | mips64orionel-* \
 
383
        | mips64r5900-* | mips64r5900el-* \
341
384
        | mips64vr-* | mips64vrel-* \
342
 
        | mips64orion-* | mips64orionel-* \
343
385
        | mips64vr4100-* | mips64vr4100el-* \
344
386
        | mips64vr4300-* | mips64vr4300el-* \
345
387
        | mips64vr5000-* | mips64vr5000el-* \
354
396
        | mmix-* \
355
397
        | mt-* \
356
398
        | msp430-* \
 
399
        | nds32-* | nds32le-* | nds32be-* \
357
400
        | nios-* | nios2-* \
358
401
        | none-* | np1-* | ns16k-* | ns32k-* \
 
402
        | open8-* \
359
403
        | orion-* \
360
404
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
361
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
405
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
362
406
        | pyramid-* \
363
 
        | romp-* | rs6000-* \
364
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
407
        | romp-* | rs6000-* | rx-* \
 
408
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
365
409
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
366
410
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
367
411
        | sparclite-* \
368
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
369
 
        | tahoe-* | thumb-* \
 
412
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
413
        | tahoe-* \
370
414
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
415
        | tile*-* \
371
416
        | tron-* \
372
 
        | v850-* | v850e-* | vax-* \
 
417
        | ubicom32-* \
 
418
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
419
        | vax-* \
373
420
        | we32k-* \
374
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
375
 
        | xstormy16-* | xtensa-* \
 
421
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
422
        | xstormy16-* | xtensa*-* \
376
423
        | ymp-* \
377
 
        | z8k-*)
 
424
        | z8k-* | z80-*)
378
425
                ;;
379
 
        m32c-*)
 
426
        # Recognize the basic CPU types without company name, with glob match.
 
427
        xtensa*)
 
428
                basic_machine=$basic_machine-unknown
380
429
                ;;
381
430
        # Recognize the various machine names and aliases which stand
382
431
        # for a CPU type and a company and sometimes even an OS.
394
443
                basic_machine=a29k-amd
395
444
                os=-udi
396
445
                ;;
397
 
        abacus)
 
446
        abacus)
398
447
                basic_machine=abacus-unknown
399
448
                ;;
400
449
        adobe68k)
440
489
                basic_machine=m68k-apollo
441
490
                os=-bsd
442
491
                ;;
 
492
        aros)
 
493
                basic_machine=i386-pc
 
494
                os=-aros
 
495
                ;;
443
496
        aux)
444
497
                basic_machine=m68k-apple
445
498
                os=-aux
448
501
                basic_machine=ns32k-sequent
449
502
                os=-dynix
450
503
                ;;
 
504
        blackfin)
 
505
                basic_machine=bfin-unknown
 
506
                os=-linux
 
507
                ;;
 
508
        blackfin-*)
 
509
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
510
                os=-linux
 
511
                ;;
 
512
        bluegene*)
 
513
                basic_machine=powerpc-ibm
 
514
                os=-cnk
 
515
                ;;
 
516
        c54x-*)
 
517
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
518
                ;;
 
519
        c55x-*)
 
520
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
521
                ;;
 
522
        c6x-*)
 
523
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
524
                ;;
451
525
        c90)
452
526
                basic_machine=c90-cray
453
527
                os=-unicos
454
528
                ;;
 
529
        cegcc)
 
530
                basic_machine=arm-unknown
 
531
                os=-cegcc
 
532
                ;;
455
533
        convex-c1)
456
534
                basic_machine=c1-convex
457
535
                os=-bsd
480
558
                basic_machine=craynv-cray
481
559
                os=-unicosmp
482
560
                ;;
483
 
        cr16c)
484
 
                basic_machine=cr16c-unknown
 
561
        cr16 | cr16-*)
 
562
                basic_machine=cr16-unknown
485
563
                os=-elf
486
564
                ;;
487
565
        crds | unos)
519
597
                basic_machine=m88k-motorola
520
598
                os=-sysv3
521
599
                ;;
 
600
        dicos)
 
601
                basic_machine=i686-pc
 
602
                os=-dicos
 
603
                ;;
522
604
        djgpp)
523
605
                basic_machine=i586-pc
524
606
                os=-msdosdjgpp
673
755
                basic_machine=m68k-isi
674
756
                os=-sysv
675
757
                ;;
 
758
        m68knommu)
 
759
                basic_machine=m68k-unknown
 
760
                os=-linux
 
761
                ;;
 
762
        m68knommu-*)
 
763
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
764
                os=-linux
 
765
                ;;
676
766
        m88k-omron*)
677
767
                basic_machine=m88k-omron
678
768
                ;;
684
774
                basic_machine=ns32k-utek
685
775
                os=-sysv
686
776
                ;;
 
777
        microblaze)
 
778
                basic_machine=microblaze-xilinx
 
779
                ;;
687
780
        mingw32)
688
781
                basic_machine=i386-pc
689
782
                os=-mingw32
690
783
                ;;
 
784
        mingw32ce)
 
785
                basic_machine=arm-unknown
 
786
                os=-mingw32ce
 
787
                ;;
691
788
        miniframe)
692
789
                basic_machine=m68000-convergent
693
790
                ;;
720
817
                basic_machine=i370-ibm
721
818
                os=-mvs
722
819
                ;;
 
820
        nacl)
 
821
                basic_machine=le32-unknown
 
822
                os=-nacl
 
823
                ;;
723
824
        ncr3000)
724
825
                basic_machine=i486-ncr
725
826
                os=-sysv4
784
885
        np1)
785
886
                basic_machine=np1-gould
786
887
                ;;
 
888
        neo-tandem)
 
889
                basic_machine=neo-tandem
 
890
                ;;
 
891
        nse-tandem)
 
892
                basic_machine=nse-tandem
 
893
                ;;
787
894
        nsr-tandem)
788
895
                basic_machine=nsr-tandem
789
896
                ;;
814
921
                basic_machine=i860-intel
815
922
                os=-osf
816
923
                ;;
 
924
        parisc)
 
925
                basic_machine=hppa-unknown
 
926
                os=-linux
 
927
                ;;
 
928
        parisc-*)
 
929
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
930
                os=-linux
 
931
                ;;
817
932
        pbd)
818
933
                basic_machine=sparc-tti
819
934
                ;;
858
973
                ;;
859
974
        power)  basic_machine=power-ibm
860
975
                ;;
861
 
        ppc)    basic_machine=powerpc-unknown
 
976
        ppc | ppcbe)    basic_machine=powerpc-unknown
862
977
                ;;
863
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
978
        ppc-* | ppcbe-*)
 
979
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
864
980
                ;;
865
981
        ppcle | powerpclittle | ppc-le | powerpc-little)
866
982
                basic_machine=powerpcle-unknown
915
1031
        sb1el)
916
1032
                basic_machine=mipsisa64sb1el-unknown
917
1033
                ;;
 
1034
        sde)
 
1035
                basic_machine=mipsisa32-sde
 
1036
                os=-elf
 
1037
                ;;
918
1038
        sei)
919
1039
                basic_machine=mips-sei
920
1040
                os=-seiux
926
1046
                basic_machine=sh-hitachi
927
1047
                os=-hms
928
1048
                ;;
 
1049
        sh5el)
 
1050
                basic_machine=sh5le-unknown
 
1051
                ;;
929
1052
        sh64)
930
1053
                basic_machine=sh64-unknown
931
1054
                ;;
947
1070
                basic_machine=i860-stratus
948
1071
                os=-sysv4
949
1072
                ;;
 
1073
        strongarm-* | thumb-*)
 
1074
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1075
                ;;
950
1076
        sun2)
951
1077
                basic_machine=m68000-sun
952
1078
                ;;
1003
1129
                basic_machine=t90-cray
1004
1130
                os=-unicos
1005
1131
                ;;
1006
 
        tic54x | c54x*)
1007
 
                basic_machine=tic54x-unknown
1008
 
                os=-coff
1009
 
                ;;
1010
 
        tic55x | c55x*)
1011
 
                basic_machine=tic55x-unknown
1012
 
                os=-coff
1013
 
                ;;
1014
 
        tic6x | c6x*)
1015
 
                basic_machine=tic6x-unknown
1016
 
                os=-coff
 
1132
        tile*)
 
1133
                basic_machine=$basic_machine-unknown
 
1134
                os=-linux-gnu
1017
1135
                ;;
1018
1136
        tx39)
1019
1137
                basic_machine=mipstx39-unknown
1082
1200
        xps | xps100)
1083
1201
                basic_machine=xps100-honeywell
1084
1202
                ;;
 
1203
        xscale-* | xscalee[bl]-*)
 
1204
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1205
                ;;
1085
1206
        ymp)
1086
1207
                basic_machine=ymp-cray
1087
1208
                os=-unicos
1090
1211
                basic_machine=z8k-unknown
1091
1212
                os=-sim
1092
1213
                ;;
 
1214
        z80-*-coff)
 
1215
                basic_machine=z80-unknown
 
1216
                os=-sim
 
1217
                ;;
1093
1218
        none)
1094
1219
                basic_machine=none-none
1095
1220
                os=-none
1128
1253
        we32k)
1129
1254
                basic_machine=we32k-att
1130
1255
                ;;
1131
 
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
 
1256
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1132
1257
                basic_machine=sh-unknown
1133
1258
                ;;
1134
1259
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1175
1300
if [ x"$os" != x"" ]
1176
1301
then
1177
1302
case $os in
1178
 
        # First match some system type aliases
1179
 
        # that might get confused with valid system types.
 
1303
        # First match some system type aliases
 
1304
        # that might get confused with valid system types.
1180
1305
        # -solaris* is a basic system type, with this one exception.
 
1306
        -auroraux)
 
1307
                os=-auroraux
 
1308
                ;;
1181
1309
        -solaris1 | -solaris1.*)
1182
1310
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1183
1311
                ;;
1198
1326
        # Each alternative MUST END IN A *, to match a version number.
1199
1327
        # -sysv* is not here because it comes later, after sysvr4.
1200
1328
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1201
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1202
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1329
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1330
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1331
              | -sym* | -kopensolaris* \
1203
1332
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1204
 
              | -aos* \
 
1333
              | -aos* | -aros* \
1205
1334
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1206
1335
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1207
1336
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1210
1339
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1211
1340
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1212
1341
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1213
 
              | -chorusos* | -chorusrdb* \
 
1342
              | -chorusos* | -chorusrdb* | -cegcc* \
1214
1343
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1215
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1344
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1345
              | -linux-newlib* | -linux-uclibc* \
1216
1346
              | -uxpv* | -beos* | -mpeix* | -udk* \
1217
1347
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1218
1348
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1220
1350
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1221
1351
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1222
1352
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1223
 
              | -skyos* | -haiku* | -rdos*)
 
1353
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1224
1354
        # Remember, each alternative MUST END IN *, to match a version number.
1225
1355
                ;;
1226
1356
        -qnx*)
1259
1389
        -opened*)
1260
1390
                os=-openedition
1261
1391
                ;;
1262
 
        -os400*)
 
1392
        -os400*)
1263
1393
                os=-os400
1264
1394
                ;;
1265
1395
        -wince*)
1308
1438
        -sinix*)
1309
1439
                os=-sysv4
1310
1440
                ;;
1311
 
        -tpf*)
 
1441
        -tpf*)
1312
1442
                os=-tpf
1313
1443
                ;;
1314
1444
        -triton*)
1350
1480
        -zvmoe)
1351
1481
                os=-zvmoe
1352
1482
                ;;
 
1483
        -dicos*)
 
1484
                os=-dicos
 
1485
                ;;
 
1486
        -nacl*)
 
1487
                ;;
1353
1488
        -none)
1354
1489
                ;;
1355
1490
        *)
1372
1507
# system, and we'll never get to this point.
1373
1508
 
1374
1509
case $basic_machine in
1375
 
        spu-*)
 
1510
        score-*)
 
1511
                os=-elf
 
1512
                ;;
 
1513
        spu-*)
1376
1514
                os=-elf
1377
1515
                ;;
1378
1516
        *-acorn)
1384
1522
        arm*-semi)
1385
1523
                os=-aout
1386
1524
                ;;
1387
 
        c4x-* | tic4x-*)
1388
 
                os=-coff
 
1525
        c4x-* | tic4x-*)
 
1526
                os=-coff
 
1527
                ;;
 
1528
        tic54x-*)
 
1529
                os=-coff
 
1530
                ;;
 
1531
        tic55x-*)
 
1532
                os=-coff
 
1533
                ;;
 
1534
        tic6x-*)
 
1535
                os=-coff
1389
1536
                ;;
1390
1537
        # This must come before the *-dec entry.
1391
1538
        pdp10-*)
1412
1559
        m68*-cisco)
1413
1560
                os=-aout
1414
1561
                ;;
 
1562
        mep-*)
 
1563
                os=-elf
 
1564
                ;;
1415
1565
        mips*-cisco)
1416
1566
                os=-elf
1417
1567
                ;;
1436
1586
        *-ibm)
1437
1587
                os=-aix
1438
1588
                ;;
1439
 
        *-knuth)
 
1589
        *-knuth)
1440
1590
                os=-mmixware
1441
1591
                ;;
1442
1592
        *-wec)
1541
1691
                        -sunos*)
1542
1692
                                vendor=sun
1543
1693
                                ;;
1544
 
                        -aix*)
 
1694
                        -cnk*|-aix*)
1545
1695
                                vendor=ibm
1546
1696
                                ;;
1547
1697
                        -beos*)