~ubuntu-branches/ubuntu/utopic/libytnef/utopic

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2009-09-28 10:13:48 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090928101348-29pkfq723wmck6bc
Tags: 1.5-2
* Orphaning this package. Thanks for the NMUs!
* Bump debhelper compat to 7 and Standards-Version to 3.8.3.
* Make dependency between libytnef0-dev and libytnef0 more strict.

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, 2009
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2002-07-03'
 
7
timestamp='2009-06-11'
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* | freebsd*-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
  kopensolaris*-gnu* | \
 
126
  storm-chaos* | os2-emx* | rtmk-nova*)
122
127
    os=-$maybe_os
123
128
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
129
    ;;
144
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
 
        -apple | -axis)
 
152
        -apple | -axis | -knuth | -cray)
148
153
                os=
149
154
                basic_machine=$1
150
155
                ;;
 
156
        -bluegene*)
 
157
                os=-cnk
 
158
                ;;
151
159
        -sim | -cisco | -oki | -wec | -winbond)
152
160
                os=
153
161
                basic_machine=$1
169
177
        -hiux*)
170
178
                os=-hiuxwe2
171
179
                ;;
 
180
        -sco6)
 
181
                os=-sco5v6
 
182
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
183
                ;;
172
184
        -sco5)
173
185
                os=-sco3.2v5
174
186
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185
197
                # Don't forget version if it is 3.2v4 or newer.
186
198
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
199
                ;;
 
200
        -sco5v6*)
 
201
                # Don't forget version if it is 3.2v4 or newer.
 
202
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
203
                ;;
188
204
        -sco*)
189
205
                os=-sco3.2v2
190
206
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
228
244
        | a29k \
229
245
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
246
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
247
        | am33_2.0 \
 
248
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
249
        | bfin \
232
250
        | c4x | clipper \
233
251
        | d10v | d30v | dlx | dsp16xx \
234
 
        | fr30 | frv \
 
252
        | fido | fr30 | frv \
235
253
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
254
        | i370 | i860 | i960 | ia64 \
237
 
        | ip2k \
238
 
        | m32r | m68000 | m68k | m88k | mcore \
 
255
        | ip2k | iq2000 \
 
256
        | lm32 \
 
257
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
258
        | maxq | mb | microblaze | mcore | mep | metag \
239
259
        | mips | mipsbe | mipseb | mipsel | mipsle \
240
260
        | mips16 \
241
261
        | mips64 | mips64el \
 
262
        | mips64octeon | mips64octeonel \
242
263
        | mips64orion | mips64orionel \
 
264
        | mips64r5900 | mips64r5900el \
 
265
        | mips64vr | mips64vrel \
243
266
        | mips64vr4100 | mips64vr4100el \
244
267
        | mips64vr4300 | mips64vr4300el \
245
268
        | mips64vr5000 | mips64vr5000el \
 
269
        | mips64vr5900 | mips64vr5900el \
246
270
        | mipsisa32 | mipsisa32el \
 
271
        | mipsisa32r2 | mipsisa32r2el \
247
272
        | mipsisa64 | mipsisa64el \
 
273
        | mipsisa64r2 | mipsisa64r2el \
248
274
        | mipsisa64sb1 | mipsisa64sb1el \
 
275
        | mipsisa64sr71k | mipsisa64sr71kel \
249
276
        | mipstx39 | mipstx39el \
250
277
        | mn10200 | mn10300 \
 
278
        | moxie \
 
279
        | mt \
 
280
        | msp430 \
 
281
        | nios | nios2 \
251
282
        | ns16k | ns32k \
252
 
        | openrisc | or32 \
 
283
        | or32 \
253
284
        | pdp10 | pdp11 | pj | pjl \
254
285
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
255
286
        | pyramid \
256
 
        | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
287
        | score \
 
288
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
257
289
        | sh64 | sh64le \
258
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
259
 
        | strongarm \
260
 
        | tahoe | thumb | tic80 | tron \
 
290
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
291
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
292
        | spu | strongarm \
 
293
        | tahoe | thumb | tic4x | tic80 | tron \
261
294
        | v850 | v850e \
262
295
        | we32k \
263
 
        | x86 | xscale | xstormy16 | xtensa \
264
 
        | z8k)
 
296
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
297
        | z8k | z80)
265
298
                basic_machine=$basic_machine-unknown
266
299
                ;;
267
300
        m6811 | m68hc11 | m6812 | m68hc12)
271
304
                ;;
272
305
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
273
306
                ;;
 
307
        ms1)
 
308
                basic_machine=mt-unknown
 
309
                ;;
274
310
 
275
311
        # We use `pc' rather than `unknown'
276
312
        # because (1) that's what they normally are, and
290
326
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
291
327
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
292
328
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
293
 
        | avr-* \
294
 
        | bs2000-* \
295
 
        | c[123]* | c30-* | [cjt]90-* | c54x-* \
296
 
        | clipper-* | cydra-* \
 
329
        | avr-* | avr32-* \
 
330
        | bfin-* | bs2000-* \
 
331
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
332
        | clipper-* | craynv-* | cydra-* \
297
333
        | d10v-* | d30v-* | dlx-* \
298
334
        | elxsi-* \
299
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
335
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
300
336
        | h8300-* | h8500-* \
301
337
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
302
338
        | i*86-* | i860-* | i960-* | ia64-* \
303
 
        | ip2k-* \
304
 
        | m32r-* \
 
339
        | ip2k-* | iq2000-* \
 
340
        | lm32-* \
 
341
        | m32c-* | m32r-* | m32rle-* \
305
342
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
306
 
        | m88110-* | m88k-* | mcore-* \
 
343
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
307
344
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
308
345
        | mips16-* \
309
346
        | mips64-* | mips64el-* \
 
347
        | mips64octeon-* | mips64octeonel-* \
310
348
        | mips64orion-* | mips64orionel-* \
 
349
        | mips64r5900-* | mips64r5900el-* \
 
350
        | mips64vr-* | mips64vrel-* \
311
351
        | mips64vr4100-* | mips64vr4100el-* \
312
352
        | mips64vr4300-* | mips64vr4300el-* \
313
353
        | mips64vr5000-* | mips64vr5000el-* \
 
354
        | mips64vr5900-* | mips64vr5900el-* \
314
355
        | mipsisa32-* | mipsisa32el-* \
 
356
        | mipsisa32r2-* | mipsisa32r2el-* \
315
357
        | mipsisa64-* | mipsisa64el-* \
 
358
        | mipsisa64r2-* | mipsisa64r2el-* \
316
359
        | mipsisa64sb1-* | mipsisa64sb1el-* \
317
 
        | mipstx39 | mipstx39el \
 
360
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
361
        | mipstx39-* | mipstx39el-* \
 
362
        | mmix-* \
 
363
        | mt-* \
 
364
        | msp430-* \
 
365
        | nios-* | nios2-* \
318
366
        | none-* | np1-* | ns16k-* | ns32k-* \
319
367
        | orion-* \
320
368
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
321
369
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
322
370
        | pyramid-* \
323
371
        | romp-* | rs6000-* \
324
 
        | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
 
372
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
325
373
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
326
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
327
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
328
 
        | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
 
374
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
375
        | sparclite-* \
 
376
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
377
        | tahoe-* | thumb-* \
 
378
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
379
        | tron-* \
329
380
        | v850-* | v850e-* | vax-* \
330
381
        | we32k-* \
331
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
332
 
        | xtensa-* \
 
382
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
383
        | xstormy16-* | xtensa*-* \
333
384
        | ymp-* \
334
 
        | z8k-*)
 
385
        | z8k-* | z80-*)
 
386
                ;;
 
387
        # Recognize the basic CPU types without company name, with glob match.
 
388
        xtensa*)
 
389
                basic_machine=$basic_machine-unknown
335
390
                ;;
336
391
        # Recognize the various machine names and aliases which stand
337
392
        # for a CPU type and a company and sometimes even an OS.
349
404
                basic_machine=a29k-amd
350
405
                os=-udi
351
406
                ;;
 
407
        abacus)
 
408
                basic_machine=abacus-unknown
 
409
                ;;
352
410
        adobe68k)
353
411
                basic_machine=m68010-adobe
354
412
                os=-scout
363
421
                basic_machine=a29k-none
364
422
                os=-bsd
365
423
                ;;
 
424
        amd64)
 
425
                basic_machine=x86_64-pc
 
426
                ;;
 
427
        amd64-*)
 
428
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
 
429
                ;;
366
430
        amdahl)
367
431
                basic_machine=580-amdahl
368
432
                os=-sysv
386
450
                basic_machine=m68k-apollo
387
451
                os=-bsd
388
452
                ;;
 
453
        aros)
 
454
                basic_machine=i386-pc
 
455
                os=-aros
 
456
                ;;
389
457
        aux)
390
458
                basic_machine=m68k-apple
391
459
                os=-aux
394
462
                basic_machine=ns32k-sequent
395
463
                os=-dynix
396
464
                ;;
 
465
        blackfin)
 
466
                basic_machine=bfin-unknown
 
467
                os=-linux
 
468
                ;;
 
469
        blackfin-*)
 
470
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
471
                os=-linux
 
472
                ;;
 
473
        bluegene*)
 
474
                basic_machine=powerpc-ibm
 
475
                os=-cnk
 
476
                ;;
397
477
        c90)
398
478
                basic_machine=c90-cray
399
479
                os=-unicos
400
480
                ;;
 
481
        cegcc)
 
482
                basic_machine=arm-unknown
 
483
                os=-cegcc
 
484
                ;;
401
485
        convex-c1)
402
486
                basic_machine=c1-convex
403
487
                os=-bsd
422
506
                basic_machine=j90-cray
423
507
                os=-unicos
424
508
                ;;
 
509
        craynv)
 
510
                basic_machine=craynv-cray
 
511
                os=-unicosmp
 
512
                ;;
 
513
        cr16)
 
514
                basic_machine=cr16-unknown
 
515
                os=-elf
 
516
                ;;
425
517
        crds | unos)
426
518
                basic_machine=m68k-crds
427
519
                ;;
 
520
        crisv32 | crisv32-* | etraxfs*)
 
521
                basic_machine=crisv32-axis
 
522
                ;;
428
523
        cris | cris-* | etrax*)
429
524
                basic_machine=cris-axis
430
525
                ;;
 
526
        crx)
 
527
                basic_machine=crx-unknown
 
528
                os=-elf
 
529
                ;;
431
530
        da30 | da30-*)
432
531
                basic_machine=m68k-da30
433
532
                ;;
450
549
                basic_machine=m88k-motorola
451
550
                os=-sysv3
452
551
                ;;
 
552
        dicos)
 
553
                basic_machine=i686-pc
 
554
                os=-dicos
 
555
                ;;
 
556
        djgpp)
 
557
                basic_machine=i586-pc
 
558
                os=-msdosdjgpp
 
559
                ;;
453
560
        dpx20 | dpx20-*)
454
561
                basic_machine=rs6000-bull
455
562
                os=-bosx
600
707
                basic_machine=m68k-isi
601
708
                os=-sysv
602
709
                ;;
 
710
        m68knommu)
 
711
                basic_machine=m68k-unknown
 
712
                os=-linux
 
713
                ;;
 
714
        m68knommu-*)
 
715
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
716
                os=-linux
 
717
                ;;
603
718
        m88k-omron*)
604
719
                basic_machine=m88k-omron
605
720
                ;;
615
730
                basic_machine=i386-pc
616
731
                os=-mingw32
617
732
                ;;
 
733
        mingw32ce)
 
734
                basic_machine=arm-unknown
 
735
                os=-mingw32ce
 
736
                ;;
618
737
        miniframe)
619
738
                basic_machine=m68000-convergent
620
739
                ;;
628
747
        mips3*)
629
748
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
630
749
                ;;
631
 
        mmix*)
632
 
                basic_machine=mmix-knuth
633
 
                os=-mmixware
634
 
                ;;
635
750
        monitor)
636
751
                basic_machine=m68k-rom68k
637
752
                os=-coff
644
759
                basic_machine=i386-pc
645
760
                os=-msdos
646
761
                ;;
 
762
        ms1-*)
 
763
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
764
                ;;
647
765
        mvs)
648
766
                basic_machine=i370-ibm
649
767
                os=-mvs
719
837
                basic_machine=hppa1.1-oki
720
838
                os=-proelf
721
839
                ;;
722
 
        or32 | or32-*)
 
840
        openrisc | openrisc-*)
723
841
                basic_machine=or32-unknown
724
 
                os=-coff
 
842
                ;;
 
843
        os400)
 
844
                basic_machine=powerpc-ibm
 
845
                os=-os400
725
846
                ;;
726
847
        OSE68000 | ose68000)
727
848
                basic_machine=m68000-ericsson
739
860
                basic_machine=i860-intel
740
861
                os=-osf
741
862
                ;;
 
863
        parisc)
 
864
                basic_machine=hppa-unknown
 
865
                os=-linux
 
866
                ;;
 
867
        parisc-*)
 
868
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
869
                os=-linux
 
870
                ;;
742
871
        pbd)
743
872
                basic_machine=sparc-tti
744
873
                ;;
745
874
        pbb)
746
875
                basic_machine=m68k-tti
747
876
                ;;
748
 
        pc532 | pc532-*)
 
877
        pc532 | pc532-*)
749
878
                basic_machine=ns32k-pc532
750
879
                ;;
 
880
        pc98)
 
881
                basic_machine=i386-pc
 
882
                ;;
 
883
        pc98-*)
 
884
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
885
                ;;
751
886
        pentium | p5 | k5 | k6 | nexgen | viac3)
752
887
                basic_machine=i586-pc
753
888
                ;;
754
 
        pentiumpro | p6 | 6x86 | athlon)
755
 
                basic_machine=i686-pc
756
 
                ;;
757
 
        pentiumii | pentium2)
758
 
                basic_machine=i686-pc
 
889
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
 
890
                basic_machine=i686-pc
 
891
                ;;
 
892
        pentiumii | pentium2 | pentiumiii | pentium3)
 
893
                basic_machine=i686-pc
 
894
                ;;
 
895
        pentium4)
 
896
                basic_machine=i786-pc
759
897
                ;;
760
898
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
761
899
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
763
901
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
764
902
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
765
903
                ;;
766
 
        pentiumii-* | pentium2-*)
 
904
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
767
905
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
768
906
                ;;
 
907
        pentium4-*)
 
908
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
 
909
                ;;
769
910
        pn)
770
911
                basic_machine=pn-gould
771
912
                ;;
772
913
        power)  basic_machine=power-ibm
773
914
                ;;
774
915
        ppc)    basic_machine=powerpc-unknown
775
 
                ;;
 
916
                ;;
776
917
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
777
918
                ;;
778
919
        ppcle | powerpclittle | ppc-le | powerpc-little)
779
920
                basic_machine=powerpcle-unknown
780
 
                ;;
 
921
                ;;
781
922
        ppcle-* | powerpclittle-*)
782
923
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
783
924
                ;;
784
925
        ppc64)  basic_machine=powerpc64-unknown
785
 
                ;;
 
926
                ;;
786
927
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
787
928
                ;;
788
929
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
789
930
                basic_machine=powerpc64le-unknown
790
 
                ;;
 
931
                ;;
791
932
        ppc64le-* | powerpc64little-*)
792
933
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
793
934
                ;;
798
939
                basic_machine=i586-unknown
799
940
                os=-pw32
800
941
                ;;
 
942
        rdos)
 
943
                basic_machine=i386-pc
 
944
                os=-rdos
 
945
                ;;
801
946
        rom68k)
802
947
                basic_machine=m68k-rom68k
803
948
                os=-coff
818
963
                basic_machine=a29k-amd
819
964
                os=-udi
820
965
                ;;
 
966
        sb1)
 
967
                basic_machine=mipsisa64sb1-unknown
 
968
                ;;
 
969
        sb1el)
 
970
                basic_machine=mipsisa64sb1el-unknown
 
971
                ;;
 
972
        sde)
 
973
                basic_machine=mipsisa32-sde
 
974
                os=-elf
 
975
                ;;
 
976
        sei)
 
977
                basic_machine=mips-sei
 
978
                os=-seiux
 
979
                ;;
821
980
        sequent)
822
981
                basic_machine=i386-sequent
823
982
                ;;
825
984
                basic_machine=sh-hitachi
826
985
                os=-hms
827
986
                ;;
 
987
        sh5el)
 
988
                basic_machine=sh5le-unknown
 
989
                ;;
 
990
        sh64)
 
991
                basic_machine=sh64-unknown
 
992
                ;;
828
993
        sparclite-wrs | simso-wrs)
829
994
                basic_machine=sparclite-wrs
830
995
                os=-vxworks
883
1048
        sun386 | sun386i | roadrunner)
884
1049
                basic_machine=i386-sun
885
1050
                ;;
886
 
        sv1)
 
1051
        sv1)
887
1052
                basic_machine=sv1-cray
888
1053
                os=-unicos
889
1054
                ;;
891
1056
                basic_machine=i386-sequent
892
1057
                os=-dynix
893
1058
                ;;
894
 
        t3d)
895
 
                basic_machine=alpha-cray
896
 
                os=-unicos
897
 
                ;;
898
1059
        t3e)
899
1060
                basic_machine=alphaev5-cray
900
1061
                os=-unicos
907
1068
                basic_machine=tic54x-unknown
908
1069
                os=-coff
909
1070
                ;;
 
1071
        tic55x | c55x*)
 
1072
                basic_machine=tic55x-unknown
 
1073
                os=-coff
 
1074
                ;;
 
1075
        tic6x | c6x*)
 
1076
                basic_machine=tic6x-unknown
 
1077
                os=-coff
 
1078
                ;;
 
1079
        tile*)
 
1080
                basic_machine=tile-unknown
 
1081
                os=-linux-gnu
 
1082
                ;;
910
1083
        tx39)
911
1084
                basic_machine=mipstx39-unknown
912
1085
                ;;
920
1093
        tower | tower-32)
921
1094
                basic_machine=m68k-ncr
922
1095
                ;;
 
1096
        tpf)
 
1097
                basic_machine=s390x-ibm
 
1098
                os=-tpf
 
1099
                ;;
923
1100
        udi29k)
924
1101
                basic_machine=a29k-amd
925
1102
                os=-udi
941
1118
                os=-vms
942
1119
                ;;
943
1120
        vpp*|vx|vx-*)
944
 
               basic_machine=f301-fujitsu
945
 
               ;;
 
1121
                basic_machine=f301-fujitsu
 
1122
                ;;
946
1123
        vxworks960)
947
1124
                basic_machine=i960-wrs
948
1125
                os=-vxworks
963
1140
                basic_machine=hppa1.1-winbond
964
1141
                os=-proelf
965
1142
                ;;
966
 
        windows32)
967
 
                basic_machine=i386-pc
968
 
                os=-windows32-msvcrt
 
1143
        xbox)
 
1144
                basic_machine=i686-pc
 
1145
                os=-mingw32
969
1146
                ;;
970
 
        xps | xps100)
 
1147
        xps | xps100)
971
1148
                basic_machine=xps100-honeywell
972
1149
                ;;
973
1150
        ymp)
978
1155
                basic_machine=z8k-unknown
979
1156
                os=-sim
980
1157
                ;;
 
1158
        z80-*-coff)
 
1159
                basic_machine=z80-unknown
 
1160
                os=-sim
 
1161
                ;;
981
1162
        none)
982
1163
                basic_machine=none-none
983
1164
                os=-none
997
1178
        romp)
998
1179
                basic_machine=romp-ibm
999
1180
                ;;
 
1181
        mmix)
 
1182
                basic_machine=mmix-knuth
 
1183
                ;;
1000
1184
        rs6000)
1001
1185
                basic_machine=rs6000-ibm
1002
1186
                ;;
1013
1197
        we32k)
1014
1198
                basic_machine=we32k-att
1015
1199
                ;;
1016
 
        sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
 
1200
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1017
1201
                basic_machine=sh-unknown
1018
1202
                ;;
1019
 
        sh64)
1020
 
                basic_machine=sh64-unknown
1021
 
                ;;
1022
 
        sparc | sparcv9 | sparcv9b)
 
1203
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1023
1204
                basic_machine=sparc-sun
1024
1205
                ;;
1025
 
        cydra)
 
1206
        cydra)
1026
1207
                basic_machine=cydra-cydrome
1027
1208
                ;;
1028
1209
        orion)
1037
1218
        pmac | pmac-mpw)
1038
1219
                basic_machine=powerpc-apple
1039
1220
                ;;
1040
 
        c4x*)
1041
 
                basic_machine=c4x-none
1042
 
                os=-coff
1043
 
                ;;
1044
1221
        *-unknown)
1045
1222
                # Make sure to match an already-canonicalized machine name.
1046
1223
                ;;
1090
1267
        # Each alternative MUST END IN A *, to match a version number.
1091
1268
        # -sysv* is not here because it comes later, after sysvr4.
1092
1269
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1093
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1270
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1094
1271
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1272
              | -kopensolaris* \
1095
1273
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1096
 
              | -aos* \
 
1274
              | -aos* | -aros* \
1097
1275
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1098
1276
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1099
 
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1100
 
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
1277
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1278
              | -openbsd* | -solidbsd* \
 
1279
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
 
1280
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1101
1281
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1102
1282
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1103
 
              | -chorusos* | -chorusrdb* \
 
1283
              | -chorusos* | -chorusrdb* | -cegcc* \
1104
1284
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1105
 
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1106
 
              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
 
1285
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1286
              | -uxpv* | -beos* | -mpeix* | -udk* \
 
1287
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1107
1288
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1108
1289
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1109
1290
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1110
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
 
1291
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
 
1292
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1293
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1111
1294
        # Remember, each alternative MUST END IN *, to match a version number.
1112
1295
                ;;
1113
1296
        -qnx*)
1119
1302
                        ;;
1120
1303
                esac
1121
1304
                ;;
 
1305
        -nto-qnx*)
 
1306
                ;;
1122
1307
        -nto*)
1123
 
                os=-nto-qnx
 
1308
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1124
1309
                ;;
1125
1310
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1126
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1311
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1127
1312
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1128
1313
                ;;
1129
1314
        -mac*)
1130
1315
                os=`echo $os | sed -e 's|mac|macos|'`
1131
1316
                ;;
 
1317
        -linux-dietlibc)
 
1318
                os=-linux-dietlibc
 
1319
                ;;
1132
1320
        -linux*)
1133
1321
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1134
1322
                ;;
1141
1329
        -opened*)
1142
1330
                os=-openedition
1143
1331
                ;;
 
1332
        -os400*)
 
1333
                os=-os400
 
1334
                ;;
1144
1335
        -wince*)
1145
1336
                os=-wince
1146
1337
                ;;
1162
1353
        -atheos*)
1163
1354
                os=-atheos
1164
1355
                ;;
 
1356
        -syllable*)
 
1357
                os=-syllable
 
1358
                ;;
1165
1359
        -386bsd)
1166
1360
                os=-bsd
1167
1361
                ;;
1172
1366
                os=-rtmk-nova
1173
1367
                ;;
1174
1368
        -ns2 )
1175
 
                os=-nextstep2
 
1369
                os=-nextstep2
1176
1370
                ;;
1177
1371
        -nsk*)
1178
1372
                os=-nsk
1184
1378
        -sinix*)
1185
1379
                os=-sysv4
1186
1380
                ;;
 
1381
        -tpf*)
 
1382
                os=-tpf
 
1383
                ;;
1187
1384
        -triton*)
1188
1385
                os=-sysv3
1189
1386
                ;;
1211
1408
        -xenix)
1212
1409
                os=-xenix
1213
1410
                ;;
1214
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1215
 
                os=-mint
 
1411
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
 
1412
                os=-mint
 
1413
                ;;
 
1414
        -aros*)
 
1415
                os=-aros
 
1416
                ;;
 
1417
        -kaos*)
 
1418
                os=-kaos
 
1419
                ;;
 
1420
        -zvmoe)
 
1421
                os=-zvmoe
 
1422
                ;;
 
1423
        -dicos*)
 
1424
                os=-dicos
1216
1425
                ;;
1217
1426
        -none)
1218
1427
                ;;
1236
1445
# system, and we'll never get to this point.
1237
1446
 
1238
1447
case $basic_machine in
 
1448
        score-*)
 
1449
                os=-elf
 
1450
                ;;
 
1451
        spu-*)
 
1452
                os=-elf
 
1453
                ;;
1239
1454
        *-acorn)
1240
1455
                os=-riscix1.2
1241
1456
                ;;
1245
1460
        arm*-semi)
1246
1461
                os=-aout
1247
1462
                ;;
 
1463
        c4x-* | tic4x-*)
 
1464
                os=-coff
 
1465
                ;;
1248
1466
        # This must come before the *-dec entry.
1249
1467
        pdp10-*)
1250
1468
                os=-tops20
1251
1469
                ;;
1252
 
        pdp11-*)
 
1470
        pdp11-*)
1253
1471
                os=-none
1254
1472
                ;;
1255
1473
        *-dec | vax-*)
1270
1488
        m68*-cisco)
1271
1489
                os=-aout
1272
1490
                ;;
 
1491
        mep-*)
 
1492
                os=-elf
 
1493
                ;;
1273
1494
        mips*-cisco)
1274
1495
                os=-elf
1275
1496
                ;;
1288
1509
        *-be)
1289
1510
                os=-beos
1290
1511
                ;;
 
1512
        *-haiku)
 
1513
                os=-haiku
 
1514
                ;;
1291
1515
        *-ibm)
1292
1516
                os=-aix
1293
1517
                ;;
 
1518
        *-knuth)
 
1519
                os=-mmixware
 
1520
                ;;
1294
1521
        *-wec)
1295
1522
                os=-proelf
1296
1523
                ;;
1342
1569
        *-next)
1343
1570
                os=-nextstep3
1344
1571
                ;;
1345
 
        *-gould)
 
1572
        *-gould)
1346
1573
                os=-sysv
1347
1574
                ;;
1348
 
        *-highlevel)
 
1575
        *-highlevel)
1349
1576
                os=-bsd
1350
1577
                ;;
1351
1578
        *-encore)
1352
1579
                os=-bsd
1353
1580
                ;;
1354
 
        *-sgi)
 
1581
        *-sgi)
1355
1582
                os=-irix
1356
1583
                ;;
1357
 
        *-siemens)
 
1584
        *-siemens)
1358
1585
                os=-sysv4
1359
1586
                ;;
1360
1587
        *-masscomp)
1393
1620
                        -sunos*)
1394
1621
                                vendor=sun
1395
1622
                                ;;
1396
 
                        -aix*)
 
1623
                        -cnk*|-aix*)
1397
1624
                                vendor=ibm
1398
1625
                                ;;
1399
1626
                        -beos*)
1423
1650
                        -mvs* | -opened*)
1424
1651
                                vendor=ibm
1425
1652
                                ;;
 
1653
                        -os400*)
 
1654
                                vendor=ibm
 
1655
                                ;;
1426
1656
                        -ptx*)
1427
1657
                                vendor=sequent
1428
1658
                                ;;
 
1659
                        -tpf*)
 
1660
                                vendor=ibm
 
1661
                                ;;
1429
1662
                        -vxsim* | -vxworks* | -windiss*)
1430
1663
                                vendor=wrs
1431
1664
                                ;;
1450
1683
esac
1451
1684
 
1452
1685
echo $basic_machine$os
1453
 
exit 0
 
1686
exit
1454
1687
 
1455
1688
# Local variables:
1456
1689
# eval: (add-hook 'write-file-hooks 'time-stamp)