Mercurial > urweb
comparison config.sub @ 1693:27d68ccb2c9e
New release
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 10 Mar 2012 13:13:15 -0500 |
parents | 3d0cc841cafd |
children | 40557fb08e98 |
comparison
equal
deleted
inserted
replaced
1692:a1a1d66aebac | 1693:27d68ccb2c9e |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 # 2011 Free Software Foundation, Inc. | 5 # 2011, 2012 Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2011-03-23' | 7 timestamp='2012-02-10' |
8 | 8 |
9 # This file is (in principle) common to ALL GNU software. | 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 | 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. | 11 # can handle that machine. It does not imply ALL GNU software can. |
12 # | 12 # |
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 # GNU General Public License for more details. | 21 # GNU General Public License for more details. |
22 # | 22 # |
23 # You should have received a copy of the GNU General Public License | 23 # You should have received a copy of the GNU General Public License |
24 # along with this program; if not, write to the Free Software | 24 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
26 # 02110-1301, USA. | |
27 # | 25 # |
28 # As a special exception to the GNU General Public License, if you | 26 # As a special exception to the GNU General Public License, if you |
29 # distribute this file as part of a program that contains a | 27 # distribute this file as part of a program that contains a |
30 # configuration script generated by Autoconf, you may include it under | 28 # configuration script generated by Autoconf, you may include it under |
31 # the same distribution terms that you use for the rest of that program. | 29 # the same distribution terms that you use for the rest of that program. |
74 | 72 |
75 version="\ | 73 version="\ |
76 GNU config.sub ($timestamp) | 74 GNU config.sub ($timestamp) |
77 | 75 |
78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free | 77 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
80 Software Foundation, Inc. | 78 Free Software Foundation, Inc. |
81 | 79 |
82 This is free software; see the source for copying conditions. There is NO | 80 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." | 81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
84 | 82 |
85 help=" | 83 help=" |
130 kopensolaris*-gnu* | \ | 128 kopensolaris*-gnu* | \ |
131 storm-chaos* | os2-emx* | rtmk-nova*) | 129 storm-chaos* | os2-emx* | rtmk-nova*) |
132 os=-$maybe_os | 130 os=-$maybe_os |
133 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
134 ;; | 132 ;; |
133 android-linux) | |
134 os=-linux-android | |
135 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
136 ;; | |
135 *) | 137 *) |
136 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 138 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
137 if [ $basic_machine != $1 ] | 139 if [ $basic_machine != $1 ] |
138 then os=`echo $1 | sed 's/.*-/-/'` | 140 then os=`echo $1 | sed 's/.*-/-/'` |
139 else os=; fi | 141 else os=; fi |
245 case $basic_machine in | 247 case $basic_machine in |
246 # Recognize the basic CPU types without company name. | 248 # Recognize the basic CPU types without company name. |
247 # Some are omitted here because they have special meanings below. | 249 # Some are omitted here because they have special meanings below. |
248 1750a | 580 \ | 250 1750a | 580 \ |
249 | a29k \ | 251 | a29k \ |
252 | aarch64 | aarch64_be \ | |
250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | 253 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | 254 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
252 | am33_2.0 \ | 255 | am33_2.0 \ |
253 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | 256 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
257 | be32 | be64 \ | |
254 | bfin \ | 258 | bfin \ |
255 | c4x | clipper \ | 259 | c4x | clipper \ |
256 | d10v | d30v | dlx | dsp16xx \ | 260 | d10v | d30v | dlx | dsp16xx \ |
261 | epiphany \ | |
257 | fido | fr30 | frv \ | 262 | fido | fr30 | frv \ |
258 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
264 | hexagon \ | |
259 | i370 | i860 | i960 | ia64 \ | 265 | i370 | i860 | i960 | ia64 \ |
260 | ip2k | iq2000 \ | 266 | ip2k | iq2000 \ |
267 | le32 | le64 \ | |
261 | lm32 \ | 268 | lm32 \ |
262 | m32c | m32r | m32rle | m68000 | m68k | m88k \ | 269 | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
263 | maxq | mb | microblaze | mcore | mep | metag \ | 270 | maxq | mb | microblaze | mcore | mep | metag \ |
264 | mips | mipsbe | mipseb | mipsel | mipsle \ | 271 | mips | mipsbe | mipseb | mipsel | mipsle \ |
265 | mips16 \ | 272 | mips16 \ |
289 | open8 \ | 296 | open8 \ |
290 | or32 \ | 297 | or32 \ |
291 | pdp10 | pdp11 | pj | pjl \ | 298 | pdp10 | pdp11 | pj | pjl \ |
292 | powerpc | powerpc64 | powerpc64le | powerpcle \ | 299 | powerpc | powerpc64 | powerpc64le | powerpcle \ |
293 | pyramid \ | 300 | pyramid \ |
294 | rx \ | 301 | rl78 | rx \ |
295 | score \ | 302 | score \ |
296 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | 303 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
297 | sh64 | sh64le \ | 304 | sh64 | sh64le \ |
298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | 305 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 306 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
300 | spu \ | 307 | spu \ |
301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | 308 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
302 | ubicom32 \ | 309 | ubicom32 \ |
303 | v850 | v850e \ | 310 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
304 | we32k \ | 311 | we32k \ |
305 | x86 | xc16x | xstormy16 | xtensa \ | 312 | x86 | xc16x | xstormy16 | xtensa \ |
306 | z8k | z80) | 313 | z8k | z80) |
307 basic_machine=$basic_machine-unknown | 314 basic_machine=$basic_machine-unknown |
308 ;; | 315 ;; |
313 basic_machine=tic55x-unknown | 320 basic_machine=tic55x-unknown |
314 ;; | 321 ;; |
315 c6x) | 322 c6x) |
316 basic_machine=tic6x-unknown | 323 basic_machine=tic6x-unknown |
317 ;; | 324 ;; |
318 m6811 | m68hc11 | m6812 | m68hc12 | picochip) | 325 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) |
319 # Motorola 68HC11/12. | |
320 basic_machine=$basic_machine-unknown | 326 basic_machine=$basic_machine-unknown |
321 os=-none | 327 os=-none |
322 ;; | 328 ;; |
323 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | 329 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
324 ;; | 330 ;; |
327 ;; | 333 ;; |
328 | 334 |
329 strongarm | thumb | xscale) | 335 strongarm | thumb | xscale) |
330 basic_machine=arm-unknown | 336 basic_machine=arm-unknown |
331 ;; | 337 ;; |
332 | 338 xgate) |
339 basic_machine=$basic_machine-unknown | |
340 os=-none | |
341 ;; | |
333 xscaleeb) | 342 xscaleeb) |
334 basic_machine=armeb-unknown | 343 basic_machine=armeb-unknown |
335 ;; | 344 ;; |
336 | 345 |
337 xscaleel) | 346 xscaleel) |
350 exit 1 | 359 exit 1 |
351 ;; | 360 ;; |
352 # Recognize the basic CPU types with company name. | 361 # Recognize the basic CPU types with company name. |
353 580-* \ | 362 580-* \ |
354 | a29k-* \ | 363 | a29k-* \ |
364 | aarch64-* | aarch64_be-* \ | |
355 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | 365 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
356 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | 366 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
357 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | 367 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
358 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 368 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
359 | avr-* | avr32-* \ | 369 | avr-* | avr32-* \ |
370 | be32-* | be64-* \ | |
360 | bfin-* | bs2000-* \ | 371 | bfin-* | bs2000-* \ |
361 | c[123]* | c30-* | [cjt]90-* | c4x-* \ | 372 | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
362 | clipper-* | craynv-* | cydra-* \ | 373 | clipper-* | craynv-* | cydra-* \ |
363 | d10v-* | d30v-* | dlx-* \ | 374 | d10v-* | d30v-* | dlx-* \ |
364 | elxsi-* \ | 375 | elxsi-* \ |
365 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | 376 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
366 | h8300-* | h8500-* \ | 377 | h8300-* | h8500-* \ |
367 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | 378 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
379 | hexagon-* \ | |
368 | i*86-* | i860-* | i960-* | ia64-* \ | 380 | i*86-* | i860-* | i960-* | ia64-* \ |
369 | ip2k-* | iq2000-* \ | 381 | ip2k-* | iq2000-* \ |
382 | le32-* | le64-* \ | |
370 | lm32-* \ | 383 | lm32-* \ |
371 | m32c-* | m32r-* | m32rle-* \ | 384 | m32c-* | m32r-* | m32rle-* \ |
372 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 385 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
373 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | 386 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
374 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 387 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
398 | open8-* \ | 411 | open8-* \ |
399 | orion-* \ | 412 | orion-* \ |
400 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 413 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
401 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | 414 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
402 | pyramid-* \ | 415 | pyramid-* \ |
403 | romp-* | rs6000-* | rx-* \ | 416 | rl78-* | romp-* | rs6000-* | rx-* \ |
404 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | 417 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
405 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 418 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
406 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | 419 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
407 | sparclite-* \ | 420 | sparclite-* \ |
408 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | 421 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
409 | tahoe-* \ | 422 | tahoe-* \ |
410 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | 423 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
411 | tile-* | tilegx-* \ | 424 | tile*-* \ |
412 | tron-* \ | 425 | tron-* \ |
413 | ubicom32-* \ | 426 | ubicom32-* \ |
414 | v850-* | v850e-* | vax-* \ | 427 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
428 | vax-* \ | |
415 | we32k-* \ | 429 | we32k-* \ |
416 | x86-* | x86_64-* | xc16x-* | xps100-* \ | 430 | x86-* | x86_64-* | xc16x-* | xps100-* \ |
417 | xstormy16-* | xtensa*-* \ | 431 | xstormy16-* | xtensa*-* \ |
418 | ymp-* \ | 432 | ymp-* \ |
419 | z8k-* | z80-*) | 433 | z8k-* | z80-*) |
709 os=-proelf | 723 os=-proelf |
710 ;; | 724 ;; |
711 i370-ibm* | ibm*) | 725 i370-ibm* | ibm*) |
712 basic_machine=i370-ibm | 726 basic_machine=i370-ibm |
713 ;; | 727 ;; |
714 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
715 i*86v32) | 728 i*86v32) |
716 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 729 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
717 os=-sysv32 | 730 os=-sysv32 |
718 ;; | 731 ;; |
719 i*86v4*) | 732 i*86v4*) |
806 os=-msdos | 819 os=-msdos |
807 ;; | 820 ;; |
808 ms1-*) | 821 ms1-*) |
809 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | 822 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
810 ;; | 823 ;; |
824 msys) | |
825 basic_machine=i386-pc | |
826 os=-msys | |
827 ;; | |
811 mvs) | 828 mvs) |
812 basic_machine=i370-ibm | 829 basic_machine=i370-ibm |
813 os=-mvs | 830 os=-mvs |
831 ;; | |
832 nacl) | |
833 basic_machine=le32-unknown | |
834 os=-nacl | |
814 ;; | 835 ;; |
815 ncr3000) | 836 ncr3000) |
816 basic_machine=i486-ncr | 837 basic_machine=i486-ncr |
817 os=-sysv4 | 838 os=-sysv4 |
818 ;; | 839 ;; |
1118 ;; | 1139 ;; |
1119 t90) | 1140 t90) |
1120 basic_machine=t90-cray | 1141 basic_machine=t90-cray |
1121 os=-unicos | 1142 os=-unicos |
1122 ;; | 1143 ;; |
1123 # This must be matched before tile*. | |
1124 tilegx*) | |
1125 basic_machine=tilegx-unknown | |
1126 os=-linux-gnu | |
1127 ;; | |
1128 tile*) | 1144 tile*) |
1129 basic_machine=tile-unknown | 1145 basic_machine=$basic_machine-unknown |
1130 os=-linux-gnu | 1146 os=-linux-gnu |
1131 ;; | 1147 ;; |
1132 tx39) | 1148 tx39) |
1133 basic_machine=mipstx39-unknown | 1149 basic_machine=mipstx39-unknown |
1134 ;; | 1150 ;; |
1334 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | 1350 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1335 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1351 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1336 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1352 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1337 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1353 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1338 | -chorusos* | -chorusrdb* | -cegcc* \ | 1354 | -chorusos* | -chorusrdb* | -cegcc* \ |
1339 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1355 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1340 | -mingw32* | -linux-gnu* | -linux-android* \ | 1356 | -mingw32* | -linux-gnu* | -linux-android* \ |
1341 | -linux-newlib* | -linux-uclibc* \ | 1357 | -linux-newlib* | -linux-uclibc* \ |
1342 | -uxpv* | -beos* | -mpeix* | -udk* \ | 1358 | -uxpv* | -beos* | -mpeix* | -udk* \ |
1343 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1359 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1344 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1360 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1546 i386-sun) | 1562 i386-sun) |
1547 os=-sunos4.0.2 | 1563 os=-sunos4.0.2 |
1548 ;; | 1564 ;; |
1549 m68000-sun) | 1565 m68000-sun) |
1550 os=-sunos3 | 1566 os=-sunos3 |
1551 # This also exists in the configure program, but was not the | |
1552 # default. | |
1553 # os=-sunos4 | |
1554 ;; | 1567 ;; |
1555 m68*-cisco) | 1568 m68*-cisco) |
1556 os=-aout | 1569 os=-aout |
1557 ;; | 1570 ;; |
1558 mep-*) | 1571 mep-*) |