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 945 by michael, Mon Jul 20 15:48:27 2009 UTC vs.
ircd-hybrid-8/config.sub (file contents), Revision 1257 by michael, Sun Jan 15 06:28:46 2012 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, 2007, 2008
5 < #   Free Software Foundation, Inc.
4 > #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5 > #   2011 Free Software Foundation, Inc.
6  
7 < timestamp='2009-04-17'
7 > timestamp='2011-11-11'
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='2009-04-17'
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,
79 < 2002, 2003, 2004, 2005, 2006, 2007, 2008 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, 2011 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
# Line 149 | 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 167 | Line 175 | case $os in
175                  os=-chorusos
176                  basic_machine=$1
177                  ;;
178 <        -chorusrdb)
179 <                os=-chorusrdb
178 >        -chorusrdb)
179 >                os=-chorusrdb
180                  basic_machine=$1
181 <                ;;
181 >                ;;
182          -hiux*)
183                  os=-hiuxwe2
184                  ;;
# Line 243 | Line 251 | case $basic_machine in
251          | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252          | am33_2.0 \
253          | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
254 +        | be32 | be64 \
255          | bfin \
256          | c4x | clipper \
257          | d10v | d30v | dlx | dsp16xx \
258 +        | epiphany \
259          | fido | fr30 | frv \
260          | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 +        | hexagon \
262          | i370 | i860 | i960 | ia64 \
263          | ip2k | iq2000 \
264 +        | le32 | le64 \
265          | lm32 \
266          | m32c | m32r | m32rle | m68000 | m68k | m88k \
267          | maxq | mb | microblaze | mcore | mep | metag \
# Line 275 | Line 287 | case $basic_machine in
287          | moxie \
288          | mt \
289          | msp430 \
290 +        | nds32 | nds32le | nds32be \
291          | nios | nios2 \
292          | ns16k | ns32k \
293 +        | open8 \
294          | or32 \
295          | pdp10 | pdp11 | pj | pjl \
296 <        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
296 >        | powerpc | powerpc64 | powerpc64le | powerpcle \
297          | pyramid \
298 +        | rl78 | rx \
299          | score \
300          | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
301          | sh64 | sh64le \
302          | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
303          | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
304 <        | spu | strongarm \
305 <        | tahoe | thumb | tic4x | tic80 | tron \
306 <        | v850 | v850e \
304 >        | spu \
305 >        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
306 >        | ubicom32 \
307 >        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
308          | we32k \
309 <        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
309 >        | x86 | xc16x | xstormy16 | xtensa \
310          | z8k | z80)
311                  basic_machine=$basic_machine-unknown
312                  ;;
313 <        m6811 | m68hc11 | m6812 | m68hc12)
313 >        c54x)
314 >                basic_machine=tic54x-unknown
315 >                ;;
316 >        c55x)
317 >                basic_machine=tic55x-unknown
318 >                ;;
319 >        c6x)
320 >                basic_machine=tic6x-unknown
321 >                ;;
322 >        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
323                  # Motorola 68HC11/12.
324                  basic_machine=$basic_machine-unknown
325                  os=-none
# Line 305 | Line 330 | case $basic_machine in
330                  basic_machine=mt-unknown
331                  ;;
332  
333 +        strongarm | thumb | xscale)
334 +                basic_machine=arm-unknown
335 +                ;;
336 +
337 +        xscaleeb)
338 +                basic_machine=armeb-unknown
339 +                ;;
340 +
341 +        xscaleel)
342 +                basic_machine=armel-unknown
343 +                ;;
344 +
345          # We use `pc' rather than `unknown'
346          # because (1) that's what they normally are, and
347          # (2) the word "unknown" tends to confuse beginning users.
# Line 324 | Line 361 | case $basic_machine in
361          | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
362          | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
363          | avr-* | avr32-* \
364 +        | be32-* | be64-* \
365          | bfin-* | bs2000-* \
366 <        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
366 >        | c[123]* | c30-* | [cjt]90-* | c4x-* \
367          | clipper-* | craynv-* | cydra-* \
368          | d10v-* | d30v-* | dlx-* \
369          | elxsi-* \
370          | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
371          | h8300-* | h8500-* \
372          | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
373 +        | hexagon-* \
374          | i*86-* | i860-* | i960-* | ia64-* \
375          | ip2k-* | iq2000-* \
376 +        | le32-* | le64-* \
377          | lm32-* \
378          | m32c-* | m32r-* | m32rle-* \
379          | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
380 <        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
380 >        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
381          | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
382          | mips16-* \
383          | mips64-* | mips64el-* \
# Line 359 | Line 399 | case $basic_machine in
399          | mmix-* \
400          | mt-* \
401          | msp430-* \
402 +        | nds32-* | nds32le-* | nds32be-* \
403          | nios-* | nios2-* \
404          | none-* | np1-* | ns16k-* | ns32k-* \
405 +        | open8-* \
406          | orion-* \
407          | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
408 <        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
408 >        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
409          | pyramid-* \
410 <        | romp-* | rs6000-* \
410 >        | rl78-* | romp-* | rs6000-* | rx-* \
411          | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
412          | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
413          | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
414          | sparclite-* \
415 <        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
416 <        | tahoe-* | thumb-* \
417 <        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
415 >        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
416 >        | tahoe-* \
417 >        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
418 >        | tile*-* \
419          | tron-* \
420 <        | v850-* | v850e-* | vax-* \
420 >        | ubicom32-* \
421 >        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
422 >        | vax-* \
423          | we32k-* \
424 <        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
424 >        | x86-* | x86_64-* | xc16x-* | xps100-* \
425          | xstormy16-* | xtensa*-* \
426          | ymp-* \
427          | z8k-* | z80-*)
# Line 401 | Line 446 | case $basic_machine in
446                  basic_machine=a29k-amd
447                  os=-udi
448                  ;;
449 <        abacus)
449 >        abacus)
450                  basic_machine=abacus-unknown
451                  ;;
452          adobe68k)
# Line 467 | Line 512 | case $basic_machine in
512                  basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
513                  os=-linux
514                  ;;
515 +        bluegene*)
516 +                basic_machine=powerpc-ibm
517 +                os=-cnk
518 +                ;;
519 +        c54x-*)
520 +                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
521 +                ;;
522 +        c55x-*)
523 +                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
524 +                ;;
525 +        c6x-*)
526 +                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
527 +                ;;
528          c90)
529                  basic_machine=c90-cray
530                  os=-unicos
531                  ;;
532 <        cegcc)
532 >        cegcc)
533                  basic_machine=arm-unknown
534                  os=-cegcc
535                  ;;
# Line 503 | Line 561 | case $basic_machine in
561                  basic_machine=craynv-cray
562                  os=-unicosmp
563                  ;;
564 <        cr16)
564 >        cr16 | cr16-*)
565                  basic_machine=cr16-unknown
566                  os=-elf
567                  ;;
# Line 719 | Line 777 | case $basic_machine in
777                  basic_machine=ns32k-utek
778                  os=-sysv
779                  ;;
780 +        microblaze)
781 +                basic_machine=microblaze-xilinx
782 +                ;;
783          mingw32)
784                  basic_machine=i386-pc
785                  os=-mingw32
# Line 755 | Line 816 | case $basic_machine in
816          ms1-*)
817                  basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
818                  ;;
819 +        msys)
820 +                basic_machine=i386-pc
821 +                os=-msys
822 +                ;;
823          mvs)
824                  basic_machine=i370-ibm
825                  os=-mvs
826                  ;;
827 +        nacl)
828 +                basic_machine=le32-unknown
829 +                os=-nacl
830 +                ;;
831          ncr3000)
832                  basic_machine=i486-ncr
833                  os=-sysv4
# Line 823 | Line 892 | case $basic_machine in
892          np1)
893                  basic_machine=np1-gould
894                  ;;
895 +        neo-tandem)
896 +                basic_machine=neo-tandem
897 +                ;;
898 +        nse-tandem)
899 +                basic_machine=nse-tandem
900 +                ;;
901          nsr-tandem)
902                  basic_machine=nsr-tandem
903                  ;;
# Line 905 | Line 980 | case $basic_machine in
980                  ;;
981          power)  basic_machine=power-ibm
982                  ;;
983 <        ppc)    basic_machine=powerpc-unknown
983 >        ppc | ppcbe)    basic_machine=powerpc-unknown
984                  ;;
985 <        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
985 >        ppc-* | ppcbe-*)
986 >                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
987                  ;;
988          ppcle | powerpclittle | ppc-le | powerpc-little)
989                  basic_machine=powerpcle-unknown
# Line 1001 | Line 1077 | case $basic_machine in
1077                  basic_machine=i860-stratus
1078                  os=-sysv4
1079                  ;;
1080 +        strongarm-* | thumb-*)
1081 +                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1082 +                ;;
1083          sun2)
1084                  basic_machine=m68000-sun
1085                  ;;
# Line 1057 | Line 1136 | case $basic_machine in
1136                  basic_machine=t90-cray
1137                  os=-unicos
1138                  ;;
1060        tic54x | c54x*)
1061                basic_machine=tic54x-unknown
1062                os=-coff
1063                ;;
1064        tic55x | c55x*)
1065                basic_machine=tic55x-unknown
1066                os=-coff
1067                ;;
1068        tic6x | c6x*)
1069                basic_machine=tic6x-unknown
1070                os=-coff
1071                ;;
1139          tile*)
1140 <                basic_machine=tile-unknown
1140 >                basic_machine=$basic_machine-unknown
1141                  os=-linux-gnu
1142                  ;;
1143          tx39)
# Line 1140 | Line 1207 | case $basic_machine in
1207          xps | xps100)
1208                  basic_machine=xps100-honeywell
1209                  ;;
1210 +        xscale-* | xscalee[bl]-*)
1211 +                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1212 +                ;;
1213          ymp)
1214                  basic_machine=ymp-cray
1215                  os=-unicos
# Line 1237 | Line 1307 | esac
1307   if [ x"$os" != x"" ]
1308   then
1309   case $os in
1310 <        # First match some system type aliases
1311 <        # that might get confused with valid system types.
1310 >        # First match some system type aliases
1311 >        # that might get confused with valid system types.
1312          # -solaris* is a basic system type, with this one exception.
1313 +        -auroraux)
1314 +                os=-auroraux
1315 +                ;;
1316          -solaris1 | -solaris1.*)
1317                  os=`echo $os | sed -e 's|solaris1|sunos4|'`
1318                  ;;
# Line 1260 | Line 1333 | case $os in
1333          # Each alternative MUST END IN A *, to match a version number.
1334          # -sysv* is not here because it comes later, after sysvr4.
1335          -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1336 <              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1337 <              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1338 <              | -kopensolaris* \
1336 >              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1337 >              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1338 >              | -sym* | -kopensolaris* \
1339                | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1340                | -aos* | -aros* \
1341                | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
# Line 1274 | Line 1347 | case $os in
1347                | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1348                | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1349                | -chorusos* | -chorusrdb* | -cegcc* \
1350 <              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1351 <              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1350 >              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1351 >              | -mingw32* | -linux-gnu* | -linux-android* \
1352 >              | -linux-newlib* | -linux-uclibc* \
1353                | -uxpv* | -beos* | -mpeix* | -udk* \
1354                | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1355                | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
# Line 1283 | Line 1357 | case $os in
1357                | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1358                | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1359                | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1360 <              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1360 >              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1361          # Remember, each alternative MUST END IN *, to match a version number.
1362                  ;;
1363          -qnx*)
# Line 1322 | Line 1396 | case $os in
1396          -opened*)
1397                  os=-openedition
1398                  ;;
1399 <        -os400*)
1399 >        -os400*)
1400                  os=-os400
1401                  ;;
1402          -wince*)
# Line 1371 | Line 1445 | case $os in
1445          -sinix*)
1446                  os=-sysv4
1447                  ;;
1448 <        -tpf*)
1448 >        -tpf*)
1449                  os=-tpf
1450                  ;;
1451          -triton*)
# Line 1416 | Line 1490 | case $os in
1490          -dicos*)
1491                  os=-dicos
1492                  ;;
1493 +        -nacl*)
1494 +                ;;
1495          -none)
1496                  ;;
1497          *)
# Line 1438 | Line 1514 | else
1514   # system, and we'll never get to this point.
1515  
1516   case $basic_machine in
1517 <        score-*)
1517 >        score-*)
1518                  os=-elf
1519                  ;;
1520 <        spu-*)
1520 >        spu-*)
1521                  os=-elf
1522                  ;;
1523          *-acorn)
# Line 1453 | Line 1529 | case $basic_machine in
1529          arm*-semi)
1530                  os=-aout
1531                  ;;
1532 <        c4x-* | tic4x-*)
1533 <                os=-coff
1532 >        c4x-* | tic4x-*)
1533 >                os=-coff
1534 >                ;;
1535 >        tic54x-*)
1536 >                os=-coff
1537 >                ;;
1538 >        tic55x-*)
1539 >                os=-coff
1540 >                ;;
1541 >        tic6x-*)
1542 >                os=-coff
1543                  ;;
1544          # This must come before the *-dec entry.
1545          pdp10-*)
# Line 1481 | Line 1566 | case $basic_machine in
1566          m68*-cisco)
1567                  os=-aout
1568                  ;;
1569 <        mep-*)
1569 >        mep-*)
1570                  os=-elf
1571                  ;;
1572          mips*-cisco)
# Line 1508 | Line 1593 | case $basic_machine in
1593          *-ibm)
1594                  os=-aix
1595                  ;;
1596 <        *-knuth)
1596 >        *-knuth)
1597                  os=-mmixware
1598                  ;;
1599          *-wec)
# Line 1613 | Line 1698 | case $basic_machine in
1698                          -sunos*)
1699                                  vendor=sun
1700                                  ;;
1701 <                        -aix*)
1701 >                        -cnk*|-aix*)
1702                                  vendor=ibm
1703                                  ;;
1704                          -beos*)

Diff Legend

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