The R Project SVN R

Rev

Rev 60114 | Rev 65095 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60114 Rev 62956
Line 1... Line 1...
1
#! /bin/sh
1
#! /bin/sh
2
# Configuration validation subroutine script.
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, 2012 Free Software Foundation, Inc.
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
6
 
4
 
7
timestamp='2012-08-03'
5
timestamp='2013-06-14'
8
 
6
 
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
7
# This file is free software; you can redistribute it and/or modify it
14
# it under the terms of the GNU General Public License as published by
8
# under the terms of the GNU General Public License as published by
15
# the Free Software Foundation; either version 2 of the License, or
9
# the Free Software Foundation; either version 3 of the License, or
16
# (at your option) any later version.
10
# (at your option) any later version.
17
#
11
#
18
# This program is distributed in the hope that it will be useful,
12
# This program is distributed in the hope that it will be useful, but
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21
# GNU General Public License for more details.
15
# General Public License for more details.
22
#
16
#
23
# You should have received a copy of the GNU General Public License
17
# 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/>.
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
25
#
19
#
26
# As a special exception to the GNU General Public License, if you
20
# As a special exception to the GNU General Public License, if you
27
# distribute this file as part of a program that contains a
21
# distribute this file as part of a program that contains a
28
# configuration script generated by Autoconf, you may include it under
22
# configuration script generated by Autoconf, you may include it under
29
# the same distribution terms that you use for the rest of that program.
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").
30
 
26
 
31
 
27
 
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
28
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
33
# diff and a properly formatted GNU ChangeLog entry.
-
 
34
#
29
#
35
# Configuration subroutine to validate and canonicalize a configuration type.
30
# Configuration subroutine to validate and canonicalize a configuration type.
36
# Supply the specified configuration type as an argument.
31
# Supply the specified configuration type as an argument.
37
# If it is invalid, we print an error message on stderr and exit with code 1.
32
# If it is invalid, we print an error message on stderr and exit with code 1.
38
# Otherwise, we print the canonical config type on stdout and succeed.
33
# Otherwise, we print the canonical config type on stdout and succeed.
Line 71... Line 66...
71
Report bugs and patches to <config-patches@gnu.org>."
66
Report bugs and patches to <config-patches@gnu.org>."
72
 
67
 
73
version="\
68
version="\
74
GNU config.sub ($timestamp)
69
GNU config.sub ($timestamp)
75
 
70
 
76
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.
71
Copyright 1992-2013 Free Software Foundation, Inc.
79
 
72
 
80
This is free software; see the source for copying conditions.  There is NO
73
This is free software; see the source for copying conditions.  There is NO
81
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
74
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
 
75
 
83
help="
76
help="
Line 121... Line 114...
121
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
122
# Here we must recognize all the valid KERNEL-OS combinations.
115
# Here we must recognize all the valid KERNEL-OS combinations.
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124
case $maybe_os in
117
case $maybe_os in
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
127
  knetbsd*-gnu* | netbsd*-gnu* | \
120
  knetbsd*-gnu* | netbsd*-gnu* | \
128
  kopensolaris*-gnu* | \
121
  kopensolaris*-gnu* | \
129
  storm-chaos* | os2-emx* | rtmk-nova*)
122
  storm-chaos* | os2-emx* | rtmk-nova*)
130
    os=-$maybe_os
123
    os=-$maybe_os
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
Line 154... Line 147...
154
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
155
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
156
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159
	-apple | -axis | -knuth | -cray | -microblaze)
152
	-apple | -axis | -knuth | -cray | -microblaze*)
160
		os=
153
		os=
161
		basic_machine=$1
154
		basic_machine=$1
162
		;;
155
		;;
163
	-bluegene*)
156
	-bluegene*)
164
		os=-cnk
157
		os=-cnk
Line 257... Line 250...
257
	| a29k \
250
	| a29k \
258
	| aarch64 | aarch64_be \
251
	| aarch64 | aarch64_be \
259
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
260
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
261
	| am33_2.0 \
254
	| am33_2.0 \
-
 
255
	| arc | arceb \
262
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
256
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
-
 
257
	| avr | avr32 \
263
        | be32 | be64 \
258
	| be32 | be64 \
264
	| bfin \
259
	| bfin \
265
	| c4x | clipper \
260
	| c4x | clipper \
266
	| d10v | d30v | dlx | dsp16xx \
261
	| d10v | d30v | dlx | dsp16xx \
267
	| epiphany \
262
	| epiphany \
268
	| fido | fr30 | frv \
263
	| fido | fr30 | frv \
Line 271... Line 266...
271
	| i370 | i860 | i960 | ia64 \
266
	| i370 | i860 | i960 | ia64 \
272
	| ip2k | iq2000 \
267
	| ip2k | iq2000 \
273
	| le32 | le64 \
268
	| le32 | le64 \
274
	| lm32 \
269
	| lm32 \
275
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
270
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
276
	| maxq | mb | microblaze | mcore | mep | metag \
271
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
277
	| mips | mipsbe | mipseb | mipsel | mipsle \
272
	| mips | mipsbe | mipseb | mipsel | mipsle \
278
	| mips16 \
273
	| mips16 \
279
	| mips64 | mips64el \
274
	| mips64 | mips64el \
280
	| mips64octeon | mips64octeonel \
275
	| mips64octeon | mips64octeonel \
281
	| mips64orion | mips64orionel \
276
	| mips64orion | mips64orionel \
Line 289... Line 284...
289
	| mipsisa32r2 | mipsisa32r2el \
284
	| mipsisa32r2 | mipsisa32r2el \
290
	| mipsisa64 | mipsisa64el \
285
	| mipsisa64 | mipsisa64el \
291
	| mipsisa64r2 | mipsisa64r2el \
286
	| mipsisa64r2 | mipsisa64r2el \
292
	| mipsisa64sb1 | mipsisa64sb1el \
287
	| mipsisa64sb1 | mipsisa64sb1el \
293
	| mipsisa64sr71k | mipsisa64sr71kel \
288
	| mipsisa64sr71k | mipsisa64sr71kel \
-
 
289
	| mipsr5900 | mipsr5900el \
294
	| mipstx39 | mipstx39el \
290
	| mipstx39 | mipstx39el \
295
	| mn10200 | mn10300 \
291
	| mn10200 | mn10300 \
296
	| moxie \
292
	| moxie \
297
	| mt \
293
	| mt \
298
	| msp430 \
294
	| msp430 \
299
	| nds32 | nds32le | nds32be \
295
	| nds32 | nds32le | nds32be \
300
	| nios | nios2 \
296
	| nios | nios2 | nios2eb | nios2el \
301
	| ns16k | ns32k \
297
	| ns16k | ns32k \
302
	| open8 \
298
	| open8 \
303
	| or32 \
299
	| or1k | or32 \
304
	| pdp10 | pdp11 | pj | pjl \
300
	| pdp10 | pdp11 | pj | pjl \
305
	| powerpc | powerpc64 | powerpc64le | powerpcle \
301
	| powerpc | powerpc64 | powerpc64le | powerpcle \
306
	| pyramid \
302
	| pyramid \
307
	| rl78 | rx \
303
	| rl78 | rx \
308
	| score \
304
	| score \
Line 368... Line 364...
368
	580-* \
364
	580-* \
369
	| a29k-* \
365
	| a29k-* \
370
	| aarch64-* | aarch64_be-* \
366
	| aarch64-* | aarch64_be-* \
371
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
367
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
368
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
369
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
370
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
375
	| avr-* | avr32-* \
371
	| avr-* | avr32-* \
376
	| be32-* | be64-* \
372
	| be32-* | be64-* \
377
	| bfin-* | bs2000-* \
373
	| bfin-* | bs2000-* \
378
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
374
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
Line 387... Line 383...
387
	| ip2k-* | iq2000-* \
383
	| ip2k-* | iq2000-* \
388
	| le32-* | le64-* \
384
	| le32-* | le64-* \
389
	| lm32-* \
385
	| lm32-* \
390
	| m32c-* | m32r-* | m32rle-* \
386
	| m32c-* | m32r-* | m32rle-* \
391
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
387
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
392
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
388
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
-
 
389
	| microblaze-* | microblazeel-* \
393
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
390
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
394
	| mips16-* \
391
	| mips16-* \
395
	| mips64-* | mips64el-* \
392
	| mips64-* | mips64el-* \
396
	| mips64octeon-* | mips64octeonel-* \
393
	| mips64octeon-* | mips64octeonel-* \
397
	| mips64orion-* | mips64orionel-* \
394
	| mips64orion-* | mips64orionel-* \
Line 405... Line 402...
405
	| mipsisa32r2-* | mipsisa32r2el-* \
402
	| mipsisa32r2-* | mipsisa32r2el-* \
406
	| mipsisa64-* | mipsisa64el-* \
403
	| mipsisa64-* | mipsisa64el-* \
407
	| mipsisa64r2-* | mipsisa64r2el-* \
404
	| mipsisa64r2-* | mipsisa64r2el-* \
408
	| mipsisa64sb1-* | mipsisa64sb1el-* \
405
	| mipsisa64sb1-* | mipsisa64sb1el-* \
409
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
406
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
-
 
407
	| mipsr5900-* | mipsr5900el-* \
410
	| mipstx39-* | mipstx39el-* \
408
	| mipstx39-* | mipstx39el-* \
411
	| mmix-* \
409
	| mmix-* \
412
	| mt-* \
410
	| mt-* \
413
	| msp430-* \
411
	| msp430-* \
414
	| nds32-* | nds32le-* | nds32be-* \
412
	| nds32-* | nds32le-* | nds32be-* \
415
	| nios-* | nios2-* \
413
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
416
	| none-* | np1-* | ns16k-* | ns32k-* \
414
	| none-* | np1-* | ns16k-* | ns32k-* \
417
	| open8-* \
415
	| open8-* \
418
	| orion-* \
416
	| orion-* \
419
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
417
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
420
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
418
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
Line 786... Line 784...
786
		;;
784
		;;
787
	merlin)
785
	merlin)
788
		basic_machine=ns32k-utek
786
		basic_machine=ns32k-utek
789
		os=-sysv
787
		os=-sysv
790
		;;
788
		;;
791
	microblaze)
789
	microblaze*)
792
		basic_machine=microblaze-xilinx
790
		basic_machine=microblaze-xilinx
793
		;;
791
		;;
794
	mingw64)
792
	mingw64)
795
		basic_machine=x86_64-pc
793
		basic_machine=x86_64-pc
796
		os=-mingw64
794
		os=-mingw64
Line 1021... Line 1019...
1021
		;;
1019
		;;
1022
	pw32)
1020
	pw32)
1023
		basic_machine=i586-unknown
1021
		basic_machine=i586-unknown
1024
		os=-pw32
1022
		os=-pw32
1025
		;;
1023
		;;
-
 
1024
	rdos | rdos64)
-
 
1025
		basic_machine=x86_64-pc
-
 
1026
		os=-rdos
-
 
1027
		;;
1026
	rdos)
1028
	rdos32)
1027
		basic_machine=i386-pc
1029
		basic_machine=i386-pc
1028
		os=-rdos
1030
		os=-rdos
1029
		;;
1031
		;;
1030
	rom68k)
1032
	rom68k)
1031
		basic_machine=m68k-rom68k
1033
		basic_machine=m68k-rom68k
Line 1348... Line 1350...
1348
	# Each alternative MUST END IN A *, to match a version number.
1350
	# Each alternative MUST END IN A *, to match a version number.
1349
	# -sysv* is not here because it comes later, after sysvr4.
1351
	# -sysv* is not here because it comes later, after sysvr4.
1350
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1352
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1351
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1353
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1352
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1354
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1353
	      | -sym* | -kopensolaris* \
1355
	      | -sym* | -kopensolaris* | -plan9* \
1354
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1356
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1355
	      | -aos* | -aros* \
1357
	      | -aos* | -aros* \
1356
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1358
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1357
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1359
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1358
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1360
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
Line 1362... Line 1364...
1362
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1364
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1363
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1365
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1364
	      | -chorusos* | -chorusrdb* | -cegcc* \
1366
	      | -chorusos* | -chorusrdb* | -cegcc* \
1365
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1367
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1366
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1367
	      | -linux-newlib* | -linux-uclibc* \
1369
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1368
	      | -uxpv* | -beos* | -mpeix* | -udk* \
1370
	      | -uxpv* | -beos* | -mpeix* | -udk* \
1369
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1371
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1370
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1372
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1371
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1373
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1372
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1374
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
Line 1494... Line 1496...
1494
		os=-mint
1496
		os=-mint
1495
		;;
1497
		;;
1496
	-aros*)
1498
	-aros*)
1497
		os=-aros
1499
		os=-aros
1498
		;;
1500
		;;
1499
	-kaos*)
-
 
1500
		os=-kaos
-
 
1501
		;;
-
 
1502
	-zvmoe)
1501
	-zvmoe)
1503
		os=-zvmoe
1502
		os=-zvmoe
1504
		;;
1503
		;;
1505
	-dicos*)
1504
	-dicos*)
1506
		os=-dicos
1505
		os=-dicos
Line 1588... Line 1587...
1588
		os=-elf
1587
		os=-elf
1589
		;;
1588
		;;
1590
	mips*-*)
1589
	mips*-*)
1591
		os=-elf
1590
		os=-elf
1592
		;;
1591
		;;
-
 
1592
	or1k-*)
-
 
1593
		os=-elf
-
 
1594
		;;
1593
	or32-*)
1595
	or32-*)
1594
		os=-coff
1596
		os=-coff
1595
		;;
1597
		;;
1596
	*-tti)	# must be before sparc entry or we get the wrong os.
1598
	*-tti)	# must be before sparc entry or we get the wrong os.
1597
		os=-sysv3
1599
		os=-sysv3