11#! /bin/sh
22# Configuration validation subroutine script.
3- # Copyright 1992-2014 Free Software Foundation, Inc.
3+ # Copyright 1992-2015 Free Software Foundation, Inc.
44
5- timestamp=' 2014-05-01 '
5+ timestamp=' 2015-08-18 '
66
77# This file is free software; you can redistribute it and/or modify it
88# under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ timestamp='2014-05-01'
2525# of the GNU General Public License, version 3 ("GPLv3").
2626
2727
28- # Please send patcheswith a ChangeLog entry to config-patches@gnu.org.
28+ # Please send patches to< config-patches@gnu.org> .
2929#
3030# Configuration subroutine to validate and canonicalize a configuration type.
3131# Supply the specified configuration type as an argument.
@@ -68,7 +68,7 @@ Report bugs and patches to <config-patches@gnu.org>."
6868version=" \
6969GNU config.sub ($timestamp )
7070
71- Copyright 1992-2014 Free Software Foundation, Inc.
71+ Copyright 1992-2015 Free Software Foundation, Inc.
7272
7373This is free software; see the source for copying conditions. There is NO
7474warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -117,7 +117,7 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
117117case $maybe_os in
118118 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
119119 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd* -gnu* | \
120- knetbsd* -gnu* | netbsd* -gnu* | \
120+ knetbsd* -gnu* | netbsd* -gnu* |netbsd * -eabi * | \
121121 kopensolaris* -gnu* | \
122122 storm-chaos* | os2-emx* | rtmk-nova* )
123123 os=-$maybe_os
@@ -255,12 +255,13 @@ case $basic_machine in
255255| arc | arceb \
256256| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
257257| avr | avr32 \
258+ | ba \
258259| be32 | be64 \
259260| bfin \
260261| c4x | c8051 | clipper \
261262| d10v | d30v | dlx | dsp16xx \
262- | epiphany \
263- | fido | fr30 | frv \
263+ |e2k | epiphany \
264+ | fido | fr30 | frv| ft32 \
264265| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265266| hexagon \
266267| i370 | i860 | i960 | ia64 \
@@ -302,16 +303,18 @@ case $basic_machine in
302303| pdp10 | pdp11 | pj | pjl \
303304| powerpc | powerpc64 | powerpc64le | powerpcle \
304305| pyramid \
306+ | riscv32 | riscv64 \
305307| rl78 | rx \
306308| score \
307- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34 ]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
309+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234 ]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308310| sh64 | sh64le \
309311| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310312| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311313| spu \
312314| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313315| ubicom32 \
314316| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317+ | visium \
315318| we32k \
316319| x86 | xc16x | xstormy16 | xtensa \
317320| z8k | z80)
@@ -326,6 +329,9 @@ case $basic_machine in
326329c6x)
327330basic_machine=tic6x-unknown
328331;;
332+ leon|leon[3-9])
333+ basic_machine=sparc-$basic_machine
334+ ;;
329335m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
330336basic_machine=$basic_machine -unknown
331337os=-none
@@ -371,12 +377,13 @@ case $basic_machine in
371377| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
372378| arm-* | armbe-* | armle-* | armeb-* | armv* -* \
373379| avr-* | avr32-* \
380+ | ba-* \
374381| be32-* | be64-* \
375382| bfin-* | bs2000-* \
376383| c[123]* | c30-* | [cjt]90-* | c4x-* \
377384| c8051-* | clipper-* | craynv-* | cydra-* \
378385| d10v-* | d30v-* | dlx-* \
379- | elxsi-* \
386+ |e2k- * | elxsi-* \
380387| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
381388| h8300-* | h8500-* \
382389| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
@@ -423,19 +430,21 @@ case $basic_machine in
423430| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
424431| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
425432| pyramid-* \
433+ | riscv32-* | riscv64-* \
426434| rl78-* | romp-* | rs6000-* | rx-* \
427435| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
428436| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
429437| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
430438| sparclite-* \
431- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx? -* \
439+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx* -* \
432440| tahoe-* \
433441| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
434442| tile* -* \
435443| tron-* \
436444| ubicom32-* \
437445| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
438446| vax-* \
447+ | visium-* \
439448| we32k-* \
440449| x86-* | x86_64-* | xc16x-* | xps100-* \
441450| xstormy16-* | xtensa* -* \
@@ -512,6 +521,9 @@ case $basic_machine in
512521basic_machine=i386-pc
513522os=-aros
514523;;
524+ asmjs)
525+ basic_machine=asmjs-unknown
526+ ;;
515527aux)
516528basic_machine=m68k-apple
517529os=-aux
@@ -773,6 +785,9 @@ case $basic_machine in
773785basic_machine=m68k-isi
774786os=-sysv
775787;;
788+ leon-* |leon[3-9]-* )
789+ basic_machine=sparc-` echo$basic_machine | sed' s/-.*//' `
790+ ;;
776791m68knommu)
777792basic_machine=m68k-unknown
778793os=-linux
@@ -828,6 +843,10 @@ case $basic_machine in
828843basic_machine=powerpc-unknown
829844os=-morphos
830845;;
846+ moxiebox)
847+ basic_machine=moxie-unknown
848+ os=-moxiebox
849+ ;;
831850msdos)
832851basic_machine=i386-pc
833852os=-msdos
@@ -1360,7 +1379,7 @@ case $os in
13601379 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13611380 | -sym* | -kopensolaris* | -plan9* \
13621381 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1363- | -aos* | -aros* \
1382+ | -aos* | -aros* | -cloudabi * \
13641383 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13651384 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13661385 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
@@ -1373,7 +1392,7 @@ case $os in
13731392 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13741393 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13751394 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1376- | -uxpv* | -beos* | -mpeix* | -udk* \
1395+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox * \
13771396 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13781397 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13791398 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \