~ubuntu-branches/ubuntu/wily/wmail/wily-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-09-02 12:53:52 UTC
  • Revision ID: package-import@ubuntu.com-20150902125352-2ft562yhja5u6xbn
Tags: 2.0-3ubuntu2
No-change rebuild for libdockapp soname change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
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 Free Software Foundation, Inc.
6
 
 
7
 
timestamp='2011-03-23'
8
 
 
9
 
# This file is (in principle) common to ALL GNU software.
10
 
# The presence of a machine in this file suggests that SOME GNU software
11
 
# can handle that machine.  It does not imply ALL GNU software can.
12
 
#
13
 
# This file is free software; you can redistribute it and/or modify
14
 
# it under the terms of the GNU General Public License as published by
15
 
# the Free Software Foundation; either version 2 of the License, or
 
3
#   Copyright 1992-2014 Free Software Foundation, Inc.
 
4
 
 
5
timestamp='2014-09-11'
 
6
 
 
7
# This file is free software; you can redistribute it and/or modify it
 
8
# under the terms of the GNU General Public License as published by
 
9
# the Free Software Foundation; either version 3 of the License, or
16
10
# (at your option) any later version.
17
11
#
18
 
# This program is distributed in the hope that it will be useful,
19
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
# GNU General Public License for more details.
 
12
# This program is distributed in the hope that it will be useful, but
 
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
# General Public License for more details.
22
16
#
23
17
# You should have received a copy of the GNU General Public License
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.
 
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
19
#
28
20
# As a special exception to the GNU General Public License, if you
29
21
# distribute this file as part of a program that contains a
30
22
# configuration script generated by Autoconf, you may include it under
31
 
# the same distribution terms that you use for the rest of that program.
32
 
 
33
 
 
34
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted GNU ChangeLog entry.
 
23
# the same distribution terms that you use for the rest of that
 
24
# program.  This Exception is an additional permission under section 7
 
25
# of the GNU General Public License, version 3 ("GPLv3").
 
26
 
 
27
 
 
28
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
36
29
#
37
30
# Configuration subroutine to validate and canonicalize a configuration type.
38
31
# Supply the specified configuration type as an argument.
75
68
version="\
76
69
GNU config.sub ($timestamp)
77
70
 
78
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
79
 
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
80
 
Software Foundation, Inc.
 
71
Copyright 1992-2014 Free Software Foundation, Inc.
81
72
 
82
73
This is free software; see the source for copying conditions.  There is NO
83
74
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
125
116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126
117
case $maybe_os in
127
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128
 
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129
120
  knetbsd*-gnu* | netbsd*-gnu* | \
130
121
  kopensolaris*-gnu* | \
131
122
  storm-chaos* | os2-emx* | rtmk-nova*)
132
123
    os=-$maybe_os
133
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
134
125
    ;;
 
126
  android-linux)
 
127
    os=-linux-android
 
128
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
129
    ;;
135
130
  *)
136
131
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
137
132
    if [ $basic_machine != $1 ]
154
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray | -microblaze*)
158
153
                os=
159
154
                basic_machine=$1
160
155
                ;;
223
218
        -isc*)
224
219
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225
220
                ;;
 
221
        -lynx*178)
 
222
                os=-lynxos178
 
223
                ;;
 
224
        -lynx*5)
 
225
                os=-lynxos5
 
226
                ;;
226
227
        -lynx*)
227
228
                os=-lynxos
228
229
                ;;
247
248
        # Some are omitted here because they have special meanings below.
248
249
        1750a | 580 \
249
250
        | a29k \
 
251
        | aarch64 | aarch64_be \
250
252
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251
253
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252
254
        | am33_2.0 \
253
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
255
        | arc | arceb \
 
256
        | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
 
257
        | avr | avr32 \
 
258
        | be32 | be64 \
254
259
        | bfin \
255
 
        | c4x | clipper \
 
260
        | c4x | c8051 | clipper \
256
261
        | d10v | d30v | dlx | dsp16xx \
 
262
        | epiphany \
257
263
        | fido | fr30 | frv \
258
264
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
265
        | hexagon \
259
266
        | i370 | i860 | i960 | ia64 \
260
267
        | ip2k | iq2000 \
 
268
        | k1om \
 
269
        | le32 | le64 \
261
270
        | lm32 \
262
271
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
263
 
        | maxq | mb | microblaze | mcore | mep | metag \
 
272
        | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
264
273
        | mips | mipsbe | mipseb | mipsel | mipsle \
265
274
        | mips16 \
266
275
        | mips64 | mips64el \
274
283
        | mips64vr5900 | mips64vr5900el \
275
284
        | mipsisa32 | mipsisa32el \
276
285
        | mipsisa32r2 | mipsisa32r2el \
 
286
        | mipsisa32r6 | mipsisa32r6el \
277
287
        | mipsisa64 | mipsisa64el \
278
288
        | mipsisa64r2 | mipsisa64r2el \
 
289
        | mipsisa64r6 | mipsisa64r6el \
279
290
        | mipsisa64sb1 | mipsisa64sb1el \
280
291
        | mipsisa64sr71k | mipsisa64sr71kel \
 
292
        | mipsr5900 | mipsr5900el \
281
293
        | mipstx39 | mipstx39el \
282
294
        | mn10200 | mn10300 \
283
295
        | moxie \
284
296
        | mt \
285
297
        | msp430 \
286
298
        | nds32 | nds32le | nds32be \
287
 
        | nios | nios2 \
 
299
        | nios | nios2 | nios2eb | nios2el \
288
300
        | ns16k | ns32k \
289
 
        | open8 \
290
 
        | or32 \
 
301
        | open8 | or1k | or1knd | or32 \
291
302
        | pdp10 | pdp11 | pj | pjl \
292
303
        | powerpc | powerpc64 | powerpc64le | powerpcle \
293
304
        | pyramid \
294
 
        | rx \
 
305
        | riscv32 | riscv64 \
 
306
        | rl78 | rx \
295
307
        | score \
296
308
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
297
309
        | sh64 | sh64le \
300
312
        | spu \
301
313
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
302
314
        | ubicom32 \
303
 
        | v850 | v850e \
 
315
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
304
316
        | we32k \
305
317
        | x86 | xc16x | xstormy16 | xtensa \
306
318
        | z8k | z80)
315
327
        c6x)
316
328
                basic_machine=tic6x-unknown
317
329
                ;;
318
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
319
 
                # Motorola 68HC11/12.
 
330
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
320
331
                basic_machine=$basic_machine-unknown
321
332
                os=-none
322
333
                ;;
329
340
        strongarm | thumb | xscale)
330
341
                basic_machine=arm-unknown
331
342
                ;;
332
 
 
 
343
        xgate)
 
344
                basic_machine=$basic_machine-unknown
 
345
                os=-none
 
346
                ;;
333
347
        xscaleeb)
334
348
                basic_machine=armeb-unknown
335
349
                ;;
352
366
        # Recognize the basic CPU types with company name.
353
367
        580-* \
354
368
        | a29k-* \
 
369
        | aarch64-* | aarch64_be-* \
355
370
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
356
371
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
357
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
 
372
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
358
373
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
359
374
        | avr-* | avr32-* \
 
375
        | be32-* | be64-* \
360
376
        | bfin-* | bs2000-* \
361
377
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
362
 
        | clipper-* | craynv-* | cydra-* \
 
378
        | c8051-* | clipper-* | craynv-* | cydra-* \
363
379
        | d10v-* | d30v-* | dlx-* \
364
380
        | elxsi-* \
365
381
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
366
382
        | h8300-* | h8500-* \
367
383
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
384
        | hexagon-* \
368
385
        | i*86-* | i860-* | i960-* | ia64-* \
369
386
        | ip2k-* | iq2000-* \
 
387
        | k1om-* \
 
388
        | le32-* | le64-* \
370
389
        | lm32-* \
371
390
        | m32c-* | m32r-* | m32rle-* \
372
391
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
373
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
392
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
 
393
        | microblaze-* | microblazeel-* \
374
394
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
375
395
        | mips16-* \
376
396
        | mips64-* | mips64el-* \
384
404
        | mips64vr5900-* | mips64vr5900el-* \
385
405
        | mipsisa32-* | mipsisa32el-* \
386
406
        | mipsisa32r2-* | mipsisa32r2el-* \
 
407
        | mipsisa32r6-* | mipsisa32r6el-* \
387
408
        | mipsisa64-* | mipsisa64el-* \
388
409
        | mipsisa64r2-* | mipsisa64r2el-* \
 
410
        | mipsisa64r6-* | mipsisa64r6el-* \
389
411
        | mipsisa64sb1-* | mipsisa64sb1el-* \
390
412
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
 
413
        | mipsr5900-* | mipsr5900el-* \
391
414
        | mipstx39-* | mipstx39el-* \
392
415
        | mmix-* \
393
416
        | mt-* \
394
417
        | msp430-* \
395
418
        | nds32-* | nds32le-* | nds32be-* \
396
 
        | nios-* | nios2-* \
 
419
        | nios-* | nios2-* | nios2eb-* | nios2el-* \
397
420
        | none-* | np1-* | ns16k-* | ns32k-* \
398
421
        | open8-* \
 
422
        | or1k*-* \
399
423
        | orion-* \
400
424
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
401
425
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
402
426
        | pyramid-* \
403
 
        | romp-* | rs6000-* | rx-* \
 
427
        | rl78-* | romp-* | rs6000-* | rx-* \
404
428
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
405
429
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
406
430
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
408
432
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
409
433
        | tahoe-* \
410
434
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
411
 
        | tile-* | tilegx-* \
 
435
        | tile*-* \
412
436
        | tron-* \
413
437
        | ubicom32-* \
414
 
        | v850-* | v850e-* | vax-* \
 
438
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
439
        | vax-* \
415
440
        | we32k-* \
416
441
        | x86-* | x86_64-* | xc16x-* | xps100-* \
417
442
        | xstormy16-* | xtensa*-* \
711
736
        i370-ibm* | ibm*)
712
737
                basic_machine=i370-ibm
713
738
                ;;
714
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
715
739
        i*86v32)
716
740
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
717
741
                os=-sysv32
769
793
                basic_machine=ns32k-utek
770
794
                os=-sysv
771
795
                ;;
772
 
        microblaze)
 
796
        microblaze*)
773
797
                basic_machine=microblaze-xilinx
774
798
                ;;
 
799
        mingw64)
 
800
                basic_machine=x86_64-pc
 
801
                os=-mingw64
 
802
                ;;
775
803
        mingw32)
776
 
                basic_machine=i386-pc
 
804
                basic_machine=i686-pc
777
805
                os=-mingw32
778
806
                ;;
779
807
        mingw32ce)
801
829
                basic_machine=powerpc-unknown
802
830
                os=-morphos
803
831
                ;;
 
832
        moxiebox)
 
833
                basic_machine=moxie-unknown
 
834
                os=-moxiebox
 
835
                ;;
804
836
        msdos)
805
837
                basic_machine=i386-pc
806
838
                os=-msdos
808
840
        ms1-*)
809
841
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
810
842
                ;;
 
843
        msys)
 
844
                basic_machine=i686-pc
 
845
                os=-msys
 
846
                ;;
811
847
        mvs)
812
848
                basic_machine=i370-ibm
813
849
                os=-mvs
814
850
                ;;
 
851
        nacl)
 
852
                basic_machine=le32-unknown
 
853
                os=-nacl
 
854
                ;;
815
855
        ncr3000)
816
856
                basic_machine=i486-ncr
817
857
                os=-sysv4
992
1032
                basic_machine=i586-unknown
993
1033
                os=-pw32
994
1034
                ;;
995
 
        rdos)
 
1035
        rdos | rdos64)
 
1036
                basic_machine=x86_64-pc
 
1037
                os=-rdos
 
1038
                ;;
 
1039
        rdos32)
996
1040
                basic_machine=i386-pc
997
1041
                os=-rdos
998
1042
                ;;
1120
1164
                basic_machine=t90-cray
1121
1165
                os=-unicos
1122
1166
                ;;
1123
 
        # This must be matched before tile*.
1124
 
        tilegx*)
1125
 
                basic_machine=tilegx-unknown
1126
 
                os=-linux-gnu
1127
 
                ;;
1128
1167
        tile*)
1129
 
                basic_machine=tile-unknown
 
1168
                basic_machine=$basic_machine-unknown
1130
1169
                os=-linux-gnu
1131
1170
                ;;
1132
1171
        tx39)
1324
1363
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1325
1364
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1326
1365
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1327
 
              | -sym* | -kopensolaris* \
 
1366
              | -sym* | -kopensolaris* | -plan9* \
1328
1367
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1329
1368
              | -aos* | -aros* \
1330
1369
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1331
1370
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1332
1371
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1333
 
              | -openbsd* | -solidbsd* \
 
1372
              | -bitrig* | -openbsd* | -solidbsd* \
1334
1373
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1335
1374
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1336
1375
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1337
1376
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1338
1377
              | -chorusos* | -chorusrdb* | -cegcc* \
1339
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1340
 
              | -mingw32* | -linux-gnu* | -linux-android* \
1341
 
              | -linux-newlib* | -linux-uclibc* \
1342
 
              | -uxpv* | -beos* | -mpeix* | -udk* \
 
1378
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1379
              | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
 
1380
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
 
1381
              | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1343
1382
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1344
1383
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1345
1384
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1346
1385
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1347
1386
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1348
1387
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1349
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1388
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1350
1389
        # Remember, each alternative MUST END IN *, to match a version number.
1351
1390
                ;;
1352
1391
        -qnx*)
1470
1509
        -aros*)
1471
1510
                os=-aros
1472
1511
                ;;
1473
 
        -kaos*)
1474
 
                os=-kaos
1475
 
                ;;
1476
1512
        -zvmoe)
1477
1513
                os=-zvmoe
1478
1514
                ;;
1521
1557
        c4x-* | tic4x-*)
1522
1558
                os=-coff
1523
1559
                ;;
 
1560
        c8051-*)
 
1561
                os=-elf
 
1562
                ;;
 
1563
        hexagon-*)
 
1564
                os=-elf
 
1565
                ;;
1524
1566
        tic54x-*)
1525
1567
                os=-coff
1526
1568
                ;;
1548
1590
                ;;
1549
1591
        m68000-sun)
1550
1592
                os=-sunos3
1551
 
                # This also exists in the configure program, but was not the
1552
 
                # default.
1553
 
                # os=-sunos4
1554
1593
                ;;
1555
1594
        m68*-cisco)
1556
1595
                os=-aout