~ubuntu-branches/ubuntu/vivid/nettle/vivid-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-04 19:50:28 UTC
  • mfrom: (1.4.6) (3.1.11 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130504195028-fp6c9fw1tsm5scwa
Tags: 2.7-1
* New upstream release (Closes: #706081).
* Include watch file improvements from Bart Martens <bartm@debian.org>
  via the QA system.

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 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='2004-03-12'
 
7
timestamp='2011-08-23'
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
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
24
# along with this program; if not, write to the Free Software
24
 
# Foundation, Inc., 59 Temple Place - Suite 330,
25
 
# Boston, MA 02111-1307, USA.
26
 
 
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
 
27
#
27
28
# As a special exception to the GNU General Public License, if you
28
29
# distribute this file as part of a program that contains a
29
30
# configuration script generated by Autoconf, you may include it under
30
31
# the same distribution terms that you use for the rest of that program.
31
32
 
 
33
 
32
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# diff and a properly formatted ChangeLog entry.
 
35
# diff and a properly formatted GNU ChangeLog entry.
34
36
#
35
37
# Configuration subroutine to validate and canonicalize a configuration type.
36
38
# Supply the specified configuration type as an argument.
37
39
# If it is invalid, we print an error message on stderr and exit with code 1.
38
40
# Otherwise, we print the canonical config type on stdout and succeed.
39
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
 
40
45
# This file is supposed to be the same for all GNU packages
41
46
# and recognize all the CPU types, system types and aliases
42
47
# that are meaningful with *any* GNU software.
70
75
version="\
71
76
GNU config.sub ($timestamp)
72
77
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
 
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.
75
81
 
76
82
This is free software; see the source for copying conditions.  There is NO
77
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
89
while test $# -gt 0 ; do
84
90
  case $1 in
85
91
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
92
       echo "$timestamp" ; exit ;;
87
93
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
94
       echo "$version" ; exit ;;
89
95
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
96
       echo "$usage"; exit ;;
91
97
    -- )     # Stop option processing
92
98
       shift; break ;;
93
99
    - ) # Use stdin as input.
99
105
    *local*)
100
106
       # First pass through any local machine types.
101
107
       echo $1
102
 
       exit 0;;
 
108
       exit ;;
103
109
 
104
110
    * )
105
111
       break ;;
118
124
# Here we must recognize all the valid KERNEL-OS combinations.
119
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
126
case $maybe_os in
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*)
 
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*)
123
132
    os=-$maybe_os
124
133
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
134
    ;;
145
154
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146
155
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147
156
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148
 
        -apple | -axis)
 
157
        -apple | -axis | -knuth | -cray | -microblaze)
149
158
                os=
150
159
                basic_machine=$1
151
160
                ;;
 
161
        -bluegene*)
 
162
                os=-cnk
 
163
                ;;
152
164
        -sim | -cisco | -oki | -wec | -winbond)
153
165
                os=
154
166
                basic_machine=$1
163
175
                os=-chorusos
164
176
                basic_machine=$1
165
177
                ;;
166
 
        -chorusrdb)
167
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
168
180
                basic_machine=$1
169
 
                ;;
 
181
                ;;
170
182
        -hiux*)
171
183
                os=-hiuxwe2
172
184
                ;;
 
185
        -sco6)
 
186
                os=-sco5v6
 
187
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
188
                ;;
173
189
        -sco5)
174
190
                os=-sco3.2v5
175
191
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
202
                # Don't forget version if it is 3.2v4 or newer.
187
203
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188
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
                ;;
189
209
        -sco*)
190
210
                os=-sco3.2v2
191
211
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
230
250
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
251
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
252
        | am33_2.0 \
233
 
        | 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 \
 
254
        | be32 | be64 \
 
255
        | bfin \
234
256
        | c4x | clipper \
235
257
        | d10v | d30v | dlx | dsp16xx \
236
 
        | fr30 | frv \
 
258
        | fido | fr30 | frv \
237
259
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
260
        | i370 | i860 | i960 | ia64 \
239
261
        | ip2k | iq2000 \
240
 
        | m32r | m32rle | m68000 | m68k | m88k | mcore \
 
262
        | le32 | le64 \
 
263
        | lm32 \
 
264
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
265
        | maxq | mb | microblaze | mcore | mep | metag \
241
266
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
267
        | mips16 \
243
268
        | mips64 | mips64el \
 
269
        | mips64octeon | mips64octeonel \
 
270
        | mips64orion | mips64orionel \
 
271
        | mips64r5900 | mips64r5900el \
244
272
        | mips64vr | mips64vrel \
245
 
        | mips64orion | mips64orionel \
246
273
        | mips64vr4100 | mips64vr4100el \
247
274
        | mips64vr4300 | mips64vr4300el \
248
275
        | mips64vr5000 | mips64vr5000el \
 
276
        | mips64vr5900 | mips64vr5900el \
249
277
        | mipsisa32 | mipsisa32el \
250
278
        | mipsisa32r2 | mipsisa32r2el \
251
279
        | mipsisa64 | mipsisa64el \
254
282
        | mipsisa64sr71k | mipsisa64sr71kel \
255
283
        | mipstx39 | mipstx39el \
256
284
        | mn10200 | mn10300 \
 
285
        | moxie \
 
286
        | mt \
257
287
        | msp430 \
 
288
        | nds32 | nds32le | nds32be \
 
289
        | nios | nios2 \
258
290
        | ns16k | ns32k \
259
 
        | openrisc | or32 \
 
291
        | open8 \
 
292
        | or32 \
260
293
        | pdp10 | pdp11 | pj | pjl \
261
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
294
        | powerpc | powerpc64 | powerpc64le | powerpcle \
262
295
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | 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 \
264
299
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
266
 
        | strongarm \
267
 
        | tahoe | thumb | tic4x | tic80 | tron \
268
 
        | v850 | v850e \
 
300
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
301
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
302
        | spu \
 
303
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
304
        | ubicom32 \
 
305
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
269
306
        | we32k \
270
 
        | x86 | xscale | xstormy16 | xtensa \
271
 
        | z8k)
 
307
        | x86 | xc16x | xstormy16 | xtensa \
 
308
        | z8k | z80)
272
309
                basic_machine=$basic_machine-unknown
273
310
                ;;
274
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
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)
275
321
                # Motorola 68HC11/12.
276
322
                basic_machine=$basic_machine-unknown
277
323
                os=-none
278
324
                ;;
279
325
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280
326
                ;;
 
327
        ms1)
 
328
                basic_machine=mt-unknown
 
329
                ;;
 
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
                ;;
281
342
 
282
343
        # We use `pc' rather than `unknown'
283
344
        # because (1) that's what they normally are, and
297
358
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
359
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
360
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
 
        | avr-* \
301
 
        | bs2000-* \
302
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
 
        | clipper-* | cydra-* \
 
361
        | avr-* | avr32-* \
 
362
        | be32-* | be64-* \
 
363
        | bfin-* | bs2000-* \
 
364
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
365
        | clipper-* | craynv-* | cydra-* \
304
366
        | d10v-* | d30v-* | dlx-* \
305
367
        | elxsi-* \
306
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
368
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
307
369
        | h8300-* | h8500-* \
308
370
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
371
        | i*86-* | i860-* | i960-* | ia64-* \
310
372
        | ip2k-* | iq2000-* \
311
 
        | m32r-* | m32rle-* \
 
373
        | le32-* | le64-* \
 
374
        | lm32-* \
 
375
        | m32c-* | m32r-* | m32rle-* \
312
376
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
 
        | m88110-* | m88k-* | mcore-* \
 
377
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
314
378
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
379
        | mips16-* \
316
380
        | mips64-* | mips64el-* \
 
381
        | mips64octeon-* | mips64octeonel-* \
 
382
        | mips64orion-* | mips64orionel-* \
 
383
        | mips64r5900-* | mips64r5900el-* \
317
384
        | mips64vr-* | mips64vrel-* \
318
 
        | mips64orion-* | mips64orionel-* \
319
385
        | mips64vr4100-* | mips64vr4100el-* \
320
386
        | mips64vr4300-* | mips64vr4300el-* \
321
387
        | mips64vr5000-* | mips64vr5000el-* \
 
388
        | mips64vr5900-* | mips64vr5900el-* \
322
389
        | mipsisa32-* | mipsisa32el-* \
323
390
        | mipsisa32r2-* | mipsisa32r2el-* \
324
391
        | mipsisa64-* | mipsisa64el-* \
326
393
        | mipsisa64sb1-* | mipsisa64sb1el-* \
327
394
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
395
        | mipstx39-* | mipstx39el-* \
 
396
        | mmix-* \
 
397
        | mt-* \
329
398
        | msp430-* \
330
 
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
399
        | nds32-* | nds32le-* | nds32be-* \
 
400
        | nios-* | nios2-* \
 
401
        | none-* | np1-* | ns16k-* | ns32k-* \
 
402
        | open8-* \
331
403
        | orion-* \
332
404
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
405
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
334
406
        | pyramid-* \
335
 
        | romp-* | rs6000-* \
336
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
407
        | romp-* | rs6000-* | rx-* \
 
408
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
337
409
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
339
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
340
 
        | tahoe-* | thumb-* \
 
410
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
411
        | sparclite-* \
 
412
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
413
        | tahoe-* \
341
414
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
415
        | tile*-* \
342
416
        | tron-* \
343
 
        | v850-* | v850e-* | vax-* \
 
417
        | ubicom32-* \
 
418
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
419
        | vax-* \
344
420
        | we32k-* \
345
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
346
 
        | xtensa-* \
 
421
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
422
        | xstormy16-* | xtensa*-* \
347
423
        | ymp-* \
348
 
        | z8k-*)
 
424
        | z8k-* | z80-*)
 
425
                ;;
 
426
        # Recognize the basic CPU types without company name, with glob match.
 
427
        xtensa*)
 
428
                basic_machine=$basic_machine-unknown
349
429
                ;;
350
430
        # Recognize the various machine names and aliases which stand
351
431
        # for a CPU type and a company and sometimes even an OS.
363
443
                basic_machine=a29k-amd
364
444
                os=-udi
365
445
                ;;
366
 
        abacus)
 
446
        abacus)
367
447
                basic_machine=abacus-unknown
368
448
                ;;
369
449
        adobe68k)
409
489
                basic_machine=m68k-apollo
410
490
                os=-bsd
411
491
                ;;
 
492
        aros)
 
493
                basic_machine=i386-pc
 
494
                os=-aros
 
495
                ;;
412
496
        aux)
413
497
                basic_machine=m68k-apple
414
498
                os=-aux
417
501
                basic_machine=ns32k-sequent
418
502
                os=-dynix
419
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
                ;;
420
525
        c90)
421
526
                basic_machine=c90-cray
422
527
                os=-unicos
423
528
                ;;
 
529
        cegcc)
 
530
                basic_machine=arm-unknown
 
531
                os=-cegcc
 
532
                ;;
424
533
        convex-c1)
425
534
                basic_machine=c1-convex
426
535
                os=-bsd
445
554
                basic_machine=j90-cray
446
555
                os=-unicos
447
556
                ;;
448
 
        cr16c)
449
 
                basic_machine=cr16c-unknown
 
557
        craynv)
 
558
                basic_machine=craynv-cray
 
559
                os=-unicosmp
 
560
                ;;
 
561
        cr16 | cr16-*)
 
562
                basic_machine=cr16-unknown
450
563
                os=-elf
451
564
                ;;
452
565
        crds | unos)
453
566
                basic_machine=m68k-crds
454
567
                ;;
 
568
        crisv32 | crisv32-* | etraxfs*)
 
569
                basic_machine=crisv32-axis
 
570
                ;;
455
571
        cris | cris-* | etrax*)
456
572
                basic_machine=cris-axis
457
573
                ;;
481
597
                basic_machine=m88k-motorola
482
598
                os=-sysv3
483
599
                ;;
 
600
        dicos)
 
601
                basic_machine=i686-pc
 
602
                os=-dicos
 
603
                ;;
 
604
        djgpp)
 
605
                basic_machine=i586-pc
 
606
                os=-msdosdjgpp
 
607
                ;;
484
608
        dpx20 | dpx20-*)
485
609
                basic_machine=rs6000-bull
486
610
                os=-bosx
631
755
                basic_machine=m68k-isi
632
756
                os=-sysv
633
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
                ;;
634
766
        m88k-omron*)
635
767
                basic_machine=m88k-omron
636
768
                ;;
642
774
                basic_machine=ns32k-utek
643
775
                os=-sysv
644
776
                ;;
 
777
        microblaze)
 
778
                basic_machine=microblaze-xilinx
 
779
                ;;
645
780
        mingw32)
646
781
                basic_machine=i386-pc
647
782
                os=-mingw32
648
783
                ;;
 
784
        mingw32ce)
 
785
                basic_machine=arm-unknown
 
786
                os=-mingw32ce
 
787
                ;;
649
788
        miniframe)
650
789
                basic_machine=m68000-convergent
651
790
                ;;
659
798
        mips3*)
660
799
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
661
800
                ;;
662
 
        mmix*)
663
 
                basic_machine=mmix-knuth
664
 
                os=-mmixware
665
 
                ;;
666
801
        monitor)
667
802
                basic_machine=m68k-rom68k
668
803
                os=-coff
675
810
                basic_machine=i386-pc
676
811
                os=-msdos
677
812
                ;;
 
813
        ms1-*)
 
814
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
815
                ;;
678
816
        mvs)
679
817
                basic_machine=i370-ibm
680
818
                os=-mvs
681
819
                ;;
 
820
        nacl)
 
821
                basic_machine=le32-unknown
 
822
                os=-nacl
 
823
                ;;
682
824
        ncr3000)
683
825
                basic_machine=i486-ncr
684
826
                os=-sysv4
743
885
        np1)
744
886
                basic_machine=np1-gould
745
887
                ;;
746
 
        nv1)
747
 
                basic_machine=nv1-cray
748
 
                os=-unicosmp
 
888
        neo-tandem)
 
889
                basic_machine=neo-tandem
 
890
                ;;
 
891
        nse-tandem)
 
892
                basic_machine=nse-tandem
749
893
                ;;
750
894
        nsr-tandem)
751
895
                basic_machine=nsr-tandem
754
898
                basic_machine=hppa1.1-oki
755
899
                os=-proelf
756
900
                ;;
757
 
        or32 | or32-*)
 
901
        openrisc | openrisc-*)
758
902
                basic_machine=or32-unknown
759
 
                os=-coff
760
903
                ;;
761
904
        os400)
762
905
                basic_machine=powerpc-ibm
778
921
                basic_machine=i860-intel
779
922
                os=-osf
780
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
                ;;
781
932
        pbd)
782
933
                basic_machine=sparc-tti
783
934
                ;;
787
938
        pc532 | pc532-*)
788
939
                basic_machine=ns32k-pc532
789
940
                ;;
 
941
        pc98)
 
942
                basic_machine=i386-pc
 
943
                ;;
 
944
        pc98-*)
 
945
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
946
                ;;
790
947
        pentium | p5 | k5 | k6 | nexgen | viac3)
791
948
                basic_machine=i586-pc
792
949
                ;;
816
973
                ;;
817
974
        power)  basic_machine=power-ibm
818
975
                ;;
819
 
        ppc)    basic_machine=powerpc-unknown
 
976
        ppc | ppcbe)    basic_machine=powerpc-unknown
820
977
                ;;
821
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
978
        ppc-* | ppcbe-*)
 
979
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
822
980
                ;;
823
981
        ppcle | powerpclittle | ppc-le | powerpc-little)
824
982
                basic_machine=powerpcle-unknown
843
1001
                basic_machine=i586-unknown
844
1002
                os=-pw32
845
1003
                ;;
 
1004
        rdos)
 
1005
                basic_machine=i386-pc
 
1006
                os=-rdos
 
1007
                ;;
846
1008
        rom68k)
847
1009
                basic_machine=m68k-rom68k
848
1010
                os=-coff
869
1031
        sb1el)
870
1032
                basic_machine=mipsisa64sb1el-unknown
871
1033
                ;;
 
1034
        sde)
 
1035
                basic_machine=mipsisa32-sde
 
1036
                os=-elf
 
1037
                ;;
872
1038
        sei)
873
1039
                basic_machine=mips-sei
874
1040
                os=-seiux
880
1046
                basic_machine=sh-hitachi
881
1047
                os=-hms
882
1048
                ;;
 
1049
        sh5el)
 
1050
                basic_machine=sh5le-unknown
 
1051
                ;;
883
1052
        sh64)
884
1053
                basic_machine=sh64-unknown
885
1054
                ;;
901
1070
                basic_machine=i860-stratus
902
1071
                os=-sysv4
903
1072
                ;;
 
1073
        strongarm-* | thumb-*)
 
1074
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1075
                ;;
904
1076
        sun2)
905
1077
                basic_machine=m68000-sun
906
1078
                ;;
957
1129
                basic_machine=t90-cray
958
1130
                os=-unicos
959
1131
                ;;
960
 
        tic54x | c54x*)
961
 
                basic_machine=tic54x-unknown
962
 
                os=-coff
963
 
                ;;
964
 
        tic55x | c55x*)
965
 
                basic_machine=tic55x-unknown
966
 
                os=-coff
967
 
                ;;
968
 
        tic6x | c6x*)
969
 
                basic_machine=tic6x-unknown
970
 
                os=-coff
 
1132
        tile*)
 
1133
                basic_machine=$basic_machine-unknown
 
1134
                os=-linux-gnu
971
1135
                ;;
972
1136
        tx39)
973
1137
                basic_machine=mipstx39-unknown
1029
1193
                basic_machine=hppa1.1-winbond
1030
1194
                os=-proelf
1031
1195
                ;;
 
1196
        xbox)
 
1197
                basic_machine=i686-pc
 
1198
                os=-mingw32
 
1199
                ;;
1032
1200
        xps | xps100)
1033
1201
                basic_machine=xps100-honeywell
1034
1202
                ;;
 
1203
        xscale-* | xscalee[bl]-*)
 
1204
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1205
                ;;
1035
1206
        ymp)
1036
1207
                basic_machine=ymp-cray
1037
1208
                os=-unicos
1040
1211
                basic_machine=z8k-unknown
1041
1212
                os=-sim
1042
1213
                ;;
 
1214
        z80-*-coff)
 
1215
                basic_machine=z80-unknown
 
1216
                os=-sim
 
1217
                ;;
1043
1218
        none)
1044
1219
                basic_machine=none-none
1045
1220
                os=-none
1059
1234
        romp)
1060
1235
                basic_machine=romp-ibm
1061
1236
                ;;
 
1237
        mmix)
 
1238
                basic_machine=mmix-knuth
 
1239
                ;;
1062
1240
        rs6000)
1063
1241
                basic_machine=rs6000-ibm
1064
1242
                ;;
1075
1253
        we32k)
1076
1254
                basic_machine=we32k-att
1077
1255
                ;;
1078
 
        sh3 | sh4 | 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)
1079
1257
                basic_machine=sh-unknown
1080
1258
                ;;
1081
 
        sh64)
1082
 
                basic_machine=sh64-unknown
1083
 
                ;;
1084
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1259
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1085
1260
                basic_machine=sparc-sun
1086
1261
                ;;
1087
1262
        cydra)
1125
1300
if [ x"$os" != x"" ]
1126
1301
then
1127
1302
case $os in
1128
 
        # First match some system type aliases
1129
 
        # that might get confused with valid system types.
 
1303
        # First match some system type aliases
 
1304
        # that might get confused with valid system types.
1130
1305
        # -solaris* is a basic system type, with this one exception.
 
1306
        -auroraux)
 
1307
                os=-auroraux
 
1308
                ;;
1131
1309
        -solaris1 | -solaris1.*)
1132
1310
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1133
1311
                ;;
1148
1326
        # Each alternative MUST END IN A *, to match a version number.
1149
1327
        # -sysv* is not here because it comes later, after sysvr4.
1150
1328
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1151
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1152
 
              | -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* \
1153
1332
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1154
 
              | -aos* \
 
1333
              | -aos* | -aros* \
1155
1334
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1335
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1336
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1337
              | -openbsd* | -solidbsd* \
1158
1338
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
1339
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1340
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1341
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
 
              | -chorusos* | -chorusrdb* \
 
1342
              | -chorusos* | -chorusrdb* | -cegcc* \
1163
1343
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1344
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1345
              | -linux-newlib* | -linux-uclibc* \
 
1346
              | -uxpv* | -beos* | -mpeix* | -udk* \
1165
1347
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1166
1348
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
1349
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
1350
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
1351
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1352
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1353
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1171
1354
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1355
                ;;
1173
1356
        -qnx*)
1185
1368
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1186
1369
                ;;
1187
1370
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1371
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1189
1372
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1190
1373
                ;;
1191
1374
        -mac*)
1206
1389
        -opened*)
1207
1390
                os=-openedition
1208
1391
                ;;
1209
 
        -os400*)
 
1392
        -os400*)
1210
1393
                os=-os400
1211
1394
                ;;
1212
1395
        -wince*)
1255
1438
        -sinix*)
1256
1439
                os=-sysv4
1257
1440
                ;;
1258
 
        -tpf*)
 
1441
        -tpf*)
1259
1442
                os=-tpf
1260
1443
                ;;
1261
1444
        -triton*)
1294
1477
        -kaos*)
1295
1478
                os=-kaos
1296
1479
                ;;
 
1480
        -zvmoe)
 
1481
                os=-zvmoe
 
1482
                ;;
 
1483
        -dicos*)
 
1484
                os=-dicos
 
1485
                ;;
 
1486
        -nacl*)
 
1487
                ;;
1297
1488
        -none)
1298
1489
                ;;
1299
1490
        *)
1316
1507
# system, and we'll never get to this point.
1317
1508
 
1318
1509
case $basic_machine in
 
1510
        score-*)
 
1511
                os=-elf
 
1512
                ;;
 
1513
        spu-*)
 
1514
                os=-elf
 
1515
                ;;
1319
1516
        *-acorn)
1320
1517
                os=-riscix1.2
1321
1518
                ;;
1325
1522
        arm*-semi)
1326
1523
                os=-aout
1327
1524
                ;;
1328
 
    c4x-* | tic4x-*)
1329
 
        os=-coff
1330
 
        ;;
 
1525
        c4x-* | tic4x-*)
 
1526
                os=-coff
 
1527
                ;;
 
1528
        tic54x-*)
 
1529
                os=-coff
 
1530
                ;;
 
1531
        tic55x-*)
 
1532
                os=-coff
 
1533
                ;;
 
1534
        tic6x-*)
 
1535
                os=-coff
 
1536
                ;;
1331
1537
        # This must come before the *-dec entry.
1332
1538
        pdp10-*)
1333
1539
                os=-tops20
1353
1559
        m68*-cisco)
1354
1560
                os=-aout
1355
1561
                ;;
 
1562
        mep-*)
 
1563
                os=-elf
 
1564
                ;;
1356
1565
        mips*-cisco)
1357
1566
                os=-elf
1358
1567
                ;;
1371
1580
        *-be)
1372
1581
                os=-beos
1373
1582
                ;;
 
1583
        *-haiku)
 
1584
                os=-haiku
 
1585
                ;;
1374
1586
        *-ibm)
1375
1587
                os=-aix
1376
1588
                ;;
 
1589
        *-knuth)
 
1590
                os=-mmixware
 
1591
                ;;
1377
1592
        *-wec)
1378
1593
                os=-proelf
1379
1594
                ;;
1476
1691
                        -sunos*)
1477
1692
                                vendor=sun
1478
1693
                                ;;
1479
 
                        -aix*)
 
1694
                        -cnk*|-aix*)
1480
1695
                                vendor=ibm
1481
1696
                                ;;
1482
1697
                        -beos*)
1539
1754
esac
1540
1755
 
1541
1756
echo $basic_machine$os
1542
 
exit 0
 
1757
exit
1543
1758
 
1544
1759
# Local variables:
1545
1760
# eval: (add-hook 'write-file-hooks 'time-stamp)