~ubuntu-branches/ubuntu/natty/ibm-3270/natty

« back to all changes in this revision

Viewing changes to s3270/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2009-12-14 11:48:53 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091214114853-mywixml32hct9jr1
Tags: 3.3.10ga4-2
* Fix section to match override.
* Use debhelper compat level 7.
* Use 3.0 (quilt) source format.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2002-03-07'
 
7
timestamp='2008-01-16'
7
8
 
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
24
# along with this program; if not, write to the Free Software
24
 
# Foundation, Inc., 59 Temple Place - Suite 330,
25
 
# Boston, MA 02111-1307, USA.
26
 
 
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
 
27
#
27
28
# As a special exception to the GNU General Public License, if you
28
29
# distribute this file as part of a program that contains a
29
30
# configuration script generated by Autoconf, you may include it under
30
31
# the same distribution terms that you use for the rest of that program.
31
32
 
 
33
 
32
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
35
# diff and a properly formatted ChangeLog entry.
34
36
#
70
72
version="\
71
73
GNU config.sub ($timestamp)
72
74
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
 
Free Software Foundation, Inc.
 
75
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
76
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
75
77
 
76
78
This is free software; see the source for copying conditions.  There is NO
77
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
85
while test $# -gt 0 ; do
84
86
  case $1 in
85
87
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
88
       echo "$timestamp" ; exit ;;
87
89
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
90
       echo "$version" ; exit ;;
89
91
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
92
       echo "$usage"; exit ;;
91
93
    -- )     # Stop option processing
92
94
       shift; break ;;
93
95
    - ) # Use stdin as input.
99
101
    *local*)
100
102
       # First pass through any local machine types.
101
103
       echo $1
102
 
       exit 0;;
 
104
       exit ;;
103
105
 
104
106
    * )
105
107
       break ;;
118
120
# Here we must recognize all the valid KERNEL-OS combinations.
119
121
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
122
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
 
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
125
  storm-chaos* | os2-emx* | rtmk-nova*)
122
126
    os=-$maybe_os
123
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
128
    ;;
144
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
 
        -apple | -axis)
 
151
        -apple | -axis | -knuth | -cray)
148
152
                os=
149
153
                basic_machine=$1
150
154
                ;;
169
173
        -hiux*)
170
174
                os=-hiuxwe2
171
175
                ;;
 
176
        -sco6)
 
177
                os=-sco5v6
 
178
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
179
                ;;
172
180
        -sco5)
173
181
                os=-sco3.2v5
174
182
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185
193
                # Don't forget version if it is 3.2v4 or newer.
186
194
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
195
                ;;
 
196
        -sco5v6*)
 
197
                # Don't forget version if it is 3.2v4 or newer.
 
198
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
199
                ;;
188
200
        -sco*)
189
201
                os=-sco3.2v2
190
202
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
228
240
        | a29k \
229
241
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
242
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
243
        | am33_2.0 \
 
244
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
245
        | bfin \
232
246
        | c4x | clipper \
233
 
        | d10v | d30v | dsp16xx \
234
 
        | fr30 \
 
247
        | d10v | d30v | dlx | dsp16xx \
 
248
        | fido | fr30 | frv \
235
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
250
        | i370 | i860 | i960 | ia64 \
237
 
        | m32r | m68000 | m68k | m88k | mcore \
238
 
        | mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
239
 
        | mips64vr4100 | mips64vr4100el | mips64vr4300 \
240
 
        | mips64vr4300el | mips64vr5000 | mips64vr5000el \
241
 
        | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
242
 
        | mipsisa32 | mipsisa64 \
 
251
        | ip2k | iq2000 \
 
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
253
        | maxq | mb | microblaze | mcore | mep \
 
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
 
255
        | mips16 \
 
256
        | mips64 | mips64el \
 
257
        | mips64vr | mips64vrel \
 
258
        | mips64orion | mips64orionel \
 
259
        | mips64vr4100 | mips64vr4100el \
 
260
        | mips64vr4300 | mips64vr4300el \
 
261
        | mips64vr5000 | mips64vr5000el \
 
262
        | mips64vr5900 | mips64vr5900el \
 
263
        | mipsisa32 | mipsisa32el \
 
264
        | mipsisa32r2 | mipsisa32r2el \
 
265
        | mipsisa64 | mipsisa64el \
 
266
        | mipsisa64r2 | mipsisa64r2el \
 
267
        | mipsisa64sb1 | mipsisa64sb1el \
 
268
        | mipsisa64sr71k | mipsisa64sr71kel \
 
269
        | mipstx39 | mipstx39el \
243
270
        | mn10200 | mn10300 \
 
271
        | mt \
 
272
        | msp430 \
 
273
        | nios | nios2 \
244
274
        | ns16k | ns32k \
245
 
        | openrisc | or32 \
 
275
        | or32 \
246
276
        | pdp10 | pdp11 | pj | pjl \
247
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
248
278
        | pyramid \
249
 
        | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
250
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
251
 
        | strongarm \
252
 
        | tahoe | thumb | tic80 | tron \
 
279
        | score \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
281
        | sh64 | sh64le \
 
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
284
        | spu | strongarm \
 
285
        | tahoe | thumb | tic4x | tic80 | tron \
253
286
        | v850 | v850e \
254
287
        | we32k \
255
 
        | x86 | xscale | xstormy16 | xtensa \
 
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
256
289
        | z8k)
257
290
                basic_machine=$basic_machine-unknown
258
291
                ;;
263
296
                ;;
264
297
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
265
298
                ;;
 
299
        ms1)
 
300
                basic_machine=mt-unknown
 
301
                ;;
266
302
 
267
303
        # We use `pc' rather than `unknown'
268
304
        # because (1) that's what they normally are, and
281
317
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
282
318
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
283
319
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
284
 
        | arm-*  | armbe-* | armle-* | armv*-* \
285
 
        | avr-* \
286
 
        | bs2000-* \
287
 
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
288
 
        | clipper-* | cydra-* \
289
 
        | d10v-* | d30v-* \
 
320
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
 
321
        | avr-* | avr32-* \
 
322
        | bfin-* | bs2000-* \
 
323
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
324
        | clipper-* | craynv-* | cydra-* \
 
325
        | d10v-* | d30v-* | dlx-* \
290
326
        | elxsi-* \
291
 
        | f30[01]-* | f700-* | fr30-* | fx80-* \
 
327
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
292
328
        | h8300-* | h8500-* \
293
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
294
330
        | i*86-* | i860-* | i960-* | ia64-* \
295
 
        | m32r-* \
 
331
        | ip2k-* | iq2000-* \
 
332
        | m32c-* | m32r-* | m32rle-* \
296
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
297
 
        | m88110-* | m88k-* | mcore-* \
298
 
        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
299
 
        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
300
 
        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
301
 
        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 
336
        | mips16-* \
 
337
        | mips64-* | mips64el-* \
 
338
        | mips64vr-* | mips64vrel-* \
 
339
        | mips64orion-* | mips64orionel-* \
 
340
        | mips64vr4100-* | mips64vr4100el-* \
 
341
        | mips64vr4300-* | mips64vr4300el-* \
 
342
        | mips64vr5000-* | mips64vr5000el-* \
 
343
        | mips64vr5900-* | mips64vr5900el-* \
 
344
        | mipsisa32-* | mipsisa32el-* \
 
345
        | mipsisa32r2-* | mipsisa32r2el-* \
 
346
        | mipsisa64-* | mipsisa64el-* \
 
347
        | mipsisa64r2-* | mipsisa64r2el-* \
 
348
        | mipsisa64sb1-* | mipsisa64sb1el-* \
 
349
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
350
        | mipstx39-* | mipstx39el-* \
 
351
        | mmix-* \
 
352
        | mt-* \
 
353
        | msp430-* \
 
354
        | nios-* | nios2-* \
302
355
        | none-* | np1-* | ns16k-* | ns32k-* \
303
356
        | orion-* \
304
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
305
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
306
359
        | pyramid-* \
307
360
        | romp-* | rs6000-* \
308
 
        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
309
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
310
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
311
 
        | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
 
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
364
        | sparclite-* \
 
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
366
        | tahoe-* | thumb-* \
 
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
368
        | tron-* \
312
369
        | v850-* | v850e-* | vax-* \
313
370
        | we32k-* \
314
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
315
 
        | xtensa-* \
 
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
372
        | xstormy16-* | xtensa*-* \
316
373
        | ymp-* \
317
374
        | z8k-*)
318
375
                ;;
 
376
        # Recognize the basic CPU types without company name, with glob match.
 
377
        xtensa*)
 
378
                basic_machine=$basic_machine-unknown
 
379
                ;;
319
380
        # Recognize the various machine names and aliases which stand
320
381
        # for a CPU type and a company and sometimes even an OS.
321
382
        386bsd)
332
393
                basic_machine=a29k-amd
333
394
                os=-udi
334
395
                ;;
 
396
        abacus)
 
397
                basic_machine=abacus-unknown
 
398
                ;;
335
399
        adobe68k)
336
400
                basic_machine=m68010-adobe
337
401
                os=-scout
346
410
                basic_machine=a29k-none
347
411
                os=-bsd
348
412
                ;;
 
413
        amd64)
 
414
                basic_machine=x86_64-pc
 
415
                ;;
 
416
        amd64-*)
 
417
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
418
                ;;
349
419
        amdahl)
350
420
                basic_machine=580-amdahl
351
421
                os=-sysv
377
447
                basic_machine=ns32k-sequent
378
448
                os=-dynix
379
449
                ;;
 
450
        blackfin)
 
451
                basic_machine=bfin-unknown
 
452
                os=-linux
 
453
                ;;
 
454
        blackfin-*)
 
455
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
456
                os=-linux
 
457
                ;;
380
458
        c90)
381
459
                basic_machine=c90-cray
382
460
                os=-unicos
405
483
                basic_machine=j90-cray
406
484
                os=-unicos
407
485
                ;;
 
486
        craynv)
 
487
                basic_machine=craynv-cray
 
488
                os=-unicosmp
 
489
                ;;
 
490
        cr16)
 
491
                basic_machine=cr16-unknown
 
492
                os=-elf
 
493
                ;;
408
494
        crds | unos)
409
495
                basic_machine=m68k-crds
410
496
                ;;
 
497
        crisv32 | crisv32-* | etraxfs*)
 
498
                basic_machine=crisv32-axis
 
499
                ;;
411
500
        cris | cris-* | etrax*)
412
501
                basic_machine=cris-axis
413
502
                ;;
 
503
        crx)
 
504
                basic_machine=crx-unknown
 
505
                os=-elf
 
506
                ;;
414
507
        da30 | da30-*)
415
508
                basic_machine=m68k-da30
416
509
                ;;
433
526
                basic_machine=m88k-motorola
434
527
                os=-sysv3
435
528
                ;;
 
529
        djgpp)
 
530
                basic_machine=i586-pc
 
531
                os=-msdosdjgpp
 
532
                ;;
436
533
        dpx20 | dpx20-*)
437
534
                basic_machine=rs6000-bull
438
535
                os=-bosx
583
680
                basic_machine=m68k-isi
584
681
                os=-sysv
585
682
                ;;
 
683
        m68knommu)
 
684
                basic_machine=m68k-unknown
 
685
                os=-linux
 
686
                ;;
 
687
        m68knommu-*)
 
688
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
689
                os=-linux
 
690
                ;;
586
691
        m88k-omron*)
587
692
                basic_machine=m88k-omron
588
693
                ;;
598
703
                basic_machine=i386-pc
599
704
                os=-mingw32
600
705
                ;;
 
706
        mingw32ce)
 
707
                basic_machine=arm-unknown
 
708
                os=-mingw32ce
 
709
                ;;
601
710
        miniframe)
602
711
                basic_machine=m68000-convergent
603
712
                ;;
611
720
        mips3*)
612
721
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
613
722
                ;;
614
 
        mmix*)
615
 
                basic_machine=mmix-knuth
616
 
                os=-mmixware
617
 
                ;;
618
723
        monitor)
619
724
                basic_machine=m68k-rom68k
620
725
                os=-coff
627
732
                basic_machine=i386-pc
628
733
                os=-msdos
629
734
                ;;
 
735
        ms1-*)
 
736
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
737
                ;;
630
738
        mvs)
631
739
                basic_machine=i370-ibm
632
740
                os=-mvs
702
810
                basic_machine=hppa1.1-oki
703
811
                os=-proelf
704
812
                ;;
705
 
        or32 | or32-*)
 
813
        openrisc | openrisc-*)
706
814
                basic_machine=or32-unknown
707
 
                os=-coff
 
815
                ;;
 
816
        os400)
 
817
                basic_machine=powerpc-ibm
 
818
                os=-os400
708
819
                ;;
709
820
        OSE68000 | ose68000)
710
821
                basic_machine=m68000-ericsson
722
833
                basic_machine=i860-intel
723
834
                os=-osf
724
835
                ;;
 
836
        parisc)
 
837
                basic_machine=hppa-unknown
 
838
                os=-linux
 
839
                ;;
 
840
        parisc-*)
 
841
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
842
                os=-linux
 
843
                ;;
725
844
        pbd)
726
845
                basic_machine=sparc-tti
727
846
                ;;
728
847
        pbb)
729
848
                basic_machine=m68k-tti
730
849
                ;;
731
 
        pc532 | pc532-*)
 
850
        pc532 | pc532-*)
732
851
                basic_machine=ns32k-pc532
733
852
                ;;
 
853
        pc98)
 
854
                basic_machine=i386-pc
 
855
                ;;
 
856
        pc98-*)
 
857
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
858
                ;;
734
859
        pentium | p5 | k5 | k6 | nexgen | viac3)
735
860
                basic_machine=i586-pc
736
861
                ;;
737
 
        pentiumpro | p6 | 6x86 | athlon)
738
 
                basic_machine=i686-pc
739
 
                ;;
740
 
        pentiumii | pentium2)
741
 
                basic_machine=i686-pc
 
862
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
863
                basic_machine=i686-pc
 
864
                ;;
 
865
        pentiumii | pentium2 | pentiumiii | pentium3)
 
866
                basic_machine=i686-pc
 
867
                ;;
 
868
        pentium4)
 
869
                basic_machine=i786-pc
742
870
                ;;
743
871
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
744
872
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
746
874
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
747
875
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
748
876
                ;;
749
 
        pentiumii-* | pentium2-*)
 
877
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
750
878
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
751
879
                ;;
 
880
        pentium4-*)
 
881
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
882
                ;;
752
883
        pn)
753
884
                basic_machine=pn-gould
754
885
                ;;
755
886
        power)  basic_machine=power-ibm
756
887
                ;;
757
888
        ppc)    basic_machine=powerpc-unknown
758
 
                ;;
 
889
                ;;
759
890
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
760
891
                ;;
761
892
        ppcle | powerpclittle | ppc-le | powerpc-little)
762
893
                basic_machine=powerpcle-unknown
763
 
                ;;
 
894
                ;;
764
895
        ppcle-* | powerpclittle-*)
765
896
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
766
897
                ;;
767
898
        ppc64)  basic_machine=powerpc64-unknown
768
 
                ;;
 
899
                ;;
769
900
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
770
901
                ;;
771
902
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
772
903
                basic_machine=powerpc64le-unknown
773
 
                ;;
 
904
                ;;
774
905
        ppc64le-* | powerpc64little-*)
775
906
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
776
907
                ;;
781
912
                basic_machine=i586-unknown
782
913
                os=-pw32
783
914
                ;;
 
915
        rdos)
 
916
                basic_machine=i386-pc
 
917
                os=-rdos
 
918
                ;;
784
919
        rom68k)
785
920
                basic_machine=m68k-rom68k
786
921
                os=-coff
801
936
                basic_machine=a29k-amd
802
937
                os=-udi
803
938
                ;;
 
939
        sb1)
 
940
                basic_machine=mipsisa64sb1-unknown
 
941
                ;;
 
942
        sb1el)
 
943
                basic_machine=mipsisa64sb1el-unknown
 
944
                ;;
 
945
        sde)
 
946
                basic_machine=mipsisa32-sde
 
947
                os=-elf
 
948
                ;;
 
949
        sei)
 
950
                basic_machine=mips-sei
 
951
                os=-seiux
 
952
                ;;
804
953
        sequent)
805
954
                basic_machine=i386-sequent
806
955
                ;;
808
957
                basic_machine=sh-hitachi
809
958
                os=-hms
810
959
                ;;
 
960
        sh5el)
 
961
                basic_machine=sh5le-unknown
 
962
                ;;
 
963
        sh64)
 
964
                basic_machine=sh64-unknown
 
965
                ;;
811
966
        sparclite-wrs | simso-wrs)
812
967
                basic_machine=sparclite-wrs
813
968
                os=-vxworks
866
1021
        sun386 | sun386i | roadrunner)
867
1022
                basic_machine=i386-sun
868
1023
                ;;
869
 
        sv1)
 
1024
        sv1)
870
1025
                basic_machine=sv1-cray
871
1026
                os=-unicos
872
1027
                ;;
874
1029
                basic_machine=i386-sequent
875
1030
                os=-dynix
876
1031
                ;;
877
 
        t3d)
878
 
                basic_machine=alpha-cray
879
 
                os=-unicos
880
 
                ;;
881
1032
        t3e)
882
1033
                basic_machine=alphaev5-cray
883
1034
                os=-unicos
890
1041
                basic_machine=tic54x-unknown
891
1042
                os=-coff
892
1043
                ;;
 
1044
        tic55x | c55x*)
 
1045
                basic_machine=tic55x-unknown
 
1046
                os=-coff
 
1047
                ;;
 
1048
        tic6x | c6x*)
 
1049
                basic_machine=tic6x-unknown
 
1050
                os=-coff
 
1051
                ;;
 
1052
        tile*)
 
1053
                basic_machine=tile-unknown
 
1054
                os=-linux-gnu
 
1055
                ;;
893
1056
        tx39)
894
1057
                basic_machine=mipstx39-unknown
895
1058
                ;;
903
1066
        tower | tower-32)
904
1067
                basic_machine=m68k-ncr
905
1068
                ;;
 
1069
        tpf)
 
1070
                basic_machine=s390x-ibm
 
1071
                os=-tpf
 
1072
                ;;
906
1073
        udi29k)
907
1074
                basic_machine=a29k-amd
908
1075
                os=-udi
924
1091
                os=-vms
925
1092
                ;;
926
1093
        vpp*|vx|vx-*)
927
 
               basic_machine=f301-fujitsu
928
 
               ;;
 
1094
                basic_machine=f301-fujitsu
 
1095
                ;;
929
1096
        vxworks960)
930
1097
                basic_machine=i960-wrs
931
1098
                os=-vxworks
946
1113
                basic_machine=hppa1.1-winbond
947
1114
                os=-proelf
948
1115
                ;;
949
 
        windows32)
950
 
                basic_machine=i386-pc
951
 
                os=-windows32-msvcrt
 
1116
        xbox)
 
1117
                basic_machine=i686-pc
 
1118
                os=-mingw32
952
1119
                ;;
953
 
        xps | xps100)
 
1120
        xps | xps100)
954
1121
                basic_machine=xps100-honeywell
955
1122
                ;;
956
1123
        ymp)
980
1147
        romp)
981
1148
                basic_machine=romp-ibm
982
1149
                ;;
 
1150
        mmix)
 
1151
                basic_machine=mmix-knuth
 
1152
                ;;
983
1153
        rs6000)
984
1154
                basic_machine=rs6000-ibm
985
1155
                ;;
996
1166
        we32k)
997
1167
                basic_machine=we32k-att
998
1168
                ;;
999
 
        sh3 | sh4 | sh3eb | sh4eb)
 
1169
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1000
1170
                basic_machine=sh-unknown
1001
1171
                ;;
1002
 
        sh64)
1003
 
                basic_machine=sh64-unknown
1004
 
                ;;
1005
 
        sparc | sparcv9 | sparcv9b)
 
1172
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1006
1173
                basic_machine=sparc-sun
1007
1174
                ;;
1008
 
        cydra)
 
1175
        cydra)
1009
1176
                basic_machine=cydra-cydrome
1010
1177
                ;;
1011
1178
        orion)
1020
1187
        pmac | pmac-mpw)
1021
1188
                basic_machine=powerpc-apple
1022
1189
                ;;
1023
 
        c4x*)
1024
 
                basic_machine=c4x-none
1025
 
                os=-coff
1026
 
                ;;
1027
1190
        *-unknown)
1028
1191
                # Make sure to match an already-canonicalized machine name.
1029
1192
                ;;
1079
1242
              | -aos* \
1080
1243
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1081
1244
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1082
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1083
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1245
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1246
              | -openbsd* | -solidbsd* \
 
1247
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1248
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1084
1249
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1085
1250
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1086
1251
              | -chorusos* | -chorusrdb* \
1087
1252
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1088
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1089
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1253
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1254
              | -uxpv* | -beos* | -mpeix* | -udk* \
 
1255
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1090
1256
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1091
1257
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1092
1258
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1093
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova*)
 
1259
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1260
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1261
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1094
1262
        # Remember, each alternative MUST END IN *, to match a version number.
1095
1263
                ;;
1096
1264
        -qnx*)
1102
1270
                        ;;
1103
1271
                esac
1104
1272
                ;;
 
1273
        -nto-qnx*)
 
1274
                ;;
1105
1275
        -nto*)
1106
 
                os=-nto-qnx
 
1276
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1107
1277
                ;;
1108
1278
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1109
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1279
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1110
1280
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1111
1281
                ;;
1112
1282
        -mac*)
1113
1283
                os=`echo $os | sed -e 's|mac|macos|'`
1114
1284
                ;;
 
1285
        -linux-dietlibc)
 
1286
                os=-linux-dietlibc
 
1287
                ;;
1115
1288
        -linux*)
1116
1289
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1117
1290
                ;;
1124
1297
        -opened*)
1125
1298
                os=-openedition
1126
1299
                ;;
 
1300
        -os400*)
 
1301
                os=-os400
 
1302
                ;;
1127
1303
        -wince*)
1128
1304
                os=-wince
1129
1305
                ;;
1145
1321
        -atheos*)
1146
1322
                os=-atheos
1147
1323
                ;;
 
1324
        -syllable*)
 
1325
                os=-syllable
 
1326
                ;;
1148
1327
        -386bsd)
1149
1328
                os=-bsd
1150
1329
                ;;
1155
1334
                os=-rtmk-nova
1156
1335
                ;;
1157
1336
        -ns2 )
1158
 
                os=-nextstep2
 
1337
                os=-nextstep2
1159
1338
                ;;
1160
1339
        -nsk*)
1161
1340
                os=-nsk
1167
1346
        -sinix*)
1168
1347
                os=-sysv4
1169
1348
                ;;
 
1349
        -tpf*)
 
1350
                os=-tpf
 
1351
                ;;
1170
1352
        -triton*)
1171
1353
                os=-sysv3
1172
1354
                ;;
1194
1376
        -xenix)
1195
1377
                os=-xenix
1196
1378
                ;;
1197
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1198
 
                os=-mint
 
1379
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1380
                os=-mint
 
1381
                ;;
 
1382
        -aros*)
 
1383
                os=-aros
 
1384
                ;;
 
1385
        -kaos*)
 
1386
                os=-kaos
 
1387
                ;;
 
1388
        -zvmoe)
 
1389
                os=-zvmoe
1199
1390
                ;;
1200
1391
        -none)
1201
1392
                ;;
1219
1410
# system, and we'll never get to this point.
1220
1411
 
1221
1412
case $basic_machine in
 
1413
        score-*)
 
1414
                os=-elf
 
1415
                ;;
 
1416
        spu-*)
 
1417
                os=-elf
 
1418
                ;;
1222
1419
        *-acorn)
1223
1420
                os=-riscix1.2
1224
1421
                ;;
1228
1425
        arm*-semi)
1229
1426
                os=-aout
1230
1427
                ;;
 
1428
        c4x-* | tic4x-*)
 
1429
                os=-coff
 
1430
                ;;
1231
1431
        # This must come before the *-dec entry.
1232
1432
        pdp10-*)
1233
1433
                os=-tops20
1234
1434
                ;;
1235
 
        pdp11-*)
 
1435
        pdp11-*)
1236
1436
                os=-none
1237
1437
                ;;
1238
1438
        *-dec | vax-*)
1253
1453
        m68*-cisco)
1254
1454
                os=-aout
1255
1455
                ;;
 
1456
        mep-*)
 
1457
                os=-elf
 
1458
                ;;
1256
1459
        mips*-cisco)
1257
1460
                os=-elf
1258
1461
                ;;
1271
1474
        *-be)
1272
1475
                os=-beos
1273
1476
                ;;
 
1477
        *-haiku)
 
1478
                os=-haiku
 
1479
                ;;
1274
1480
        *-ibm)
1275
1481
                os=-aix
1276
1482
                ;;
 
1483
        *-knuth)
 
1484
                os=-mmixware
 
1485
                ;;
1277
1486
        *-wec)
1278
1487
                os=-proelf
1279
1488
                ;;
1325
1534
        *-next)
1326
1535
                os=-nextstep3
1327
1536
                ;;
1328
 
        *-gould)
 
1537
        *-gould)
1329
1538
                os=-sysv
1330
1539
                ;;
1331
 
        *-highlevel)
 
1540
        *-highlevel)
1332
1541
                os=-bsd
1333
1542
                ;;
1334
1543
        *-encore)
1335
1544
                os=-bsd
1336
1545
                ;;
1337
 
        *-sgi)
 
1546
        *-sgi)
1338
1547
                os=-irix
1339
1548
                ;;
1340
 
        *-siemens)
 
1549
        *-siemens)
1341
1550
                os=-sysv4
1342
1551
                ;;
1343
1552
        *-masscomp)
1406
1615
                        -mvs* | -opened*)
1407
1616
                                vendor=ibm
1408
1617
                                ;;
 
1618
                        -os400*)
 
1619
                                vendor=ibm
 
1620
                                ;;
1409
1621
                        -ptx*)
1410
1622
                                vendor=sequent
1411
1623
                                ;;
1412
 
                        -vxsim* | -vxworks*)
 
1624
                        -tpf*)
 
1625
                                vendor=ibm
 
1626
                                ;;
 
1627
                        -vxsim* | -vxworks* | -windiss*)
1413
1628
                                vendor=wrs
1414
1629
                                ;;
1415
1630
                        -aux*)
1433
1648
esac
1434
1649
 
1435
1650
echo $basic_machine$os
1436
 
exit 0
 
1651
exit
1437
1652
 
1438
1653
# Local variables:
1439
1654
# eval: (add-hook 'write-file-hooks 'time-stamp)