~ubuntu-branches/ubuntu/vivid/ipmitool/vivid-updates

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-05-07 18:12:12 UTC
  • mfrom: (5.1.11 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130507181212-fitwelheknk3tqnq
Tags: 1.8.12-1
Merge new upstream from Ubuntu (Closes: #692292).

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, 2012 Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2003-06-18'
 
7
timestamp='2012-02-10'
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
20
21
# GNU General Public License for more details.
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
 
# 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
 
 
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
25
#
27
26
# As a special exception to the GNU General Public License, if you
28
27
# distribute this file as part of a program that contains a
29
28
# configuration script generated by Autoconf, you may include it under
30
29
# the same distribution terms that you use for the rest of that program.
31
30
 
 
31
 
32
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# diff and a properly formatted ChangeLog entry.
 
33
# diff and a properly formatted GNU ChangeLog entry.
34
34
#
35
35
# Configuration subroutine to validate and canonicalize a configuration type.
36
36
# Supply the specified configuration type as an argument.
37
37
# If it is invalid, we print an error message on stderr and exit with code 1.
38
38
# Otherwise, we print the canonical config type on stdout and succeed.
39
39
 
 
40
# You can get the latest version of this script from:
 
41
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
42
 
40
43
# This file is supposed to be the same for all GNU packages
41
44
# and recognize all the CPU types, system types and aliases
42
45
# that are meaningful with *any* GNU software.
70
73
version="\
71
74
GNU config.sub ($timestamp)
72
75
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
76
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
74
78
Free Software Foundation, Inc.
75
79
 
76
80
This is free software; see the source for copying conditions.  There is NO
83
87
while test $# -gt 0 ; do
84
88
  case $1 in
85
89
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
90
       echo "$timestamp" ; exit ;;
87
91
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
92
       echo "$version" ; exit ;;
89
93
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
94
       echo "$usage"; exit ;;
91
95
    -- )     # Stop option processing
92
96
       shift; break ;;
93
97
    - ) # Use stdin as input.
99
103
    *local*)
100
104
       # First pass through any local machine types.
101
105
       echo $1
102
 
       exit 0;;
 
106
       exit ;;
103
107
 
104
108
    * )
105
109
       break ;;
118
122
# Here we must recognize all the valid KERNEL-OS combinations.
119
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
124
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
126
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
127
  knetbsd*-gnu* | netbsd*-gnu* | \
 
128
  kopensolaris*-gnu* | \
 
129
  storm-chaos* | os2-emx* | rtmk-nova*)
122
130
    os=-$maybe_os
123
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
125
137
  *)
126
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
127
139
    if [ $basic_machine != $1 ]
144
156
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
157
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
158
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
 
        -apple | -axis)
 
159
        -apple | -axis | -knuth | -cray | -microblaze)
148
160
                os=
149
161
                basic_machine=$1
150
162
                ;;
 
163
        -bluegene*)
 
164
                os=-cnk
 
165
                ;;
151
166
        -sim | -cisco | -oki | -wec | -winbond)
152
167
                os=
153
168
                basic_machine=$1
162
177
                os=-chorusos
163
178
                basic_machine=$1
164
179
                ;;
165
 
        -chorusrdb)
166
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
167
182
                basic_machine=$1
168
 
                ;;
 
183
                ;;
169
184
        -hiux*)
170
185
                os=-hiuxwe2
171
186
                ;;
 
187
        -sco6)
 
188
                os=-sco5v6
 
189
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
190
                ;;
172
191
        -sco5)
173
192
                os=-sco3.2v5
174
193
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185
204
                # Don't forget version if it is 3.2v4 or newer.
186
205
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
206
                ;;
 
207
        -sco5v6*)
 
208
                # Don't forget version if it is 3.2v4 or newer.
 
209
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
210
                ;;
188
211
        -sco*)
189
212
                os=-sco3.2v2
190
213
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
226
249
        # Some are omitted here because they have special meanings below.
227
250
        1750a | 580 \
228
251
        | a29k \
 
252
        | aarch64 | aarch64_be \
229
253
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
254
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
255
        | am33_2.0 \
 
256
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
257
        | be32 | be64 \
 
258
        | bfin \
232
259
        | c4x | clipper \
233
260
        | d10v | d30v | dlx | dsp16xx \
234
 
        | fr30 | frv \
 
261
        | epiphany \
 
262
        | fido | fr30 | frv \
235
263
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
264
        | hexagon \
236
265
        | i370 | i860 | i960 | ia64 \
237
 
        | ip2k \
238
 
        | m32r | m68000 | m68k | m88k | mcore \
 
266
        | ip2k | iq2000 \
 
267
        | le32 | le64 \
 
268
        | lm32 \
 
269
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
270
        | maxq | mb | microblaze | mcore | mep | metag \
239
271
        | mips | mipsbe | mipseb | mipsel | mipsle \
240
272
        | mips16 \
241
273
        | mips64 | mips64el \
 
274
        | mips64octeon | mips64octeonel \
 
275
        | mips64orion | mips64orionel \
 
276
        | mips64r5900 | mips64r5900el \
242
277
        | mips64vr | mips64vrel \
243
 
        | mips64orion | mips64orionel \
244
278
        | mips64vr4100 | mips64vr4100el \
245
279
        | mips64vr4300 | mips64vr4300el \
246
280
        | mips64vr5000 | mips64vr5000el \
 
281
        | mips64vr5900 | mips64vr5900el \
247
282
        | mipsisa32 | mipsisa32el \
248
283
        | mipsisa32r2 | mipsisa32r2el \
249
284
        | mipsisa64 | mipsisa64el \
 
285
        | mipsisa64r2 | mipsisa64r2el \
250
286
        | mipsisa64sb1 | mipsisa64sb1el \
251
287
        | mipsisa64sr71k | mipsisa64sr71kel \
252
288
        | mipstx39 | mipstx39el \
253
289
        | mn10200 | mn10300 \
 
290
        | moxie \
 
291
        | mt \
254
292
        | msp430 \
 
293
        | nds32 | nds32le | nds32be \
 
294
        | nios | nios2 \
255
295
        | ns16k | ns32k \
256
 
        | openrisc | or32 \
 
296
        | open8 \
 
297
        | or32 \
257
298
        | pdp10 | pdp11 | pj | pjl \
258
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
299
        | powerpc | powerpc64 | powerpc64le | powerpcle \
259
300
        | pyramid \
260
 
        | s390 | s390x \
261
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
301
        | rl78 | rx \
 
302
        | score \
 
303
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
262
304
        | sh64 | sh64le \
263
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
264
 
        | strongarm \
265
 
        | tahoe | thumb | tic4x | tic80 | tron \
266
 
        | v850 | v850e \
 
305
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
306
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
307
        | spu \
 
308
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
309
        | ubicom32 \
 
310
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
267
311
        | we32k \
268
 
        | x86 | xscale | xstormy16 | xtensa \
269
 
        | z8k)
 
312
        | x86 | xc16x | xstormy16 | xtensa \
 
313
        | z8k | z80)
270
314
                basic_machine=$basic_machine-unknown
271
315
                ;;
272
 
        m6811 | m68hc11 | m6812 | m68hc12)
273
 
                # Motorola 68HC11/12.
 
316
        c54x)
 
317
                basic_machine=tic54x-unknown
 
318
                ;;
 
319
        c55x)
 
320
                basic_machine=tic55x-unknown
 
321
                ;;
 
322
        c6x)
 
323
                basic_machine=tic6x-unknown
 
324
                ;;
 
325
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
274
326
                basic_machine=$basic_machine-unknown
275
327
                os=-none
276
328
                ;;
277
329
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
278
330
                ;;
 
331
        ms1)
 
332
                basic_machine=mt-unknown
 
333
                ;;
 
334
 
 
335
        strongarm | thumb | xscale)
 
336
                basic_machine=arm-unknown
 
337
                ;;
 
338
        xgate)
 
339
                basic_machine=$basic_machine-unknown
 
340
                os=-none
 
341
                ;;
 
342
        xscaleeb)
 
343
                basic_machine=armeb-unknown
 
344
                ;;
 
345
 
 
346
        xscaleel)
 
347
                basic_machine=armel-unknown
 
348
                ;;
279
349
 
280
350
        # We use `pc' rather than `unknown'
281
351
        # because (1) that's what they normally are, and
291
361
        # Recognize the basic CPU types with company name.
292
362
        580-* \
293
363
        | a29k-* \
 
364
        | aarch64-* | aarch64_be-* \
294
365
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
295
366
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
296
367
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
297
368
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
298
 
        | avr-* \
299
 
        | bs2000-* \
300
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
301
 
        | clipper-* | cydra-* \
 
369
        | avr-* | avr32-* \
 
370
        | be32-* | be64-* \
 
371
        | bfin-* | bs2000-* \
 
372
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
373
        | clipper-* | craynv-* | cydra-* \
302
374
        | d10v-* | d30v-* | dlx-* \
303
375
        | elxsi-* \
304
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
376
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
305
377
        | h8300-* | h8500-* \
306
378
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
379
        | hexagon-* \
307
380
        | i*86-* | i860-* | i960-* | ia64-* \
308
 
        | ip2k-* \
309
 
        | m32r-* \
 
381
        | ip2k-* | iq2000-* \
 
382
        | le32-* | le64-* \
 
383
        | lm32-* \
 
384
        | m32c-* | m32r-* | m32rle-* \
310
385
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
311
 
        | m88110-* | m88k-* | mcore-* \
 
386
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
312
387
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
313
388
        | mips16-* \
314
389
        | mips64-* | mips64el-* \
 
390
        | mips64octeon-* | mips64octeonel-* \
 
391
        | mips64orion-* | mips64orionel-* \
 
392
        | mips64r5900-* | mips64r5900el-* \
315
393
        | mips64vr-* | mips64vrel-* \
316
 
        | mips64orion-* | mips64orionel-* \
317
394
        | mips64vr4100-* | mips64vr4100el-* \
318
395
        | mips64vr4300-* | mips64vr4300el-* \
319
396
        | mips64vr5000-* | mips64vr5000el-* \
 
397
        | mips64vr5900-* | mips64vr5900el-* \
320
398
        | mipsisa32-* | mipsisa32el-* \
321
399
        | mipsisa32r2-* | mipsisa32r2el-* \
322
400
        | mipsisa64-* | mipsisa64el-* \
 
401
        | mipsisa64r2-* | mipsisa64r2el-* \
323
402
        | mipsisa64sb1-* | mipsisa64sb1el-* \
324
403
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
325
404
        | mipstx39-* | mipstx39el-* \
 
405
        | mmix-* \
 
406
        | mt-* \
326
407
        | msp430-* \
327
 
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
408
        | nds32-* | nds32le-* | nds32be-* \
 
409
        | nios-* | nios2-* \
 
410
        | none-* | np1-* | ns16k-* | ns32k-* \
 
411
        | open8-* \
328
412
        | orion-* \
329
413
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
330
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
414
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
331
415
        | pyramid-* \
332
 
        | romp-* | rs6000-* \
333
 
        | s390-* | s390x-* \
334
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
416
        | rl78-* | romp-* | rs6000-* | rx-* \
 
417
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
335
418
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
336
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
337
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
338
 
        | tahoe-* | thumb-* \
 
419
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
420
        | sparclite-* \
 
421
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
422
        | tahoe-* \
339
423
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
424
        | tile*-* \
340
425
        | tron-* \
341
 
        | v850-* | v850e-* | vax-* \
 
426
        | ubicom32-* \
 
427
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
428
        | vax-* \
342
429
        | we32k-* \
343
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
344
 
        | xtensa-* \
 
430
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
431
        | xstormy16-* | xtensa*-* \
345
432
        | ymp-* \
346
 
        | z8k-*)
 
433
        | z8k-* | z80-*)
 
434
                ;;
 
435
        # Recognize the basic CPU types without company name, with glob match.
 
436
        xtensa*)
 
437
                basic_machine=$basic_machine-unknown
347
438
                ;;
348
439
        # Recognize the various machine names and aliases which stand
349
440
        # for a CPU type and a company and sometimes even an OS.
361
452
                basic_machine=a29k-amd
362
453
                os=-udi
363
454
                ;;
 
455
        abacus)
 
456
                basic_machine=abacus-unknown
 
457
                ;;
364
458
        adobe68k)
365
459
                basic_machine=m68010-adobe
366
460
                os=-scout
378
472
        amd64)
379
473
                basic_machine=x86_64-pc
380
474
                ;;
 
475
        amd64-*)
 
476
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
477
                ;;
381
478
        amdahl)
382
479
                basic_machine=580-amdahl
383
480
                os=-sysv
401
498
                basic_machine=m68k-apollo
402
499
                os=-bsd
403
500
                ;;
 
501
        aros)
 
502
                basic_machine=i386-pc
 
503
                os=-aros
 
504
                ;;
404
505
        aux)
405
506
                basic_machine=m68k-apple
406
507
                os=-aux
409
510
                basic_machine=ns32k-sequent
410
511
                os=-dynix
411
512
                ;;
 
513
        blackfin)
 
514
                basic_machine=bfin-unknown
 
515
                os=-linux
 
516
                ;;
 
517
        blackfin-*)
 
518
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
519
                os=-linux
 
520
                ;;
 
521
        bluegene*)
 
522
                basic_machine=powerpc-ibm
 
523
                os=-cnk
 
524
                ;;
 
525
        c54x-*)
 
526
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
527
                ;;
 
528
        c55x-*)
 
529
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
530
                ;;
 
531
        c6x-*)
 
532
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
533
                ;;
412
534
        c90)
413
535
                basic_machine=c90-cray
414
536
                os=-unicos
415
537
                ;;
 
538
        cegcc)
 
539
                basic_machine=arm-unknown
 
540
                os=-cegcc
 
541
                ;;
416
542
        convex-c1)
417
543
                basic_machine=c1-convex
418
544
                os=-bsd
437
563
                basic_machine=j90-cray
438
564
                os=-unicos
439
565
                ;;
 
566
        craynv)
 
567
                basic_machine=craynv-cray
 
568
                os=-unicosmp
 
569
                ;;
 
570
        cr16 | cr16-*)
 
571
                basic_machine=cr16-unknown
 
572
                os=-elf
 
573
                ;;
440
574
        crds | unos)
441
575
                basic_machine=m68k-crds
442
576
                ;;
 
577
        crisv32 | crisv32-* | etraxfs*)
 
578
                basic_machine=crisv32-axis
 
579
                ;;
443
580
        cris | cris-* | etrax*)
444
581
                basic_machine=cris-axis
445
582
                ;;
 
583
        crx)
 
584
                basic_machine=crx-unknown
 
585
                os=-elf
 
586
                ;;
446
587
        da30 | da30-*)
447
588
                basic_machine=m68k-da30
448
589
                ;;
465
606
                basic_machine=m88k-motorola
466
607
                os=-sysv3
467
608
                ;;
 
609
        dicos)
 
610
                basic_machine=i686-pc
 
611
                os=-dicos
 
612
                ;;
 
613
        djgpp)
 
614
                basic_machine=i586-pc
 
615
                os=-msdosdjgpp
 
616
                ;;
468
617
        dpx20 | dpx20-*)
469
618
                basic_machine=rs6000-bull
470
619
                os=-bosx
576
725
        i370-ibm* | ibm*)
577
726
                basic_machine=i370-ibm
578
727
                ;;
579
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
580
728
        i*86v32)
581
729
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
582
730
                os=-sysv32
615
763
                basic_machine=m68k-isi
616
764
                os=-sysv
617
765
                ;;
 
766
        m68knommu)
 
767
                basic_machine=m68k-unknown
 
768
                os=-linux
 
769
                ;;
 
770
        m68knommu-*)
 
771
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
772
                os=-linux
 
773
                ;;
618
774
        m88k-omron*)
619
775
                basic_machine=m88k-omron
620
776
                ;;
626
782
                basic_machine=ns32k-utek
627
783
                os=-sysv
628
784
                ;;
 
785
        microblaze)
 
786
                basic_machine=microblaze-xilinx
 
787
                ;;
629
788
        mingw32)
630
789
                basic_machine=i386-pc
631
790
                os=-mingw32
632
791
                ;;
 
792
        mingw32ce)
 
793
                basic_machine=arm-unknown
 
794
                os=-mingw32ce
 
795
                ;;
633
796
        miniframe)
634
797
                basic_machine=m68000-convergent
635
798
                ;;
643
806
        mips3*)
644
807
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
645
808
                ;;
646
 
        mmix*)
647
 
                basic_machine=mmix-knuth
648
 
                os=-mmixware
649
 
                ;;
650
809
        monitor)
651
810
                basic_machine=m68k-rom68k
652
811
                os=-coff
659
818
                basic_machine=i386-pc
660
819
                os=-msdos
661
820
                ;;
 
821
        ms1-*)
 
822
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
823
                ;;
 
824
        msys)
 
825
                basic_machine=i386-pc
 
826
                os=-msys
 
827
                ;;
662
828
        mvs)
663
829
                basic_machine=i370-ibm
664
830
                os=-mvs
665
831
                ;;
 
832
        nacl)
 
833
                basic_machine=le32-unknown
 
834
                os=-nacl
 
835
                ;;
666
836
        ncr3000)
667
837
                basic_machine=i486-ncr
668
838
                os=-sysv4
727
897
        np1)
728
898
                basic_machine=np1-gould
729
899
                ;;
730
 
        nv1)
731
 
                basic_machine=nv1-cray
732
 
                os=-unicosmp
 
900
        neo-tandem)
 
901
                basic_machine=neo-tandem
 
902
                ;;
 
903
        nse-tandem)
 
904
                basic_machine=nse-tandem
733
905
                ;;
734
906
        nsr-tandem)
735
907
                basic_machine=nsr-tandem
738
910
                basic_machine=hppa1.1-oki
739
911
                os=-proelf
740
912
                ;;
741
 
        or32 | or32-*)
 
913
        openrisc | openrisc-*)
742
914
                basic_machine=or32-unknown
743
 
                os=-coff
 
915
                ;;
 
916
        os400)
 
917
                basic_machine=powerpc-ibm
 
918
                os=-os400
744
919
                ;;
745
920
        OSE68000 | ose68000)
746
921
                basic_machine=m68000-ericsson
758
933
                basic_machine=i860-intel
759
934
                os=-osf
760
935
                ;;
 
936
        parisc)
 
937
                basic_machine=hppa-unknown
 
938
                os=-linux
 
939
                ;;
 
940
        parisc-*)
 
941
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
942
                os=-linux
 
943
                ;;
761
944
        pbd)
762
945
                basic_machine=sparc-tti
763
946
                ;;
767
950
        pc532 | pc532-*)
768
951
                basic_machine=ns32k-pc532
769
952
                ;;
 
953
        pc98)
 
954
                basic_machine=i386-pc
 
955
                ;;
 
956
        pc98-*)
 
957
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
958
                ;;
770
959
        pentium | p5 | k5 | k6 | nexgen | viac3)
771
960
                basic_machine=i586-pc
772
961
                ;;
796
985
                ;;
797
986
        power)  basic_machine=power-ibm
798
987
                ;;
799
 
        ppc)    basic_machine=powerpc-unknown
 
988
        ppc | ppcbe)    basic_machine=powerpc-unknown
800
989
                ;;
801
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
990
        ppc-* | ppcbe-*)
 
991
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
802
992
                ;;
803
993
        ppcle | powerpclittle | ppc-le | powerpc-little)
804
994
                basic_machine=powerpcle-unknown
823
1013
                basic_machine=i586-unknown
824
1014
                os=-pw32
825
1015
                ;;
 
1016
        rdos)
 
1017
                basic_machine=i386-pc
 
1018
                os=-rdos
 
1019
                ;;
826
1020
        rom68k)
827
1021
                basic_machine=m68k-rom68k
828
1022
                os=-coff
833
1027
        rtpc | rtpc-*)
834
1028
                basic_machine=romp-ibm
835
1029
                ;;
 
1030
        s390 | s390-*)
 
1031
                basic_machine=s390-ibm
 
1032
                ;;
 
1033
        s390x | s390x-*)
 
1034
                basic_machine=s390x-ibm
 
1035
                ;;
836
1036
        sa29200)
837
1037
                basic_machine=a29k-amd
838
1038
                os=-udi
843
1043
        sb1el)
844
1044
                basic_machine=mipsisa64sb1el-unknown
845
1045
                ;;
 
1046
        sde)
 
1047
                basic_machine=mipsisa32-sde
 
1048
                os=-elf
 
1049
                ;;
846
1050
        sei)
847
1051
                basic_machine=mips-sei
848
1052
                os=-seiux
854
1058
                basic_machine=sh-hitachi
855
1059
                os=-hms
856
1060
                ;;
 
1061
        sh5el)
 
1062
                basic_machine=sh5le-unknown
 
1063
                ;;
857
1064
        sh64)
858
1065
                basic_machine=sh64-unknown
859
1066
                ;;
875
1082
                basic_machine=i860-stratus
876
1083
                os=-sysv4
877
1084
                ;;
 
1085
        strongarm-* | thumb-*)
 
1086
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1087
                ;;
878
1088
        sun2)
879
1089
                basic_machine=m68000-sun
880
1090
                ;;
931
1141
                basic_machine=t90-cray
932
1142
                os=-unicos
933
1143
                ;;
934
 
        tic54x | c54x*)
935
 
                basic_machine=tic54x-unknown
936
 
                os=-coff
937
 
                ;;
938
 
        tic55x | c55x*)
939
 
                basic_machine=tic55x-unknown
940
 
                os=-coff
941
 
                ;;
942
 
        tic6x | c6x*)
943
 
                basic_machine=tic6x-unknown
944
 
                os=-coff
 
1144
        tile*)
 
1145
                basic_machine=$basic_machine-unknown
 
1146
                os=-linux-gnu
945
1147
                ;;
946
1148
        tx39)
947
1149
                basic_machine=mipstx39-unknown
956
1158
        tower | tower-32)
957
1159
                basic_machine=m68k-ncr
958
1160
                ;;
 
1161
        tpf)
 
1162
                basic_machine=s390x-ibm
 
1163
                os=-tpf
 
1164
                ;;
959
1165
        udi29k)
960
1166
                basic_machine=a29k-amd
961
1167
                os=-udi
999
1205
                basic_machine=hppa1.1-winbond
1000
1206
                os=-proelf
1001
1207
                ;;
 
1208
        xbox)
 
1209
                basic_machine=i686-pc
 
1210
                os=-mingw32
 
1211
                ;;
1002
1212
        xps | xps100)
1003
1213
                basic_machine=xps100-honeywell
1004
1214
                ;;
 
1215
        xscale-* | xscalee[bl]-*)
 
1216
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1217
                ;;
1005
1218
        ymp)
1006
1219
                basic_machine=ymp-cray
1007
1220
                os=-unicos
1010
1223
                basic_machine=z8k-unknown
1011
1224
                os=-sim
1012
1225
                ;;
 
1226
        z80-*-coff)
 
1227
                basic_machine=z80-unknown
 
1228
                os=-sim
 
1229
                ;;
1013
1230
        none)
1014
1231
                basic_machine=none-none
1015
1232
                os=-none
1029
1246
        romp)
1030
1247
                basic_machine=romp-ibm
1031
1248
                ;;
 
1249
        mmix)
 
1250
                basic_machine=mmix-knuth
 
1251
                ;;
1032
1252
        rs6000)
1033
1253
                basic_machine=rs6000-ibm
1034
1254
                ;;
1045
1265
        we32k)
1046
1266
                basic_machine=we32k-att
1047
1267
                ;;
1048
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1268
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1049
1269
                basic_machine=sh-unknown
1050
1270
                ;;
1051
 
        sh64)
1052
 
                basic_machine=sh64-unknown
1053
 
                ;;
1054
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1271
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1055
1272
                basic_machine=sparc-sun
1056
1273
                ;;
1057
1274
        cydra)
1095
1312
if [ x"$os" != x"" ]
1096
1313
then
1097
1314
case $os in
1098
 
        # First match some system type aliases
1099
 
        # that might get confused with valid system types.
 
1315
        # First match some system type aliases
 
1316
        # that might get confused with valid system types.
1100
1317
        # -solaris* is a basic system type, with this one exception.
 
1318
        -auroraux)
 
1319
                os=-auroraux
 
1320
                ;;
1101
1321
        -solaris1 | -solaris1.*)
1102
1322
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1103
1323
                ;;
1118
1338
        # Each alternative MUST END IN A *, to match a version number.
1119
1339
        # -sysv* is not here because it comes later, after sysvr4.
1120
1340
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1121
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1122
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1341
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1342
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1343
              | -sym* | -kopensolaris* \
1123
1344
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1124
 
              | -aos* \
 
1345
              | -aos* | -aros* \
1125
1346
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1126
1347
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1127
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1128
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1348
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1349
              | -openbsd* | -solidbsd* \
 
1350
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1351
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1129
1352
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1130
1353
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1131
 
              | -chorusos* | -chorusrdb* \
1132
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1133
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1354
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1355
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1356
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1357
              | -linux-newlib* | -linux-uclibc* \
 
1358
              | -uxpv* | -beos* | -mpeix* | -udk* \
1134
1359
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1135
1360
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1136
1361
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1137
1362
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1138
1363
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1139
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
 
1364
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1365
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1140
1366
        # Remember, each alternative MUST END IN *, to match a version number.
1141
1367
                ;;
1142
1368
        -qnx*)
1154
1380
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1155
1381
                ;;
1156
1382
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1157
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1383
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1158
1384
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1159
1385
                ;;
1160
1386
        -mac*)
1161
1387
                os=`echo $os | sed -e 's|mac|macos|'`
1162
1388
                ;;
 
1389
        -linux-dietlibc)
 
1390
                os=-linux-dietlibc
 
1391
                ;;
1163
1392
        -linux*)
1164
1393
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1165
1394
                ;;
1172
1401
        -opened*)
1173
1402
                os=-openedition
1174
1403
                ;;
 
1404
        -os400*)
 
1405
                os=-os400
 
1406
                ;;
1175
1407
        -wince*)
1176
1408
                os=-wince
1177
1409
                ;;
1193
1425
        -atheos*)
1194
1426
                os=-atheos
1195
1427
                ;;
 
1428
        -syllable*)
 
1429
                os=-syllable
 
1430
                ;;
1196
1431
        -386bsd)
1197
1432
                os=-bsd
1198
1433
                ;;
1215
1450
        -sinix*)
1216
1451
                os=-sysv4
1217
1452
                ;;
 
1453
        -tpf*)
 
1454
                os=-tpf
 
1455
                ;;
1218
1456
        -triton*)
1219
1457
                os=-sysv3
1220
1458
                ;;
1251
1489
        -kaos*)
1252
1490
                os=-kaos
1253
1491
                ;;
 
1492
        -zvmoe)
 
1493
                os=-zvmoe
 
1494
                ;;
 
1495
        -dicos*)
 
1496
                os=-dicos
 
1497
                ;;
 
1498
        -nacl*)
 
1499
                ;;
1254
1500
        -none)
1255
1501
                ;;
1256
1502
        *)
1273
1519
# system, and we'll never get to this point.
1274
1520
 
1275
1521
case $basic_machine in
 
1522
        score-*)
 
1523
                os=-elf
 
1524
                ;;
 
1525
        spu-*)
 
1526
                os=-elf
 
1527
                ;;
1276
1528
        *-acorn)
1277
1529
                os=-riscix1.2
1278
1530
                ;;
1285
1537
        c4x-* | tic4x-*)
1286
1538
                os=-coff
1287
1539
                ;;
 
1540
        tic54x-*)
 
1541
                os=-coff
 
1542
                ;;
 
1543
        tic55x-*)
 
1544
                os=-coff
 
1545
                ;;
 
1546
        tic6x-*)
 
1547
                os=-coff
 
1548
                ;;
1288
1549
        # This must come before the *-dec entry.
1289
1550
        pdp10-*)
1290
1551
                os=-tops20
1303
1564
                ;;
1304
1565
        m68000-sun)
1305
1566
                os=-sunos3
1306
 
                # This also exists in the configure program, but was not the
1307
 
                # default.
1308
 
                # os=-sunos4
1309
1567
                ;;
1310
1568
        m68*-cisco)
1311
1569
                os=-aout
1312
1570
                ;;
 
1571
        mep-*)
 
1572
                os=-elf
 
1573
                ;;
1313
1574
        mips*-cisco)
1314
1575
                os=-elf
1315
1576
                ;;
1328
1589
        *-be)
1329
1590
                os=-beos
1330
1591
                ;;
 
1592
        *-haiku)
 
1593
                os=-haiku
 
1594
                ;;
1331
1595
        *-ibm)
1332
1596
                os=-aix
1333
1597
                ;;
 
1598
        *-knuth)
 
1599
                os=-mmixware
 
1600
                ;;
1334
1601
        *-wec)
1335
1602
                os=-proelf
1336
1603
                ;;
1433
1700
                        -sunos*)
1434
1701
                                vendor=sun
1435
1702
                                ;;
1436
 
                        -aix*)
 
1703
                        -cnk*|-aix*)
1437
1704
                                vendor=ibm
1438
1705
                                ;;
1439
1706
                        -beos*)
1463
1730
                        -mvs* | -opened*)
1464
1731
                                vendor=ibm
1465
1732
                                ;;
 
1733
                        -os400*)
 
1734
                                vendor=ibm
 
1735
                                ;;
1466
1736
                        -ptx*)
1467
1737
                                vendor=sequent
1468
1738
                                ;;
 
1739
                        -tpf*)
 
1740
                                vendor=ibm
 
1741
                                ;;
1469
1742
                        -vxsim* | -vxworks* | -windiss*)
1470
1743
                                vendor=wrs
1471
1744
                                ;;
1490
1763
esac
1491
1764
 
1492
1765
echo $basic_machine$os
1493
 
exit 0
 
1766
exit
1494
1767
 
1495
1768
# Local variables:
1496
1769
# eval: (add-hook 'write-file-hooks 'time-stamp)