~ubuntu-branches/ubuntu/precise/gnupg2/precise-updates

« back to all changes in this revision

Viewing changes to scripts/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2011-02-13 16:06:41 UTC
  • mto: (1.1.15 upstream) (7.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20110213160641-2vzropar4rtzwybv
ImportĀ upstreamĀ versionĀ 2.0.17

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
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-06-11'
 
7
timestamp='2010-09-11'
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
32
32
 
33
33
 
34
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted ChangeLog entry.
 
35
# diff and a properly formatted GNU ChangeLog entry.
36
36
#
37
37
# Configuration subroutine to validate and canonicalize a configuration type.
38
38
# Supply the specified configuration type as an argument.
39
39
# If it is invalid, we print an error message on stderr and exit with code 1.
40
40
# Otherwise, we print the canonical config type on stdout and succeed.
41
41
 
 
42
# You can get the latest version of this script from:
 
43
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
44
 
42
45
# This file is supposed to be the same for all GNU packages
43
46
# and recognize all the CPU types, system types and aliases
44
47
# that are meaningful with *any* GNU software.
72
75
version="\
73
76
GNU config.sub ($timestamp)
74
77
 
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.
 
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
80
Software Foundation, Inc.
77
81
 
78
82
This is free software; see the source for copying conditions.  There is NO
79
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
120
124
# Here we must recognize all the valid KERNEL-OS combinations.
121
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
126
case $maybe_os in
123
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
 
  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* | \
125
130
  kopensolaris*-gnu* | \
126
131
  storm-chaos* | os2-emx* | rtmk-nova*)
127
132
    os=-$maybe_os
149
154
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
150
155
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
151
156
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
152
 
        -apple | -axis | -knuth | -cray)
 
157
        -apple | -axis | -knuth | -cray | -microblaze)
153
158
                os=
154
159
                basic_machine=$1
155
160
                ;;
278
283
        | moxie \
279
284
        | mt \
280
285
        | msp430 \
 
286
        | nds32 | nds32le | nds32be \
281
287
        | nios | nios2 \
282
288
        | ns16k | ns32k \
283
289
        | or32 \
284
290
        | pdp10 | pdp11 | pj | pjl \
285
291
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
286
292
        | pyramid \
 
293
        | rx \
287
294
        | score \
288
295
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
289
296
        | sh64 | sh64le \
290
297
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
291
298
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
292
299
        | spu | strongarm \
293
 
        | tahoe | thumb | tic4x | tic80 | tron \
 
300
        | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
301
        | ubicom32 \
294
302
        | v850 | v850e \
295
303
        | we32k \
296
304
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
297
305
        | z8k | z80)
298
306
                basic_machine=$basic_machine-unknown
299
307
                ;;
300
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
308
        c54x)
 
309
                basic_machine=tic54x-unknown
 
310
                ;;
 
311
        c55x)
 
312
                basic_machine=tic55x-unknown
 
313
                ;;
 
314
        c6x)
 
315
                basic_machine=tic6x-unknown
 
316
                ;;
 
317
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
301
318
                # Motorola 68HC11/12.
302
319
                basic_machine=$basic_machine-unknown
303
320
                os=-none
328
345
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
329
346
        | avr-* | avr32-* \
330
347
        | bfin-* | bs2000-* \
331
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
348
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
332
349
        | clipper-* | craynv-* | cydra-* \
333
350
        | d10v-* | d30v-* | dlx-* \
334
351
        | elxsi-* \
340
357
        | lm32-* \
341
358
        | m32c-* | m32r-* | m32rle-* \
342
359
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
343
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
360
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
344
361
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
345
362
        | mips16-* \
346
363
        | mips64-* | mips64el-* \
362
379
        | mmix-* \
363
380
        | mt-* \
364
381
        | msp430-* \
 
382
        | nds32-* | nds32le-* | nds32be-* \
365
383
        | nios-* | nios2-* \
366
384
        | none-* | np1-* | ns16k-* | ns32k-* \
367
385
        | orion-* \
368
386
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
369
387
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
370
388
        | pyramid-* \
371
 
        | romp-* | rs6000-* \
 
389
        | romp-* | rs6000-* | rx-* \
372
390
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
373
391
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
374
392
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
375
393
        | sparclite-* \
376
394
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
377
395
        | tahoe-* | thumb-* \
378
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
396
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
397
        | tile-* | tilegx-* \
379
398
        | tron-* \
 
399
        | ubicom32-* \
380
400
        | v850-* | v850e-* | vax-* \
381
401
        | we32k-* \
382
402
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
474
494
                basic_machine=powerpc-ibm
475
495
                os=-cnk
476
496
                ;;
 
497
        c54x-*)
 
498
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
499
                ;;
 
500
        c55x-*)
 
501
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
502
                ;;
 
503
        c6x-*)
 
504
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
505
                ;;
477
506
        c90)
478
507
                basic_machine=c90-cray
479
508
                os=-unicos
726
755
                basic_machine=ns32k-utek
727
756
                os=-sysv
728
757
                ;;
 
758
        microblaze)
 
759
                basic_machine=microblaze-xilinx
 
760
                ;;
729
761
        mingw32)
730
762
                basic_machine=i386-pc
731
763
                os=-mingw32
830
862
        np1)
831
863
                basic_machine=np1-gould
832
864
                ;;
 
865
        neo-tandem)
 
866
                basic_machine=neo-tandem
 
867
                ;;
 
868
        nse-tandem)
 
869
                basic_machine=nse-tandem
 
870
                ;;
833
871
        nsr-tandem)
834
872
                basic_machine=nsr-tandem
835
873
                ;;
1064
1102
                basic_machine=t90-cray
1065
1103
                os=-unicos
1066
1104
                ;;
1067
 
        tic54x | c54x*)
1068
 
                basic_machine=tic54x-unknown
1069
 
                os=-coff
1070
 
                ;;
1071
 
        tic55x | c55x*)
1072
 
                basic_machine=tic55x-unknown
1073
 
                os=-coff
1074
 
                ;;
1075
 
        tic6x | c6x*)
1076
 
                basic_machine=tic6x-unknown
1077
 
                os=-coff
 
1105
        # This must be matched before tile*.
 
1106
        tilegx*)
 
1107
                basic_machine=tilegx-unknown
 
1108
                os=-linux-gnu
1078
1109
                ;;
1079
1110
        tile*)
1080
1111
                basic_machine=tile-unknown
1247
1278
        # First match some system type aliases
1248
1279
        # that might get confused with valid system types.
1249
1280
        # -solaris* is a basic system type, with this one exception.
 
1281
        -auroraux)
 
1282
                os=-auroraux
 
1283
                ;;
1250
1284
        -solaris1 | -solaris1.*)
1251
1285
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1252
1286
                ;;
1268
1302
        # -sysv* is not here because it comes later, after sysvr4.
1269
1303
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1270
1304
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1271
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272
 
              | -kopensolaris* \
 
1305
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1306
              | -sym* | -kopensolaris* \
1273
1307
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1274
1308
              | -aos* | -aros* \
1275
1309
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1282
1316
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1283
1317
              | -chorusos* | -chorusrdb* | -cegcc* \
1284
1318
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1285
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1319
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1320
              | -linux-newlib* | -linux-uclibc* \
1286
1321
              | -uxpv* | -beos* | -mpeix* | -udk* \
1287
1322
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1288
1323
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1290
1325
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1291
1326
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1292
1327
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1293
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
 
1328
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1294
1329
        # Remember, each alternative MUST END IN *, to match a version number.
1295
1330
                ;;
1296
1331
        -qnx*)
1423
1458
        -dicos*)
1424
1459
                os=-dicos
1425
1460
                ;;
 
1461
        -nacl*)
 
1462
                ;;
1426
1463
        -none)
1427
1464
                ;;
1428
1465
        *)
1463
1500
        c4x-* | tic4x-*)
1464
1501
                os=-coff
1465
1502
                ;;
 
1503
        tic54x-*)
 
1504
                os=-coff
 
1505
                ;;
 
1506
        tic55x-*)
 
1507
                os=-coff
 
1508
                ;;
 
1509
        tic6x-*)
 
1510
                os=-coff
 
1511
                ;;
1466
1512
        # This must come before the *-dec entry.
1467
1513
        pdp10-*)
1468
1514
                os=-tops20