~ubuntu-branches/ubuntu/vivid/xemacs21/vivid

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Albin Tonnerre
  • Date: 2008-08-03 00:25:32 UTC
  • mfrom: (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080803002532-jdmsqqf8wp7t0qmu
Tags: 21.4.21-4ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/patches/21_fix_maximation_bug.dpatch:
    + Fix maximation issue, where xemacs21 meant to stay in an infinite loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
4
#   Free Software Foundation, Inc.
5
5
 
6
 
timestamp='2004-06-24'
 
6
timestamp='2001-01-12'
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
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>.  Submit a context
33
 
# diff and a properly formatted ChangeLog entry.
 
32
# Please send patches to <config-patches@gnu.org>.
34
33
#
35
34
# Configuration subroutine to validate and canonicalize a configuration type.
36
35
# Supply the specified configuration type as an argument.
70
69
version="\
71
70
GNU config.sub ($timestamp)
72
71
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
72
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
73
Free Software Foundation, Inc.
75
74
 
76
75
This is free software; see the source for copying conditions.  There is NO
118
117
# Here we must recognize all the valid KERNEL-OS combinations.
119
118
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
119
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*)
 
120
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
123
121
    os=-$maybe_os
124
122
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
123
    ;;
145
143
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146
144
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147
145
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148
 
        -apple | -axis | -knuth | -cray)
 
146
        -apple | -axis)
149
147
                os=
150
148
                basic_machine=$1
151
149
                ;;
159
157
                os=-vxworks
160
158
                basic_machine=$1
161
159
                ;;
162
 
        -chorusos*)
163
 
                os=-chorusos
164
 
                basic_machine=$1
165
 
                ;;
166
 
        -chorusrdb)
167
 
                os=-chorusrdb
168
 
                basic_machine=$1
169
 
                ;;
170
160
        -hiux*)
171
161
                os=-hiuxwe2
172
162
                ;;
225
215
case $basic_machine in
226
216
        # Recognize the basic CPU types without company name.
227
217
        # Some are omitted here because they have special meanings below.
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
 
        | c4x | clipper \
235
 
        | d10v | d30v | dlx | dsp16xx \
236
 
        | fr30 | frv \
237
 
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
 
        | i370 | i860 | i960 | ia64 \
239
 
        | ip2k | iq2000 \
240
 
        | m32r | m32rle | m68000 | m68k | m88k | mcore \
241
 
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
 
        | mips16 \
243
 
        | mips64 | mips64el \
244
 
        | mips64vr | mips64vrel \
245
 
        | mips64orion | mips64orionel \
246
 
        | mips64vr4100 | mips64vr4100el \
247
 
        | mips64vr4300 | mips64vr4300el \
248
 
        | mips64vr5000 | mips64vr5000el \
249
 
        | mipsisa32 | mipsisa32el \
250
 
        | mipsisa32r2 | mipsisa32r2el \
251
 
        | mipsisa64 | mipsisa64el \
252
 
        | mipsisa64r2 | mipsisa64r2el \
253
 
        | mipsisa64sb1 | mipsisa64sb1el \
254
 
        | mipsisa64sr71k | mipsisa64sr71kel \
255
 
        | mipstx39 | mipstx39el \
256
 
        | mn10200 | mn10300 \
257
 
        | msp430 \
258
 
        | ns16k | ns32k \
259
 
        | openrisc | or32 \
260
 
        | pdp10 | pdp11 | pj | pjl \
261
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
 
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264
 
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
266
 
        | strongarm \
267
 
        | tahoe | thumb | tic4x | tic80 | tron \
268
 
        | v850 | v850e \
269
 
        | we32k \
270
 
        | x86 | xscale | xstormy16 | xtensa \
271
 
        | z8k)
 
218
        tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
 
219
                | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
 
220
                | pyramid | mn10200 | mn10300 | tron | a29k \
 
221
                | 580 | i960 | h8300 \
 
222
                | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
 
223
                | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
 
224
                | hppa64 \
 
225
                | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
 
226
                | alphaev6[78] \
 
227
                | we32k | ns16k | clipper | i370 | sh | sh[34] \
 
228
                | powerpc | powerpcle \
 
229
                | 1750a | dsp16xx | pdp10 | pdp11 \
 
230
                | mips16 | mips64 | mipsel | mips64el \
 
231
                | mips64orion | mips64orionel | mipstx39 | mipstx39el \
 
232
                | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
 
233
                | mips64vr5000 | miprs64vr5000el | mcore \
 
234
                | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
 
235
                | thumb | d10v | d30v | fr30 | avr | openrisc)
272
236
                basic_machine=$basic_machine-unknown
273
237
                ;;
274
238
        m6811 | m68hc11 | m6812 | m68hc12)
276
240
                basic_machine=$basic_machine-unknown
277
241
                os=-none
278
242
                ;;
279
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
 
243
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
280
244
                ;;
281
245
 
282
246
        # We use `pc' rather than `unknown'
283
247
        # because (1) that's what they normally are, and
284
248
        # (2) the word "unknown" tends to confuse beginning users.
285
 
        i*86 | x86_64)
 
249
        i[234567]86 | x86_64)
286
250
          basic_machine=$basic_machine-pc
287
251
          ;;
288
252
        # Object if more than one company name word.
291
255
                exit 1
292
256
                ;;
293
257
        # Recognize the basic CPU types with company name.
294
 
        580-* \
295
 
        | a29k-* \
296
 
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
297
 
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
 
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
 
        | avr-* \
301
 
        | bs2000-* \
302
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
 
        | clipper-* | craynv-* | cydra-* \
304
 
        | d10v-* | d30v-* | dlx-* \
305
 
        | elxsi-* \
306
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
307
 
        | h8300-* | h8500-* \
308
 
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
 
        | i*86-* | i860-* | i960-* | ia64-* \
310
 
        | ip2k-* | iq2000-* \
311
 
        | m32r-* | m32rle-* \
312
 
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
 
        | m88110-* | m88k-* | mcore-* \
314
 
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
 
        | mips16-* \
316
 
        | mips64-* | mips64el-* \
317
 
        | mips64vr-* | mips64vrel-* \
318
 
        | mips64orion-* | mips64orionel-* \
319
 
        | mips64vr4100-* | mips64vr4100el-* \
320
 
        | mips64vr4300-* | mips64vr4300el-* \
321
 
        | mips64vr5000-* | mips64vr5000el-* \
322
 
        | mipsisa32-* | mipsisa32el-* \
323
 
        | mipsisa32r2-* | mipsisa32r2el-* \
324
 
        | mipsisa64-* | mipsisa64el-* \
325
 
        | mipsisa64r2-* | mipsisa64r2el-* \
326
 
        | mipsisa64sb1-* | mipsisa64sb1el-* \
327
 
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
 
        | mipstx39-* | mipstx39el-* \
329
 
        | mmix-* \
330
 
        | msp430-* \
331
 
        | none-* | np1-* | ns16k-* | ns32k-* \
332
 
        | orion-* \
333
 
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335
 
        | pyramid-* \
336
 
        | romp-* | rs6000-* \
337
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
338
 
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
340
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
341
 
        | tahoe-* | thumb-* \
342
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
343
 
        | tron-* \
344
 
        | v850-* | v850e-* | vax-* \
345
 
        | we32k-* \
346
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
347
 
        | xtensa-* \
348
 
        | ymp-* \
349
 
        | z8k-*)
 
258
        # FIXME: clean up the formatting here.
 
259
        vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
 
260
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
 
261
              | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
 
262
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
 
263
              | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
 
264
              | xmp-* | ymp-* \
 
265
              | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
 
266
              | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
 
267
              | hppa2.0n-* | hppa64-* \
 
268
              | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
 
269
              | alphaev6[78]-* \
 
270
              | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
 
271
              | clipper-* | orion-* \
 
272
              | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
 
273
              | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
 
274
              | mips64el-* | mips64orion-* | mips64orionel-* \
 
275
              | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
 
276
              | mipstx39-* | mipstx39el-* | mcore-* \
 
277
              | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
 
278
              | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
 
279
              | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
 
280
              | bs2000-* | tic54x-* | c54x-* | x86_64-*)
350
281
                ;;
351
282
        # Recognize the various machine names and aliases which stand
352
283
        # for a CPU type and a company and sometimes even an OS.
364
295
                basic_machine=a29k-amd
365
296
                os=-udi
366
297
                ;;
367
 
        abacus)
368
 
                basic_machine=abacus-unknown
369
 
                ;;
370
298
        adobe68k)
371
299
                basic_machine=m68010-adobe
372
300
                os=-scout
381
309
                basic_machine=a29k-none
382
310
                os=-bsd
383
311
                ;;
384
 
        amd64)
385
 
                basic_machine=x86_64-pc
386
 
                ;;
387
 
        amd64-*)
388
 
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
389
 
                ;;
390
312
        amdahl)
391
313
                basic_machine=580-amdahl
392
314
                os=-sysv
418
340
                basic_machine=ns32k-sequent
419
341
                os=-dynix
420
342
                ;;
421
 
        c90)
422
 
                basic_machine=c90-cray
423
 
                os=-unicos
424
 
                ;;
425
343
        convex-c1)
426
344
                basic_machine=c1-convex
427
345
                os=-bsd
442
360
                basic_machine=c38-convex
443
361
                os=-bsd
444
362
                ;;
445
 
        cray | j90)
446
 
                basic_machine=j90-cray
447
 
                os=-unicos
448
 
                ;;
449
 
        craynv)
450
 
                basic_machine=craynv-cray
451
 
                os=-unicosmp
452
 
                ;;
453
 
        cr16c)
454
 
                basic_machine=cr16c-unknown
455
 
                os=-elf
 
363
        cray | ymp)
 
364
                basic_machine=ymp-cray
 
365
                os=-unicos
 
366
                ;;
 
367
        cray2)
 
368
                basic_machine=cray2-cray
 
369
                os=-unicos
 
370
                ;;
 
371
        [ctj]90-cray)
 
372
                basic_machine=c90-cray
 
373
                os=-unicos
456
374
                ;;
457
375
        crds | unos)
458
376
                basic_machine=m68k-crds
460
378
        cris | cris-* | etrax*)
461
379
                basic_machine=cris-axis
462
380
                ;;
463
 
        crx)
464
 
                basic_machine=crx-unknown
465
 
                os=-elf
466
 
                ;;
467
381
        da30 | da30-*)
468
382
                basic_machine=m68k-da30
469
383
                ;;
470
384
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
471
385
                basic_machine=mips-dec
472
386
                ;;
473
 
        decsystem10* | dec10*)
474
 
                basic_machine=pdp10-dec
475
 
                os=-tops10
476
 
                ;;
477
 
        decsystem20* | dec20*)
478
 
                basic_machine=pdp10-dec
479
 
                os=-tops20
480
 
                ;;
481
387
        delta | 3300 | motorola-3300 | motorola-delta \
482
388
              | 3300-motorola | delta-motorola)
483
389
                basic_machine=m68k-motorola
598
504
                basic_machine=i370-ibm
599
505
                ;;
600
506
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
601
 
        i*86v32)
 
507
        i[34567]86v32)
602
508
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
603
509
                os=-sysv32
604
510
                ;;
605
 
        i*86v4*)
 
511
        i[34567]86v4*)
606
512
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
607
513
                os=-sysv4
608
514
                ;;
609
 
        i*86v)
 
515
        i[34567]86v)
610
516
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
611
517
                os=-sysv
612
518
                ;;
613
 
        i*86sol2)
 
519
        i[34567]86sol2)
614
520
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
615
521
                os=-solaris2
616
522
                ;;
658
564
                basic_machine=m68k-atari
659
565
                os=-mint
660
566
                ;;
 
567
        mipsel*-linux*)
 
568
                basic_machine=mipsel-unknown
 
569
                os=-linux-gnu
 
570
                ;;
 
571
        mips*-linux*)
 
572
                basic_machine=mips-unknown
 
573
                os=-linux-gnu
 
574
                ;;
661
575
        mips3*-*)
662
576
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
663
577
                ;;
664
578
        mips3*)
665
579
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
666
580
                ;;
 
581
        mmix*)
 
582
                basic_machine=mmix-knuth
 
583
                os=-mmixware
 
584
                ;;
667
585
        monitor)
668
586
                basic_machine=m68k-rom68k
669
587
                os=-coff
670
588
                ;;
671
 
        morphos)
672
 
                basic_machine=powerpc-unknown
673
 
                os=-morphos
674
 
                ;;
675
589
        msdos)
676
590
                basic_machine=i386-pc
677
591
                os=-msdos
751
665
                basic_machine=hppa1.1-oki
752
666
                os=-proelf
753
667
                ;;
754
 
        or32 | or32-*)
755
 
                basic_machine=or32-unknown
756
 
                os=-coff
757
 
                ;;
758
 
        os400)
759
 
                basic_machine=powerpc-ibm
760
 
                os=-os400
761
 
                ;;
762
668
        OSE68000 | ose68000)
763
669
                basic_machine=m68000-ericsson
764
670
                os=-ose
781
687
        pbb)
782
688
                basic_machine=m68k-tti
783
689
                ;;
784
 
        pc532 | pc532-*)
 
690
        pc532 | pc532-*)
785
691
                basic_machine=ns32k-pc532
786
692
                ;;
787
 
        pentium | p5 | k5 | k6 | nexgen | viac3)
 
693
        pentium | p5 | k5 | k6 | nexgen)
788
694
                basic_machine=i586-pc
789
695
                ;;
790
 
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
791
 
                basic_machine=i686-pc
792
 
                ;;
793
 
        pentiumii | pentium2 | pentiumiii | pentium3)
794
 
                basic_machine=i686-pc
795
 
                ;;
796
 
        pentium4)
797
 
                basic_machine=i786-pc
798
 
                ;;
799
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
 
696
        pentiumpro | p6 | 6x86 | athlon)
 
697
                basic_machine=i686-pc
 
698
                ;;
 
699
        pentiumii | pentium2)
 
700
                basic_machine=i686-pc
 
701
                ;;
 
702
        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
800
703
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
801
704
                ;;
802
705
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
803
706
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
804
707
                ;;
805
 
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
 
708
        pentiumii-* | pentium2-*)
806
709
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
807
710
                ;;
808
 
        pentium4-*)
809
 
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
810
 
                ;;
811
711
        pn)
812
712
                basic_machine=pn-gould
813
713
                ;;
814
714
        power)  basic_machine=power-ibm
815
715
                ;;
816
716
        ppc)    basic_machine=powerpc-unknown
817
 
                ;;
 
717
                ;;
818
718
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
819
719
                ;;
820
720
        ppcle | powerpclittle | ppc-le | powerpc-little)
821
721
                basic_machine=powerpcle-unknown
822
 
                ;;
 
722
                ;;
823
723
        ppcle-* | powerpclittle-*)
824
724
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
825
725
                ;;
826
 
        ppc64)  basic_machine=powerpc64-unknown
827
 
                ;;
828
 
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
829
 
                ;;
830
 
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
831
 
                basic_machine=powerpc64le-unknown
832
 
                ;;
833
 
        ppc64le-* | powerpc64little-*)
834
 
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
835
 
                ;;
836
726
        ps2)
837
727
                basic_machine=i386-ibm
838
728
                ;;
850
740
        rtpc | rtpc-*)
851
741
                basic_machine=romp-ibm
852
742
                ;;
853
 
        s390 | s390-*)
854
 
                basic_machine=s390-ibm
855
 
                ;;
856
 
        s390x | s390x-*)
857
 
                basic_machine=s390x-ibm
858
 
                ;;
859
743
        sa29200)
860
744
                basic_machine=a29k-amd
861
745
                os=-udi
862
746
                ;;
863
 
        sb1)
864
 
                basic_machine=mipsisa64sb1-unknown
865
 
                ;;
866
 
        sb1el)
867
 
                basic_machine=mipsisa64sb1el-unknown
868
 
                ;;
869
 
        sei)
870
 
                basic_machine=mips-sei
871
 
                os=-seiux
872
 
                ;;
873
747
        sequent)
874
748
                basic_machine=i386-sequent
875
749
                ;;
877
751
                basic_machine=sh-hitachi
878
752
                os=-hms
879
753
                ;;
880
 
        sh64)
881
 
                basic_machine=sh64-unknown
882
 
                ;;
883
 
        sparclite-wrs | simso-wrs)
 
754
        sparclite-wrs)
884
755
                basic_machine=sparclite-wrs
885
756
                os=-vxworks
886
757
                ;;
947
818
                os=-dynix
948
819
                ;;
949
820
        t3e)
950
 
                basic_machine=alphaev5-cray
951
 
                os=-unicos
952
 
                ;;
953
 
        t90)
954
 
                basic_machine=t90-cray
 
821
                basic_machine=t3e-cray
955
822
                os=-unicos
956
823
                ;;
957
824
        tic54x | c54x*)
958
825
                basic_machine=tic54x-unknown
959
826
                os=-coff
960
827
                ;;
961
 
        tic55x | c55x*)
962
 
                basic_machine=tic55x-unknown
963
 
                os=-coff
964
 
                ;;
965
 
        tic6x | c6x*)
966
 
                basic_machine=tic6x-unknown
967
 
                os=-coff
968
 
                ;;
969
828
        tx39)
970
829
                basic_machine=mipstx39-unknown
971
830
                ;;
972
831
        tx39el)
973
832
                basic_machine=mipstx39el-unknown
974
833
                ;;
975
 
        toad1)
976
 
                basic_machine=pdp10-xkl
977
 
                os=-tops20
978
 
                ;;
979
834
        tower | tower-32)
980
835
                basic_machine=m68k-ncr
981
836
                ;;
982
 
        tpf)
983
 
                basic_machine=s390x-ibm
984
 
                os=-tpf
985
 
                ;;
986
837
        udi29k)
987
838
                basic_machine=a29k-amd
988
839
                os=-udi
1004
855
                os=-vms
1005
856
                ;;
1006
857
        vpp*|vx|vx-*)
1007
 
                basic_machine=f301-fujitsu
1008
 
                ;;
 
858
               basic_machine=f301-fujitsu
 
859
               ;;
1009
860
        vxworks960)
1010
861
                basic_machine=i960-wrs
1011
862
                os=-vxworks
1026
877
                basic_machine=hppa1.1-winbond
1027
878
                os=-proelf
1028
879
                ;;
1029
 
        xps | xps100)
 
880
        xmp)
 
881
                basic_machine=xmp-cray
 
882
                os=-unicos
 
883
                ;;
 
884
        xps | xps100)
1030
885
                basic_machine=xps100-honeywell
1031
886
                ;;
1032
 
        ymp)
1033
 
                basic_machine=ymp-cray
1034
 
                os=-unicos
1035
 
                ;;
1036
887
        z8k-*-coff)
1037
888
                basic_machine=z8k-unknown
1038
889
                os=-sim
1053
904
        op60c)
1054
905
                basic_machine=hppa1.1-oki
1055
906
                ;;
 
907
        mips)
 
908
                if [ x$os = x-linux-gnu ]; then
 
909
                        basic_machine=mips-unknown
 
910
                else
 
911
                        basic_machine=mips-mips
 
912
                fi
 
913
                ;;
1056
914
        romp)
1057
915
                basic_machine=romp-ibm
1058
916
                ;;
1059
 
        mmix)
1060
 
                basic_machine=mmix-knuth
1061
 
                ;;
1062
917
        rs6000)
1063
918
                basic_machine=rs6000-ibm
1064
919
                ;;
1075
930
        we32k)
1076
931
                basic_machine=we32k-att
1077
932
                ;;
1078
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
933
        sh3 | sh4)
1079
934
                basic_machine=sh-unknown
1080
935
                ;;
1081
 
        sh64)
1082
 
                basic_machine=sh64-unknown
1083
 
                ;;
1084
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
936
        sparc | sparcv9)
1085
937
                basic_machine=sparc-sun
1086
938
                ;;
1087
 
        cydra)
 
939
        cydra)
1088
940
                basic_machine=cydra-cydrome
1089
941
                ;;
1090
942
        orion)
1099
951
        pmac | pmac-mpw)
1100
952
                basic_machine=powerpc-apple
1101
953
                ;;
1102
 
        *-unknown)
1103
 
                # Make sure to match an already-canonicalized machine name.
 
954
        c4x*)
 
955
                basic_machine=c4x-none
 
956
                os=-coff
1104
957
                ;;
1105
958
        *)
1106
959
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1154
1007
              | -aos* \
1155
1008
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1009
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1158
 
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
 
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1010
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
1011
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1012
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1013
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
 
              | -chorusos* | -chorusrdb* \
1163
1014
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1165
 
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 
1015
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1016
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1166
1017
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
 
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1018
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1171
1019
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1020
                ;;
1173
1021
        -qnx*)
1174
1022
                case $basic_machine in
1175
 
                    x86-* | i*86-*)
 
1023
                    x86-* | i[34567]86-*)
1176
1024
                        ;;
1177
1025
                    *)
1178
1026
                        os=-nto$os
1179
1027
                        ;;
1180
1028
                esac
1181
1029
                ;;
1182
 
        -nto-qnx*)
1183
 
                ;;
1184
1030
        -nto*)
1185
 
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
 
1031
                os=-nto-qnx
1186
1032
                ;;
1187
1033
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
1034
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1191
1037
        -mac*)
1192
1038
                os=`echo $os | sed -e 's|mac|macos|'`
1193
1039
                ;;
1194
 
        -linux-dietlibc)
1195
 
                os=-linux-dietlibc
1196
 
                ;;
1197
1040
        -linux*)
1198
1041
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1199
1042
                ;;
1206
1049
        -opened*)
1207
1050
                os=-openedition
1208
1051
                ;;
1209
 
        -os400*)
1210
 
                os=-os400
1211
 
                ;;
1212
1052
        -wince*)
1213
1053
                os=-wince
1214
1054
                ;;
1227
1067
        -acis*)
1228
1068
                os=-aos
1229
1069
                ;;
1230
 
        -atheos*)
1231
 
                os=-atheos
1232
 
                ;;
1233
 
        -syllable*)
1234
 
                os=-syllable
1235
 
                ;;
1236
1070
        -386bsd)
1237
1071
                os=-bsd
1238
1072
                ;;
1239
1073
        -ctix* | -uts*)
1240
1074
                os=-sysv
1241
1075
                ;;
1242
 
        -nova*)
1243
 
                os=-rtmk-nova
1244
 
                ;;
1245
1076
        -ns2 )
1246
 
                os=-nextstep2
 
1077
                os=-nextstep2
1247
1078
                ;;
1248
1079
        -nsk*)
1249
1080
                os=-nsk
1255
1086
        -sinix*)
1256
1087
                os=-sysv4
1257
1088
                ;;
1258
 
        -tpf*)
1259
 
                os=-tpf
1260
 
                ;;
1261
1089
        -triton*)
1262
1090
                os=-sysv3
1263
1091
                ;;
1285
1113
        -xenix)
1286
1114
                os=-xenix
1287
1115
                ;;
1288
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1289
 
                os=-mint
1290
 
                ;;
1291
 
        -aros*)
1292
 
                os=-aros
1293
 
                ;;
1294
 
        -kaos*)
1295
 
                os=-kaos
 
1116
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1117
                os=-mint
1296
1118
                ;;
1297
1119
        -none)
1298
1120
                ;;
1325
1147
        arm*-semi)
1326
1148
                os=-aout
1327
1149
                ;;
1328
 
    c4x-* | tic4x-*)
1329
 
        os=-coff
1330
 
        ;;
1331
 
        # This must come before the *-dec entry.
1332
1150
        pdp10-*)
1333
1151
                os=-tops20
1334
1152
                ;;
1335
 
        pdp11-*)
 
1153
        pdp11-*)
1336
1154
                os=-none
1337
1155
                ;;
1338
1156
        *-dec | vax-*)
1359
1177
        mips*-*)
1360
1178
                os=-elf
1361
1179
                ;;
1362
 
        or32-*)
1363
 
                os=-coff
1364
 
                ;;
1365
1180
        *-tti)  # must be before sparc entry or we get the wrong os.
1366
1181
                os=-sysv3
1367
1182
                ;;
1374
1189
        *-ibm)
1375
1190
                os=-aix
1376
1191
                ;;
1377
 
        *-knuth)
1378
 
                os=-mmixware
1379
 
                ;;
1380
1192
        *-wec)
1381
1193
                os=-proelf
1382
1194
                ;;
1428
1240
        *-next)
1429
1241
                os=-nextstep3
1430
1242
                ;;
1431
 
        *-gould)
 
1243
        *-gould)
1432
1244
                os=-sysv
1433
1245
                ;;
1434
 
        *-highlevel)
 
1246
        *-highlevel)
1435
1247
                os=-bsd
1436
1248
                ;;
1437
1249
        *-encore)
1438
1250
                os=-bsd
1439
1251
                ;;
1440
 
        *-sgi)
 
1252
        *-sgi)
1441
1253
                os=-irix
1442
1254
                ;;
1443
 
        *-siemens)
 
1255
        *-siemens)
1444
1256
                os=-sysv4
1445
1257
                ;;
1446
1258
        *-masscomp)
1509
1321
                        -mvs* | -opened*)
1510
1322
                                vendor=ibm
1511
1323
                                ;;
1512
 
                        -os400*)
1513
 
                                vendor=ibm
1514
 
                                ;;
1515
1324
                        -ptx*)
1516
1325
                                vendor=sequent
1517
1326
                                ;;
1518
 
                        -tpf*)
1519
 
                                vendor=ibm
1520
 
                                ;;
1521
 
                        -vxsim* | -vxworks* | -windiss*)
 
1327
                        -vxsim* | -vxworks*)
1522
1328
                                vendor=wrs
1523
1329
                                ;;
1524
1330
                        -aux*)
1533
1339
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1534
1340
                                vendor=atari
1535
1341
                                ;;
1536
 
                        -vos*)
1537
 
                                vendor=stratus
1538
 
                                ;;
1539
1342
                esac
1540
1343
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1541
1344
                ;;