~ubuntu-branches/ubuntu/trusty/brasero/trusty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-04-17 14:41:53 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20120417144153-tuyvgt9jp2fr738k
Tags: 3.4.1-0ubuntu1
* New upstream release:
  - Translation updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2011-06-03'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
75
75
version="\
76
76
GNU config.sub ($timestamp)
77
77
 
78
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
79
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
 
80
Software Foundation, Inc.
80
81
 
81
82
This is free software; see the source for copying conditions.  There is NO
82
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123
124
# Here we must recognize all the valid KERNEL-OS combinations.
124
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125
126
case $maybe_os in
126
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
127
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
128
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
129
  knetbsd*-gnu* | netbsd*-gnu* | \
128
130
  kopensolaris*-gnu* | \
129
131
  storm-chaos* | os2-emx* | rtmk-nova*)
130
132
    os=-$maybe_os
156
158
                os=
157
159
                basic_machine=$1
158
160
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
 
161
        -bluegene*)
 
162
                os=-cnk
161
163
                ;;
162
164
        -sim | -cisco | -oki | -wec | -winbond)
163
165
                os=
173
175
                os=-chorusos
174
176
                basic_machine=$1
175
177
                ;;
176
 
        -chorusrdb)
177
 
                os=-chorusrdb
 
178
        -chorusrdb)
 
179
                os=-chorusrdb
178
180
                basic_machine=$1
179
 
                ;;
 
181
                ;;
180
182
        -hiux*)
181
183
                os=-hiuxwe2
182
184
                ;;
251
253
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
252
254
        | bfin \
253
255
        | c4x | clipper \
254
 
        | d10v | d30v | dlx | dsp16xx \
 
256
        | d10v | d30v | dlx | dsp16xx | dvp \
255
257
        | fido | fr30 | frv \
256
258
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
257
259
        | i370 | i860 | i960 | ia64 \
281
283
        | moxie \
282
284
        | mt \
283
285
        | msp430 \
 
286
        | nds32 | nds32le | nds32be \
284
287
        | nios | nios2 \
285
288
        | ns16k | ns32k \
 
289
        | open8 \
286
290
        | or32 \
287
291
        | pdp10 | pdp11 | pj | pjl \
288
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
292
        | powerpc | powerpc64 | powerpc64le | powerpcle \
289
293
        | pyramid \
290
294
        | rx \
291
295
        | score \
293
297
        | sh64 | sh64le \
294
298
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295
299
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
 
        | spu | strongarm \
297
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
300
        | spu \
 
301
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298
302
        | ubicom32 \
299
 
        | v850 | v850e \
 
303
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300
304
        | we32k \
301
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
305
        | x86 | xc16x | xstormy16 | xtensa \
302
306
        | z8k | z80)
303
307
                basic_machine=$basic_machine-unknown
304
308
                ;;
 
309
        c54x)
 
310
                basic_machine=tic54x-unknown
 
311
                ;;
 
312
        c55x)
 
313
                basic_machine=tic55x-unknown
 
314
                ;;
 
315
        c6x)
 
316
                basic_machine=tic6x-unknown
 
317
                ;;
305
318
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306
319
                # Motorola 68HC11/12.
307
320
                basic_machine=$basic_machine-unknown
313
326
                basic_machine=mt-unknown
314
327
                ;;
315
328
 
 
329
        strongarm | thumb | xscale)
 
330
                basic_machine=arm-unknown
 
331
                ;;
 
332
 
 
333
        xscaleeb)
 
334
                basic_machine=armeb-unknown
 
335
                ;;
 
336
 
 
337
        xscaleel)
 
338
                basic_machine=armel-unknown
 
339
                ;;
 
340
 
316
341
        # We use `pc' rather than `unknown'
317
342
        # because (1) that's what they normally are, and
318
343
        # (2) the word "unknown" tends to confuse beginning users.
333
358
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
334
359
        | avr-* | avr32-* \
335
360
        | bfin-* | bs2000-* \
336
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
361
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
337
362
        | clipper-* | craynv-* | cydra-* \
338
363
        | d10v-* | d30v-* | dlx-* \
339
364
        | elxsi-* \
367
392
        | mmix-* \
368
393
        | mt-* \
369
394
        | msp430-* \
 
395
        | nds32-* | nds32le-* | nds32be-* \
370
396
        | nios-* | nios2-* \
371
397
        | none-* | np1-* | ns16k-* | ns32k-* \
 
398
        | open8-* \
372
399
        | orion-* \
373
400
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
401
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375
402
        | pyramid-* \
376
403
        | romp-* | rs6000-* | rx-* \
377
404
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
405
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
406
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380
407
        | sparclite-* \
381
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382
 
        | tahoe-* | thumb-* \
383
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
408
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
409
        | tahoe-* \
 
410
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
411
        | tile*-* \
384
412
        | tron-* \
385
413
        | ubicom32-* \
386
 
        | v850-* | v850e-* | vax-* \
 
414
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
415
        | vax-* \
387
416
        | we32k-* \
388
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
417
        | x86-* | x86_64-* | xc16x-* | xps100-* \
389
418
        | xstormy16-* | xtensa*-* \
390
419
        | ymp-* \
391
420
        | z8k-* | z80-*)
410
439
                basic_machine=a29k-amd
411
440
                os=-udi
412
441
                ;;
413
 
        abacus)
 
442
        abacus)
414
443
                basic_machine=abacus-unknown
415
444
                ;;
416
445
        adobe68k)
480
509
                basic_machine=powerpc-ibm
481
510
                os=-cnk
482
511
                ;;
 
512
        c54x-*)
 
513
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
514
                ;;
 
515
        c55x-*)
 
516
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
517
                ;;
 
518
        c6x-*)
 
519
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
520
                ;;
483
521
        c90)
484
522
                basic_machine=c90-cray
485
523
                os=-unicos
486
524
                ;;
487
 
        cegcc)
 
525
        cegcc)
488
526
                basic_machine=arm-unknown
489
527
                os=-cegcc
490
528
                ;;
516
554
                basic_machine=craynv-cray
517
555
                os=-unicosmp
518
556
                ;;
519
 
        cr16)
 
557
        cr16 | cr16-*)
520
558
                basic_machine=cr16-unknown
521
559
                os=-elf
522
560
                ;;
732
770
                basic_machine=ns32k-utek
733
771
                os=-sysv
734
772
                ;;
735
 
        microblaze)
 
773
        microblaze)
736
774
                basic_machine=microblaze-xilinx
737
775
                ;;
738
776
        mingw32)
750
788
                basic_machine=m68k-atari
751
789
                os=-mint
752
790
                ;;
 
791
        mipsEE* | ee | ps2)
 
792
                basic_machine=mips64r5900el-scei
 
793
                case $os in
 
794
                    -linux*)
 
795
                        ;;
 
796
                    *)
 
797
                        os=-elf
 
798
                        ;;
 
799
                esac
 
800
                ;;
 
801
        iop)
 
802
                basic_machine=mipsel-scei
 
803
                os=-irx
 
804
                ;;
 
805
        dvp)
 
806
                basic_machine=dvp-scei
 
807
                os=-elf
 
808
                ;;
753
809
        mips3*-*)
754
810
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
755
811
                ;;
839
895
        np1)
840
896
                basic_machine=np1-gould
841
897
                ;;
 
898
        neo-tandem)
 
899
                basic_machine=neo-tandem
 
900
                ;;
 
901
        nse-tandem)
 
902
                basic_machine=nse-tandem
 
903
                ;;
842
904
        nsr-tandem)
843
905
                basic_machine=nsr-tandem
844
906
                ;;
921
983
                ;;
922
984
        power)  basic_machine=power-ibm
923
985
                ;;
924
 
        ppc)    basic_machine=powerpc-unknown
 
986
        ppc | ppcbe)    basic_machine=powerpc-unknown
925
987
                ;;
926
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
988
        ppc-* | ppcbe-*)
 
989
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
927
990
                ;;
928
991
        ppcle | powerpclittle | ppc-le | powerpc-little)
929
992
                basic_machine=powerpcle-unknown
1017
1080
                basic_machine=i860-stratus
1018
1081
                os=-sysv4
1019
1082
                ;;
 
1083
        strongarm-* | thumb-*)
 
1084
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1085
                ;;
1020
1086
        sun2)
1021
1087
                basic_machine=m68000-sun
1022
1088
                ;;
1073
1139
                basic_machine=t90-cray
1074
1140
                os=-unicos
1075
1141
                ;;
1076
 
        tic54x | c54x*)
1077
 
                basic_machine=tic54x-unknown
1078
 
                os=-coff
1079
 
                ;;
1080
 
        tic55x | c55x*)
1081
 
                basic_machine=tic55x-unknown
1082
 
                os=-coff
1083
 
                ;;
1084
 
        tic6x | c6x*)
1085
 
                basic_machine=tic6x-unknown
1086
 
                os=-coff
1087
 
                ;;
1088
1142
        tile*)
1089
 
                basic_machine=tile-unknown
 
1143
                basic_machine=$basic_machine-unknown
1090
1144
                os=-linux-gnu
1091
1145
                ;;
1092
1146
        tx39)
1156
1210
        xps | xps100)
1157
1211
                basic_machine=xps100-honeywell
1158
1212
                ;;
 
1213
        xscale-* | xscalee[bl]-*)
 
1214
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1215
                ;;
1159
1216
        ymp)
1160
1217
                basic_machine=ymp-cray
1161
1218
                os=-unicos
1253
1310
if [ x"$os" != x"" ]
1254
1311
then
1255
1312
case $os in
1256
 
        # First match some system type aliases
1257
 
        # that might get confused with valid system types.
 
1313
        # First match some system type aliases
 
1314
        # that might get confused with valid system types.
1258
1315
        # -solaris* is a basic system type, with this one exception.
1259
 
        -auroraux)
1260
 
                os=-auroraux
 
1316
        -auroraux)
 
1317
                os=-auroraux
1261
1318
                ;;
1262
1319
        -solaris1 | -solaris1.*)
1263
1320
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1294
1351
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1295
1352
              | -chorusos* | -chorusrdb* | -cegcc* \
1296
1353
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1354
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1355
              | -linux-newlib* | -linux-uclibc* \
1298
1356
              | -uxpv* | -beos* | -mpeix* | -udk* \
1299
1357
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1300
1358
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1301
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 
1359
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
1302
1360
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1303
1361
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1304
1362
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1341
1399
        -opened*)
1342
1400
                os=-openedition
1343
1401
                ;;
1344
 
        -os400*)
 
1402
        -os400*)
1345
1403
                os=-os400
1346
1404
                ;;
1347
1405
        -wince*)
1390
1448
        -sinix*)
1391
1449
                os=-sysv4
1392
1450
                ;;
1393
 
        -tpf*)
 
1451
        -tpf*)
1394
1452
                os=-tpf
1395
1453
                ;;
1396
1454
        -triton*)
1435
1493
        -dicos*)
1436
1494
                os=-dicos
1437
1495
                ;;
 
1496
        -nacl*)
 
1497
                ;;
1438
1498
        -none)
1439
1499
                ;;
1440
1500
        *)
1457
1517
# system, and we'll never get to this point.
1458
1518
 
1459
1519
case $basic_machine in
1460
 
        score-*)
 
1520
        score-*)
1461
1521
                os=-elf
1462
1522
                ;;
1463
 
        spu-*)
 
1523
        spu-*)
1464
1524
                os=-elf
1465
1525
                ;;
1466
1526
        *-acorn)
1472
1532
        arm*-semi)
1473
1533
                os=-aout
1474
1534
                ;;
1475
 
        c4x-* | tic4x-*)
1476
 
                os=-coff
 
1535
        c4x-* | tic4x-*)
 
1536
                os=-coff
 
1537
                ;;
 
1538
        tic54x-*)
 
1539
                os=-coff
 
1540
                ;;
 
1541
        tic55x-*)
 
1542
                os=-coff
 
1543
                ;;
 
1544
        tic6x-*)
 
1545
                os=-coff
1477
1546
                ;;
1478
1547
        # This must come before the *-dec entry.
1479
1548
        pdp10-*)
1500
1569
        m68*-cisco)
1501
1570
                os=-aout
1502
1571
                ;;
1503
 
        mep-*)
 
1572
        mep-*)
1504
1573
                os=-elf
1505
1574
                ;;
1506
1575
        mips*-cisco)
1527
1596
        *-ibm)
1528
1597
                os=-aix
1529
1598
                ;;
1530
 
        *-knuth)
 
1599
        *-knuth)
1531
1600
                os=-mmixware
1532
1601
                ;;
1533
1602
        *-wec)