~ubuntu-branches/debian/jessie/make-dfsg/jessie

« back to all changes in this revision

Viewing changes to config/config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2010-03-21 12:42:55 UTC
  • Revision ID: james.westby@ubuntu.com-20100321124255-ukc2euswom49jf2z
Tags: 3.81-8
* New bug fixing release.
* [a6f53b8]: [topic--overlap-strcpy-fix]: make corrupts commands with
  latest eglibc make uses strcpy() on overlapping strings, recent
  (e)glibc doesn't tolerate this. strcpy is not defined to work on
  overlapping regions. This is upstream bug
  https://savannah.gnu.org/bugs/index.php?29253 The fix comes thanks
  to Roderich Schupp and Max Bowsher.
  Bug fix: "make corrupts commands with latest eglibc (strcpy of
  overlapping strings)", thanks to Roderich Schupp    (Closes: #568665).
* Bug fix: "make package built from source missing libc6 dependency",
  thanks to Daniel Schepler                           (Closes: #569924).
* Bug fix: "Please build-depend on autopoint", thanks to Santiago Vila
                                                       (Closes: #572474).

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 Free Software Foundation,
5
 
#   Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2006-03-07'
 
7
timestamp='2010-01-22'
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, 2002, 2003, 2004, 2005
76
 
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
241
249
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242
250
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243
251
        | am33_2.0 \
244
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
252
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245
253
        | bfin \
246
254
        | c4x | clipper \
247
255
        | d10v | d30v | dlx | dsp16xx \
248
 
        | fr30 | frv \
 
256
        | fido | fr30 | frv \
249
257
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250
258
        | i370 | i860 | i960 | ia64 \
251
259
        | ip2k | iq2000 \
252
 
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
 
260
        | lm32 \
 
261
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
262
        | maxq | mb | microblaze | mcore | mep | metag \
253
263
        | mips | mipsbe | mipseb | mipsel | mipsle \
254
264
        | mips16 \
255
265
        | mips64 | mips64el \
 
266
        | mips64octeon | mips64octeonel \
 
267
        | mips64orion | mips64orionel \
 
268
        | mips64r5900 | mips64r5900el \
256
269
        | mips64vr | mips64vrel \
257
 
        | mips64orion | mips64orionel \
258
270
        | mips64vr4100 | mips64vr4100el \
259
271
        | mips64vr4300 | mips64vr4300el \
260
272
        | mips64vr5000 | mips64vr5000el \
267
279
        | mipsisa64sr71k | mipsisa64sr71kel \
268
280
        | mipstx39 | mipstx39el \
269
281
        | mn10200 | mn10300 \
 
282
        | moxie \
270
283
        | mt \
271
284
        | msp430 \
272
285
        | nios | nios2 \
275
288
        | pdp10 | pdp11 | pj | pjl \
276
289
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277
290
        | pyramid \
278
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
291
        | rx \
 
292
        | score \
 
293
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
279
294
        | sh64 | sh64le \
280
295
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
281
296
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
282
 
        | strongarm \
 
297
        | spu | strongarm \
283
298
        | tahoe | thumb | tic4x | tic80 | tron \
 
299
        | ubicom32 \
284
300
        | v850 | v850e \
285
301
        | we32k \
286
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
287
 
        | z8k)
288
 
                basic_machine=$basic_machine-unknown
289
 
                ;;
290
 
        m32c)
291
 
                basic_machine=$basic_machine-unknown
292
 
                ;;
293
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
302
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
303
        | z8k | z80)
 
304
                basic_machine=$basic_machine-unknown
 
305
                ;;
 
306
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
294
307
                # Motorola 68HC11/12.
295
308
                basic_machine=$basic_machine-unknown
296
309
                os=-none
319
332
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
320
333
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
321
334
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
322
 
        | avr-* \
 
335
        | avr-* | avr32-* \
323
336
        | bfin-* | bs2000-* \
324
337
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
325
338
        | clipper-* | craynv-* | cydra-* \
326
339
        | d10v-* | d30v-* | dlx-* \
327
340
        | elxsi-* \
328
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
341
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
329
342
        | h8300-* | h8500-* \
330
343
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
331
344
        | i*86-* | i860-* | i960-* | ia64-* \
332
345
        | ip2k-* | iq2000-* \
333
 
        | m32r-* | m32rle-* \
 
346
        | lm32-* \
 
347
        | m32c-* | m32r-* | m32rle-* \
334
348
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
335
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
349
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
336
350
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
337
351
        | mips16-* \
338
352
        | mips64-* | mips64el-* \
 
353
        | mips64octeon-* | mips64octeonel-* \
 
354
        | mips64orion-* | mips64orionel-* \
 
355
        | mips64r5900-* | mips64r5900el-* \
339
356
        | mips64vr-* | mips64vrel-* \
340
 
        | mips64orion-* | mips64orionel-* \
341
357
        | mips64vr4100-* | mips64vr4100el-* \
342
358
        | mips64vr4300-* | mips64vr4300el-* \
343
359
        | mips64vr5000-* | mips64vr5000el-* \
358
374
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
359
375
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
360
376
        | pyramid-* \
361
 
        | romp-* | rs6000-* \
362
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
377
        | romp-* | rs6000-* | rx-* \
 
378
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
363
379
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
364
380
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
365
381
        | sparclite-* \
366
382
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
367
383
        | tahoe-* | thumb-* \
368
384
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
385
        | tile-* | tilegx-* \
369
386
        | tron-* \
 
387
        | ubicom32-* \
370
388
        | v850-* | v850e-* | vax-* \
371
389
        | we32k-* \
372
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
373
 
        | xstormy16-* | xtensa-* \
 
390
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
391
        | xstormy16-* | xtensa*-* \
374
392
        | ymp-* \
375
 
        | z8k-*)
 
393
        | z8k-* | z80-*)
376
394
                ;;
377
 
        m32c-*)
 
395
        # Recognize the basic CPU types without company name, with glob match.
 
396
        xtensa*)
 
397
                basic_machine=$basic_machine-unknown
378
398
                ;;
379
399
        # Recognize the various machine names and aliases which stand
380
400
        # for a CPU type and a company and sometimes even an OS.
438
458
                basic_machine=m68k-apollo
439
459
                os=-bsd
440
460
                ;;
 
461
        aros)
 
462
                basic_machine=i386-pc
 
463
                os=-aros
 
464
                ;;
441
465
        aux)
442
466
                basic_machine=m68k-apple
443
467
                os=-aux
446
470
                basic_machine=ns32k-sequent
447
471
                os=-dynix
448
472
                ;;
 
473
        blackfin)
 
474
                basic_machine=bfin-unknown
 
475
                os=-linux
 
476
                ;;
 
477
        blackfin-*)
 
478
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
479
                os=-linux
 
480
                ;;
 
481
        bluegene*)
 
482
                basic_machine=powerpc-ibm
 
483
                os=-cnk
 
484
                ;;
449
485
        c90)
450
486
                basic_machine=c90-cray
451
487
                os=-unicos
452
488
                ;;
 
489
        cegcc)
 
490
                basic_machine=arm-unknown
 
491
                os=-cegcc
 
492
                ;;
453
493
        convex-c1)
454
494
                basic_machine=c1-convex
455
495
                os=-bsd
478
518
                basic_machine=craynv-cray
479
519
                os=-unicosmp
480
520
                ;;
481
 
        cr16c)
482
 
                basic_machine=cr16c-unknown
 
521
        cr16)
 
522
                basic_machine=cr16-unknown
483
523
                os=-elf
484
524
                ;;
485
525
        crds | unos)
517
557
                basic_machine=m88k-motorola
518
558
                os=-sysv3
519
559
                ;;
 
560
        dicos)
 
561
                basic_machine=i686-pc
 
562
                os=-dicos
 
563
                ;;
520
564
        djgpp)
521
565
                basic_machine=i586-pc
522
566
                os=-msdosdjgpp
671
715
                basic_machine=m68k-isi
672
716
                os=-sysv
673
717
                ;;
 
718
        m68knommu)
 
719
                basic_machine=m68k-unknown
 
720
                os=-linux
 
721
                ;;
 
722
        m68knommu-*)
 
723
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
724
                os=-linux
 
725
                ;;
674
726
        m88k-omron*)
675
727
                basic_machine=m88k-omron
676
728
                ;;
682
734
                basic_machine=ns32k-utek
683
735
                os=-sysv
684
736
                ;;
 
737
        microblaze)
 
738
                basic_machine=microblaze-xilinx
 
739
                ;;
685
740
        mingw32)
686
741
                basic_machine=i386-pc
687
742
                os=-mingw32
688
743
                ;;
 
744
        mingw32ce)
 
745
                basic_machine=arm-unknown
 
746
                os=-mingw32ce
 
747
                ;;
689
748
        miniframe)
690
749
                basic_machine=m68000-convergent
691
750
                ;;
812
871
                basic_machine=i860-intel
813
872
                os=-osf
814
873
                ;;
 
874
        parisc)
 
875
                basic_machine=hppa-unknown
 
876
                os=-linux
 
877
                ;;
 
878
        parisc-*)
 
879
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
880
                os=-linux
 
881
                ;;
815
882
        pbd)
816
883
                basic_machine=sparc-tti
817
884
                ;;
913
980
        sb1el)
914
981
                basic_machine=mipsisa64sb1el-unknown
915
982
                ;;
 
983
        sde)
 
984
                basic_machine=mipsisa32-sde
 
985
                os=-elf
 
986
                ;;
916
987
        sei)
917
988
                basic_machine=mips-sei
918
989
                os=-seiux
924
995
                basic_machine=sh-hitachi
925
996
                os=-hms
926
997
                ;;
 
998
        sh5el)
 
999
                basic_machine=sh5le-unknown
 
1000
                ;;
927
1001
        sh64)
928
1002
                basic_machine=sh64-unknown
929
1003
                ;;
1013
1087
                basic_machine=tic6x-unknown
1014
1088
                os=-coff
1015
1089
                ;;
 
1090
        # This must be matched before tile*.
 
1091
        tilegx*)
 
1092
                basic_machine=tilegx-unknown
 
1093
                os=-linux-gnu
 
1094
                ;;
 
1095
        tile*)
 
1096
                basic_machine=tile-unknown
 
1097
                os=-linux-gnu
 
1098
                ;;
1016
1099
        tx39)
1017
1100
                basic_machine=mipstx39-unknown
1018
1101
                ;;
1088
1171
                basic_machine=z8k-unknown
1089
1172
                os=-sim
1090
1173
                ;;
 
1174
        z80-*-coff)
 
1175
                basic_machine=z80-unknown
 
1176
                os=-sim
 
1177
                ;;
1091
1178
        none)
1092
1179
                basic_machine=none-none
1093
1180
                os=-none
1126
1213
        we32k)
1127
1214
                basic_machine=we32k-att
1128
1215
                ;;
1129
 
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
 
1216
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1130
1217
                basic_machine=sh-unknown
1131
1218
                ;;
1132
1219
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1176
1263
        # First match some system type aliases
1177
1264
        # that might get confused with valid system types.
1178
1265
        # -solaris* is a basic system type, with this one exception.
 
1266
        -auroraux)
 
1267
                os=-auroraux
 
1268
                ;;
1179
1269
        -solaris1 | -solaris1.*)
1180
1270
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1181
1271
                ;;
1196
1286
        # Each alternative MUST END IN A *, to match a version number.
1197
1287
        # -sysv* is not here because it comes later, after sysvr4.
1198
1288
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1199
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1200
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1289
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1290
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1291
              | -sym* | -kopensolaris* \
1201
1292
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1202
 
              | -aos* \
 
1293
              | -aos* | -aros* \
1203
1294
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1204
1295
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1205
1296
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1208
1299
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1209
1300
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1210
1301
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1211
 
              | -chorusos* | -chorusrdb* \
 
1302
              | -chorusos* | -chorusrdb* | -cegcc* \
1212
1303
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1213
1304
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1214
1305
              | -uxpv* | -beos* | -mpeix* | -udk* \
1218
1309
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1219
1310
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1220
1311
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1221
 
              | -skyos* | -haiku* | -rdos*)
 
1312
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1222
1313
        # Remember, each alternative MUST END IN *, to match a version number.
1223
1314
                ;;
1224
1315
        -qnx*)
1348
1439
        -zvmoe)
1349
1440
                os=-zvmoe
1350
1441
                ;;
 
1442
        -dicos*)
 
1443
                os=-dicos
 
1444
                ;;
 
1445
        -nacl*)
 
1446
                ;;
1351
1447
        -none)
1352
1448
                ;;
1353
1449
        *)
1370
1466
# system, and we'll never get to this point.
1371
1467
 
1372
1468
case $basic_machine in
 
1469
        score-*)
 
1470
                os=-elf
 
1471
                ;;
 
1472
        spu-*)
 
1473
                os=-elf
 
1474
                ;;
1373
1475
        *-acorn)
1374
1476
                os=-riscix1.2
1375
1477
                ;;
1379
1481
        arm*-semi)
1380
1482
                os=-aout
1381
1483
                ;;
1382
 
    c4x-* | tic4x-*)
1383
 
        os=-coff
1384
 
        ;;
 
1484
        c4x-* | tic4x-*)
 
1485
                os=-coff
 
1486
                ;;
1385
1487
        # This must come before the *-dec entry.
1386
1488
        pdp10-*)
1387
1489
                os=-tops20
1407
1509
        m68*-cisco)
1408
1510
                os=-aout
1409
1511
                ;;
 
1512
        mep-*)
 
1513
                os=-elf
 
1514
                ;;
1410
1515
        mips*-cisco)
1411
1516
                os=-elf
1412
1517
                ;;
1536
1641
                        -sunos*)
1537
1642
                                vendor=sun
1538
1643
                                ;;
1539
 
                        -aix*)
 
1644
                        -cnk*|-aix*)
1540
1645
                                vendor=ibm
1541
1646
                                ;;
1542
1647
                        -beos*)