~ubuntu-branches/ubuntu/utopic/acct/utopic

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-11-20 19:00:51 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091120190051-ya3i3t9ygi4jpjgg
Tags: 6.4~pre1-9ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Remove stop links from rc0 and rc6.

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
5
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6
5
 
7
 
timestamp='2008-01-16'
 
6
timestamp='2005-07-08'
8
7
 
9
8
# This file is (in principle) common to ALL GNU software.
10
9
# The presence of a machine in this file suggests that SOME GNU software
72
71
version="\
73
72
GNU config.sub ($timestamp)
74
73
 
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.
 
74
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
75
Free Software Foundation, Inc.
77
76
 
78
77
This is free software; see the source for copying conditions.  There is NO
79
78
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
120
119
# Here we must recognize all the valid KERNEL-OS combinations.
121
120
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
121
case $maybe_os in
123
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
 
  storm-chaos* | os2-emx* | rtmk-nova*)
 
122
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
 
123
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
126
124
    os=-$maybe_os
127
125
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128
126
    ;;
173
171
        -hiux*)
174
172
                os=-hiuxwe2
175
173
                ;;
176
 
        -sco6)
177
 
                os=-sco5v6
178
 
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179
 
                ;;
180
174
        -sco5)
181
175
                os=-sco3.2v5
182
176
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
193
187
                # Don't forget version if it is 3.2v4 or newer.
194
188
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195
189
                ;;
196
 
        -sco5v6*)
197
 
                # Don't forget version if it is 3.2v4 or newer.
198
 
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199
 
                ;;
200
190
        -sco*)
201
191
                os=-sco3.2v2
202
192
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
241
231
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242
232
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243
233
        | am33_2.0 \
244
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
234
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
245
235
        | bfin \
246
236
        | c4x | clipper \
247
237
        | d10v | d30v | dlx | dsp16xx \
248
 
        | fido | fr30 | frv \
 
238
        | fr30 | frv \
249
239
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250
240
        | i370 | i860 | i960 | ia64 \
251
241
        | ip2k | iq2000 \
252
 
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
253
 
        | maxq | mb | microblaze | mcore | mep \
 
242
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
254
243
        | mips | mipsbe | mipseb | mipsel | mipsle \
255
244
        | mips16 \
256
245
        | mips64 | mips64el \
268
257
        | mipsisa64sr71k | mipsisa64sr71kel \
269
258
        | mipstx39 | mipstx39el \
270
259
        | mn10200 | mn10300 \
271
 
        | mt \
 
260
        | ms1 \
272
261
        | msp430 \
273
 
        | nios | nios2 \
274
262
        | ns16k | ns32k \
275
263
        | or32 \
276
264
        | pdp10 | pdp11 | pj | pjl \
277
265
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
278
266
        | pyramid \
279
 
        | score \
280
 
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
 
267
        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
281
268
        | sh64 | sh64le \
282
 
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283
 
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284
 
        | spu | strongarm \
 
269
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
 
270
        | sparcv8 | sparcv9 | sparcv9b \
 
271
        | strongarm \
285
272
        | tahoe | thumb | tic4x | tic80 | tron \
286
273
        | v850 | v850e \
287
274
        | we32k \
288
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
275
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
289
276
        | z8k)
290
277
                basic_machine=$basic_machine-unknown
291
278
                ;;
 
279
        m32c)
 
280
                basic_machine=$basic_machine-unknown
 
281
                ;;
292
282
        m6811 | m68hc11 | m6812 | m68hc12)
293
283
                # Motorola 68HC11/12.
294
284
                basic_machine=$basic_machine-unknown
296
286
                ;;
297
287
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298
288
                ;;
299
 
        ms1)
300
 
                basic_machine=mt-unknown
301
 
                ;;
302
289
 
303
290
        # We use `pc' rather than `unknown'
304
291
        # because (1) that's what they normally are, and
318
305
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319
306
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320
307
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
321
 
        | avr-* | avr32-* \
 
308
        | avr-* \
322
309
        | bfin-* | bs2000-* \
323
310
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324
311
        | clipper-* | craynv-* | cydra-* \
325
312
        | d10v-* | d30v-* | dlx-* \
326
313
        | elxsi-* \
327
 
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
 
314
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
328
315
        | h8300-* | h8500-* \
329
316
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330
317
        | i*86-* | i860-* | i960-* | ia64-* \
331
318
        | ip2k-* | iq2000-* \
332
 
        | m32c-* | m32r-* | m32rle-* \
 
319
        | m32r-* | m32rle-* \
333
320
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334
321
        | m88110-* | m88k-* | maxq-* | mcore-* \
335
322
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349
336
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
350
337
        | mipstx39-* | mipstx39el-* \
351
338
        | mmix-* \
352
 
        | mt-* \
 
339
        | ms1-* \
353
340
        | msp430-* \
354
 
        | nios-* | nios2-* \
355
341
        | none-* | np1-* | ns16k-* | ns32k-* \
356
342
        | orion-* \
357
343
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358
344
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
359
345
        | pyramid-* \
360
346
        | romp-* | rs6000-* \
361
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
 
347
        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
362
348
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363
 
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
349
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
364
350
        | sparclite-* \
365
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
351
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
366
352
        | tahoe-* | thumb-* \
367
353
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
368
354
        | tron-* \
369
355
        | v850-* | v850e-* | vax-* \
370
356
        | we32k-* \
371
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372
 
        | xstormy16-* | xtensa*-* \
 
357
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
 
358
        | xstormy16-* | xtensa-* \
373
359
        | ymp-* \
374
360
        | z8k-*)
375
361
                ;;
376
 
        # Recognize the basic CPU types without company name, with glob match.
377
 
        xtensa*)
378
 
                basic_machine=$basic_machine-unknown
 
362
        m32c-*)
379
363
                ;;
380
364
        # Recognize the various machine names and aliases which stand
381
365
        # for a CPU type and a company and sometimes even an OS.
447
431
                basic_machine=ns32k-sequent
448
432
                os=-dynix
449
433
                ;;
450
 
        blackfin)
451
 
                basic_machine=bfin-unknown
452
 
                os=-linux
453
 
                ;;
454
 
        blackfin-*)
455
 
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
456
 
                os=-linux
457
 
                ;;
458
434
        c90)
459
435
                basic_machine=c90-cray
460
436
                os=-unicos
487
463
                basic_machine=craynv-cray
488
464
                os=-unicosmp
489
465
                ;;
490
 
        cr16)
491
 
                basic_machine=cr16-unknown
 
466
        cr16c)
 
467
                basic_machine=cr16c-unknown
492
468
                os=-elf
493
469
                ;;
494
470
        crds | unos)
680
656
                basic_machine=m68k-isi
681
657
                os=-sysv
682
658
                ;;
683
 
        m68knommu)
684
 
                basic_machine=m68k-unknown
685
 
                os=-linux
686
 
                ;;
687
 
        m68knommu-*)
688
 
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
689
 
                os=-linux
690
 
                ;;
691
659
        m88k-omron*)
692
660
                basic_machine=m88k-omron
693
661
                ;;
703
671
                basic_machine=i386-pc
704
672
                os=-mingw32
705
673
                ;;
706
 
        mingw32ce)
707
 
                basic_machine=arm-unknown
708
 
                os=-mingw32ce
709
 
                ;;
710
674
        miniframe)
711
675
                basic_machine=m68000-convergent
712
676
                ;;
732
696
                basic_machine=i386-pc
733
697
                os=-msdos
734
698
                ;;
735
 
        ms1-*)
736
 
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
737
 
                ;;
738
699
        mvs)
739
700
                basic_machine=i370-ibm
740
701
                os=-mvs
833
794
                basic_machine=i860-intel
834
795
                os=-osf
835
796
                ;;
836
 
        parisc)
837
 
                basic_machine=hppa-unknown
838
 
                os=-linux
839
 
                ;;
840
 
        parisc-*)
841
 
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
842
 
                os=-linux
843
 
                ;;
844
797
        pbd)
845
798
                basic_machine=sparc-tti
846
799
                ;;
850
803
        pc532 | pc532-*)
851
804
                basic_machine=ns32k-pc532
852
805
                ;;
853
 
        pc98)
854
 
                basic_machine=i386-pc
855
 
                ;;
856
 
        pc98-*)
857
 
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
858
 
                ;;
859
806
        pentium | p5 | k5 | k6 | nexgen | viac3)
860
807
                basic_machine=i586-pc
861
808
                ;;
912
859
                basic_machine=i586-unknown
913
860
                os=-pw32
914
861
                ;;
915
 
        rdos)
916
 
                basic_machine=i386-pc
917
 
                os=-rdos
918
 
                ;;
919
862
        rom68k)
920
863
                basic_machine=m68k-rom68k
921
864
                os=-coff
942
885
        sb1el)
943
886
                basic_machine=mipsisa64sb1el-unknown
944
887
                ;;
945
 
        sde)
946
 
                basic_machine=mipsisa32-sde
947
 
                os=-elf
948
 
                ;;
949
888
        sei)
950
889
                basic_machine=mips-sei
951
890
                os=-seiux
957
896
                basic_machine=sh-hitachi
958
897
                os=-hms
959
898
                ;;
960
 
        sh5el)
961
 
                basic_machine=sh5le-unknown
962
 
                ;;
963
899
        sh64)
964
900
                basic_machine=sh64-unknown
965
901
                ;;
1049
985
                basic_machine=tic6x-unknown
1050
986
                os=-coff
1051
987
                ;;
1052
 
        tile*)
1053
 
                basic_machine=tile-unknown
1054
 
                os=-linux-gnu
1055
 
                ;;
1056
988
        tx39)
1057
989
                basic_machine=mipstx39-unknown
1058
990
                ;;
1169
1101
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1170
1102
                basic_machine=sh-unknown
1171
1103
                ;;
1172
 
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
 
1104
        sparc | sparcv8 | sparcv9 | sparcv9b)
1173
1105
                basic_machine=sparc-sun
1174
1106
                ;;
1175
1107
        cydra)
1242
1174
              | -aos* \
1243
1175
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1244
1176
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1245
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1246
 
              | -openbsd* | -solidbsd* \
 
1177
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1247
1178
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1248
1179
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1249
1180
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1250
1181
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1251
1182
              | -chorusos* | -chorusrdb* \
1252
1183
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1253
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1254
 
              | -uxpv* | -beos* | -mpeix* | -udk* \
 
1184
              | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1255
1185
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1256
1186
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1257
1187
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1258
1188
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1259
1189
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1260
1190
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1261
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
 
1191
              | -skyos* | -haiku*)
1262
1192
        # Remember, each alternative MUST END IN *, to match a version number.
1263
1193
                ;;
1264
1194
        -qnx*)
1285
1215
        -linux-dietlibc)
1286
1216
                os=-linux-dietlibc
1287
1217
                ;;
1288
 
        -linux*)
1289
 
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1290
 
                ;;
1291
1218
        -sunos5*)
1292
1219
                os=`echo $os | sed -e 's|sunos5|solaris2|'`
1293
1220
                ;;
1410
1337
# system, and we'll never get to this point.
1411
1338
 
1412
1339
case $basic_machine in
1413
 
        score-*)
1414
 
                os=-elf
1415
 
                ;;
1416
 
        spu-*)
1417
 
                os=-elf
1418
 
                ;;
1419
1340
        *-acorn)
1420
1341
                os=-riscix1.2
1421
1342
                ;;
1425
1346
        arm*-semi)
1426
1347
                os=-aout
1427
1348
                ;;
1428
 
        c4x-* | tic4x-*)
1429
 
                os=-coff
1430
 
                ;;
 
1349
    c4x-* | tic4x-*)
 
1350
        os=-coff
 
1351
        ;;
1431
1352
        # This must come before the *-dec entry.
1432
1353
        pdp10-*)
1433
1354
                os=-tops20
1453
1374
        m68*-cisco)
1454
1375
                os=-aout
1455
1376
                ;;
1456
 
        mep-*)
1457
 
                os=-elf
1458
 
                ;;
1459
1377
        mips*-cisco)
1460
1378
                os=-elf
1461
1379
                ;;