~ubuntu-branches/ubuntu/trusty/ntp/trusty-proposed

« back to all changes in this revision

Viewing changes to sntp/config.sub

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-04-03 07:21:01 UTC
  • mfrom: (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20130403072101-v3vt8xcs18b6uhjf
Tags: 1:4.2.6.p5+dfsg-2ubuntu1
* New upstream version, fixing build failure in raring.
* Merge with Debian; remaining changes:
  + debian/ntp.conf, debian/ntpdate.default: Change default server to
    ntp.ubuntu.com.
  + debian/ntpdate.ifup: Stop ntp before running ntpdate when an interface
    comes up, then start again afterwards.
  + debian/ntp.init, debian/rules: Only stop when entering single user mode.
  + Add enforcing AppArmor profile:
    - debian/control: Add Conflicts/Replaces on apparmor-profiles.
    - debian/control: Add Suggests on apparmor.
    - debian/ntp.dirs: Add apparmor directories.
    - debian/ntp.preinst: Force complain on certain upgrades.
    - debian/ntp.postinst: Reload apparmor profile.
    - debian/ntp.postrm: Remove the force-complain file.
    - add debian/apparmor-profile*.
    - debian/rules: install apparmor-profile and apparmor-profile.tunable.
    - debian/README.Debian: Add note on AppArmor.
  + debian/{control,rules}: Add and enable hardened build for PIE.
  + debian/apparmor-profile: Adjust location of drift files.
  + debian/rules, debian/ntp.dirs, debian/source_ntp.py: Add apport hook.
  + debian/ntpdate-debian: Disregard empty ntp.conf files.
  + debian/ntp.preinst: Remove empty /etc/ntp.conf on fresh intallation.
  + debian/ntpdate.ifup: Fix interaction with openntpd.
  + debian/source_ntp.py: Add filter on AppArmor profile names to prevent
    false positives from denials originating in other packages.
  + debian/apparmor-profile: Add samba4 ntp signing socket to ntpd apparmor
    profile.
  + debian/apparmor-profile: adjust for IPv6.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011 Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2005-07-08'
 
7
timestamp='2011-06-03'
7
8
 
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
31
32
 
32
33
 
33
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
34
 
# diff and a properly formatted ChangeLog entry.
 
35
# diff and a properly formatted GNU ChangeLog entry.
35
36
#
36
37
# Configuration subroutine to validate and canonicalize a configuration type.
37
38
# Supply the specified configuration type as an argument.
38
39
# If it is invalid, we print an error message on stderr and exit with code 1.
39
40
# Otherwise, we print the canonical config type on stdout and succeed.
40
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
 
41
45
# This file is supposed to be the same for all GNU packages
42
46
# and recognize all the CPU types, system types and aliases
43
47
# that are meaningful with *any* GNU software.
71
75
version="\
72
76
GNU config.sub ($timestamp)
73
77
 
74
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75
 
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.
76
81
 
77
82
This is free software; see the source for copying conditions.  There is NO
78
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
119
124
# Here we must recognize all the valid KERNEL-OS combinations.
120
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121
126
case $maybe_os in
122
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
123
 
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
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* | \
 
131
  storm-chaos* | os2-emx* | rtmk-nova*)
124
132
    os=-$maybe_os
125
133
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126
134
    ;;
146
154
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
147
155
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
148
156
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
149
 
        -apple | -axis | -knuth | -cray)
 
157
        -apple | -axis | -knuth | -cray | -microblaze)
150
158
                os=
151
159
                basic_machine=$1
152
160
                ;;
 
161
        -bluegene*)
 
162
                os=-cnk
 
163
                ;;
153
164
        -sim | -cisco | -oki | -wec | -winbond)
154
165
                os=
155
166
                basic_machine=$1
164
175
                os=-chorusos
165
176
                basic_machine=$1
166
177
                ;;
167
 
        -chorusrdb)
168
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
169
180
                basic_machine=$1
170
 
                ;;
 
181
                ;;
171
182
        -hiux*)
172
183
                os=-hiuxwe2
173
184
                ;;
 
185
        -sco6)
 
186
                os=-sco5v6
 
187
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
188
                ;;
174
189
        -sco5)
175
190
                os=-sco3.2v5
176
191
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
202
                # Don't forget version if it is 3.2v4 or newer.
188
203
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189
204
                ;;
 
205
        -sco5v6*)
 
206
                # Don't forget version if it is 3.2v4 or newer.
 
207
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
208
                ;;
190
209
        -sco*)
191
210
                os=-sco3.2v2
192
211
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
231
250
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232
251
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233
252
        | am33_2.0 \
234
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
253
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235
254
        | bfin \
236
255
        | c4x | clipper \
237
256
        | d10v | d30v | dlx | dsp16xx \
238
 
        | fr30 | frv \
 
257
        | fido | fr30 | frv \
239
258
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240
259
        | i370 | i860 | i960 | ia64 \
241
260
        | ip2k | iq2000 \
242
 
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
261
        | lm32 \
 
262
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
263
        | maxq | mb | microblaze | mcore | mep | metag \
243
264
        | mips | mipsbe | mipseb | mipsel | mipsle \
244
265
        | mips16 \
245
266
        | mips64 | mips64el \
 
267
        | mips64octeon | mips64octeonel \
 
268
        | mips64orion | mips64orionel \
 
269
        | mips64r5900 | mips64r5900el \
246
270
        | mips64vr | mips64vrel \
247
 
        | mips64orion | mips64orionel \
248
271
        | mips64vr4100 | mips64vr4100el \
249
272
        | mips64vr4300 | mips64vr4300el \
250
273
        | mips64vr5000 | mips64vr5000el \
257
280
        | mipsisa64sr71k | mipsisa64sr71kel \
258
281
        | mipstx39 | mipstx39el \
259
282
        | mn10200 | mn10300 \
260
 
        | ms1 \
 
283
        | moxie \
 
284
        | mt \
261
285
        | msp430 \
 
286
        | nds32 | nds32le | nds32be \
 
287
        | nios | nios2 \
262
288
        | ns16k | ns32k \
 
289
        | open8 \
263
290
        | or32 \
264
291
        | pdp10 | pdp11 | pj | pjl \
265
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
292
        | powerpc | powerpc64 | powerpc64le | powerpcle \
266
293
        | pyramid \
267
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
294
        | rx \
 
295
        | score \
 
296
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
268
297
        | sh64 | sh64le \
269
 
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
270
 
        | sparcv8 | sparcv9 | sparcv9b \
271
 
        | strongarm \
272
 
        | tahoe | thumb | tic4x | tic80 | tron \
273
 
        | v850 | v850e \
 
298
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
299
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
300
        | spu \
 
301
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
302
        | ubicom32 \
 
303
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
274
304
        | we32k \
275
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
276
 
        | z8k)
277
 
                basic_machine=$basic_machine-unknown
278
 
                ;;
279
 
        m32c)
280
 
                basic_machine=$basic_machine-unknown
281
 
                ;;
282
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
305
        | x86 | xc16x | xstormy16 | xtensa \
 
306
        | z8k | z80)
 
307
                basic_machine=$basic_machine-unknown
 
308
                ;;
 
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)
283
319
                # Motorola 68HC11/12.
284
320
                basic_machine=$basic_machine-unknown
285
321
                os=-none
286
322
                ;;
287
323
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
288
324
                ;;
 
325
        ms1)
 
326
                basic_machine=mt-unknown
 
327
                ;;
 
328
 
 
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
                ;;
289
340
 
290
341
        # We use `pc' rather than `unknown'
291
342
        # because (1) that's what they normally are, and
305
356
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
306
357
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
307
358
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
308
 
        | avr-* \
 
359
        | avr-* | avr32-* \
309
360
        | bfin-* | bs2000-* \
310
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
361
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
311
362
        | clipper-* | craynv-* | cydra-* \
312
363
        | d10v-* | d30v-* | dlx-* \
313
364
        | elxsi-* \
314
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
365
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
315
366
        | h8300-* | h8500-* \
316
367
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
317
368
        | i*86-* | i860-* | i960-* | ia64-* \
318
369
        | ip2k-* | iq2000-* \
319
 
        | m32r-* | m32rle-* \
 
370
        | lm32-* \
 
371
        | m32c-* | m32r-* | m32rle-* \
320
372
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
321
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
373
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
322
374
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
323
375
        | mips16-* \
324
376
        | mips64-* | mips64el-* \
 
377
        | mips64octeon-* | mips64octeonel-* \
 
378
        | mips64orion-* | mips64orionel-* \
 
379
        | mips64r5900-* | mips64r5900el-* \
325
380
        | mips64vr-* | mips64vrel-* \
326
 
        | mips64orion-* | mips64orionel-* \
327
381
        | mips64vr4100-* | mips64vr4100el-* \
328
382
        | mips64vr4300-* | mips64vr4300el-* \
329
383
        | mips64vr5000-* | mips64vr5000el-* \
336
390
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337
391
        | mipstx39-* | mipstx39el-* \
338
392
        | mmix-* \
339
 
        | ms1-* \
 
393
        | mt-* \
340
394
        | msp430-* \
 
395
        | nds32-* | nds32le-* | nds32be-* \
 
396
        | nios-* | nios2-* \
341
397
        | none-* | np1-* | ns16k-* | ns32k-* \
 
398
        | open8-* \
342
399
        | orion-* \
343
400
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
344
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
401
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
345
402
        | pyramid-* \
346
 
        | romp-* | rs6000-* \
347
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
403
        | romp-* | rs6000-* | rx-* \
 
404
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
348
405
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
349
 
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
406
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
350
407
        | sparclite-* \
351
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
352
 
        | tahoe-* | thumb-* \
 
408
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
409
        | tahoe-* \
353
410
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
411
        | tile*-* \
354
412
        | tron-* \
355
 
        | v850-* | v850e-* | vax-* \
 
413
        | ubicom32-* \
 
414
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
415
        | vax-* \
356
416
        | we32k-* \
357
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
358
 
        | xstormy16-* | xtensa-* \
 
417
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
418
        | xstormy16-* | xtensa*-* \
359
419
        | ymp-* \
360
 
        | z8k-*)
 
420
        | z8k-* | z80-*)
361
421
                ;;
362
 
        m32c-*)
 
422
        # Recognize the basic CPU types without company name, with glob match.
 
423
        xtensa*)
 
424
                basic_machine=$basic_machine-unknown
363
425
                ;;
364
426
        # Recognize the various machine names and aliases which stand
365
427
        # for a CPU type and a company and sometimes even an OS.
377
439
                basic_machine=a29k-amd
378
440
                os=-udi
379
441
                ;;
380
 
        abacus)
 
442
        abacus)
381
443
                basic_machine=abacus-unknown
382
444
                ;;
383
445
        adobe68k)
423
485
                basic_machine=m68k-apollo
424
486
                os=-bsd
425
487
                ;;
 
488
        aros)
 
489
                basic_machine=i386-pc
 
490
                os=-aros
 
491
                ;;
426
492
        aux)
427
493
                basic_machine=m68k-apple
428
494
                os=-aux
431
497
                basic_machine=ns32k-sequent
432
498
                os=-dynix
433
499
                ;;
 
500
        blackfin)
 
501
                basic_machine=bfin-unknown
 
502
                os=-linux
 
503
                ;;
 
504
        blackfin-*)
 
505
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
506
                os=-linux
 
507
                ;;
 
508
        bluegene*)
 
509
                basic_machine=powerpc-ibm
 
510
                os=-cnk
 
511
                ;;
 
512
        c54x-*)
 
513
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
514
                ;;
 
515
        c55x-*)
 
516
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
517
                ;;
 
518
        c6x-*)
 
519
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
520
                ;;
434
521
        c90)
435
522
                basic_machine=c90-cray
436
523
                os=-unicos
437
524
                ;;
 
525
        cegcc)
 
526
                basic_machine=arm-unknown
 
527
                os=-cegcc
 
528
                ;;
438
529
        convex-c1)
439
530
                basic_machine=c1-convex
440
531
                os=-bsd
463
554
                basic_machine=craynv-cray
464
555
                os=-unicosmp
465
556
                ;;
466
 
        cr16c)
467
 
                basic_machine=cr16c-unknown
 
557
        cr16 | cr16-*)
 
558
                basic_machine=cr16-unknown
468
559
                os=-elf
469
560
                ;;
470
561
        crds | unos)
502
593
                basic_machine=m88k-motorola
503
594
                os=-sysv3
504
595
                ;;
 
596
        dicos)
 
597
                basic_machine=i686-pc
 
598
                os=-dicos
 
599
                ;;
505
600
        djgpp)
506
601
                basic_machine=i586-pc
507
602
                os=-msdosdjgpp
656
751
                basic_machine=m68k-isi
657
752
                os=-sysv
658
753
                ;;
 
754
        m68knommu)
 
755
                basic_machine=m68k-unknown
 
756
                os=-linux
 
757
                ;;
 
758
        m68knommu-*)
 
759
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
760
                os=-linux
 
761
                ;;
659
762
        m88k-omron*)
660
763
                basic_machine=m88k-omron
661
764
                ;;
667
770
                basic_machine=ns32k-utek
668
771
                os=-sysv
669
772
                ;;
 
773
        microblaze)
 
774
                basic_machine=microblaze-xilinx
 
775
                ;;
670
776
        mingw32)
671
777
                basic_machine=i386-pc
672
778
                os=-mingw32
673
779
                ;;
 
780
        mingw32ce)
 
781
                basic_machine=arm-unknown
 
782
                os=-mingw32ce
 
783
                ;;
674
784
        miniframe)
675
785
                basic_machine=m68000-convergent
676
786
                ;;
696
806
                basic_machine=i386-pc
697
807
                os=-msdos
698
808
                ;;
 
809
        ms1-*)
 
810
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
811
                ;;
699
812
        mvs)
700
813
                basic_machine=i370-ibm
701
814
                os=-mvs
764
877
        np1)
765
878
                basic_machine=np1-gould
766
879
                ;;
 
880
        neo-tandem)
 
881
                basic_machine=neo-tandem
 
882
                ;;
 
883
        nse-tandem)
 
884
                basic_machine=nse-tandem
 
885
                ;;
767
886
        nsr-tandem)
768
887
                basic_machine=nsr-tandem
769
888
                ;;
794
913
                basic_machine=i860-intel
795
914
                os=-osf
796
915
                ;;
 
916
        parisc)
 
917
                basic_machine=hppa-unknown
 
918
                os=-linux
 
919
                ;;
 
920
        parisc-*)
 
921
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
922
                os=-linux
 
923
                ;;
797
924
        pbd)
798
925
                basic_machine=sparc-tti
799
926
                ;;
803
930
        pc532 | pc532-*)
804
931
                basic_machine=ns32k-pc532
805
932
                ;;
 
933
        pc98)
 
934
                basic_machine=i386-pc
 
935
                ;;
 
936
        pc98-*)
 
937
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
938
                ;;
806
939
        pentium | p5 | k5 | k6 | nexgen | viac3)
807
940
                basic_machine=i586-pc
808
941
                ;;
832
965
                ;;
833
966
        power)  basic_machine=power-ibm
834
967
                ;;
835
 
        ppc)    basic_machine=powerpc-unknown
 
968
        ppc | ppcbe)    basic_machine=powerpc-unknown
836
969
                ;;
837
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
970
        ppc-* | ppcbe-*)
 
971
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
838
972
                ;;
839
973
        ppcle | powerpclittle | ppc-le | powerpc-little)
840
974
                basic_machine=powerpcle-unknown
859
993
                basic_machine=i586-unknown
860
994
                os=-pw32
861
995
                ;;
 
996
        rdos)
 
997
                basic_machine=i386-pc
 
998
                os=-rdos
 
999
                ;;
862
1000
        rom68k)
863
1001
                basic_machine=m68k-rom68k
864
1002
                os=-coff
885
1023
        sb1el)
886
1024
                basic_machine=mipsisa64sb1el-unknown
887
1025
                ;;
 
1026
        sde)
 
1027
                basic_machine=mipsisa32-sde
 
1028
                os=-elf
 
1029
                ;;
888
1030
        sei)
889
1031
                basic_machine=mips-sei
890
1032
                os=-seiux
896
1038
                basic_machine=sh-hitachi
897
1039
                os=-hms
898
1040
                ;;
 
1041
        sh5el)
 
1042
                basic_machine=sh5le-unknown
 
1043
                ;;
899
1044
        sh64)
900
1045
                basic_machine=sh64-unknown
901
1046
                ;;
917
1062
                basic_machine=i860-stratus
918
1063
                os=-sysv4
919
1064
                ;;
 
1065
        strongarm-* | thumb-*)
 
1066
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1067
                ;;
920
1068
        sun2)
921
1069
                basic_machine=m68000-sun
922
1070
                ;;
973
1121
                basic_machine=t90-cray
974
1122
                os=-unicos
975
1123
                ;;
976
 
        tic54x | c54x*)
977
 
                basic_machine=tic54x-unknown
978
 
                os=-coff
979
 
                ;;
980
 
        tic55x | c55x*)
981
 
                basic_machine=tic55x-unknown
982
 
                os=-coff
983
 
                ;;
984
 
        tic6x | c6x*)
985
 
                basic_machine=tic6x-unknown
986
 
                os=-coff
 
1124
        tile*)
 
1125
                basic_machine=$basic_machine-unknown
 
1126
                os=-linux-gnu
987
1127
                ;;
988
1128
        tx39)
989
1129
                basic_machine=mipstx39-unknown
1052
1192
        xps | xps100)
1053
1193
                basic_machine=xps100-honeywell
1054
1194
                ;;
 
1195
        xscale-* | xscalee[bl]-*)
 
1196
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1197
                ;;
1055
1198
        ymp)
1056
1199
                basic_machine=ymp-cray
1057
1200
                os=-unicos
1060
1203
                basic_machine=z8k-unknown
1061
1204
                os=-sim
1062
1205
                ;;
 
1206
        z80-*-coff)
 
1207
                basic_machine=z80-unknown
 
1208
                os=-sim
 
1209
                ;;
1063
1210
        none)
1064
1211
                basic_machine=none-none
1065
1212
                os=-none
1098
1245
        we32k)
1099
1246
                basic_machine=we32k-att
1100
1247
                ;;
1101
 
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
 
1248
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1102
1249
                basic_machine=sh-unknown
1103
1250
                ;;
1104
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1251
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1105
1252
                basic_machine=sparc-sun
1106
1253
                ;;
1107
1254
        cydra)
1145
1292
if [ x"$os" != x"" ]
1146
1293
then
1147
1294
case $os in
1148
 
        # First match some system type aliases
1149
 
        # that might get confused with valid system types.
 
1295
        # First match some system type aliases
 
1296
        # that might get confused with valid system types.
1150
1297
        # -solaris* is a basic system type, with this one exception.
 
1298
        -auroraux)
 
1299
                os=-auroraux
 
1300
                ;;
1151
1301
        -solaris1 | -solaris1.*)
1152
1302
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1153
1303
                ;;
1168
1318
        # Each alternative MUST END IN A *, to match a version number.
1169
1319
        # -sysv* is not here because it comes later, after sysvr4.
1170
1320
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1171
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1172
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1321
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1322
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1323
              | -sym* | -kopensolaris* \
1173
1324
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1174
 
              | -aos* \
 
1325
              | -aos* | -aros* \
1175
1326
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176
1327
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1328
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1329
              | -openbsd* | -solidbsd* \
1178
1330
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179
1331
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180
1332
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181
1333
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182
 
              | -chorusos* | -chorusrdb* \
 
1334
              | -chorusos* | -chorusrdb* | -cegcc* \
1183
1335
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1336
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1337
              | -linux-newlib* | -linux-uclibc* \
 
1338
              | -uxpv* | -beos* | -mpeix* | -udk* \
1185
1339
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186
1340
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187
1341
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188
1342
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189
1343
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190
1344
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1191
 
              | -skyos* | -haiku*)
 
1345
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1192
1346
        # Remember, each alternative MUST END IN *, to match a version number.
1193
1347
                ;;
1194
1348
        -qnx*)
1227
1381
        -opened*)
1228
1382
                os=-openedition
1229
1383
                ;;
1230
 
        -os400*)
 
1384
        -os400*)
1231
1385
                os=-os400
1232
1386
                ;;
1233
1387
        -wince*)
1276
1430
        -sinix*)
1277
1431
                os=-sysv4
1278
1432
                ;;
1279
 
        -tpf*)
 
1433
        -tpf*)
1280
1434
                os=-tpf
1281
1435
                ;;
1282
1436
        -triton*)
1318
1472
        -zvmoe)
1319
1473
                os=-zvmoe
1320
1474
                ;;
 
1475
        -dicos*)
 
1476
                os=-dicos
 
1477
                ;;
 
1478
        -nacl*)
 
1479
                ;;
1321
1480
        -none)
1322
1481
                ;;
1323
1482
        *)
1340
1499
# system, and we'll never get to this point.
1341
1500
 
1342
1501
case $basic_machine in
 
1502
        score-*)
 
1503
                os=-elf
 
1504
                ;;
 
1505
        spu-*)
 
1506
                os=-elf
 
1507
                ;;
1343
1508
        *-acorn)
1344
1509
                os=-riscix1.2
1345
1510
                ;;
1349
1514
        arm*-semi)
1350
1515
                os=-aout
1351
1516
                ;;
1352
 
    c4x-* | tic4x-*)
1353
 
        os=-coff
1354
 
        ;;
 
1517
        c4x-* | tic4x-*)
 
1518
                os=-coff
 
1519
                ;;
 
1520
        tic54x-*)
 
1521
                os=-coff
 
1522
                ;;
 
1523
        tic55x-*)
 
1524
                os=-coff
 
1525
                ;;
 
1526
        tic6x-*)
 
1527
                os=-coff
 
1528
                ;;
1355
1529
        # This must come before the *-dec entry.
1356
1530
        pdp10-*)
1357
1531
                os=-tops20
1377
1551
        m68*-cisco)
1378
1552
                os=-aout
1379
1553
                ;;
 
1554
        mep-*)
 
1555
                os=-elf
 
1556
                ;;
1380
1557
        mips*-cisco)
1381
1558
                os=-elf
1382
1559
                ;;
1401
1578
        *-ibm)
1402
1579
                os=-aix
1403
1580
                ;;
1404
 
        *-knuth)
 
1581
        *-knuth)
1405
1582
                os=-mmixware
1406
1583
                ;;
1407
1584
        *-wec)
1506
1683
                        -sunos*)
1507
1684
                                vendor=sun
1508
1685
                                ;;
1509
 
                        -aix*)
 
1686
                        -cnk*|-aix*)
1510
1687
                                vendor=ibm
1511
1688
                                ;;
1512
1689
                        -beos*)