~ubuntu-branches/ubuntu/vivid/gnupg/vivid

« back to all changes in this revision

Viewing changes to scripts/config.sub

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-12-04 22:26:16 UTC
  • mfrom: (1.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20121204222616-cr0fow26geq90l3y
Tags: 1.4.12-6ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Disable mlock() test since it fails with ulimit 0 (on buildds).
  - Set gpg (or gpg2) and gpgsm to use a passphrase agent by default.
  - Only suggest gnupg-curl and libldap; recommendations are pulled into
    minimal, and we don't need the keyserver utilities in a minimal Ubuntu
    system.
  - Remove the Win32 build.
  - Update config.guess/config.sub for aarch64.
* Dropped patches:
  - Fix udeb build failure on powerpc, building with -O2 instead of -Os.
    (No longer seems to be necessary.)
* Simplify removal of Win32 build, to make this easier to merge in future.

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
 
#   Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2010-09-11'
 
7
timestamp='2012-04-18'
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, write to the Free Software
25
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
 
# 02110-1301, USA.
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
27
25
#
28
26
# As a special exception to the GNU General Public License, if you
29
27
# distribute this file as part of a program that contains a
76
74
GNU config.sub ($timestamp)
77
75
 
78
76
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
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
 
78
Free Software Foundation, Inc.
81
79
 
82
80
This is free software; see the source for copying conditions.  There is NO
83
81
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
132
130
    os=-$maybe_os
133
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
134
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
135
137
  *)
136
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
137
139
    if [ $basic_machine != $1 ]
158
160
                os=
159
161
                basic_machine=$1
160
162
                ;;
161
 
        -bluegene*)
162
 
                os=-cnk
 
163
        -bluegene*)
 
164
                os=-cnk
163
165
                ;;
164
166
        -sim | -cisco | -oki | -wec | -winbond)
165
167
                os=
175
177
                os=-chorusos
176
178
                basic_machine=$1
177
179
                ;;
178
 
        -chorusrdb)
179
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
180
182
                basic_machine=$1
181
 
                ;;
 
183
                ;;
182
184
        -hiux*)
183
185
                os=-hiuxwe2
184
186
                ;;
223
225
        -isc*)
224
226
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
225
227
                ;;
 
228
        -lynx*178)
 
229
                os=-lynxos178
 
230
                ;;
 
231
        -lynx*5)
 
232
                os=-lynxos5
 
233
                ;;
226
234
        -lynx*)
227
235
                os=-lynxos
228
236
                ;;
247
255
        # Some are omitted here because they have special meanings below.
248
256
        1750a | 580 \
249
257
        | a29k \
 
258
        | aarch64 | aarch64_be \
250
259
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
251
260
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252
261
        | am33_2.0 \
253
262
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
263
        | be32 | be64 \
254
264
        | bfin \
255
265
        | c4x | clipper \
256
266
        | d10v | d30v | dlx | dsp16xx \
 
267
        | epiphany \
257
268
        | fido | fr30 | frv \
258
269
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
270
        | hexagon \
259
271
        | i370 | i860 | i960 | ia64 \
260
272
        | ip2k | iq2000 \
 
273
        | le32 | le64 \
261
274
        | lm32 \
262
275
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
263
276
        | maxq | mb | microblaze | mcore | mep | metag \
286
299
        | nds32 | nds32le | nds32be \
287
300
        | nios | nios2 \
288
301
        | ns16k | ns32k \
 
302
        | open8 \
289
303
        | or32 \
290
304
        | pdp10 | pdp11 | pj | pjl \
291
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
305
        | powerpc | powerpc64 | powerpc64le | powerpcle \
292
306
        | pyramid \
293
 
        | rx \
 
307
        | rl78 | rx \
294
308
        | score \
295
309
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
296
310
        | sh64 | sh64le \
297
311
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298
312
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299
 
        | spu | strongarm \
300
 
        | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
313
        | spu \
 
314
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
301
315
        | ubicom32 \
302
 
        | v850 | v850e \
 
316
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
303
317
        | we32k \
304
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
318
        | x86 | xc16x | xstormy16 | xtensa \
305
319
        | z8k | z80)
306
320
                basic_machine=$basic_machine-unknown
307
321
                ;;
314
328
        c6x)
315
329
                basic_machine=tic6x-unknown
316
330
                ;;
317
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
318
 
                # Motorola 68HC11/12.
 
331
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
319
332
                basic_machine=$basic_machine-unknown
320
333
                os=-none
321
334
                ;;
325
338
                basic_machine=mt-unknown
326
339
                ;;
327
340
 
 
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
 
328
356
        # We use `pc' rather than `unknown'
329
357
        # because (1) that's what they normally are, and
330
358
        # (2) the word "unknown" tends to confuse beginning users.
339
367
        # Recognize the basic CPU types with company name.
340
368
        580-* \
341
369
        | a29k-* \
 
370
        | aarch64-* | aarch64_be-* \
342
371
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
343
372
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
344
373
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
345
374
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
346
375
        | avr-* | avr32-* \
 
376
        | be32-* | be64-* \
347
377
        | bfin-* | bs2000-* \
348
378
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
349
379
        | clipper-* | craynv-* | cydra-* \
352
382
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
353
383
        | h8300-* | h8500-* \
354
384
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
385
        | hexagon-* \
355
386
        | i*86-* | i860-* | i960-* | ia64-* \
356
387
        | ip2k-* | iq2000-* \
 
388
        | le32-* | le64-* \
357
389
        | lm32-* \
358
390
        | m32c-* | m32r-* | m32rle-* \
359
391
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
382
414
        | nds32-* | nds32le-* | nds32be-* \
383
415
        | nios-* | nios2-* \
384
416
        | none-* | np1-* | ns16k-* | ns32k-* \
 
417
        | open8-* \
385
418
        | orion-* \
386
419
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
387
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
420
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
388
421
        | pyramid-* \
389
 
        | romp-* | rs6000-* | rx-* \
 
422
        | rl78-* | romp-* | rs6000-* | rx-* \
390
423
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
391
424
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
392
425
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
393
426
        | sparclite-* \
394
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
395
 
        | tahoe-* | thumb-* \
 
427
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
428
        | tahoe-* \
396
429
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
397
 
        | tile-* | tilegx-* \
 
430
        | tile*-* \
398
431
        | tron-* \
399
432
        | ubicom32-* \
400
 
        | v850-* | v850e-* | vax-* \
 
433
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
434
        | vax-* \
401
435
        | we32k-* \
402
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
436
        | x86-* | x86_64-* | xc16x-* | xps100-* \
403
437
        | xstormy16-* | xtensa*-* \
404
438
        | ymp-* \
405
439
        | z8k-* | z80-*)
424
458
                basic_machine=a29k-amd
425
459
                os=-udi
426
460
                ;;
427
 
        abacus)
 
461
        abacus)
428
462
                basic_machine=abacus-unknown
429
463
                ;;
430
464
        adobe68k)
507
541
                basic_machine=c90-cray
508
542
                os=-unicos
509
543
                ;;
510
 
        cegcc)
 
544
        cegcc)
511
545
                basic_machine=arm-unknown
512
546
                os=-cegcc
513
547
                ;;
539
573
                basic_machine=craynv-cray
540
574
                os=-unicosmp
541
575
                ;;
542
 
        cr16)
 
576
        cr16 | cr16-*)
543
577
                basic_machine=cr16-unknown
544
578
                os=-elf
545
579
                ;;
697
731
        i370-ibm* | ibm*)
698
732
                basic_machine=i370-ibm
699
733
                ;;
700
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
701
734
        i*86v32)
702
735
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
703
736
                os=-sysv32
755
788
                basic_machine=ns32k-utek
756
789
                os=-sysv
757
790
                ;;
758
 
        microblaze)
 
791
        microblaze)
759
792
                basic_machine=microblaze-xilinx
760
793
                ;;
761
794
        mingw32)
794
827
        ms1-*)
795
828
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
796
829
                ;;
 
830
        msys)
 
831
                basic_machine=i386-pc
 
832
                os=-msys
 
833
                ;;
797
834
        mvs)
798
835
                basic_machine=i370-ibm
799
836
                os=-mvs
800
837
                ;;
 
838
        nacl)
 
839
                basic_machine=le32-unknown
 
840
                os=-nacl
 
841
                ;;
801
842
        ncr3000)
802
843
                basic_machine=i486-ncr
803
844
                os=-sysv4
862
903
        np1)
863
904
                basic_machine=np1-gould
864
905
                ;;
865
 
        neo-tandem)
 
906
        neo-tandem)
866
907
                basic_machine=neo-tandem
867
908
                ;;
868
 
        nse-tandem)
 
909
        nse-tandem)
869
910
                basic_machine=nse-tandem
870
911
                ;;
871
912
        nsr-tandem)
950
991
                ;;
951
992
        power)  basic_machine=power-ibm
952
993
                ;;
953
 
        ppc)    basic_machine=powerpc-unknown
 
994
        ppc | ppcbe)    basic_machine=powerpc-unknown
954
995
                ;;
955
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
996
        ppc-* | ppcbe-*)
 
997
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
956
998
                ;;
957
999
        ppcle | powerpclittle | ppc-le | powerpc-little)
958
1000
                basic_machine=powerpcle-unknown
1046
1088
                basic_machine=i860-stratus
1047
1089
                os=-sysv4
1048
1090
                ;;
 
1091
        strongarm-* | thumb-*)
 
1092
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1093
                ;;
1049
1094
        sun2)
1050
1095
                basic_machine=m68000-sun
1051
1096
                ;;
1102
1147
                basic_machine=t90-cray
1103
1148
                os=-unicos
1104
1149
                ;;
1105
 
        # This must be matched before tile*.
1106
 
        tilegx*)
1107
 
                basic_machine=tilegx-unknown
1108
 
                os=-linux-gnu
1109
 
                ;;
1110
1150
        tile*)
1111
 
                basic_machine=tile-unknown
 
1151
                basic_machine=$basic_machine-unknown
1112
1152
                os=-linux-gnu
1113
1153
                ;;
1114
1154
        tx39)
1178
1218
        xps | xps100)
1179
1219
                basic_machine=xps100-honeywell
1180
1220
                ;;
 
1221
        xscale-* | xscalee[bl]-*)
 
1222
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1223
                ;;
1181
1224
        ymp)
1182
1225
                basic_machine=ymp-cray
1183
1226
                os=-unicos
1275
1318
if [ x"$os" != x"" ]
1276
1319
then
1277
1320
case $os in
1278
 
        # First match some system type aliases
1279
 
        # that might get confused with valid system types.
 
1321
        # First match some system type aliases
 
1322
        # that might get confused with valid system types.
1280
1323
        # -solaris* is a basic system type, with this one exception.
1281
 
        -auroraux)
1282
 
                os=-auroraux
 
1324
        -auroraux)
 
1325
                os=-auroraux
1283
1326
                ;;
1284
1327
        -solaris1 | -solaris1.*)
1285
1328
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1315
1358
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1316
1359
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1317
1360
              | -chorusos* | -chorusrdb* | -cegcc* \
1318
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1361
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1319
1362
              | -mingw32* | -linux-gnu* | -linux-android* \
1320
1363
              | -linux-newlib* | -linux-uclibc* \
1321
1364
              | -uxpv* | -beos* | -mpeix* | -udk* \
1364
1407
        -opened*)
1365
1408
                os=-openedition
1366
1409
                ;;
1367
 
        -os400*)
 
1410
        -os400*)
1368
1411
                os=-os400
1369
1412
                ;;
1370
1413
        -wince*)
1413
1456
        -sinix*)
1414
1457
                os=-sysv4
1415
1458
                ;;
1416
 
        -tpf*)
 
1459
        -tpf*)
1417
1460
                os=-tpf
1418
1461
                ;;
1419
1462
        -triton*)
1458
1501
        -dicos*)
1459
1502
                os=-dicos
1460
1503
                ;;
1461
 
        -nacl*)
1462
 
                ;;
 
1504
        -nacl*)
 
1505
                ;;
1463
1506
        -none)
1464
1507
                ;;
1465
1508
        *)
1482
1525
# system, and we'll never get to this point.
1483
1526
 
1484
1527
case $basic_machine in
1485
 
        score-*)
 
1528
        score-*)
1486
1529
                os=-elf
1487
1530
                ;;
1488
 
        spu-*)
 
1531
        spu-*)
1489
1532
                os=-elf
1490
1533
                ;;
1491
1534
        *-acorn)
1497
1540
        arm*-semi)
1498
1541
                os=-aout
1499
1542
                ;;
1500
 
        c4x-* | tic4x-*)
1501
 
                os=-coff
 
1543
        c4x-* | tic4x-*)
 
1544
                os=-coff
 
1545
                ;;
 
1546
        hexagon-*)
 
1547
                os=-elf
1502
1548
                ;;
1503
1549
        tic54x-*)
1504
1550
                os=-coff
1527
1573
                ;;
1528
1574
        m68000-sun)
1529
1575
                os=-sunos3
1530
 
                # This also exists in the configure program, but was not the
1531
 
                # default.
1532
 
                # os=-sunos4
1533
1576
                ;;
1534
1577
        m68*-cisco)
1535
1578
                os=-aout
1536
1579
                ;;
1537
 
        mep-*)
 
1580
        mep-*)
1538
1581
                os=-elf
1539
1582
                ;;
1540
1583
        mips*-cisco)
1561
1604
        *-ibm)
1562
1605
                os=-aix
1563
1606
                ;;
1564
 
        *-knuth)
 
1607
        *-knuth)
1565
1608
                os=-mmixware
1566
1609
                ;;
1567
1610
        *-wec)