~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

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, 2010
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2010-01-22'
 
7
timestamp='2008-04-14'
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.
75
72
version="\
76
73
GNU config.sub ($timestamp)
77
74
 
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.
 
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.
81
77
 
82
78
This is free software; see the source for copying conditions.  There is NO
83
79
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
126
122
case $maybe_os in
127
123
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128
124
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
129
 
  kopensolaris*-gnu* | \
130
125
  storm-chaos* | os2-emx* | rtmk-nova*)
131
126
    os=-$maybe_os
132
127
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
153
148
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154
149
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155
150
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
151
        -apple | -axis | -knuth | -cray)
157
152
                os=
158
153
                basic_machine=$1
159
154
                ;;
160
 
        -bluegene*)
161
 
                os=-cnk
162
 
                ;;
163
155
        -sim | -cisco | -oki | -wec | -winbond)
164
156
                os=
165
157
                basic_machine=$1
257
249
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
258
250
        | i370 | i860 | i960 | ia64 \
259
251
        | ip2k | iq2000 \
260
 
        | lm32 \
261
252
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
262
253
        | maxq | mb | microblaze | mcore | mep | metag \
263
254
        | mips | mipsbe | mipseb | mipsel | mipsle \
279
270
        | mipsisa64sr71k | mipsisa64sr71kel \
280
271
        | mipstx39 | mipstx39el \
281
272
        | mn10200 | mn10300 \
282
 
        | moxie \
283
273
        | mt \
284
274
        | msp430 \
285
275
        | nios | nios2 \
288
278
        | pdp10 | pdp11 | pj | pjl \
289
279
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
290
280
        | pyramid \
291
 
        | rx \
292
281
        | score \
293
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
282
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
294
283
        | sh64 | sh64le \
295
284
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
296
285
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
297
286
        | spu | strongarm \
298
287
        | tahoe | thumb | tic4x | tic80 | tron \
299
 
        | ubicom32 \
300
288
        | v850 | v850e \
301
289
        | we32k \
302
290
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
303
 
        | z8k | z80)
 
291
        | z8k)
304
292
                basic_machine=$basic_machine-unknown
305
293
                ;;
306
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
294
        m6811 | m68hc11 | m6812 | m68hc12)
307
295
                # Motorola 68HC11/12.
308
296
                basic_machine=$basic_machine-unknown
309
297
                os=-none
343
331
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
344
332
        | i*86-* | i860-* | i960-* | ia64-* \
345
333
        | ip2k-* | iq2000-* \
346
 
        | lm32-* \
347
334
        | m32c-* | m32r-* | m32rle-* \
348
335
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
349
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
336
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
350
337
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
351
338
        | mips16-* \
352
339
        | mips64-* | mips64el-* \
374
361
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
375
362
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
376
363
        | pyramid-* \
377
 
        | romp-* | rs6000-* | rx-* \
378
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
364
        | romp-* | rs6000-* \
 
365
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
379
366
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
380
367
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381
368
        | sparclite-* \
382
369
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
383
370
        | tahoe-* | thumb-* \
384
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
385
 
        | tile-* | tilegx-* \
 
371
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
386
372
        | tron-* \
387
 
        | ubicom32-* \
388
373
        | v850-* | v850e-* | vax-* \
389
374
        | we32k-* \
390
375
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
391
376
        | xstormy16-* | xtensa*-* \
392
377
        | ymp-* \
393
 
        | z8k-* | z80-*)
 
378
        | z8k-*)
394
379
                ;;
395
380
        # Recognize the basic CPU types without company name, with glob match.
396
381
        xtensa*)
458
443
                basic_machine=m68k-apollo
459
444
                os=-bsd
460
445
                ;;
461
 
        aros)
462
 
                basic_machine=i386-pc
463
 
                os=-aros
464
 
                ;;
465
446
        aux)
466
447
                basic_machine=m68k-apple
467
448
                os=-aux
478
459
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
479
460
                os=-linux
480
461
                ;;
481
 
        bluegene*)
482
 
                basic_machine=powerpc-ibm
483
 
                os=-cnk
484
 
                ;;
485
462
        c90)
486
463
                basic_machine=c90-cray
487
464
                os=-unicos
488
465
                ;;
489
 
        cegcc)
490
 
                basic_machine=arm-unknown
491
 
                os=-cegcc
492
 
                ;;
493
466
        convex-c1)
494
467
                basic_machine=c1-convex
495
468
                os=-bsd
734
707
                basic_machine=ns32k-utek
735
708
                os=-sysv
736
709
                ;;
737
 
        microblaze)
738
 
                basic_machine=microblaze-xilinx
739
 
                ;;
740
710
        mingw32)
741
711
                basic_machine=i386-pc
742
712
                os=-mingw32
1087
1057
                basic_machine=tic6x-unknown
1088
1058
                os=-coff
1089
1059
                ;;
1090
 
        # This must be matched before tile*.
1091
 
        tilegx*)
1092
 
                basic_machine=tilegx-unknown
1093
 
                os=-linux-gnu
1094
 
                ;;
1095
1060
        tile*)
1096
1061
                basic_machine=tile-unknown
1097
1062
                os=-linux-gnu
1171
1136
                basic_machine=z8k-unknown
1172
1137
                os=-sim
1173
1138
                ;;
1174
 
        z80-*-coff)
1175
 
                basic_machine=z80-unknown
1176
 
                os=-sim
1177
 
                ;;
1178
1139
        none)
1179
1140
                basic_machine=none-none
1180
1141
                os=-none
1213
1174
        we32k)
1214
1175
                basic_machine=we32k-att
1215
1176
                ;;
1216
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
 
1177
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1217
1178
                basic_machine=sh-unknown
1218
1179
                ;;
1219
1180
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1263
1224
        # First match some system type aliases
1264
1225
        # that might get confused with valid system types.
1265
1226
        # -solaris* is a basic system type, with this one exception.
1266
 
        -auroraux)
1267
 
                os=-auroraux
1268
 
                ;;
1269
1227
        -solaris1 | -solaris1.*)
1270
1228
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1271
1229
                ;;
1286
1244
        # Each alternative MUST END IN A *, to match a version number.
1287
1245
        # -sysv* is not here because it comes later, after sysvr4.
1288
1246
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1289
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1290
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1291
 
              | -sym* | -kopensolaris* \
 
1247
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
 
1248
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1292
1249
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1293
 
              | -aos* | -aros* \
 
1250
              | -aos* \
1294
1251
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1295
1252
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1296
1253
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1299
1256
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1300
1257
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1301
1258
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1302
 
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1259
              | -chorusos* | -chorusrdb* \
1303
1260
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1304
1261
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1305
1262
              | -uxpv* | -beos* | -mpeix* | -udk* \
1309
1266
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1310
1267
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1311
1268
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1312
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1269
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1313
1270
        # Remember, each alternative MUST END IN *, to match a version number.
1314
1271
                ;;
1315
1272
        -qnx*)
1442
1399
        -dicos*)
1443
1400
                os=-dicos
1444
1401
                ;;
1445
 
        -nacl*)
1446
 
                ;;
1447
1402
        -none)
1448
1403
                ;;
1449
1404
        *)
1641
1596
                        -sunos*)
1642
1597
                                vendor=sun
1643
1598
                                ;;
1644
 
                        -cnk*|-aix*)
 
1599
                        -aix*)
1645
1600
                                vendor=ibm
1646
1601
                                ;;
1647
1602
                        -beos*)