~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

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,
5
 
#   2011, 2012 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2012-04-18'
 
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
21
21
# GNU General Public License for more details.
22
22
#
23
23
# You should have received a copy of the GNU General Public License
24
 
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
24
# along with this program; if not, write to the Free Software
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
25
27
#
26
28
# As a special exception to the GNU General Public License, if you
27
29
# distribute this file as part of a program that contains a
74
76
GNU config.sub ($timestamp)
75
77
 
76
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
77
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
78
 
Free Software Foundation, Inc.
 
79
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
80
Software Foundation, Inc.
79
81
 
80
82
This is free software; see the source for copying conditions.  There is NO
81
83
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122
124
# Here we must recognize all the valid KERNEL-OS combinations.
123
125
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124
126
case $maybe_os in
125
 
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
 
  knetbsd*-gnu* | netbsd*-gnu* | \
 
127
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
128
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
128
129
  kopensolaris*-gnu* | \
129
130
  storm-chaos* | os2-emx* | rtmk-nova*)
130
131
    os=-$maybe_os
131
132
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
132
133
    ;;
133
 
  android-linux)
134
 
    os=-linux-android
135
 
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
136
 
    ;;
137
134
  *)
138
135
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
139
136
    if [ $basic_machine != $1 ]
160
157
                os=
161
158
                basic_machine=$1
162
159
                ;;
163
 
        -bluegene*)
164
 
                os=-cnk
 
160
        -bluegene*)
 
161
                os=-cnk
165
162
                ;;
166
163
        -sim | -cisco | -oki | -wec | -winbond)
167
164
                os=
177
174
                os=-chorusos
178
175
                basic_machine=$1
179
176
                ;;
180
 
        -chorusrdb)
181
 
                os=-chorusrdb
 
177
        -chorusrdb)
 
178
                os=-chorusrdb
182
179
                basic_machine=$1
183
 
                ;;
 
180
                ;;
184
181
        -hiux*)
185
182
                os=-hiuxwe2
186
183
                ;;
225
222
        -isc*)
226
223
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227
224
                ;;
228
 
        -lynx*178)
229
 
                os=-lynxos178
230
 
                ;;
231
 
        -lynx*5)
232
 
                os=-lynxos5
233
 
                ;;
234
225
        -lynx*)
235
226
                os=-lynxos
236
227
                ;;
255
246
        # Some are omitted here because they have special meanings below.
256
247
        1750a | 580 \
257
248
        | a29k \
258
 
        | aarch64 | aarch64_be \
259
249
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
260
250
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
261
251
        | am33_2.0 \
262
252
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
263
 
        | be32 | be64 \
264
253
        | bfin \
265
254
        | c4x | clipper \
266
255
        | d10v | d30v | dlx | dsp16xx \
267
 
        | epiphany \
268
256
        | fido | fr30 | frv \
269
257
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
270
 
        | hexagon \
271
258
        | i370 | i860 | i960 | ia64 \
272
259
        | ip2k | iq2000 \
273
 
        | le32 | le64 \
274
260
        | lm32 \
275
261
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
276
262
        | maxq | mb | microblaze | mcore | mep | metag \
296
282
        | moxie \
297
283
        | mt \
298
284
        | msp430 \
299
 
        | nds32 | nds32le | nds32be \
300
285
        | nios | nios2 \
301
286
        | ns16k | ns32k \
302
 
        | open8 \
303
287
        | or32 \
304
288
        | pdp10 | pdp11 | pj | pjl \
305
 
        | powerpc | powerpc64 | powerpc64le | powerpcle \
 
289
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
306
290
        | pyramid \
307
 
        | rl78 | rx \
 
291
        | rx \
308
292
        | score \
309
293
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
310
294
        | sh64 | sh64le \
311
295
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
312
296
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313
 
        | spu \
314
 
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
297
        | spu | strongarm \
 
298
        | tahoe | thumb | tic4x | tic80 | tron \
315
299
        | ubicom32 \
316
 
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
 
300
        | v850 | v850e \
317
301
        | we32k \
318
 
        | x86 | xc16x | xstormy16 | xtensa \
 
302
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
319
303
        | z8k | z80)
320
304
                basic_machine=$basic_machine-unknown
321
305
                ;;
322
 
        c54x)
323
 
                basic_machine=tic54x-unknown
324
 
                ;;
325
 
        c55x)
326
 
                basic_machine=tic55x-unknown
327
 
                ;;
328
 
        c6x)
329
 
                basic_machine=tic6x-unknown
330
 
                ;;
331
 
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
 
306
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
307
                # Motorola 68HC11/12.
332
308
                basic_machine=$basic_machine-unknown
333
309
                os=-none
334
310
                ;;
338
314
                basic_machine=mt-unknown
339
315
                ;;
340
316
 
341
 
        strongarm | thumb | xscale)
342
 
                basic_machine=arm-unknown
343
 
                ;;
344
 
        xgate)
345
 
                basic_machine=$basic_machine-unknown
346
 
                os=-none
347
 
                ;;
348
 
        xscaleeb)
349
 
                basic_machine=armeb-unknown
350
 
                ;;
351
 
 
352
 
        xscaleel)
353
 
                basic_machine=armel-unknown
354
 
                ;;
355
 
 
356
317
        # We use `pc' rather than `unknown'
357
318
        # because (1) that's what they normally are, and
358
319
        # (2) the word "unknown" tends to confuse beginning users.
367
328
        # Recognize the basic CPU types with company name.
368
329
        580-* \
369
330
        | a29k-* \
370
 
        | aarch64-* | aarch64_be-* \
371
331
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372
332
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373
333
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
374
334
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
375
335
        | avr-* | avr32-* \
376
 
        | be32-* | be64-* \
377
336
        | bfin-* | bs2000-* \
378
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
 
337
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
379
338
        | clipper-* | craynv-* | cydra-* \
380
339
        | d10v-* | d30v-* | dlx-* \
381
340
        | elxsi-* \
382
341
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
383
342
        | h8300-* | h8500-* \
384
343
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
385
 
        | hexagon-* \
386
344
        | i*86-* | i860-* | i960-* | ia64-* \
387
345
        | ip2k-* | iq2000-* \
388
 
        | le32-* | le64-* \
389
346
        | lm32-* \
390
347
        | m32c-* | m32r-* | m32rle-* \
391
348
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
411
368
        | mmix-* \
412
369
        | mt-* \
413
370
        | msp430-* \
414
 
        | nds32-* | nds32le-* | nds32be-* \
415
371
        | nios-* | nios2-* \
416
372
        | none-* | np1-* | ns16k-* | ns32k-* \
417
 
        | open8-* \
418
373
        | orion-* \
419
374
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
420
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
 
375
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
421
376
        | pyramid-* \
422
 
        | rl78-* | romp-* | rs6000-* | rx-* \
 
377
        | romp-* | rs6000-* | rx-* \
423
378
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
424
379
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
425
380
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
426
381
        | sparclite-* \
427
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
428
 
        | tahoe-* \
 
382
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 
383
        | tahoe-* | thumb-* \
429
384
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
430
 
        | tile*-* \
 
385
        | tile-* | tilegx-* \
431
386
        | tron-* \
432
387
        | ubicom32-* \
433
 
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
434
 
        | vax-* \
 
388
        | v850-* | v850e-* | vax-* \
435
389
        | we32k-* \
436
 
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
390
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
437
391
        | xstormy16-* | xtensa*-* \
438
392
        | ymp-* \
439
393
        | z8k-* | z80-*)
458
412
                basic_machine=a29k-amd
459
413
                os=-udi
460
414
                ;;
461
 
        abacus)
 
415
        abacus)
462
416
                basic_machine=abacus-unknown
463
417
                ;;
464
418
        adobe68k)
528
482
                basic_machine=powerpc-ibm
529
483
                os=-cnk
530
484
                ;;
531
 
        c54x-*)
532
 
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
533
 
                ;;
534
 
        c55x-*)
535
 
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
536
 
                ;;
537
 
        c6x-*)
538
 
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
539
 
                ;;
540
485
        c90)
541
486
                basic_machine=c90-cray
542
487
                os=-unicos
543
488
                ;;
544
 
        cegcc)
 
489
        cegcc)
545
490
                basic_machine=arm-unknown
546
491
                os=-cegcc
547
492
                ;;
573
518
                basic_machine=craynv-cray
574
519
                os=-unicosmp
575
520
                ;;
576
 
        cr16 | cr16-*)
 
521
        cr16)
577
522
                basic_machine=cr16-unknown
578
523
                os=-elf
579
524
                ;;
731
676
        i370-ibm* | ibm*)
732
677
                basic_machine=i370-ibm
733
678
                ;;
 
679
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
734
680
        i*86v32)
735
681
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
736
682
                os=-sysv32
788
734
                basic_machine=ns32k-utek
789
735
                os=-sysv
790
736
                ;;
791
 
        microblaze)
 
737
        microblaze)
792
738
                basic_machine=microblaze-xilinx
793
739
                ;;
794
740
        mingw32)
827
773
        ms1-*)
828
774
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
829
775
                ;;
830
 
        msys)
831
 
                basic_machine=i386-pc
832
 
                os=-msys
833
 
                ;;
834
776
        mvs)
835
777
                basic_machine=i370-ibm
836
778
                os=-mvs
837
779
                ;;
838
 
        nacl)
839
 
                basic_machine=le32-unknown
840
 
                os=-nacl
841
 
                ;;
842
780
        ncr3000)
843
781
                basic_machine=i486-ncr
844
782
                os=-sysv4
903
841
        np1)
904
842
                basic_machine=np1-gould
905
843
                ;;
906
 
        neo-tandem)
907
 
                basic_machine=neo-tandem
908
 
                ;;
909
 
        nse-tandem)
910
 
                basic_machine=nse-tandem
911
 
                ;;
912
844
        nsr-tandem)
913
845
                basic_machine=nsr-tandem
914
846
                ;;
991
923
                ;;
992
924
        power)  basic_machine=power-ibm
993
925
                ;;
994
 
        ppc | ppcbe)    basic_machine=powerpc-unknown
 
926
        ppc)    basic_machine=powerpc-unknown
995
927
                ;;
996
 
        ppc-* | ppcbe-*)
997
 
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
928
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
998
929
                ;;
999
930
        ppcle | powerpclittle | ppc-le | powerpc-little)
1000
931
                basic_machine=powerpcle-unknown
1088
1019
                basic_machine=i860-stratus
1089
1020
                os=-sysv4
1090
1021
                ;;
1091
 
        strongarm-* | thumb-*)
1092
 
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1093
 
                ;;
1094
1022
        sun2)
1095
1023
                basic_machine=m68000-sun
1096
1024
                ;;
1147
1075
                basic_machine=t90-cray
1148
1076
                os=-unicos
1149
1077
                ;;
 
1078
        tic54x | c54x*)
 
1079
                basic_machine=tic54x-unknown
 
1080
                os=-coff
 
1081
                ;;
 
1082
        tic55x | c55x*)
 
1083
                basic_machine=tic55x-unknown
 
1084
                os=-coff
 
1085
                ;;
 
1086
        tic6x | c6x*)
 
1087
                basic_machine=tic6x-unknown
 
1088
                os=-coff
 
1089
                ;;
 
1090
        # This must be matched before tile*.
 
1091
        tilegx*)
 
1092
                basic_machine=tilegx-unknown
 
1093
                os=-linux-gnu
 
1094
                ;;
1150
1095
        tile*)
1151
 
                basic_machine=$basic_machine-unknown
 
1096
                basic_machine=tile-unknown
1152
1097
                os=-linux-gnu
1153
1098
                ;;
1154
1099
        tx39)
1218
1163
        xps | xps100)
1219
1164
                basic_machine=xps100-honeywell
1220
1165
                ;;
1221
 
        xscale-* | xscalee[bl]-*)
1222
 
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1223
 
                ;;
1224
1166
        ymp)
1225
1167
                basic_machine=ymp-cray
1226
1168
                os=-unicos
1318
1260
if [ x"$os" != x"" ]
1319
1261
then
1320
1262
case $os in
1321
 
        # First match some system type aliases
1322
 
        # that might get confused with valid system types.
 
1263
        # First match some system type aliases
 
1264
        # that might get confused with valid system types.
1323
1265
        # -solaris* is a basic system type, with this one exception.
1324
 
        -auroraux)
1325
 
                os=-auroraux
 
1266
        -auroraux)
 
1267
                os=-auroraux
1326
1268
                ;;
1327
1269
        -solaris1 | -solaris1.*)
1328
1270
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1358
1300
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1359
1301
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1360
1302
              | -chorusos* | -chorusrdb* | -cegcc* \
1361
 
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1362
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1363
 
              | -linux-newlib* | -linux-uclibc* \
 
1303
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1304
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1364
1305
              | -uxpv* | -beos* | -mpeix* | -udk* \
1365
1306
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1366
1307
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1407
1348
        -opened*)
1408
1349
                os=-openedition
1409
1350
                ;;
1410
 
        -os400*)
 
1351
        -os400*)
1411
1352
                os=-os400
1412
1353
                ;;
1413
1354
        -wince*)
1456
1397
        -sinix*)
1457
1398
                os=-sysv4
1458
1399
                ;;
1459
 
        -tpf*)
 
1400
        -tpf*)
1460
1401
                os=-tpf
1461
1402
                ;;
1462
1403
        -triton*)
1501
1442
        -dicos*)
1502
1443
                os=-dicos
1503
1444
                ;;
1504
 
        -nacl*)
1505
 
                ;;
 
1445
        -nacl*)
 
1446
                ;;
1506
1447
        -none)
1507
1448
                ;;
1508
1449
        *)
1525
1466
# system, and we'll never get to this point.
1526
1467
 
1527
1468
case $basic_machine in
1528
 
        score-*)
 
1469
        score-*)
1529
1470
                os=-elf
1530
1471
                ;;
1531
 
        spu-*)
 
1472
        spu-*)
1532
1473
                os=-elf
1533
1474
                ;;
1534
1475
        *-acorn)
1540
1481
        arm*-semi)
1541
1482
                os=-aout
1542
1483
                ;;
1543
 
        c4x-* | tic4x-*)
1544
 
                os=-coff
1545
 
                ;;
1546
 
        hexagon-*)
1547
 
                os=-elf
1548
 
                ;;
1549
 
        tic54x-*)
1550
 
                os=-coff
1551
 
                ;;
1552
 
        tic55x-*)
1553
 
                os=-coff
1554
 
                ;;
1555
 
        tic6x-*)
1556
 
                os=-coff
 
1484
        c4x-* | tic4x-*)
 
1485
                os=-coff
1557
1486
                ;;
1558
1487
        # This must come before the *-dec entry.
1559
1488
        pdp10-*)
1573
1502
                ;;
1574
1503
        m68000-sun)
1575
1504
                os=-sunos3
 
1505
                # This also exists in the configure program, but was not the
 
1506
                # default.
 
1507
                # os=-sunos4
1576
1508
                ;;
1577
1509
        m68*-cisco)
1578
1510
                os=-aout
1579
1511
                ;;
1580
 
        mep-*)
 
1512
        mep-*)
1581
1513
                os=-elf
1582
1514
                ;;
1583
1515
        mips*-cisco)
1604
1536
        *-ibm)
1605
1537
                os=-aix
1606
1538
                ;;
1607
 
        *-knuth)
 
1539
        *-knuth)
1608
1540
                os=-mmixware
1609
1541
                ;;
1610
1542
        *-wec)