~ubuntu-branches/ubuntu/trusty/xterm/trusty

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2010-03-31 12:32:27 UTC
  • mfrom: (1.1.17 upstream) (11.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100331123227-8a6qwmyciob6j88y
Tags: 256-1ubuntu1
* Merge from Debian unstable.
* Revert the libutempter change for lucid. (LP: #539473)

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
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2008-12-11'
 
7
timestamp='2009-12-31'
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."
122
126
case $maybe_os in
123
127
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
128
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
 
129
  kopensolaris*-gnu* | \
125
130
  storm-chaos* | os2-emx* | rtmk-nova*)
126
131
    os=-$maybe_os
127
132
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
148
153
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
154
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
155
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
 
        -apple | -axis | -knuth | -cray)
 
156
        -apple | -axis | -knuth | -cray | -microblaze)
152
157
                os=
153
158
                basic_machine=$1
154
159
                ;;
 
160
        -bluegene*)
 
161
                os=-cnk
 
162
                ;;
155
163
        -sim | -cisco | -oki | -wec | -winbond)
156
164
                os=
157
165
                basic_machine=$1
271
279
        | mipsisa64sr71k | mipsisa64sr71kel \
272
280
        | mipstx39 | mipstx39el \
273
281
        | mn10200 | mn10300 \
 
282
        | moxie \
274
283
        | mt \
275
284
        | msp430 \
276
285
        | nios | nios2 \
279
288
        | pdp10 | pdp11 | pj | pjl \
280
289
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
281
290
        | pyramid \
 
291
        | rx \
282
292
        | score \
283
293
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
284
294
        | sh64 | sh64le \
286
296
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
287
297
        | spu | strongarm \
288
298
        | tahoe | thumb | tic4x | tic80 | tron \
 
299
        | ubicom32 \
289
300
        | v850 | v850e \
290
301
        | we32k \
291
302
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
292
303
        | z8k | z80)
293
304
                basic_machine=$basic_machine-unknown
294
305
                ;;
295
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
306
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
296
307
                # Motorola 68HC11/12.
297
308
                basic_machine=$basic_machine-unknown
298
309
                os=-none
335
346
        | lm32-* \
336
347
        | m32c-* | m32r-* | m32rle-* \
337
348
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
338
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
349
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
339
350
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
340
351
        | mips16-* \
341
352
        | mips64-* | mips64el-* \
363
374
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
364
375
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
365
376
        | pyramid-* \
366
 
        | romp-* | rs6000-* \
 
377
        | romp-* | rs6000-* | rx-* \
367
378
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
368
379
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
369
380
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
372
383
        | tahoe-* | thumb-* \
373
384
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
374
385
        | tron-* \
 
386
        | ubicom32-* \
375
387
        | v850-* | v850e-* | vax-* \
376
388
        | we32k-* \
377
389
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
445
457
                basic_machine=m68k-apollo
446
458
                os=-bsd
447
459
                ;;
 
460
        aros)
 
461
                basic_machine=i386-pc
 
462
                os=-aros
 
463
                ;;
448
464
        aux)
449
465
                basic_machine=m68k-apple
450
466
                os=-aux
461
477
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
462
478
                os=-linux
463
479
                ;;
 
480
        bluegene*)
 
481
                basic_machine=powerpc-ibm
 
482
                os=-cnk
 
483
                ;;
464
484
        c90)
465
485
                basic_machine=c90-cray
466
486
                os=-unicos
713
733
                basic_machine=ns32k-utek
714
734
                os=-sysv
715
735
                ;;
 
736
        microblaze)
 
737
                basic_machine=microblaze-xilinx
 
738
                ;;
716
739
        mingw32)
717
740
                basic_machine=i386-pc
718
741
                os=-mingw32
1234
1257
        # First match some system type aliases
1235
1258
        # that might get confused with valid system types.
1236
1259
        # -solaris* is a basic system type, with this one exception.
 
1260
        -auroraux)
 
1261
                os=-auroraux
 
1262
                ;;
1237
1263
        -solaris1 | -solaris1.*)
1238
1264
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1239
1265
                ;;
1254
1280
        # Each alternative MUST END IN A *, to match a version number.
1255
1281
        # -sysv* is not here because it comes later, after sysvr4.
1256
1282
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1257
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1258
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1283
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1284
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1285
              | -sym* | -kopensolaris* \
1259
1286
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1260
 
              | -aos* \
 
1287
              | -aos* | -aros* \
1261
1288
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1262
1289
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1263
1290
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1276
1303
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1277
1304
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1278
1305
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1279
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
 
1306
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1280
1307
        # Remember, each alternative MUST END IN *, to match a version number.
1281
1308
                ;;
1282
1309
        -qnx*)
1409
1436
        -dicos*)
1410
1437
                os=-dicos
1411
1438
                ;;
 
1439
        -nacl*)
 
1440
                ;;
1412
1441
        -none)
1413
1442
                ;;
1414
1443
        *)
1606
1635
                        -sunos*)
1607
1636
                                vendor=sun
1608
1637
                                ;;
1609
 
                        -aix*)
 
1638
                        -cnk*|-aix*)
1610
1639
                                vendor=ibm
1611
1640
                                ;;
1612
1641
                        -beos*)