~ubuntu-branches/ubuntu/vivid/libspectre/vivid-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2012-08-11 11:25:13 UTC
  • mfrom: (1.2.3)
  • mto: (9.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120811112513-u87qf35j9xb1i102
Tags: 0.2.7-1
* New upstream release.
* Make builds verbose by exporting V=1.

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, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2012-02-10'
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
21
21
# GNU General Public License for more details.
22
22
#
23
23
# You should have received a copy of the GNU General Public License
24
 
# along with this program; if not, write to the Free Software
25
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
 
# 02110-1301, USA.
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
25
#
28
26
# As a special exception to the GNU General Public License, if you
29
27
# distribute this file as part of a program that contains a
75
73
version="\
76
74
GNU config.sub ($timestamp)
77
75
 
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.
 
76
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
78
Free Software Foundation, Inc.
80
79
 
81
80
This is free software; see the source for copying conditions.  There is NO
82
81
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123
122
# Here we must recognize all the valid KERNEL-OS combinations.
124
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125
124
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* | \
 
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
126
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
127
  knetbsd*-gnu* | netbsd*-gnu* | \
128
128
  kopensolaris*-gnu* | \
129
129
  storm-chaos* | os2-emx* | rtmk-nova*)
130
130
    os=-$maybe_os
131
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
133
137
  *)
134
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
135
139
    if [ $basic_machine != $1 ]
156
160
                os=
157
161
                basic_machine=$1
158
162
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
 
163
        -bluegene*)
 
164
                os=-cnk
161
165
                ;;
162
166
        -sim | -cisco | -oki | -wec | -winbond)
163
167
                os=
173
177
                os=-chorusos
174
178
                basic_machine=$1
175
179
                ;;
176
 
        -chorusrdb)
177
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
178
182
                basic_machine=$1
179
 
                ;;
 
183
                ;;
180
184
        -hiux*)
181
185
                os=-hiuxwe2
182
186
                ;;
245
249
        # Some are omitted here because they have special meanings below.
246
250
        1750a | 580 \
247
251
        | a29k \
 
252
        | aarch64 | aarch64_be \
248
253
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
249
254
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250
255
        | am33_2.0 \
251
256
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
257
        | be32 | be64 \
252
258
        | bfin \
253
259
        | c4x | clipper \
254
260
        | d10v | d30v | dlx | dsp16xx \
 
261
        | epiphany \
255
262
        | fido | fr30 | frv \
256
263
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
264
        | hexagon \
257
265
        | i370 | i860 | i960 | ia64 \
258
266
        | ip2k | iq2000 \
 
267
        | le32 | le64 \
259
268
        | lm32 \
260
269
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
261
270
        | maxq | mb | microblaze | mcore | mep | metag \
281
290
        | moxie \
282
291
        | mt \
283
292
        | msp430 \
 
293
        | nds32 | nds32le | nds32be \
284
294
        | nios | nios2 \
285
295
        | ns16k | ns32k \
 
296
        | open8 \
286
297
        | or32 \
287
298
        | pdp10 | pdp11 | pj | pjl \
288
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
299
        | powerpc | powerpc64 | powerpc64le | powerpcle \
289
300
        | pyramid \
290
 
        | rx \
 
301
        | rl78 | rx \
291
302
        | score \
292
303
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293
304
        | sh64 | sh64le \
294
305
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295
306
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
 
        | spu | strongarm \
297
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
307
        | spu \
 
308
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298
309
        | ubicom32 \
299
 
        | v850 | v850e \
 
310
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300
311
        | we32k \
301
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
312
        | x86 | xc16x | xstormy16 | xtensa \
302
313
        | z8k | z80)
303
314
                basic_machine=$basic_machine-unknown
304
315
                ;;
305
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306
 
                # Motorola 68HC11/12.
 
316
        c54x)
 
317
                basic_machine=tic54x-unknown
 
318
                ;;
 
319
        c55x)
 
320
                basic_machine=tic55x-unknown
 
321
                ;;
 
322
        c6x)
 
323
                basic_machine=tic6x-unknown
 
324
                ;;
 
325
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
307
326
                basic_machine=$basic_machine-unknown
308
327
                os=-none
309
328
                ;;
313
332
                basic_machine=mt-unknown
314
333
                ;;
315
334
 
 
335
        strongarm | thumb | xscale)
 
336
                basic_machine=arm-unknown
 
337
                ;;
 
338
        xgate)
 
339
                basic_machine=$basic_machine-unknown
 
340
                os=-none
 
341
                ;;
 
342
        xscaleeb)
 
343
                basic_machine=armeb-unknown
 
344
                ;;
 
345
 
 
346
        xscaleel)
 
347
                basic_machine=armel-unknown
 
348
                ;;
 
349
 
316
350
        # We use `pc' rather than `unknown'
317
351
        # because (1) that's what they normally are, and
318
352
        # (2) the word "unknown" tends to confuse beginning users.
327
361
        # Recognize the basic CPU types with company name.
328
362
        580-* \
329
363
        | a29k-* \
 
364
        | aarch64-* | aarch64_be-* \
330
365
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
331
366
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332
367
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333
368
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
334
369
        | avr-* | avr32-* \
 
370
        | be32-* | be64-* \
335
371
        | bfin-* | bs2000-* \
336
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
372
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
337
373
        | clipper-* | craynv-* | cydra-* \
338
374
        | d10v-* | d30v-* | dlx-* \
339
375
        | elxsi-* \
340
376
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341
377
        | h8300-* | h8500-* \
342
378
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
379
        | hexagon-* \
343
380
        | i*86-* | i860-* | i960-* | ia64-* \
344
381
        | ip2k-* | iq2000-* \
 
382
        | le32-* | le64-* \
345
383
        | lm32-* \
346
384
        | m32c-* | m32r-* | m32rle-* \
347
385
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
367
405
        | mmix-* \
368
406
        | mt-* \
369
407
        | msp430-* \
 
408
        | nds32-* | nds32le-* | nds32be-* \
370
409
        | nios-* | nios2-* \
371
410
        | none-* | np1-* | ns16k-* | ns32k-* \
 
411
        | open8-* \
372
412
        | orion-* \
373
413
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
414
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375
415
        | pyramid-* \
376
 
        | romp-* | rs6000-* | rx-* \
 
416
        | rl78-* | romp-* | rs6000-* | rx-* \
377
417
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
418
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
419
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380
420
        | sparclite-* \
381
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382
 
        | tahoe-* | thumb-* \
383
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
421
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
422
        | tahoe-* \
 
423
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
424
        | tile*-* \
384
425
        | tron-* \
385
426
        | ubicom32-* \
386
 
        | v850-* | v850e-* | vax-* \
 
427
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
428
        | vax-* \
387
429
        | we32k-* \
388
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
430
        | x86-* | x86_64-* | xc16x-* | xps100-* \
389
431
        | xstormy16-* | xtensa*-* \
390
432
        | ymp-* \
391
433
        | z8k-* | z80-*)
410
452
                basic_machine=a29k-amd
411
453
                os=-udi
412
454
                ;;
413
 
        abacus)
 
455
        abacus)
414
456
                basic_machine=abacus-unknown
415
457
                ;;
416
458
        adobe68k)
480
522
                basic_machine=powerpc-ibm
481
523
                os=-cnk
482
524
                ;;
 
525
        c54x-*)
 
526
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
527
                ;;
 
528
        c55x-*)
 
529
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
530
                ;;
 
531
        c6x-*)
 
532
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
533
                ;;
483
534
        c90)
484
535
                basic_machine=c90-cray
485
536
                os=-unicos
486
537
                ;;
487
 
        cegcc)
 
538
        cegcc)
488
539
                basic_machine=arm-unknown
489
540
                os=-cegcc
490
541
                ;;
516
567
                basic_machine=craynv-cray
517
568
                os=-unicosmp
518
569
                ;;
519
 
        cr16)
 
570
        cr16 | cr16-*)
520
571
                basic_machine=cr16-unknown
521
572
                os=-elf
522
573
                ;;
674
725
        i370-ibm* | ibm*)
675
726
                basic_machine=i370-ibm
676
727
                ;;
677
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
678
728
        i*86v32)
679
729
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
680
730
                os=-sysv32
732
782
                basic_machine=ns32k-utek
733
783
                os=-sysv
734
784
                ;;
735
 
        microblaze)
 
785
        microblaze)
736
786
                basic_machine=microblaze-xilinx
737
787
                ;;
738
788
        mingw32)
771
821
        ms1-*)
772
822
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
773
823
                ;;
 
824
        msys)
 
825
                basic_machine=i386-pc
 
826
                os=-msys
 
827
                ;;
774
828
        mvs)
775
829
                basic_machine=i370-ibm
776
830
                os=-mvs
777
831
                ;;
 
832
        nacl)
 
833
                basic_machine=le32-unknown
 
834
                os=-nacl
 
835
                ;;
778
836
        ncr3000)
779
837
                basic_machine=i486-ncr
780
838
                os=-sysv4
839
897
        np1)
840
898
                basic_machine=np1-gould
841
899
                ;;
 
900
        neo-tandem)
 
901
                basic_machine=neo-tandem
 
902
                ;;
 
903
        nse-tandem)
 
904
                basic_machine=nse-tandem
 
905
                ;;
842
906
        nsr-tandem)
843
907
                basic_machine=nsr-tandem
844
908
                ;;
921
985
                ;;
922
986
        power)  basic_machine=power-ibm
923
987
                ;;
924
 
        ppc)    basic_machine=powerpc-unknown
 
988
        ppc | ppcbe)    basic_machine=powerpc-unknown
925
989
                ;;
926
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
990
        ppc-* | ppcbe-*)
 
991
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
927
992
                ;;
928
993
        ppcle | powerpclittle | ppc-le | powerpc-little)
929
994
                basic_machine=powerpcle-unknown
1017
1082
                basic_machine=i860-stratus
1018
1083
                os=-sysv4
1019
1084
                ;;
 
1085
        strongarm-* | thumb-*)
 
1086
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1087
                ;;
1020
1088
        sun2)
1021
1089
                basic_machine=m68000-sun
1022
1090
                ;;
1073
1141
                basic_machine=t90-cray
1074
1142
                os=-unicos
1075
1143
                ;;
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
1144
        tile*)
1089
 
                basic_machine=tile-unknown
 
1145
                basic_machine=$basic_machine-unknown
1090
1146
                os=-linux-gnu
1091
1147
                ;;
1092
1148
        tx39)
1156
1212
        xps | xps100)
1157
1213
                basic_machine=xps100-honeywell
1158
1214
                ;;
 
1215
        xscale-* | xscalee[bl]-*)
 
1216
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1217
                ;;
1159
1218
        ymp)
1160
1219
                basic_machine=ymp-cray
1161
1220
                os=-unicos
1253
1312
if [ x"$os" != x"" ]
1254
1313
then
1255
1314
case $os in
1256
 
        # First match some system type aliases
1257
 
        # that might get confused with valid system types.
 
1315
        # First match some system type aliases
 
1316
        # that might get confused with valid system types.
1258
1317
        # -solaris* is a basic system type, with this one exception.
1259
 
        -auroraux)
1260
 
                os=-auroraux
 
1318
        -auroraux)
 
1319
                os=-auroraux
1261
1320
                ;;
1262
1321
        -solaris1 | -solaris1.*)
1263
1322
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1293
1352
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1294
1353
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1295
1354
              | -chorusos* | -chorusrdb* | -cegcc* \
1296
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1355
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1356
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1357
              | -linux-newlib* | -linux-uclibc* \
1298
1358
              | -uxpv* | -beos* | -mpeix* | -udk* \
1299
1359
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1300
1360
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1341
1401
        -opened*)
1342
1402
                os=-openedition
1343
1403
                ;;
1344
 
        -os400*)
 
1404
        -os400*)
1345
1405
                os=-os400
1346
1406
                ;;
1347
1407
        -wince*)
1390
1450
        -sinix*)
1391
1451
                os=-sysv4
1392
1452
                ;;
1393
 
        -tpf*)
 
1453
        -tpf*)
1394
1454
                os=-tpf
1395
1455
                ;;
1396
1456
        -triton*)
1435
1495
        -dicos*)
1436
1496
                os=-dicos
1437
1497
                ;;
 
1498
        -nacl*)
 
1499
                ;;
1438
1500
        -none)
1439
1501
                ;;
1440
1502
        *)
1457
1519
# system, and we'll never get to this point.
1458
1520
 
1459
1521
case $basic_machine in
1460
 
        score-*)
 
1522
        score-*)
1461
1523
                os=-elf
1462
1524
                ;;
1463
 
        spu-*)
 
1525
        spu-*)
1464
1526
                os=-elf
1465
1527
                ;;
1466
1528
        *-acorn)
1472
1534
        arm*-semi)
1473
1535
                os=-aout
1474
1536
                ;;
1475
 
        c4x-* | tic4x-*)
1476
 
                os=-coff
 
1537
        c4x-* | tic4x-*)
 
1538
                os=-coff
 
1539
                ;;
 
1540
        tic54x-*)
 
1541
                os=-coff
 
1542
                ;;
 
1543
        tic55x-*)
 
1544
                os=-coff
 
1545
                ;;
 
1546
        tic6x-*)
 
1547
                os=-coff
1477
1548
                ;;
1478
1549
        # This must come before the *-dec entry.
1479
1550
        pdp10-*)
1493
1564
                ;;
1494
1565
        m68000-sun)
1495
1566
                os=-sunos3
1496
 
                # This also exists in the configure program, but was not the
1497
 
                # default.
1498
 
                # os=-sunos4
1499
1567
                ;;
1500
1568
        m68*-cisco)
1501
1569
                os=-aout
1502
1570
                ;;
1503
 
        mep-*)
 
1571
        mep-*)
1504
1572
                os=-elf
1505
1573
                ;;
1506
1574
        mips*-cisco)
1527
1595
        *-ibm)
1528
1596
                os=-aix
1529
1597
                ;;
1530
 
        *-knuth)
 
1598
        *-knuth)
1531
1599
                os=-mmixware
1532
1600
                ;;
1533
1601
        *-wec)