~ubuntu-branches/ubuntu/precise/gconf/precise-201203060106

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-16 12:12:23 UTC
  • mfrom: (1.1.31 upstream)
  • Revision ID: james.westby@ubuntu.com-20110816121223-20e8lg1110yb6y75
Tags: 3.1.6-0ubuntu1
New upstream version

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, 2010,
5
 
#   2011 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2011-03-23'
 
7
timestamp='2009-11-20'
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,
79
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80
 
Software Foundation, Inc.
 
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.
81
80
 
82
81
This is free software; see the source for copying conditions.  There is NO
83
82
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
124
123
# Here we must recognize all the valid KERNEL-OS combinations.
125
124
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
125
case $maybe_os in
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* | \
 
126
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
127
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
130
128
  kopensolaris*-gnu* | \
131
129
  storm-chaos* | os2-emx* | rtmk-nova*)
132
130
    os=-$maybe_os
158
156
                os=
159
157
                basic_machine=$1
160
158
                ;;
161
 
        -bluegene*)
162
 
                os=-cnk
 
159
        -bluegene*)
 
160
                os=-cnk
163
161
                ;;
164
162
        -sim | -cisco | -oki | -wec | -winbond)
165
163
                os=
175
173
                os=-chorusos
176
174
                basic_machine=$1
177
175
                ;;
178
 
        -chorusrdb)
179
 
                os=-chorusrdb
 
176
        -chorusrdb)
 
177
                os=-chorusrdb
180
178
                basic_machine=$1
181
 
                ;;
 
179
                ;;
182
180
        -hiux*)
183
181
                os=-hiuxwe2
184
182
                ;;
283
281
        | moxie \
284
282
        | mt \
285
283
        | msp430 \
286
 
        | nds32 | nds32le | nds32be \
287
284
        | nios | nios2 \
288
285
        | ns16k | ns32k \
289
 
        | open8 \
290
286
        | or32 \
291
287
        | pdp10 | pdp11 | pj | pjl \
292
 
        | powerpc | powerpc64 | powerpc64le | powerpcle \
 
288
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
293
289
        | pyramid \
294
290
        | rx \
295
291
        | score \
297
293
        | sh64 | sh64le \
298
294
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
299
295
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
300
 
        | spu \
301
 
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
296
        | spu | strongarm \
 
297
        | tahoe | thumb | tic4x | tic80 | tron \
302
298
        | ubicom32 \
303
299
        | v850 | v850e \
304
300
        | we32k \
305
 
        | x86 | xc16x | xstormy16 | xtensa \
 
301
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
306
302
        | z8k | z80)
307
303
                basic_machine=$basic_machine-unknown
308
304
                ;;
309
 
        c54x)
310
 
                basic_machine=tic54x-unknown
311
 
                ;;
312
 
        c55x)
313
 
                basic_machine=tic55x-unknown
314
 
                ;;
315
 
        c6x)
316
 
                basic_machine=tic6x-unknown
317
 
                ;;
318
305
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
319
306
                # Motorola 68HC11/12.
320
307
                basic_machine=$basic_machine-unknown
326
313
                basic_machine=mt-unknown
327
314
                ;;
328
315
 
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
 
 
341
316
        # We use `pc' rather than `unknown'
342
317
        # because (1) that's what they normally are, and
343
318
        # (2) the word "unknown" tends to confuse beginning users.
358
333
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
359
334
        | avr-* | avr32-* \
360
335
        | bfin-* | bs2000-* \
361
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
336
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
362
337
        | clipper-* | craynv-* | cydra-* \
363
338
        | d10v-* | d30v-* | dlx-* \
364
339
        | elxsi-* \
392
367
        | mmix-* \
393
368
        | mt-* \
394
369
        | msp430-* \
395
 
        | nds32-* | nds32le-* | nds32be-* \
396
370
        | nios-* | nios2-* \
397
371
        | none-* | np1-* | ns16k-* | ns32k-* \
398
 
        | open8-* \
399
372
        | orion-* \
400
373
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
401
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
 
374
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
402
375
        | pyramid-* \
403
376
        | romp-* | rs6000-* | rx-* \
404
377
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
405
378
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
406
379
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
407
380
        | sparclite-* \
408
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
409
 
        | tahoe-* \
410
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
411
 
        | tile-* | tilegx-* \
 
381
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
382
        | tahoe-* | thumb-* \
 
383
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
412
384
        | tron-* \
413
385
        | ubicom32-* \
414
386
        | v850-* | v850e-* | vax-* \
415
387
        | we32k-* \
416
 
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
388
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
417
389
        | xstormy16-* | xtensa*-* \
418
390
        | ymp-* \
419
391
        | z8k-* | z80-*)
438
410
                basic_machine=a29k-amd
439
411
                os=-udi
440
412
                ;;
441
 
        abacus)
 
413
        abacus)
442
414
                basic_machine=abacus-unknown
443
415
                ;;
444
416
        adobe68k)
508
480
                basic_machine=powerpc-ibm
509
481
                os=-cnk
510
482
                ;;
511
 
        c54x-*)
512
 
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
513
 
                ;;
514
 
        c55x-*)
515
 
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
516
 
                ;;
517
 
        c6x-*)
518
 
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
519
 
                ;;
520
483
        c90)
521
484
                basic_machine=c90-cray
522
485
                os=-unicos
523
486
                ;;
524
 
        cegcc)
 
487
        cegcc)
525
488
                basic_machine=arm-unknown
526
489
                os=-cegcc
527
490
                ;;
553
516
                basic_machine=craynv-cray
554
517
                os=-unicosmp
555
518
                ;;
556
 
        cr16 | cr16-*)
 
519
        cr16)
557
520
                basic_machine=cr16-unknown
558
521
                os=-elf
559
522
                ;;
769
732
                basic_machine=ns32k-utek
770
733
                os=-sysv
771
734
                ;;
772
 
        microblaze)
 
735
        microblaze)
773
736
                basic_machine=microblaze-xilinx
774
737
                ;;
775
738
        mingw32)
876
839
        np1)
877
840
                basic_machine=np1-gould
878
841
                ;;
879
 
        neo-tandem)
880
 
                basic_machine=neo-tandem
881
 
                ;;
882
 
        nse-tandem)
883
 
                basic_machine=nse-tandem
884
 
                ;;
885
842
        nsr-tandem)
886
843
                basic_machine=nsr-tandem
887
844
                ;;
964
921
                ;;
965
922
        power)  basic_machine=power-ibm
966
923
                ;;
967
 
        ppc | ppcbe)    basic_machine=powerpc-unknown
 
924
        ppc)    basic_machine=powerpc-unknown
968
925
                ;;
969
 
        ppc-* | ppcbe-*)
970
 
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
926
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
971
927
                ;;
972
928
        ppcle | powerpclittle | ppc-le | powerpc-little)
973
929
                basic_machine=powerpcle-unknown
1061
1017
                basic_machine=i860-stratus
1062
1018
                os=-sysv4
1063
1019
                ;;
1064
 
        strongarm-* | thumb-*)
1065
 
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1066
 
                ;;
1067
1020
        sun2)
1068
1021
                basic_machine=m68000-sun
1069
1022
                ;;
1120
1073
                basic_machine=t90-cray
1121
1074
                os=-unicos
1122
1075
                ;;
1123
 
        # This must be matched before tile*.
1124
 
        tilegx*)
1125
 
                basic_machine=tilegx-unknown
1126
 
                os=-linux-gnu
 
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
1127
1087
                ;;
1128
1088
        tile*)
1129
1089
                basic_machine=tile-unknown
1196
1156
        xps | xps100)
1197
1157
                basic_machine=xps100-honeywell
1198
1158
                ;;
1199
 
        xscale-* | xscalee[bl]-*)
1200
 
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1201
 
                ;;
1202
1159
        ymp)
1203
1160
                basic_machine=ymp-cray
1204
1161
                os=-unicos
1296
1253
if [ x"$os" != x"" ]
1297
1254
then
1298
1255
case $os in
1299
 
        # First match some system type aliases
1300
 
        # that might get confused with valid system types.
 
1256
        # First match some system type aliases
 
1257
        # that might get confused with valid system types.
1301
1258
        # -solaris* is a basic system type, with this one exception.
1302
 
        -auroraux)
1303
 
                os=-auroraux
 
1259
        -auroraux)
 
1260
                os=-auroraux
1304
1261
                ;;
1305
1262
        -solaris1 | -solaris1.*)
1306
1263
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1337
1294
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1338
1295
              | -chorusos* | -chorusrdb* | -cegcc* \
1339
1296
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1340
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1341
 
              | -linux-newlib* | -linux-uclibc* \
 
1297
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1342
1298
              | -uxpv* | -beos* | -mpeix* | -udk* \
1343
1299
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1344
1300
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1385
1341
        -opened*)
1386
1342
                os=-openedition
1387
1343
                ;;
1388
 
        -os400*)
 
1344
        -os400*)
1389
1345
                os=-os400
1390
1346
                ;;
1391
1347
        -wince*)
1434
1390
        -sinix*)
1435
1391
                os=-sysv4
1436
1392
                ;;
1437
 
        -tpf*)
 
1393
        -tpf*)
1438
1394
                os=-tpf
1439
1395
                ;;
1440
1396
        -triton*)
1479
1435
        -dicos*)
1480
1436
                os=-dicos
1481
1437
                ;;
1482
 
        -nacl*)
1483
 
                ;;
1484
1438
        -none)
1485
1439
                ;;
1486
1440
        *)
1503
1457
# system, and we'll never get to this point.
1504
1458
 
1505
1459
case $basic_machine in
1506
 
        score-*)
 
1460
        score-*)
1507
1461
                os=-elf
1508
1462
                ;;
1509
 
        spu-*)
 
1463
        spu-*)
1510
1464
                os=-elf
1511
1465
                ;;
1512
1466
        *-acorn)
1518
1472
        arm*-semi)
1519
1473
                os=-aout
1520
1474
                ;;
1521
 
        c4x-* | tic4x-*)
1522
 
                os=-coff
1523
 
                ;;
1524
 
        tic54x-*)
1525
 
                os=-coff
1526
 
                ;;
1527
 
        tic55x-*)
1528
 
                os=-coff
1529
 
                ;;
1530
 
        tic6x-*)
1531
 
                os=-coff
 
1475
        c4x-* | tic4x-*)
 
1476
                os=-coff
1532
1477
                ;;
1533
1478
        # This must come before the *-dec entry.
1534
1479
        pdp10-*)
1555
1500
        m68*-cisco)
1556
1501
                os=-aout
1557
1502
                ;;
1558
 
        mep-*)
 
1503
        mep-*)
1559
1504
                os=-elf
1560
1505
                ;;
1561
1506
        mips*-cisco)
1582
1527
        *-ibm)
1583
1528
                os=-aix
1584
1529
                ;;
1585
 
        *-knuth)
 
1530
        *-knuth)
1586
1531
                os=-mmixware
1587
1532
                ;;
1588
1533
        *-wec)