Diff
Not logged in

Differences From Artifact [19f5cc49d0]:

To Artifact [d13a06e9f7]:


     1      1   #! /bin/sh
     2      2   # Configuration validation subroutine script.
     3         -#   Copyright 1992-2014 Free Software Foundation, Inc.
            3  +#   Copyright 1992-2016 Free Software Foundation, Inc.
     4      4   
     5         -timestamp='2014-05-01'
            5  +timestamp='2016-11-04'
     6      6   
     7      7   # This file is free software; you can redistribute it and/or modify it
     8      8   # under the terms of the GNU General Public License as published by
     9      9   # the Free Software Foundation; either version 3 of the License, or
    10     10   # (at your option) any later version.
    11     11   #
    12     12   # This program is distributed in the hope that it will be useful, but
................................................................................
    21     21   # distribute this file as part of a program that contains a
    22     22   # configuration script generated by Autoconf, you may include it under
    23     23   # the same distribution terms that you use for the rest of that
    24     24   # program.  This Exception is an additional permission under section 7
    25     25   # of the GNU General Public License, version 3 ("GPLv3").
    26     26   
    27     27   
    28         -# Please send patches with a ChangeLog entry to config-patches@gnu.org.
           28  +# Please send patches to <config-patches@gnu.org>.
    29     29   #
    30     30   # Configuration subroutine to validate and canonicalize a configuration type.
    31     31   # Supply the specified configuration type as an argument.
    32     32   # If it is invalid, we print an error message on stderr and exit with code 1.
    33     33   # Otherwise, we print the canonical config type on stdout and succeed.
    34     34   
    35     35   # You can get the latest version of this script from:
    36         -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
           36  +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
    37     37   
    38     38   # This file is supposed to be the same for all GNU packages
    39     39   # and recognize all the CPU types, system types and aliases
    40     40   # that are meaningful with *any* GNU software.
    41     41   # Each package is responsible for reporting which valid configurations
    42     42   # it does not support.  The user should be able to distinguish
    43     43   # a failure to support a valid configuration from a meaningless
................................................................................
    49     49   # or in some cases, the newer four-part form:
    50     50   #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    51     51   # It is wrong to echo any other type of specification.
    52     52   
    53     53   me=`echo "$0" | sed -e 's,.*/,,'`
    54     54   
    55     55   usage="\
    56         -Usage: $0 [OPTION] CPU-MFR-OPSYS
    57         -       $0 [OPTION] ALIAS
           56  +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
    58     57   
    59     58   Canonicalize a configuration name.
    60     59   
    61     60   Operation modes:
    62     61     -h, --help         print this help, then exit
    63     62     -t, --time-stamp   print date of last modification, then exit
    64     63     -v, --version      print version number, then exit
    65     64   
    66     65   Report bugs and patches to <config-patches@gnu.org>."
    67     66   
    68     67   version="\
    69     68   GNU config.sub ($timestamp)
    70     69   
    71         -Copyright 1992-2014 Free Software Foundation, Inc.
           70  +Copyright 1992-2016 Free Software Foundation, Inc.
    72     71   
    73     72   This is free software; see the source for copying conditions.  There is NO
    74     73   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    75     74   
    76     75   help="
    77     76   Try \`$me --help' for more information."
    78     77   
................................................................................
   113    112   
   114    113   # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   115    114   # Here we must recognize all the valid KERNEL-OS combinations.
   116    115   maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   117    116   case $maybe_os in
   118    117     nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
   119    118     linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
   120         -  knetbsd*-gnu* | netbsd*-gnu* | \
   121         -  kopensolaris*-gnu* | \
          119  +  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
          120  +  kopensolaris*-gnu* | cloudabi*-eabi* | \
   122    121     storm-chaos* | os2-emx* | rtmk-nova*)
   123    122       os=-$maybe_os
   124    123       basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   125    124       ;;
   126    125     android-linux)
   127    126       os=-linux-android
   128    127       basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
................................................................................
   251    250   	| aarch64 | aarch64_be \
   252    251   	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   253    252   	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   254    253   	| am33_2.0 \
   255    254   	| arc | arceb \
   256    255   	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
   257    256   	| avr | avr32 \
          257  +	| ba \
   258    258   	| be32 | be64 \
   259    259   	| bfin \
   260    260   	| c4x | c8051 | clipper \
   261    261   	| d10v | d30v | dlx | dsp16xx \
   262         -	| epiphany \
   263         -	| fido | fr30 | frv \
          262  +	| e2k | epiphany \
          263  +	| fido | fr30 | frv | ft32 \
   264    264   	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   265    265   	| hexagon \
   266    266   	| i370 | i860 | i960 | ia64 \
   267    267   	| ip2k | iq2000 \
   268    268   	| k1om \
   269    269   	| le32 | le64 \
   270    270   	| lm32 \
................................................................................
   297    297   	| msp430 \
   298    298   	| nds32 | nds32le | nds32be \
   299    299   	| nios | nios2 | nios2eb | nios2el \
   300    300   	| ns16k | ns32k \
   301    301   	| open8 | or1k | or1knd | or32 \
   302    302   	| pdp10 | pdp11 | pj | pjl \
   303    303   	| powerpc | powerpc64 | powerpc64le | powerpcle \
          304  +	| pru \
   304    305   	| pyramid \
          306  +	| riscv32 | riscv64 \
   305    307   	| rl78 | rx \
   306    308   	| 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 \
   308    310   	| sh64 | sh64le \
   309    311   	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
   310    312   	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
   311    313   	| spu \
   312    314   	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
   313    315   	| ubicom32 \
   314    316   	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
          317  +	| visium \
   315    318   	| we32k \
   316    319   	| x86 | xc16x | xstormy16 | xtensa \
   317    320   	| z8k | z80)
   318    321   		basic_machine=$basic_machine-unknown
   319    322   		;;
   320    323   	c54x)
   321    324   		basic_machine=tic54x-unknown
................................................................................
   322    325   		;;
   323    326   	c55x)
   324    327   		basic_machine=tic55x-unknown
   325    328   		;;
   326    329   	c6x)
   327    330   		basic_machine=tic6x-unknown
   328    331   		;;
          332  +	leon|leon[3-9])
          333  +		basic_machine=sparc-$basic_machine
          334  +		;;
   329    335   	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
   330    336   		basic_machine=$basic_machine-unknown
   331    337   		os=-none
   332    338   		;;
   333    339   	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   334    340   		;;
   335    341   	ms1)
................................................................................
   367    373   	| a29k-* \
   368    374   	| aarch64-* | aarch64_be-* \
   369    375   	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   370    376   	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   371    377   	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
   372    378   	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   373    379   	| avr-* | avr32-* \
          380  +	| ba-* \
   374    381   	| be32-* | be64-* \
   375    382   	| bfin-* | bs2000-* \
   376    383   	| c[123]* | c30-* | [cjt]90-* | c4x-* \
   377    384   	| c8051-* | clipper-* | craynv-* | cydra-* \
   378    385   	| d10v-* | d30v-* | dlx-* \
   379         -	| elxsi-* \
          386  +	| e2k-* | elxsi-* \
   380    387   	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
   381    388   	| h8300-* | h8500-* \
   382    389   	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   383    390   	| hexagon-* \
   384    391   	| i*86-* | i860-* | i960-* | ia64-* \
   385    392   	| ip2k-* | iq2000-* \
   386    393   	| k1om-* \
................................................................................
   418    425   	| nios-* | nios2-* | nios2eb-* | nios2el-* \
   419    426   	| none-* | np1-* | ns16k-* | ns32k-* \
   420    427   	| open8-* \
   421    428   	| or1k*-* \
   422    429   	| orion-* \
   423    430   	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   424    431   	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
          432  +	| pru-* \
   425    433   	| pyramid-* \
          434  +	| riscv32-* | riscv64-* \
   426    435   	| rl78-* | romp-* | rs6000-* | rx-* \
   427    436   	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
   428    437   	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   429    438   	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
   430    439   	| sparclite-* \
   431         -	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
          440  +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
   432    441   	| tahoe-* \
   433    442   	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   434    443   	| tile*-* \
   435    444   	| tron-* \
   436    445   	| ubicom32-* \
   437    446   	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
   438    447   	| vax-* \
          448  +	| visium-* \
   439    449   	| we32k-* \
   440    450   	| x86-* | x86_64-* | xc16x-* | xps100-* \
   441    451   	| xstormy16-* | xtensa*-* \
   442    452   	| ymp-* \
   443    453   	| z8k-* | z80-*)
   444    454   		;;
   445    455   	# Recognize the basic CPU types without company name, with glob match.
................................................................................
   508    518   		basic_machine=m68k-apollo
   509    519   		os=-bsd
   510    520   		;;
   511    521   	aros)
   512    522   		basic_machine=i386-pc
   513    523   		os=-aros
   514    524   		;;
          525  +	asmjs)
          526  +		basic_machine=asmjs-unknown
          527  +		;;
   515    528   	aux)
   516    529   		basic_machine=m68k-apple
   517    530   		os=-aux
   518    531   		;;
   519    532   	balance)
   520    533   		basic_machine=ns32k-sequent
   521    534   		os=-dynix
................................................................................
   628    641   		basic_machine=rs6000-bull
   629    642   		os=-bosx
   630    643   		;;
   631    644   	dpx2* | dpx2*-bull)
   632    645   		basic_machine=m68k-bull
   633    646   		os=-sysv3
   634    647   		;;
          648  +	e500v[12])
          649  +		basic_machine=powerpc-unknown
          650  +		os=$os"spe"
          651  +		;;
          652  +	e500v[12]-*)
          653  +		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
          654  +		os=$os"spe"
          655  +		;;
   635    656   	ebmon29k)
   636    657   		basic_machine=a29k-amd
   637    658   		os=-ebmon
   638    659   		;;
   639    660   	elxsi)
   640    661   		basic_machine=elxsi-elxsi
   641    662   		os=-bsd
................................................................................
   769    790   			;;
   770    791   		esac
   771    792   		;;
   772    793   	isi68 | isi)
   773    794   		basic_machine=m68k-isi
   774    795   		os=-sysv
   775    796   		;;
          797  +	leon-*|leon[3-9]-*)
          798  +		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
          799  +		;;
   776    800   	m68knommu)
   777    801   		basic_machine=m68k-unknown
   778    802   		os=-linux
   779    803   		;;
   780    804   	m68knommu-*)
   781    805   		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
   782    806   		os=-linux
................................................................................
   824    848   		basic_machine=m68k-rom68k
   825    849   		os=-coff
   826    850   		;;
   827    851   	morphos)
   828    852   		basic_machine=powerpc-unknown
   829    853   		os=-morphos
   830    854   		;;
          855  +	moxiebox)
          856  +		basic_machine=moxie-unknown
          857  +		os=-moxiebox
          858  +		;;
   831    859   	msdos)
   832    860   		basic_machine=i386-pc
   833    861   		os=-msdos
   834    862   		;;
   835    863   	ms1-*)
   836    864   		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   837    865   		;;
................................................................................
  1000   1028   	power)	basic_machine=power-ibm
  1001   1029   		;;
  1002   1030   	ppc | ppcbe)	basic_machine=powerpc-unknown
  1003   1031   		;;
  1004   1032   	ppc-* | ppcbe-*)
  1005   1033   		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  1006   1034   		;;
  1007         -	ppcle | powerpclittle | ppc-le | powerpc-little)
         1035  +	ppcle | powerpclittle)
  1008   1036   		basic_machine=powerpcle-unknown
  1009   1037   		;;
  1010   1038   	ppcle-* | powerpclittle-*)
  1011   1039   		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  1012   1040   		;;
  1013   1041   	ppc64)	basic_machine=powerpc64-unknown
  1014   1042   		;;
  1015   1043   	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  1016   1044   		;;
  1017         -	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
         1045  +	ppc64le | powerpc64little)
  1018   1046   		basic_machine=powerpc64le-unknown
  1019   1047   		;;
  1020   1048   	ppc64le-* | powerpc64little-*)
  1021   1049   		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  1022   1050   		;;
  1023   1051   	ps2)
  1024   1052   		basic_machine=i386-ibm
................................................................................
  1356   1384   	# Each alternative MUST END IN A *, to match a version number.
  1357   1385   	# -sysv* is not here because it comes later, after sysvr4.
  1358   1386   	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1359   1387   	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1360   1388   	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  1361   1389   	      | -sym* | -kopensolaris* | -plan9* \
  1362   1390   	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1363         -	      | -aos* | -aros* \
         1391  +	      | -aos* | -aros* | -cloudabi* | -sortix* \
  1364   1392   	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1365   1393   	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1366   1394   	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1367         -	      | -bitrig* | -openbsd* | -solidbsd* \
         1395  +	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
  1368   1396   	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1369   1397   	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1370   1398   	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1371   1399   	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1372   1400   	      | -chorusos* | -chorusrdb* | -cegcc* \
  1373   1401   	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1374         -	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
         1402  +	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
  1375   1403   	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
  1376         -	      | -uxpv* | -beos* | -mpeix* | -udk* \
         1404  +	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
  1377   1405   	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1378   1406   	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1379   1407   	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1380   1408   	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1381   1409   	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1382   1410   	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1383         -	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
         1411  +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
         1412  +	      | -onefs* | -tirtos* | -phoenix* | -fuchsia*)
  1384   1413   	# Remember, each alternative MUST END IN *, to match a version number.
  1385   1414   		;;
  1386   1415   	-qnx*)
  1387   1416   		case $basic_machine in
  1388   1417   		    x86-* | i*86-*)
  1389   1418   			;;
  1390   1419   		    *)
................................................................................
  1400   1429   	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1401   1430   	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  1402   1431   	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1403   1432   		;;
  1404   1433   	-mac*)
  1405   1434   		os=`echo $os | sed -e 's|mac|macos|'`
  1406   1435   		;;
  1407         -	# Apple iOS
  1408         -	-ios*)
  1409         -		;;
  1410   1436   	-linux-dietlibc)
  1411   1437   		os=-linux-dietlibc
  1412   1438   		;;
  1413   1439   	-linux*)
  1414   1440   		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1415   1441   		;;
  1416   1442   	-sunos5*)
................................................................................
  1510   1536   	-zvmoe)
  1511   1537   		os=-zvmoe
  1512   1538   		;;
  1513   1539   	-dicos*)
  1514   1540   		os=-dicos
  1515   1541   		;;
  1516   1542   	-nacl*)
         1543  +		;;
         1544  +	-ios)
  1517   1545   		;;
  1518   1546   	-none)
  1519   1547   		;;
  1520   1548   	*)
  1521   1549   		# Get rid of the `-' at the beginning of $os.
  1522   1550   		os=`echo $os | sed 's/[^-]*-//'`
  1523   1551   		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2