~ubuntu-branches/ubuntu/raring/findutils/raring

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2005-07-04 11:37:37 UTC
  • mto: (11.1.1 lenny) (1.1.10 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050704113737-oxfumqxsqgfz5gay
Tags: upstream-4.2.22
ImportĀ upstreamĀ versionĀ 4.2.22

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# Configuration validation subroutine script, version 1.1.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
4
 
#   Free Software Foundation, Inc.
 
2
# Configuration validation subroutine script.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
5
 
6
 
version='2000-11-02'
 
6
timestamp='2005-04-22'
7
7
 
8
8
# This file is (in principle) common to ALL GNU software.
9
9
# The presence of a machine in this file suggests that SOME GNU software
21
21
#
22
22
# You should have received a copy of the GNU General Public License
23
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.
 
24
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
25
# Boston, MA 02110-1301, USA.
26
26
 
27
27
# As a special exception to the GNU General Public License, if you
28
28
# distribute this file as part of a program that contains a
29
29
# configuration script generated by Autoconf, you may include it under
30
30
# the same distribution terms that you use for the rest of that program.
31
31
 
32
 
# Please send patches to <config-patches@gnu.org>.
 
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
 
33
# diff and a properly formatted ChangeLog entry.
33
34
#
34
35
# Configuration subroutine to validate and canonicalize a configuration type.
35
36
# Supply the specified configuration type as an argument.
60
61
Canonicalize a configuration name.
61
62
 
62
63
Operation modes:
63
 
  -h, --help               print this help, then exit
64
 
  -V, --version            print version number, then exit"
 
64
  -h, --help         print this help, then exit
 
65
  -t, --time-stamp   print date of last modification, then exit
 
66
  -v, --version      print version number, then exit
 
67
 
 
68
Report bugs and patches to <config-patches@gnu.org>."
 
69
 
 
70
version="\
 
71
GNU config.sub ($timestamp)
 
72
 
 
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
74
Free Software Foundation, Inc.
 
75
 
 
76
This is free software; see the source for copying conditions.  There is NO
 
77
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
65
78
 
66
79
help="
67
80
Try \`$me --help' for more information."
68
81
 
69
82
# Parse command line
70
83
while test $# -gt 0 ; do
71
 
  case "$1" in
72
 
    --version | --vers* | -V )
 
84
  case $1 in
 
85
    --time-stamp | --time* | -t )
 
86
       echo "$timestamp" ; exit 0 ;;
 
87
    --version | -v )
73
88
       echo "$version" ; exit 0 ;;
74
89
    --help | --h* | -h )
75
90
       echo "$usage"; exit 0 ;;
78
93
    - ) # Use stdin as input.
79
94
       break ;;
80
95
    -* )
81
 
       exec >&2
82
 
       echo "$me: invalid option $1"
83
 
       echo "$help"
 
96
       echo "$me: invalid option $1$help"
84
97
       exit 1 ;;
85
98
 
86
99
    *local*)
105
118
# Here we must recognize all the valid KERNEL-OS combinations.
106
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
107
120
case $maybe_os in
108
 
  nto-qnx* | linux-gnu* | storm-chaos*)
 
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*)
109
123
    os=-$maybe_os
110
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
111
125
    ;;
131
145
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
132
146
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
133
147
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
134
 
        -apple | -axis)
 
148
        -apple | -axis | -knuth | -cray)
135
149
                os=
136
150
                basic_machine=$1
137
151
                ;;
211
225
case $basic_machine in
212
226
        # Recognize the basic CPU types without company name.
213
227
        # Some are omitted here because they have special meanings below.
214
 
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm | xscale \
215
 
                | arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \
216
 
                | 580 | i960 | h8300 \
217
 
                | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
218
 
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
219
 
                | hppa64 \
220
 
                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
221
 
                | alphaev6[78] \
222
 
                | we32k | ns16k | clipper | i370 | sh | sh[34] \
223
 
                | powerpc | powerpcle \
224
 
                | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
225
 
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
226
 
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
227
 
                | mips64vr5000 | miprs64vr5000el | mcore \
228
 
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
229
 
                | thumb | d10v | d30v | fr30 | avr)
 
228
        1750a | 580 \
 
229
        | a29k \
 
230
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
 
231
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
 
232
        | am33_2.0 \
 
233
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
234
        | bfin \
 
235
        | c4x | clipper \
 
236
        | d10v | d30v | dlx | dsp16xx \
 
237
        | fr30 | frv \
 
238
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
239
        | i370 | i860 | i960 | ia64 \
 
240
        | ip2k | iq2000 \
 
241
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
242
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
243
        | mips16 \
 
244
        | mips64 | mips64el \
 
245
        | mips64vr | mips64vrel \
 
246
        | mips64orion | mips64orionel \
 
247
        | mips64vr4100 | mips64vr4100el \
 
248
        | mips64vr4300 | mips64vr4300el \
 
249
        | mips64vr5000 | mips64vr5000el \
 
250
        | mipsisa32 | mipsisa32el \
 
251
        | mipsisa32r2 | mipsisa32r2el \
 
252
        | mipsisa64 | mipsisa64el \
 
253
        | mipsisa64r2 | mipsisa64r2el \
 
254
        | mipsisa64sb1 | mipsisa64sb1el \
 
255
        | mipsisa64sr71k | mipsisa64sr71kel \
 
256
        | mipstx39 | mipstx39el \
 
257
        | mn10200 | mn10300 \
 
258
        | msp430 \
 
259
        | ns16k | ns32k \
 
260
        | openrisc | or32 \
 
261
        | pdp10 | pdp11 | pj | pjl \
 
262
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
263
        | pyramid \
 
264
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
265
        | sh64 | sh64le \
 
266
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
267
        | sparcv8 | sparcv9 | sparcv9b \
 
268
        | strongarm \
 
269
        | tahoe | thumb | tic4x | tic80 | tron \
 
270
        | v850 | v850e \
 
271
        | we32k \
 
272
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
 
273
        | z8k)
230
274
                basic_machine=$basic_machine-unknown
231
275
                ;;
232
276
        m6811 | m68hc11 | m6812 | m68hc12)
234
278
                basic_machine=$basic_machine-unknown
235
279
                os=-none
236
280
                ;;
237
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
 
281
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
238
282
                ;;
239
283
 
240
284
        # We use `pc' rather than `unknown'
241
285
        # because (1) that's what they normally are, and
242
286
        # (2) the word "unknown" tends to confuse beginning users.
243
 
        i[234567]86 | x86_64)
 
287
        i*86 | x86_64)
244
288
          basic_machine=$basic_machine-pc
245
289
          ;;
246
290
        # Object if more than one company name word.
249
293
                exit 1
250
294
                ;;
251
295
        # Recognize the basic CPU types with company name.
252
 
        # FIXME: clean up the formatting here.
253
 
        vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
254
 
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
255
 
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
256
 
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
257
 
              | xmp-* | ymp-* \
258
 
              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
259
 
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
260
 
              | hppa2.0n-* | hppa64-* \
261
 
              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
262
 
              | alphaev6[78]-* \
263
 
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
264
 
              | clipper-* | orion-* \
265
 
              | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
266
 
              | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
267
 
              | mips64el-* | mips64orion-* | mips64orionel-* \
268
 
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
269
 
              | mipstx39-* | mipstx39el-* | mcore-* \
270
 
              | f301-* | armv*-* | s390-* | s390x-* | sv1-* | t3e-* \
271
 
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
272
 
              | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
273
 
              | bs2000-* | tic54x-* | c54x-* | x86_64-*)
 
296
        580-* \
 
297
        | a29k-* \
 
298
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
 
299
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
 
300
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
301
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
302
        | avr-* \
 
303
        | bfin-* | bs2000-* \
 
304
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
305
        | clipper-* | craynv-* | cydra-* \
 
306
        | d10v-* | d30v-* | dlx-* \
 
307
        | elxsi-* \
 
308
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
309
        | h8300-* | h8500-* \
 
310
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
311
        | i*86-* | i860-* | i960-* | ia64-* \
 
312
        | ip2k-* | iq2000-* \
 
313
        | m32r-* | m32rle-* \
 
314
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 
315
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
316
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
317
        | mips16-* \
 
318
        | mips64-* | mips64el-* \
 
319
        | mips64vr-* | mips64vrel-* \
 
320
        | mips64orion-* | mips64orionel-* \
 
321
        | mips64vr4100-* | mips64vr4100el-* \
 
322
        | mips64vr4300-* | mips64vr4300el-* \
 
323
        | mips64vr5000-* | mips64vr5000el-* \
 
324
        | mipsisa32-* | mipsisa32el-* \
 
325
        | mipsisa32r2-* | mipsisa32r2el-* \
 
326
        | mipsisa64-* | mipsisa64el-* \
 
327
        | mipsisa64r2-* | mipsisa64r2el-* \
 
328
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
329
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
330
        | mipstx39-* | mipstx39el-* \
 
331
        | mmix-* \
 
332
        | msp430-* \
 
333
        | none-* | np1-* | ns16k-* | ns32k-* \
 
334
        | orion-* \
 
335
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
 
336
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
337
        | pyramid-* \
 
338
        | romp-* | rs6000-* \
 
339
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
340
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
341
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
342
        | sparclite-* \
 
343
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
344
        | tahoe-* | thumb-* \
 
345
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
346
        | tron-* \
 
347
        | v850-* | v850e-* | vax-* \
 
348
        | we32k-* \
 
349
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
350
        | xstormy16-* | xtensa-* \
 
351
        | ymp-* \
 
352
        | z8k-*)
274
353
                ;;
275
354
        # Recognize the various machine names and aliases which stand
276
355
        # for a CPU type and a company and sometimes even an OS.
288
367
                basic_machine=a29k-amd
289
368
                os=-udi
290
369
                ;;
 
370
        abacus)
 
371
                basic_machine=abacus-unknown
 
372
                ;;
291
373
        adobe68k)
292
374
                basic_machine=m68010-adobe
293
375
                os=-scout
302
384
                basic_machine=a29k-none
303
385
                os=-bsd
304
386
                ;;
 
387
        amd64)
 
388
                basic_machine=x86_64-pc
 
389
                ;;
 
390
        amd64-*)
 
391
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
392
                ;;
305
393
        amdahl)
306
394
                basic_machine=580-amdahl
307
395
                os=-sysv
333
421
                basic_machine=ns32k-sequent
334
422
                os=-dynix
335
423
                ;;
 
424
        c90)
 
425
                basic_machine=c90-cray
 
426
                os=-unicos
 
427
                ;;
336
428
        convex-c1)
337
429
                basic_machine=c1-convex
338
430
                os=-bsd
353
445
                basic_machine=c38-convex
354
446
                os=-bsd
355
447
                ;;
356
 
        cray | ymp)
357
 
                basic_machine=ymp-cray
358
 
                os=-unicos
359
 
                ;;
360
 
        cray2)
361
 
                basic_machine=cray2-cray
362
 
                os=-unicos
363
 
                ;;
364
 
        [ctj]90-cray)
365
 
                basic_machine=c90-cray
366
 
                os=-unicos
 
448
        cray | j90)
 
449
                basic_machine=j90-cray
 
450
                os=-unicos
 
451
                ;;
 
452
        craynv)
 
453
                basic_machine=craynv-cray
 
454
                os=-unicosmp
 
455
                ;;
 
456
        cr16c)
 
457
                basic_machine=cr16c-unknown
 
458
                os=-elf
367
459
                ;;
368
460
        crds | unos)
369
461
                basic_machine=m68k-crds
370
462
                ;;
 
463
        crisv32 | crisv32-* | etraxfs*)
 
464
                basic_machine=crisv32-axis
 
465
                ;;
371
466
        cris | cris-* | etrax*)
372
467
                basic_machine=cris-axis
373
468
                ;;
 
469
        crx)
 
470
                basic_machine=crx-unknown
 
471
                os=-elf
 
472
                ;;
374
473
        da30 | da30-*)
375
474
                basic_machine=m68k-da30
376
475
                ;;
377
476
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
378
477
                basic_machine=mips-dec
379
478
                ;;
 
479
        decsystem10* | dec10*)
 
480
                basic_machine=pdp10-dec
 
481
                os=-tops10
 
482
                ;;
 
483
        decsystem20* | dec20*)
 
484
                basic_machine=pdp10-dec
 
485
                os=-tops20
 
486
                ;;
380
487
        delta | 3300 | motorola-3300 | motorola-delta \
381
488
              | 3300-motorola | delta-motorola)
382
489
                basic_machine=m68k-motorola
385
492
                basic_machine=m88k-motorola
386
493
                os=-sysv3
387
494
                ;;
 
495
        djgpp)
 
496
                basic_machine=i586-pc
 
497
                os=-msdosdjgpp
 
498
                ;;
388
499
        dpx20 | dpx20-*)
389
500
                basic_machine=rs6000-bull
390
501
                os=-bosx
418
529
                basic_machine=tron-gmicro
419
530
                os=-sysv
420
531
                ;;
 
532
        go32)
 
533
                basic_machine=i386-pc
 
534
                os=-go32
 
535
                ;;
421
536
        h3050r* | hiux*)
422
537
                basic_machine=hppa1.1-hitachi
423
538
                os=-hiuxwe2
493
608
                basic_machine=i370-ibm
494
609
                ;;
495
610
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
496
 
        i[34567]86v32)
 
611
        i*86v32)
497
612
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
498
613
                os=-sysv32
499
614
                ;;
500
 
        i[34567]86v4*)
 
615
        i*86v4*)
501
616
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
502
617
                os=-sysv4
503
618
                ;;
504
 
        i[34567]86v)
 
619
        i*86v)
505
620
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
506
621
                os=-sysv
507
622
                ;;
508
 
        i[34567]86sol2)
 
623
        i*86sol2)
509
624
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
510
625
                os=-solaris2
511
626
                ;;
517
632
                basic_machine=i386-unknown
518
633
                os=-vsta
519
634
                ;;
520
 
        i386-go32 | go32)
521
 
                basic_machine=i386-unknown
522
 
                os=-go32
523
 
                ;;
524
 
        i386-mingw32 | mingw32)
525
 
                basic_machine=i386-unknown
526
 
                os=-mingw32
527
 
                ;;
528
 
        i[34567]86-pw32 | pw32)
529
 
                basic_machine=i586-unknown
530
 
                os=-pw32
531
 
                ;;
532
635
        iris | iris4d)
533
636
                basic_machine=mips-sgi
534
637
                case $os in
554
657
                basic_machine=ns32k-utek
555
658
                os=-sysv
556
659
                ;;
 
660
        mingw32)
 
661
                basic_machine=i386-pc
 
662
                os=-mingw32
 
663
                ;;
557
664
        miniframe)
558
665
                basic_machine=m68000-convergent
559
666
                ;;
561
668
                basic_machine=m68k-atari
562
669
                os=-mint
563
670
                ;;
564
 
        mipsel*-linux*)
565
 
                basic_machine=mipsel-unknown
566
 
                os=-linux-gnu
567
 
                ;;
568
 
        mips*-linux*)
569
 
                basic_machine=mips-unknown
570
 
                os=-linux-gnu
571
 
                ;;
572
671
        mips3*-*)
573
672
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
574
673
                ;;
575
674
        mips3*)
576
675
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
577
676
                ;;
578
 
        mmix*)
579
 
                basic_machine=mmix-knuth
580
 
                os=-mmixware
581
 
                ;;
582
677
        monitor)
583
678
                basic_machine=m68k-rom68k
584
679
                os=-coff
585
680
                ;;
 
681
        morphos)
 
682
                basic_machine=powerpc-unknown
 
683
                os=-morphos
 
684
                ;;
586
685
        msdos)
587
 
                basic_machine=i386-unknown
 
686
                basic_machine=i386-pc
588
687
                os=-msdos
589
688
                ;;
590
689
        mvs)
648
747
                basic_machine=i960-intel
649
748
                os=-mon960
650
749
                ;;
 
750
        nonstopux)
 
751
                basic_machine=mips-compaq
 
752
                os=-nonstopux
 
753
                ;;
651
754
        np1)
652
755
                basic_machine=np1-gould
653
756
                ;;
658
761
                basic_machine=hppa1.1-oki
659
762
                os=-proelf
660
763
                ;;
 
764
        or32 | or32-*)
 
765
                basic_machine=or32-unknown
 
766
                os=-coff
 
767
                ;;
 
768
        os400)
 
769
                basic_machine=powerpc-ibm
 
770
                os=-os400
 
771
                ;;
661
772
        OSE68000 | ose68000)
662
773
                basic_machine=m68000-ericsson
663
774
                os=-ose
680
791
        pbb)
681
792
                basic_machine=m68k-tti
682
793
                ;;
683
 
        pc532 | pc532-*)
 
794
        pc532 | pc532-*)
684
795
                basic_machine=ns32k-pc532
685
796
                ;;
686
 
        pentium | p5 | k5 | k6 | nexen)
 
797
        pentium | p5 | k5 | k6 | nexgen | viac3)
687
798
                basic_machine=i586-pc
688
799
                ;;
689
 
        pentiumpro | p6 | 6x86 | athlon)
690
 
                basic_machine=i686-pc
691
 
                ;;
692
 
        pentiumii | pentium2)
 
800
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
801
                basic_machine=i686-pc
 
802
                ;;
 
803
        pentiumii | pentium2 | pentiumiii | pentium3)
 
804
                basic_machine=i686-pc
 
805
                ;;
 
806
        pentium4)
693
807
                basic_machine=i786-pc
694
808
                ;;
695
 
        pentium-* | p5-* | k5-* | k6-* | nexen-*)
 
809
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
696
810
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
697
811
                ;;
698
812
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
699
813
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
700
814
                ;;
701
 
        pentiumii-* | pentium2-*)
 
815
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
 
816
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
817
                ;;
 
818
        pentium4-*)
702
819
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
703
820
                ;;
704
821
        pn)
705
822
                basic_machine=pn-gould
706
823
                ;;
707
 
        power)  basic_machine=rs6000-ibm
 
824
        power)  basic_machine=power-ibm
708
825
                ;;
709
826
        ppc)    basic_machine=powerpc-unknown
710
 
                ;;
 
827
                ;;
711
828
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
712
829
                ;;
713
830
        ppcle | powerpclittle | ppc-le | powerpc-little)
714
831
                basic_machine=powerpcle-unknown
715
 
                ;;
 
832
                ;;
716
833
        ppcle-* | powerpclittle-*)
717
834
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
718
835
                ;;
 
836
        ppc64)  basic_machine=powerpc64-unknown
 
837
                ;;
 
838
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
839
                ;;
 
840
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
 
841
                basic_machine=powerpc64le-unknown
 
842
                ;;
 
843
        ppc64le-* | powerpc64little-*)
 
844
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
 
845
                ;;
719
846
        ps2)
720
847
                basic_machine=i386-ibm
721
848
                ;;
 
849
        pw32)
 
850
                basic_machine=i586-unknown
 
851
                os=-pw32
 
852
                ;;
722
853
        rom68k)
723
854
                basic_machine=m68k-rom68k
724
855
                os=-coff
729
860
        rtpc | rtpc-*)
730
861
                basic_machine=romp-ibm
731
862
                ;;
 
863
        s390 | s390-*)
 
864
                basic_machine=s390-ibm
 
865
                ;;
 
866
        s390x | s390x-*)
 
867
                basic_machine=s390x-ibm
 
868
                ;;
732
869
        sa29200)
733
870
                basic_machine=a29k-amd
734
871
                os=-udi
735
872
                ;;
 
873
        sb1)
 
874
                basic_machine=mipsisa64sb1-unknown
 
875
                ;;
 
876
        sb1el)
 
877
                basic_machine=mipsisa64sb1el-unknown
 
878
                ;;
 
879
        sei)
 
880
                basic_machine=mips-sei
 
881
                os=-seiux
 
882
                ;;
736
883
        sequent)
737
884
                basic_machine=i386-sequent
738
885
                ;;
740
887
                basic_machine=sh-hitachi
741
888
                os=-hms
742
889
                ;;
743
 
        sparclite-wrs)
 
890
        sh64)
 
891
                basic_machine=sh64-unknown
 
892
                ;;
 
893
        sparclite-wrs | simso-wrs)
744
894
                basic_machine=sparclite-wrs
745
895
                os=-vxworks
746
896
                ;;
807
957
                os=-dynix
808
958
                ;;
809
959
        t3e)
810
 
                basic_machine=t3e-cray
 
960
                basic_machine=alphaev5-cray
 
961
                os=-unicos
 
962
                ;;
 
963
        t90)
 
964
                basic_machine=t90-cray
811
965
                os=-unicos
812
966
                ;;
813
967
        tic54x | c54x*)
814
968
                basic_machine=tic54x-unknown
815
969
                os=-coff
816
970
                ;;
 
971
        tic55x | c55x*)
 
972
                basic_machine=tic55x-unknown
 
973
                os=-coff
 
974
                ;;
 
975
        tic6x | c6x*)
 
976
                basic_machine=tic6x-unknown
 
977
                os=-coff
 
978
                ;;
817
979
        tx39)
818
980
                basic_machine=mipstx39-unknown
819
981
                ;;
820
982
        tx39el)
821
983
                basic_machine=mipstx39el-unknown
822
984
                ;;
 
985
        toad1)
 
986
                basic_machine=pdp10-xkl
 
987
                os=-tops20
 
988
                ;;
823
989
        tower | tower-32)
824
990
                basic_machine=m68k-ncr
825
991
                ;;
 
992
        tpf)
 
993
                basic_machine=s390x-ibm
 
994
                os=-tpf
 
995
                ;;
826
996
        udi29k)
827
997
                basic_machine=a29k-amd
828
998
                os=-udi
844
1014
                os=-vms
845
1015
                ;;
846
1016
        vpp*|vx|vx-*)
847
 
               basic_machine=f301-fujitsu
848
 
               ;;
 
1017
                basic_machine=f301-fujitsu
 
1018
                ;;
849
1019
        vxworks960)
850
1020
                basic_machine=i960-wrs
851
1021
                os=-vxworks
866
1036
                basic_machine=hppa1.1-winbond
867
1037
                os=-proelf
868
1038
                ;;
869
 
        xmp)
870
 
                basic_machine=xmp-cray
871
 
                os=-unicos
 
1039
        xbox)
 
1040
                basic_machine=i686-pc
 
1041
                os=-mingw32
872
1042
                ;;
873
 
        xps | xps100)
 
1043
        xps | xps100)
874
1044
                basic_machine=xps100-honeywell
875
1045
                ;;
 
1046
        ymp)
 
1047
                basic_machine=ymp-cray
 
1048
                os=-unicos
 
1049
                ;;
876
1050
        z8k-*-coff)
877
1051
                basic_machine=z8k-unknown
878
1052
                os=-sim
893
1067
        op60c)
894
1068
                basic_machine=hppa1.1-oki
895
1069
                ;;
896
 
        mips)
897
 
                if [ x$os = x-linux-gnu ]; then
898
 
                        basic_machine=mips-unknown
899
 
                else
900
 
                        basic_machine=mips-mips
901
 
                fi
902
 
                ;;
903
1070
        romp)
904
1071
                basic_machine=romp-ibm
905
1072
                ;;
 
1073
        mmix)
 
1074
                basic_machine=mmix-knuth
 
1075
                ;;
906
1076
        rs6000)
907
1077
                basic_machine=rs6000-ibm
908
1078
                ;;
909
1079
        vax)
910
1080
                basic_machine=vax-dec
911
1081
                ;;
 
1082
        pdp10)
 
1083
                # there are many clones, so DEC is not a safe bet
 
1084
                basic_machine=pdp10-unknown
 
1085
                ;;
912
1086
        pdp11)
913
1087
                basic_machine=pdp11-dec
914
1088
                ;;
915
1089
        we32k)
916
1090
                basic_machine=we32k-att
917
1091
                ;;
918
 
        sh3 | sh4)
 
1092
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
919
1093
                basic_machine=sh-unknown
920
1094
                ;;
921
 
        sparc | sparcv9)
 
1095
        sh64)
 
1096
                basic_machine=sh64-unknown
 
1097
                ;;
 
1098
        sparc | sparcv8 | sparcv9 | sparcv9b)
922
1099
                basic_machine=sparc-sun
923
1100
                ;;
924
 
        cydra)
 
1101
        cydra)
925
1102
                basic_machine=cydra-cydrome
926
1103
                ;;
927
1104
        orion)
936
1113
        pmac | pmac-mpw)
937
1114
                basic_machine=powerpc-apple
938
1115
                ;;
939
 
        c4x*)
940
 
                basic_machine=c4x-none
941
 
                os=-coff
 
1116
        *-unknown)
 
1117
                # Make sure to match an already-canonicalized machine name.
942
1118
                ;;
943
1119
        *)
944
1120
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
992
1168
              | -aos* \
993
1169
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
994
1170
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
995
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
996
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1171
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1172
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1173
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
997
1174
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
998
1175
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
999
1176
              | -chorusos* | -chorusrdb* \
1000
1177
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1001
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1002
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1003
 
              | -openstep* | -oskit* | -conix* | -pw32* | -storm-chaos*)
 
1178
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1179
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 
1180
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 
1181
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1182
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 
1183
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1184
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1004
1185
        # Remember, each alternative MUST END IN *, to match a version number.
1005
1186
                ;;
1006
1187
        -qnx*)
1007
1188
                case $basic_machine in
1008
 
                    x86-* | i[34567]86-*)
 
1189
                    x86-* | i*86-*)
1009
1190
                        ;;
1010
1191
                    *)
1011
1192
                        os=-nto$os
1012
1193
                        ;;
1013
1194
                esac
1014
1195
                ;;
 
1196
        -nto-qnx*)
 
1197
                ;;
1015
1198
        -nto*)
1016
 
                os=-nto-qnx
 
1199
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1017
1200
                ;;
1018
1201
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1019
1202
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1022
1205
        -mac*)
1023
1206
                os=`echo $os | sed -e 's|mac|macos|'`
1024
1207
                ;;
 
1208
        -linux-dietlibc)
 
1209
                os=-linux-dietlibc
 
1210
                ;;
1025
1211
        -linux*)
1026
1212
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1027
1213
                ;;
1034
1220
        -opened*)
1035
1221
                os=-openedition
1036
1222
                ;;
 
1223
        -os400*)
 
1224
                os=-os400
 
1225
                ;;
1037
1226
        -wince*)
1038
1227
                os=-wince
1039
1228
                ;;
1052
1241
        -acis*)
1053
1242
                os=-aos
1054
1243
                ;;
 
1244
        -atheos*)
 
1245
                os=-atheos
 
1246
                ;;
 
1247
        -syllable*)
 
1248
                os=-syllable
 
1249
                ;;
1055
1250
        -386bsd)
1056
1251
                os=-bsd
1057
1252
                ;;
1058
1253
        -ctix* | -uts*)
1059
1254
                os=-sysv
1060
1255
                ;;
 
1256
        -nova*)
 
1257
                os=-rtmk-nova
 
1258
                ;;
1061
1259
        -ns2 )
1062
 
                os=-nextstep2
 
1260
                os=-nextstep2
1063
1261
                ;;
1064
1262
        -nsk*)
1065
1263
                os=-nsk
1071
1269
        -sinix*)
1072
1270
                os=-sysv4
1073
1271
                ;;
 
1272
        -tpf*)
 
1273
                os=-tpf
 
1274
                ;;
1074
1275
        -triton*)
1075
1276
                os=-sysv3
1076
1277
                ;;
1098
1299
        -xenix)
1099
1300
                os=-xenix
1100
1301
                ;;
1101
 
        -*mint | -*MiNT)
1102
 
                os=-mint
 
1302
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1303
                os=-mint
 
1304
                ;;
 
1305
        -aros*)
 
1306
                os=-aros
 
1307
                ;;
 
1308
        -kaos*)
 
1309
                os=-kaos
 
1310
                ;;
 
1311
        -zvmoe)
 
1312
                os=-zvmoe
1103
1313
                ;;
1104
1314
        -none)
1105
1315
                ;;
1132
1342
        arm*-semi)
1133
1343
                os=-aout
1134
1344
                ;;
1135
 
        pdp11-*)
 
1345
    c4x-* | tic4x-*)
 
1346
        os=-coff
 
1347
        ;;
 
1348
        # This must come before the *-dec entry.
 
1349
        pdp10-*)
 
1350
                os=-tops20
 
1351
                ;;
 
1352
        pdp11-*)
1136
1353
                os=-none
1137
1354
                ;;
1138
1355
        *-dec | vax-*)
1159
1376
        mips*-*)
1160
1377
                os=-elf
1161
1378
                ;;
 
1379
        or32-*)
 
1380
                os=-coff
 
1381
                ;;
1162
1382
        *-tti)  # must be before sparc entry or we get the wrong os.
1163
1383
                os=-sysv3
1164
1384
                ;;
1171
1391
        *-ibm)
1172
1392
                os=-aix
1173
1393
                ;;
 
1394
        *-knuth)
 
1395
                os=-mmixware
 
1396
                ;;
1174
1397
        *-wec)
1175
1398
                os=-proelf
1176
1399
                ;;
1222
1445
        *-next)
1223
1446
                os=-nextstep3
1224
1447
                ;;
1225
 
        *-gould)
 
1448
        *-gould)
1226
1449
                os=-sysv
1227
1450
                ;;
1228
 
        *-highlevel)
 
1451
        *-highlevel)
1229
1452
                os=-bsd
1230
1453
                ;;
1231
1454
        *-encore)
1232
1455
                os=-bsd
1233
1456
                ;;
1234
 
        *-sgi)
 
1457
        *-sgi)
1235
1458
                os=-irix
1236
1459
                ;;
1237
 
        *-siemens)
 
1460
        *-siemens)
1238
1461
                os=-sysv4
1239
1462
                ;;
1240
1463
        *-masscomp)
1241
1464
                os=-rtu
1242
1465
                ;;
1243
 
        f301-fujitsu)
 
1466
        f30[01]-fujitsu | f700-fujitsu)
1244
1467
                os=-uxpv
1245
1468
                ;;
1246
1469
        *-rom68k)
1303
1526
                        -mvs* | -opened*)
1304
1527
                                vendor=ibm
1305
1528
                                ;;
 
1529
                        -os400*)
 
1530
                                vendor=ibm
 
1531
                                ;;
1306
1532
                        -ptx*)
1307
1533
                                vendor=sequent
1308
1534
                                ;;
1309
 
                        -vxsim* | -vxworks*)
 
1535
                        -tpf*)
 
1536
                                vendor=ibm
 
1537
                                ;;
 
1538
                        -vxsim* | -vxworks* | -windiss*)
1310
1539
                                vendor=wrs
1311
1540
                                ;;
1312
1541
                        -aux*)
1318
1547
                        -mpw* | -macos*)
1319
1548
                                vendor=apple
1320
1549
                                ;;
1321
 
                        -*mint | -*MiNT)
 
1550
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1322
1551
                                vendor=atari
1323
1552
                                ;;
 
1553
                        -vos*)
 
1554
                                vendor=stratus
 
1555
                                ;;
1324
1556
                esac
1325
1557
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1326
1558
                ;;
1331
1563
 
1332
1564
# Local variables:
1333
1565
# eval: (add-hook 'write-file-hooks 'time-stamp)
1334
 
# time-stamp-start: "version='"
 
1566
# time-stamp-start: "timestamp='"
1335
1567
# time-stamp-format: "%:y-%02m-%02d"
1336
1568
# time-stamp-end: "'"
1337
1569
# End: