ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/config.sub
(Generate patch)

Comparing:
ircd-hybrid-7.2/config.sub (file contents), Revision 913 by michael, Wed Nov 7 23:20:12 2007 UTC vs.
ircd-hybrid-7.3/config.sub (file contents), Revision 1094 by michael, Sun Jun 13 10:09:34 2010 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Configuration validation subroutine script.
3   #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 < #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5 < #   Inc.
4 > #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 > #   Free Software Foundation, Inc.
6  
7 < timestamp='2006-09-20'
7 > timestamp='2010-05-21'
8  
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
# Line 32 | Line 32 | timestamp='2006-09-20'
32  
33  
34   # Please send patches to <config-patches@gnu.org>.  Submit a context
35 < # diff and a properly formatted ChangeLog entry.
35 > # diff and a properly formatted GNU ChangeLog entry.
36   #
37   # Configuration subroutine to validate and canonicalize a configuration type.
38   # Supply the specified configuration type as an argument.
39   # If it is invalid, we print an error message on stderr and exit with code 1.
40   # Otherwise, we print the canonical config type on stdout and succeed.
41  
42 + # You can get the latest version of this script from:
43 + # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
44 +
45   # This file is supposed to be the same for all GNU packages
46   # and recognize all the CPU types, system types and aliases
47   # that are meaningful with *any* GNU software.
# Line 72 | Line 75 | Report bugs and patches to <config-patch
75   version="\
76   GNU config.sub ($timestamp)
77  
78 < Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
79 < Free Software Foundation, Inc.
78 > 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.
81  
82   This is free software; see the source for copying conditions.  There is NO
83   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
# Line 120 | Line 124 | esac
124   # Here we must recognize all the valid KERNEL-OS combinations.
125   maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126   case $maybe_os in
127 <  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128 <  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
127 >  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
128 >  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129 >  knetbsd*-gnu* | netbsd*-gnu* | \
130 >  kopensolaris*-gnu* | \
131    storm-chaos* | os2-emx* | rtmk-nova*)
132      os=-$maybe_os
133      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
# Line 148 | Line 154 | case $os in
154          -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
155          -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
156          -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
157 <        -apple | -axis | -knuth | -cray)
157 >        -apple | -axis | -knuth | -cray | -microblaze)
158                  os=
159                  basic_machine=$1
160                  ;;
161 +        -bluegene*)
162 +                os=-cnk
163 +                ;;
164          -sim | -cisco | -oki | -wec | -winbond)
165                  os=
166                  basic_machine=$1
# Line 245 | Line 254 | case $basic_machine in
254          | bfin \
255          | c4x | clipper \
256          | d10v | d30v | dlx | dsp16xx \
257 <        | fr30 | frv \
257 >        | fido | fr30 | frv \
258          | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
259          | i370 | i860 | i960 | ia64 \
260          | ip2k | iq2000 \
261 +        | lm32 \
262          | m32c | m32r | m32rle | m68000 | m68k | m88k \
263 <        | maxq | mb | microblaze | mcore \
263 >        | maxq | mb | microblaze | mcore | mep | metag \
264          | mips | mipsbe | mipseb | mipsel | mipsle \
265          | mips16 \
266          | mips64 | mips64el \
267 <        | mips64vr | mips64vrel \
267 >        | mips64octeon | mips64octeonel \
268          | mips64orion | mips64orionel \
269 +        | mips64r5900 | mips64r5900el \
270 +        | mips64vr | mips64vrel \
271          | mips64vr4100 | mips64vr4100el \
272          | mips64vr4300 | mips64vr4300el \
273          | mips64vr5000 | mips64vr5000el \
# Line 268 | Line 280 | case $basic_machine in
280          | mipsisa64sr71k | mipsisa64sr71kel \
281          | mipstx39 | mipstx39el \
282          | mn10200 | mn10300 \
283 +        | moxie \
284          | mt \
285          | msp430 \
286          | nios | nios2 \
# Line 276 | Line 289 | case $basic_machine in
289          | pdp10 | pdp11 | pj | pjl \
290          | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
291          | pyramid \
292 +        | rx \
293          | score \
294 <        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
294 >        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
295          | sh64 | sh64le \
296          | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
297          | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
298          | spu | strongarm \
299 <        | tahoe | thumb | tic4x | tic80 | tron \
299 >        | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
300 >        | ubicom32 \
301          | v850 | v850e \
302          | we32k \
303          | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
304 <        | z8k)
304 >        | z8k | z80)
305                  basic_machine=$basic_machine-unknown
306                  ;;
307 <        m6811 | m68hc11 | m6812 | m68hc12)
307 >        c54x)
308 >                basic_machine=tic54x-unknown
309 >                ;;
310 >        c55x)
311 >                basic_machine=tic55x-unknown
312 >                ;;
313 >        c6x)
314 >                basic_machine=tic6x-unknown
315 >                ;;
316 >        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
317                  # Motorola 68HC11/12.
318                  basic_machine=$basic_machine-unknown
319                  os=-none
# Line 320 | Line 344 | case $basic_machine in
344          | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
345          | avr-* | avr32-* \
346          | bfin-* | bs2000-* \
347 <        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
347 >        | c[123]* | c30-* | [cjt]90-* | c4x-* \
348          | clipper-* | craynv-* | cydra-* \
349          | d10v-* | d30v-* | dlx-* \
350          | elxsi-* \
351 <        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
351 >        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
352          | h8300-* | h8500-* \
353          | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
354          | i*86-* | i860-* | i960-* | ia64-* \
355          | ip2k-* | iq2000-* \
356 +        | lm32-* \
357          | m32c-* | m32r-* | m32rle-* \
358          | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
359 <        | m88110-* | m88k-* | maxq-* | mcore-* \
359 >        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
360          | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
361          | mips16-* \
362          | mips64-* | mips64el-* \
363 <        | mips64vr-* | mips64vrel-* \
363 >        | mips64octeon-* | mips64octeonel-* \
364          | mips64orion-* | mips64orionel-* \
365 +        | mips64r5900-* | mips64r5900el-* \
366 +        | mips64vr-* | mips64vrel-* \
367          | mips64vr4100-* | mips64vr4100el-* \
368          | mips64vr4300-* | mips64vr4300el-* \
369          | mips64vr5000-* | mips64vr5000el-* \
# Line 357 | Line 384 | case $basic_machine in
384          | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
385          | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
386          | pyramid-* \
387 <        | romp-* | rs6000-* \
388 <        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
387 >        | romp-* | rs6000-* | rx-* \
388 >        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
389          | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
390          | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
391          | sparclite-* \
392          | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
393          | tahoe-* | thumb-* \
394          | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
395 +        | tile-* | tilegx-* \
396          | tron-* \
397 +        | ubicom32-* \
398          | v850-* | v850e-* | vax-* \
399          | we32k-* \
400          | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
401 <        | xstormy16-* | xtensa-* \
401 >        | xstormy16-* | xtensa*-* \
402          | ymp-* \
403 <        | z8k-*)
403 >        | z8k-* | z80-*)
404 >                ;;
405 >        # Recognize the basic CPU types without company name, with glob match.
406 >        xtensa*)
407 >                basic_machine=$basic_machine-unknown
408                  ;;
409          # Recognize the various machine names and aliases which stand
410          # for a CPU type and a company and sometimes even an OS.
# Line 435 | Line 468 | case $basic_machine in
468                  basic_machine=m68k-apollo
469                  os=-bsd
470                  ;;
471 +        aros)
472 +                basic_machine=i386-pc
473 +                os=-aros
474 +                ;;
475          aux)
476                  basic_machine=m68k-apple
477                  os=-aux
# Line 443 | Line 480 | case $basic_machine in
480                  basic_machine=ns32k-sequent
481                  os=-dynix
482                  ;;
483 +        blackfin)
484 +                basic_machine=bfin-unknown
485 +                os=-linux
486 +                ;;
487 +        blackfin-*)
488 +                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
489 +                os=-linux
490 +                ;;
491 +        bluegene*)
492 +                basic_machine=powerpc-ibm
493 +                os=-cnk
494 +                ;;
495 +        c54x-*)
496 +                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
497 +                ;;
498 +        c55x-*)
499 +                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
500 +                ;;
501 +        c6x-*)
502 +                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
503 +                ;;
504          c90)
505                  basic_machine=c90-cray
506                  os=-unicos
507                  ;;
508 +        cegcc)
509 +                basic_machine=arm-unknown
510 +                os=-cegcc
511 +                ;;
512          convex-c1)
513                  basic_machine=c1-convex
514                  os=-bsd
# Line 475 | Line 537 | case $basic_machine in
537                  basic_machine=craynv-cray
538                  os=-unicosmp
539                  ;;
540 <        cr16c)
541 <                basic_machine=cr16c-unknown
540 >        cr16)
541 >                basic_machine=cr16-unknown
542                  os=-elf
543                  ;;
544          crds | unos)
# Line 514 | Line 576 | case $basic_machine in
576                  basic_machine=m88k-motorola
577                  os=-sysv3
578                  ;;
579 +        dicos)
580 +                basic_machine=i686-pc
581 +                os=-dicos
582 +                ;;
583          djgpp)
584                  basic_machine=i586-pc
585                  os=-msdosdjgpp
# Line 668 | Line 734 | case $basic_machine in
734                  basic_machine=m68k-isi
735                  os=-sysv
736                  ;;
737 +        m68knommu)
738 +                basic_machine=m68k-unknown
739 +                os=-linux
740 +                ;;
741 +        m68knommu-*)
742 +                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
743 +                os=-linux
744 +                ;;
745          m88k-omron*)
746                  basic_machine=m88k-omron
747                  ;;
# Line 679 | Line 753 | case $basic_machine in
753                  basic_machine=ns32k-utek
754                  os=-sysv
755                  ;;
756 +        microblaze)
757 +                basic_machine=microblaze-xilinx
758 +                ;;
759          mingw32)
760                  basic_machine=i386-pc
761                  os=-mingw32
762                  ;;
763 +        mingw32ce)
764 +                basic_machine=arm-unknown
765 +                os=-mingw32ce
766 +                ;;
767          miniframe)
768                  basic_machine=m68000-convergent
769                  ;;
# Line 809 | Line 890 | case $basic_machine in
890                  basic_machine=i860-intel
891                  os=-osf
892                  ;;
893 +        parisc)
894 +                basic_machine=hppa-unknown
895 +                os=-linux
896 +                ;;
897 +        parisc-*)
898 +                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
899 +                os=-linux
900 +                ;;
901          pbd)
902                  basic_machine=sparc-tti
903                  ;;
# Line 925 | Line 1014 | case $basic_machine in
1014                  basic_machine=sh-hitachi
1015                  os=-hms
1016                  ;;
1017 +        sh5el)
1018 +                basic_machine=sh5le-unknown
1019 +                ;;
1020          sh64)
1021                  basic_machine=sh64-unknown
1022                  ;;
# Line 1002 | Line 1094 | case $basic_machine in
1094                  basic_machine=t90-cray
1095                  os=-unicos
1096                  ;;
1097 <        tic54x | c54x*)
1098 <                basic_machine=tic54x-unknown
1099 <                os=-coff
1100 <                ;;
1101 <        tic55x | c55x*)
1102 <                basic_machine=tic55x-unknown
1103 <                os=-coff
1104 <                ;;
1013 <        tic6x | c6x*)
1014 <                basic_machine=tic6x-unknown
1015 <                os=-coff
1097 >        # This must be matched before tile*.
1098 >        tilegx*)
1099 >                basic_machine=tilegx-unknown
1100 >                os=-linux-gnu
1101 >                ;;
1102 >        tile*)
1103 >                basic_machine=tile-unknown
1104 >                os=-linux-gnu
1105                  ;;
1106          tx39)
1107                  basic_machine=mipstx39-unknown
# Line 1089 | Line 1178 | case $basic_machine in
1178                  basic_machine=z8k-unknown
1179                  os=-sim
1180                  ;;
1181 +        z80-*-coff)
1182 +                basic_machine=z80-unknown
1183 +                os=-sim
1184 +                ;;
1185          none)
1186                  basic_machine=none-none
1187                  os=-none
# Line 1127 | Line 1220 | case $basic_machine in
1220          we32k)
1221                  basic_machine=we32k-att
1222                  ;;
1223 <        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1223 >        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1224                  basic_machine=sh-unknown
1225                  ;;
1226          sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
# Line 1177 | Line 1270 | case $os in
1270          # First match some system type aliases
1271          # that might get confused with valid system types.
1272          # -solaris* is a basic system type, with this one exception.
1273 +        -auroraux)
1274 +                os=-auroraux
1275 +                ;;
1276          -solaris1 | -solaris1.*)
1277                  os=`echo $os | sed -e 's|solaris1|sunos4|'`
1278                  ;;
# Line 1197 | Line 1293 | case $os in
1293          # Each alternative MUST END IN A *, to match a version number.
1294          # -sysv* is not here because it comes later, after sysvr4.
1295          -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1296 <              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1297 <              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1296 >              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1297 >              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1298 >              | -sym* | -kopensolaris* \
1299                | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1300 <              | -aos* \
1300 >              | -aos* | -aros* \
1301                | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1302                | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1303                | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
# Line 1209 | Line 1306 | case $os in
1306                | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1307                | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1308                | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1309 <              | -chorusos* | -chorusrdb* \
1309 >              | -chorusos* | -chorusrdb* | -cegcc* \
1310                | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1311 <              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1311 >              | -mingw32* | -linux-gnu* | -linux-android* \
1312 >              | -linux-newlib* | -linux-uclibc* \
1313                | -uxpv* | -beos* | -mpeix* | -udk* \
1314                | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1315                | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
# Line 1219 | Line 1317 | case $os in
1317                | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1318                | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1319                | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1320 <              | -skyos* | -haiku* | -rdos* | -toppers*)
1320 >              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1321          # Remember, each alternative MUST END IN *, to match a version number.
1322                  ;;
1323          -qnx*)
# Line 1349 | Line 1447 | case $os in
1447          -zvmoe)
1448                  os=-zvmoe
1449                  ;;
1450 +        -dicos*)
1451 +                os=-dicos
1452 +                ;;
1453 +        -nacl*)
1454 +                ;;
1455          -none)
1456                  ;;
1457          *)
# Line 1389 | Line 1492 | case $basic_machine in
1492          c4x-* | tic4x-*)
1493                  os=-coff
1494                  ;;
1495 +        tic54x-*)
1496 +                os=-coff
1497 +                ;;
1498 +        tic55x-*)
1499 +                os=-coff
1500 +                ;;
1501 +        tic6x-*)
1502 +                os=-coff
1503 +                ;;
1504          # This must come before the *-dec entry.
1505          pdp10-*)
1506                  os=-tops20
# Line 1414 | Line 1526 | case $basic_machine in
1526          m68*-cisco)
1527                  os=-aout
1528                  ;;
1529 +        mep-*)
1530 +                os=-elf
1531 +                ;;
1532          mips*-cisco)
1533                  os=-elf
1534                  ;;
# Line 1543 | Line 1658 | case $basic_machine in
1658                          -sunos*)
1659                                  vendor=sun
1660                                  ;;
1661 <                        -aix*)
1661 >                        -cnk*|-aix*)
1662                                  vendor=ibm
1663                                  ;;
1664                          -beos*)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)