~ubuntu-branches/ubuntu/lucid/menu-cache/lucid

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-02-27 15:08:02 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100227150802-ro2lihqc0l0ny66z
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

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
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-11-20'
 
7
timestamp='2009-04-17'
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 GNU ChangeLog entry.
 
35
# diff and a properly formatted 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
 
 
45
42
# This file is supposed to be the same for all GNU packages
46
43
# and recognize all the CPU types, system types and aliases
47
44
# that are meaningful with *any* GNU software.
152
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray)
156
153
                os=
157
154
                basic_machine=$1
158
155
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
161
 
                ;;
162
156
        -sim | -cisco | -oki | -wec | -winbond)
163
157
                os=
164
158
                basic_machine=$1
287
281
        | pdp10 | pdp11 | pj | pjl \
288
282
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
289
283
        | pyramid \
290
 
        | rx \
291
284
        | score \
292
285
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293
286
        | sh64 | sh64le \
295
288
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
289
        | spu | strongarm \
297
290
        | tahoe | thumb | tic4x | tic80 | tron \
298
 
        | ubicom32 \
299
291
        | v850 | v850e \
300
292
        | we32k \
301
293
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
302
294
        | z8k | z80)
303
295
                basic_machine=$basic_machine-unknown
304
296
                ;;
305
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
297
        m6811 | m68hc11 | m6812 | m68hc12)
306
298
                # Motorola 68HC11/12.
307
299
                basic_machine=$basic_machine-unknown
308
300
                os=-none
345
337
        | lm32-* \
346
338
        | m32c-* | m32r-* | m32rle-* \
347
339
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
348
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
340
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
349
341
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
350
342
        | mips16-* \
351
343
        | mips64-* | mips64el-* \
373
365
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
366
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
375
367
        | pyramid-* \
376
 
        | romp-* | rs6000-* | rx-* \
 
368
        | romp-* | rs6000-* \
377
369
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
370
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
371
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
382
374
        | tahoe-* | thumb-* \
383
375
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
384
376
        | tron-* \
385
 
        | ubicom32-* \
386
377
        | v850-* | v850e-* | vax-* \
387
378
        | we32k-* \
388
379
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
476
467
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
477
468
                os=-linux
478
469
                ;;
479
 
        bluegene*)
480
 
                basic_machine=powerpc-ibm
481
 
                os=-cnk
482
 
                ;;
483
470
        c90)
484
471
                basic_machine=c90-cray
485
472
                os=-unicos
732
719
                basic_machine=ns32k-utek
733
720
                os=-sysv
734
721
                ;;
735
 
        microblaze)
736
 
                basic_machine=microblaze-xilinx
737
 
                ;;
738
722
        mingw32)
739
723
                basic_machine=i386-pc
740
724
                os=-mingw32
1256
1240
        # First match some system type aliases
1257
1241
        # that might get confused with valid system types.
1258
1242
        # -solaris* is a basic system type, with this one exception.
1259
 
        -auroraux)
1260
 
                os=-auroraux
1261
 
                ;;
1262
1243
        -solaris1 | -solaris1.*)
1263
1244
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1264
1245
                ;;
1279
1260
        # Each alternative MUST END IN A *, to match a version number.
1280
1261
        # -sysv* is not here because it comes later, after sysvr4.
1281
1262
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1282
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1283
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1284
 
              | -sym* | -kopensolaris* \
 
1263
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1264
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1265
              | -kopensolaris* \
1285
1266
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1286
1267
              | -aos* | -aros* \
1287
1268
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1302
1283
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1303
1284
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1304
1285
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1305
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1286
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1306
1287
        # Remember, each alternative MUST END IN *, to match a version number.
1307
1288
                ;;
1308
1289
        -qnx*)
1632
1613
                        -sunos*)
1633
1614
                                vendor=sun
1634
1615
                                ;;
1635
 
                        -cnk*|-aix*)
 
1616
                        -aix*)
1636
1617
                                vendor=ibm
1637
1618
                                ;;
1638
1619
                        -beos*)