22# Configuration validation subroutine script.
33# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
44# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5- # 2011, 2012 Free Software Foundation, Inc.
5+ # 2011, 2012, 2013 Free Software Foundation, Inc.
66
7- timestamp=' 2012-02-10 '
7+ timestamp=' 2012-12-29 '
88
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
9+ # This file is free software; you can redistribute it and/or modify it
10+ # under the terms of the GNU General Public License as published by
11+ # the Free Software Foundation; either version 3 of the License, or
1612# (at your option) any later version.
1713#
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.
14+ # This program is distributed in the hope that it will be useful, but
15+ # WITHOUT ANY WARRANTY; without even the implied warranty of
16+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+ # General Public License for more details.
2218#
2319# You should have received a copy of the GNU General Public License
2420# along with this program; if not, see <http://www.gnu.org/licenses/>.
2521#
2622# As a special exception to the GNU General Public License, if you
2723# distribute this file as part of a program that contains a
2824# configuration script generated by Autoconf, you may include it under
29- # the same distribution terms that you use for the rest of that program.
25+ # the same distribution terms that you use for the rest of that
26+ # program. This Exception is an additional permission under section 7
27+ # of the GNU General Public License, version 3 ("GPLv3").
3028
3129
32- # Please send patches to <[email protected] >. Submit a context33- # diff and a properly formatted GNU ChangeLog entry.
30+ # Please send patches with a ChangeLog entry to [email protected] .3431#
3532# Configuration subroutine to validate and canonicalize a configuration type.
3633# Supply the specified configuration type as an argument.
@@ -74,8 +71,8 @@ version="\
7471GNU config.sub ($timestamp )
7572
7673Copyright (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.
74+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
75+ 2012, 2013 Free Software Foundation, Inc.
7976
8077This is free software; see the source for copying conditions. There is NO
8178warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123120maybe_os=` echo $1 | sed ' s/^\(.*\)-\([^-]*-[^-]*\)$/\2/' `
124121case $maybe_os in
125122 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
126- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd* -gnu* | \
123+ linux-musl * | linux- uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd* -gnu* | \
127124 knetbsd* -gnu* | netbsd* -gnu* | \
128125 kopensolaris* -gnu* | \
129126 storm-chaos* | os2-emx* | rtmk-nova* )
@@ -156,7 +153,7 @@ case $os in
156153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
157154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
158155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
159- -apple | -axis | -knuth | -cray | -microblaze)
156+ -apple | -axis | -knuth | -cray | -microblaze* )
160157 os=
161158 basic_machine=$1
162159 ;;
@@ -225,6 +222,12 @@ case $os in
225222 -isc* )
226223 basic_machine=` echo $1 | sed -e ' s/86-.*/86-pc/' `
227224 ;;
225+ -lynx* 178)
226+ os=-lynxos178
227+ ;;
228+ -lynx* 5)
229+ os=-lynxos5
230+ ;;
228231 -lynx* )
229232 os=-lynxos
230233 ;;
@@ -253,8 +256,10 @@ case $basic_machine in
253256 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
254257 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
255258 | am33_2.0 \
256- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
257- | be32 | be64 \
259+ | arc \
260+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
261+ | avr | avr32 \
262+ | be32 | be64 \
258263 | bfin \
259264 | c4x | clipper \
260265 | d10v | d30v | dlx | dsp16xx \
@@ -267,7 +272,7 @@ case $basic_machine in
267272 | le32 | le64 \
268273 | lm32 \
269274 | m32c | m32r | m32rle | m68000 | m68k | m88k \
270- | maxq | mb | microblaze | mcore | mep | metag \
275+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
271276 | mips | mipsbe | mipseb | mipsel | mipsle \
272277 | mips16 \
273278 | mips64 | mips64el \
@@ -383,7 +388,8 @@ case $basic_machine in
383388 | lm32-* \
384389 | m32c-* | m32r-* | m32rle-* \
385390 | m68000-* | m680[012346]0-* | m68360-* | m683? 2-* | m68k-* \
386- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
391+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
392+ | microblaze-* | microblazeel-* \
387393 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
388394 | mips16-* \
389395 | mips64-* | mips64el-* \
@@ -782,9 +788,13 @@ case $basic_machine in
782788 basic_machine=ns32k-utek
783789 os=-sysv
784790 ;;
785- microblaze)
791+ microblaze* )
786792 basic_machine=microblaze-xilinx
787793 ;;
794+ mingw64)
795+ basic_machine=x86_64-pc
796+ os=-mingw64
797+ ;;
788798 mingw32)
789799 basic_machine=i386-pc
790800 os=-mingw32
@@ -1013,7 +1023,11 @@ case $basic_machine in
10131023 basic_machine=i586-unknown
10141024 os=-pw32
10151025 ;;
1016- rdos)
1026+ rdos | rdos64)
1027+ basic_machine=x86_64-pc
1028+ os=-rdos
1029+ ;;
1030+ rdos32)
10171031 basic_machine=i386-pc
10181032 os=-rdos
10191033 ;;
@@ -1346,15 +1360,15 @@ case $os in
13461360 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13471361 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13481362 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1349- | -openbsd* | -solidbsd* \
1363+ | -bitrig * | - openbsd* | -solidbsd* \
13501364 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13511365 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13521366 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13531367 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13541368 | -chorusos* | -chorusrdb* | -cegcc* \
13551369 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1356- | -mingw32* | -linux-gnu* | -linux-android* \
1357- | -linux-newlib* | -linux-uclibc* \
1370+ | -mingw32* | -mingw64 * | - linux-gnu* | -linux-android* \
1371+ | -linux-newlib* | -linux-musl * | -linux- uclibc* \
13581372 | -uxpv* | -beos* | -mpeix* | -udk* \
13591373 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13601374 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1537,6 +1551,9 @@ case $basic_machine in
15371551 c4x-* | tic4x-* )
15381552 os=-coff
15391553 ;;
1554+ hexagon-* )
1555+ os=-elf
1556+ ;;
15401557 tic54x-* )
15411558 os=-coff
15421559 ;;
0 commit comments