~ubuntu-branches/ubuntu/precise/libmtp/precise-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-05-25 08:22:17 UTC
  • mto: (0.2.1 upstream) (16.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100525082217-3jpyw97sxwiewb6r
Tags: upstream-1.0.3
ImportĀ upstreamĀ versionĀ 1.0.3

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='2008-01-16'
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.
125
122
case $maybe_os in
126
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
128
 
  kopensolaris*-gnu* | \
129
125
  storm-chaos* | os2-emx* | rtmk-nova*)
130
126
    os=-$maybe_os
131
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
152
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
151
        -apple | -axis | -knuth | -cray)
156
152
                os=
157
153
                basic_machine=$1
158
154
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
161
 
                ;;
162
155
        -sim | -cisco | -oki | -wec | -winbond)
163
156
                os=
164
157
                basic_machine=$1
256
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
257
250
        | i370 | i860 | i960 | ia64 \
258
251
        | ip2k | iq2000 \
259
 
        | lm32 \
260
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
261
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
253
        | maxq | mb | microblaze | mcore | mep \
262
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
263
255
        | mips16 \
264
256
        | mips64 | mips64el \
265
 
        | mips64octeon | mips64octeonel \
 
257
        | mips64vr | mips64vrel \
266
258
        | mips64orion | mips64orionel \
267
 
        | mips64r5900 | mips64r5900el \
268
 
        | mips64vr | mips64vrel \
269
259
        | mips64vr4100 | mips64vr4100el \
270
260
        | mips64vr4300 | mips64vr4300el \
271
261
        | mips64vr5000 | mips64vr5000el \
278
268
        | mipsisa64sr71k | mipsisa64sr71kel \
279
269
        | mipstx39 | mipstx39el \
280
270
        | mn10200 | mn10300 \
281
 
        | moxie \
282
271
        | mt \
283
272
        | msp430 \
284
273
        | nios | nios2 \
287
276
        | pdp10 | pdp11 | pj | pjl \
288
277
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
289
278
        | pyramid \
290
 
        | rx \
291
279
        | score \
292
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
280
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293
281
        | sh64 | sh64le \
294
282
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295
283
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296
284
        | spu | strongarm \
297
285
        | tahoe | thumb | tic4x | tic80 | tron \
298
 
        | ubicom32 \
299
286
        | v850 | v850e \
300
287
        | we32k \
301
288
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
302
 
        | z8k | z80)
 
289
        | z8k)
303
290
                basic_machine=$basic_machine-unknown
304
291
                ;;
305
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
292
        m6811 | m68hc11 | m6812 | m68hc12)
306
293
                # Motorola 68HC11/12.
307
294
                basic_machine=$basic_machine-unknown
308
295
                os=-none
342
329
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
343
330
        | i*86-* | i860-* | i960-* | ia64-* \
344
331
        | ip2k-* | iq2000-* \
345
 
        | lm32-* \
346
332
        | m32c-* | m32r-* | m32rle-* \
347
333
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
348
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
334
        | m88110-* | m88k-* | maxq-* | mcore-* \
349
335
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
350
336
        | mips16-* \
351
337
        | mips64-* | mips64el-* \
352
 
        | mips64octeon-* | mips64octeonel-* \
 
338
        | mips64vr-* | mips64vrel-* \
353
339
        | mips64orion-* | mips64orionel-* \
354
 
        | mips64r5900-* | mips64r5900el-* \
355
 
        | mips64vr-* | mips64vrel-* \
356
340
        | mips64vr4100-* | mips64vr4100el-* \
357
341
        | mips64vr4300-* | mips64vr4300el-* \
358
342
        | mips64vr5000-* | mips64vr5000el-* \
373
357
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374
358
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
375
359
        | pyramid-* \
376
 
        | romp-* | rs6000-* | rx-* \
377
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
360
        | romp-* | rs6000-* \
 
361
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378
362
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379
363
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380
364
        | sparclite-* \
381
365
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382
366
        | tahoe-* | thumb-* \
383
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
 
367
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
384
368
        | tron-* \
385
 
        | ubicom32-* \
386
369
        | v850-* | v850e-* | vax-* \
387
370
        | we32k-* \
388
371
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
389
372
        | xstormy16-* | xtensa*-* \
390
373
        | ymp-* \
391
 
        | z8k-* | z80-*)
 
374
        | z8k-*)
392
375
                ;;
393
376
        # Recognize the basic CPU types without company name, with glob match.
394
377
        xtensa*)
456
439
                basic_machine=m68k-apollo
457
440
                os=-bsd
458
441
                ;;
459
 
        aros)
460
 
                basic_machine=i386-pc
461
 
                os=-aros
462
 
                ;;
463
442
        aux)
464
443
                basic_machine=m68k-apple
465
444
                os=-aux
476
455
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
477
456
                os=-linux
478
457
                ;;
479
 
        bluegene*)
480
 
                basic_machine=powerpc-ibm
481
 
                os=-cnk
482
 
                ;;
483
458
        c90)
484
459
                basic_machine=c90-cray
485
460
                os=-unicos
486
461
                ;;
487
 
        cegcc)
488
 
                basic_machine=arm-unknown
489
 
                os=-cegcc
490
 
                ;;
491
462
        convex-c1)
492
463
                basic_machine=c1-convex
493
464
                os=-bsd
555
526
                basic_machine=m88k-motorola
556
527
                os=-sysv3
557
528
                ;;
558
 
        dicos)
559
 
                basic_machine=i686-pc
560
 
                os=-dicos
561
 
                ;;
562
529
        djgpp)
563
530
                basic_machine=i586-pc
564
531
                os=-msdosdjgpp
732
699
                basic_machine=ns32k-utek
733
700
                os=-sysv
734
701
                ;;
735
 
        microblaze)
736
 
                basic_machine=microblaze-xilinx
737
 
                ;;
738
702
        mingw32)
739
703
                basic_machine=i386-pc
740
704
                os=-mingw32
1164
1128
                basic_machine=z8k-unknown
1165
1129
                os=-sim
1166
1130
                ;;
1167
 
        z80-*-coff)
1168
 
                basic_machine=z80-unknown
1169
 
                os=-sim
1170
 
                ;;
1171
1131
        none)
1172
1132
                basic_machine=none-none
1173
1133
                os=-none
1206
1166
        we32k)
1207
1167
                basic_machine=we32k-att
1208
1168
                ;;
1209
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
1169
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1210
1170
                basic_machine=sh-unknown
1211
1171
                ;;
1212
1172
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1256
1216
        # First match some system type aliases
1257
1217
        # that might get confused with valid system types.
1258
1218
        # -solaris* is a basic system type, with this one exception.
1259
 
        -auroraux)
1260
 
                os=-auroraux
1261
 
                ;;
1262
1219
        -solaris1 | -solaris1.*)
1263
1220
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1264
1221
                ;;
1279
1236
        # Each alternative MUST END IN A *, to match a version number.
1280
1237
        # -sysv* is not here because it comes later, after sysvr4.
1281
1238
        -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* \
 
1239
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1240
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1285
1241
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1286
 
              | -aos* | -aros* \
 
1242
              | -aos* \
1287
1243
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1288
1244
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1289
1245
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1292
1248
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1293
1249
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1294
1250
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1295
 
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1251
              | -chorusos* | -chorusrdb* \
1296
1252
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1297
1253
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1298
1254
              | -uxpv* | -beos* | -mpeix* | -udk* \
1302
1258
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1303
1259
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1304
1260
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1305
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1261
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1306
1262
        # Remember, each alternative MUST END IN *, to match a version number.
1307
1263
                ;;
1308
1264
        -qnx*)
1432
1388
        -zvmoe)
1433
1389
                os=-zvmoe
1434
1390
                ;;
1435
 
        -dicos*)
1436
 
                os=-dicos
1437
 
                ;;
1438
1391
        -none)
1439
1392
                ;;
1440
1393
        *)
1632
1585
                        -sunos*)
1633
1586
                                vendor=sun
1634
1587
                                ;;
1635
 
                        -cnk*|-aix*)
 
1588
                        -aix*)
1636
1589
                                vendor=ibm
1637
1590
                                ;;
1638
1591
                        -beos*)