Mercurial > sdl-ios-xcode
comparison config.sub @ 729:dac996d69abb
Updated libtool support so Mingw32 builds work.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Oct 2003 07:13:16 +0000 |
parents | 25dfe480c75e |
children | 05c551e5bc64 |
comparison
equal
deleted
inserted
replaced
728:5446a009107a | 729:dac996d69abb |
---|---|
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, 2000, 2001 | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # Free Software Foundation, Inc. | 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 | 5 |
6 timestamp='2001-03-19' | 6 timestamp='2003-02-22' |
7 | 7 |
8 # This file is (in principle) common to ALL GNU software. | 8 # This file is (in principle) common to ALL GNU software. |
9 # The presence of a machine in this file suggests that SOME GNU software | 9 # The presence of a machine in this file suggests that SOME GNU software |
10 # can handle that machine. It does not imply ALL GNU software can. | 10 # can handle that machine. It does not imply ALL GNU software can. |
11 # | 11 # |
27 # As a special exception to the GNU General Public License, if you | 27 # As a special exception to the GNU General Public License, if you |
28 # distribute this file as part of a program that contains a | 28 # distribute this file as part of a program that contains a |
29 # configuration script generated by Autoconf, you may include it under | 29 # configuration script generated by Autoconf, you may include it under |
30 # the same distribution terms that you use for the rest of that program. | 30 # the same distribution terms that you use for the rest of that program. |
31 | 31 |
32 # Please send patches to <config-patches@gnu.org>. | 32 # Please send patches to <config-patches@gnu.org>. Submit a context |
33 # diff and a properly formatted ChangeLog entry. | |
33 # | 34 # |
34 # Configuration subroutine to validate and canonicalize a configuration type. | 35 # Configuration subroutine to validate and canonicalize a configuration type. |
35 # Supply the specified configuration type as an argument. | 36 # Supply the specified configuration type as an argument. |
36 # If it is invalid, we print an error message on stderr and exit with code 1. | 37 # If it is invalid, we print an error message on stderr and exit with code 1. |
37 # Otherwise, we print the canonical config type on stdout and succeed. | 38 # Otherwise, we print the canonical config type on stdout and succeed. |
115 | 116 |
116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
117 # Here we must recognize all the valid KERNEL-OS combinations. | 118 # Here we must recognize all the valid KERNEL-OS combinations. |
118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
119 case $maybe_os in | 120 case $maybe_os in |
120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) | 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
121 os=-$maybe_os | 122 os=-$maybe_os |
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
123 ;; | 124 ;; |
124 *) | 125 *) |
125 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 126 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
155 ;; | 156 ;; |
156 -wrs) | 157 -wrs) |
157 os=-vxworks | 158 os=-vxworks |
158 basic_machine=$1 | 159 basic_machine=$1 |
159 ;; | 160 ;; |
161 -chorusos*) | |
162 os=-chorusos | |
163 basic_machine=$1 | |
164 ;; | |
165 -chorusrdb) | |
166 os=-chorusrdb | |
167 basic_machine=$1 | |
168 ;; | |
160 -hiux*) | 169 -hiux*) |
161 os=-hiuxwe2 | 170 os=-hiuxwe2 |
162 ;; | 171 ;; |
163 -sco5) | 172 -sco5) |
164 os=-sco3.2v5 | 173 os=-sco3.2v5 |
213 | 222 |
214 # Decode aliases for certain CPU-COMPANY combinations. | 223 # Decode aliases for certain CPU-COMPANY combinations. |
215 case $basic_machine in | 224 case $basic_machine in |
216 # Recognize the basic CPU types without company name. | 225 # Recognize the basic CPU types without company name. |
217 # Some are omitted here because they have special meanings below. | 226 # Some are omitted here because they have special meanings below. |
218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ | 227 1750a | 580 \ |
219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ | 228 | a29k \ |
220 | pyramid | mn10200 | mn10300 | tron | a29k \ | 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
221 | 580 | i960 | h8300 \ | 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ | 231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 232 | clipper \ |
224 | hppa64 \ | 233 | d10v | d30v | dlx | dsp16xx \ |
225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ | 234 | fr30 | frv \ |
226 | alphaev6[78] \ | 235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
227 | we32k | ns16k | clipper | i370 | sh | sh[34] \ | 236 | i370 | i860 | i960 | ia64 \ |
228 | powerpc | powerpcle \ | 237 | ip2k \ |
229 | 1750a | dsp16xx | pdp10 | pdp11 \ | 238 | m32r | m68000 | m68k | m88k | mcore \ |
230 | mips16 | mips64 | mipsel | mips64el \ | 239 | mips | mipsbe | mipseb | mipsel | mipsle \ |
231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | 240 | mips16 \ |
232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | 241 | mips64 | mips64el \ |
233 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ | 242 | mips64vr | mips64vrel \ |
234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | 243 | mips64orion | mips64orionel \ |
235 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ | 244 | mips64vr4100 | mips64vr4100el \ |
236 | pj | pjl | h8500) | 245 | mips64vr4300 | mips64vr4300el \ |
246 | mips64vr5000 | mips64vr5000el \ | |
247 | mipsisa32 | mipsisa32el \ | |
248 | mipsisa32r2 | mipsisa32r2el \ | |
249 | mipsisa64 | mipsisa64el \ | |
250 | mipsisa64sb1 | mipsisa64sb1el \ | |
251 | mipsisa64sr71k | mipsisa64sr71kel \ | |
252 | mipstx39 | mipstx39el \ | |
253 | mn10200 | mn10300 \ | |
254 | msp430 \ | |
255 | ns16k | ns32k \ | |
256 | openrisc | or32 \ | |
257 | pdp10 | pdp11 | pj | pjl \ | |
258 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
259 | pyramid \ | |
260 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | |
261 | sh64 | sh64le \ | |
262 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | |
263 | strongarm \ | |
264 | tahoe | thumb | tic80 | tron \ | |
265 | v850 | v850e \ | |
266 | we32k \ | |
267 | x86 | xscale | xstormy16 | xtensa \ | |
268 | z8k) | |
237 basic_machine=$basic_machine-unknown | 269 basic_machine=$basic_machine-unknown |
238 ;; | 270 ;; |
239 m6811 | m68hc11 | m6812 | m68hc12) | 271 m6811 | m68hc11 | m6812 | m68hc12) |
240 # Motorola 68HC11/12. | 272 # Motorola 68HC11/12. |
241 basic_machine=$basic_machine-unknown | 273 basic_machine=$basic_machine-unknown |
242 os=-none | 274 os=-none |
243 ;; | 275 ;; |
244 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65) | 276 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
245 ;; | 277 ;; |
246 | 278 |
247 # We use `pc' rather than `unknown' | 279 # We use `pc' rather than `unknown' |
248 # because (1) that's what they normally are, and | 280 # because (1) that's what they normally are, and |
249 # (2) the word "unknown" tends to confuse beginning users. | 281 # (2) the word "unknown" tends to confuse beginning users. |
250 i[234567]86 | x86_64) | 282 i*86 | x86_64) |
251 basic_machine=$basic_machine-pc | 283 basic_machine=$basic_machine-pc |
252 ;; | 284 ;; |
253 # Object if more than one company name word. | 285 # Object if more than one company name word. |
254 *-*-*) | 286 *-*-*) |
255 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 287 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
256 exit 1 | 288 exit 1 |
257 ;; | 289 ;; |
258 # Recognize the basic CPU types with company name. | 290 # Recognize the basic CPU types with company name. |
259 # FIXME: clean up the formatting here. | 291 580-* \ |
260 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | 292 | a29k-* \ |
261 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ | 293 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
262 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ | 294 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
263 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 295 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
264 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 296 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
265 | xmp-* | ymp-* \ | 297 | avr-* \ |
266 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ | 298 | bs2000-* \ |
267 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | 299 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
268 | hppa2.0n-* | hppa64-* \ | 300 | clipper-* | cydra-* \ |
269 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ | 301 | d10v-* | d30v-* | dlx-* \ |
270 | alphaev6[78]-* \ | 302 | elxsi-* \ |
271 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | 303 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
272 | clipper-* | orion-* \ | 304 | h8300-* | h8500-* \ |
273 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 305 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
274 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 306 | i*86-* | i860-* | i960-* | ia64-* \ |
275 | mips64el-* | mips64orion-* | mips64orionel-* \ | 307 | ip2k-* \ |
276 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 308 | m32r-* \ |
277 | mipstx39-* | mipstx39el-* | mcore-* \ | 309 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
278 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ | 310 | m88110-* | m88k-* | mcore-* \ |
279 | [cjt]90-* \ | 311 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
280 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | 312 | mips16-* \ |
281 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ | 313 | mips64-* | mips64el-* \ |
282 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) | 314 | mips64vr-* | mips64vrel-* \ |
315 | mips64orion-* | mips64orionel-* \ | |
316 | mips64vr4100-* | mips64vr4100el-* \ | |
317 | mips64vr4300-* | mips64vr4300el-* \ | |
318 | mips64vr5000-* | mips64vr5000el-* \ | |
319 | mipsisa32-* | mipsisa32el-* \ | |
320 | mipsisa32r2-* | mipsisa32r2el-* \ | |
321 | mipsisa64-* | mipsisa64el-* \ | |
322 | mipsisa64sb1-* | mipsisa64sb1el-* \ | |
323 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | |
324 | mipstx39-* | mipstx39el-* \ | |
325 | msp430-* \ | |
326 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | |
327 | orion-* \ | |
328 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | |
329 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
330 | pyramid-* \ | |
331 | romp-* | rs6000-* \ | |
332 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | |
333 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | |
334 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | |
335 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | |
336 | tahoe-* | thumb-* \ | |
337 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | |
338 | tron-* \ | |
339 | v850-* | v850e-* | vax-* \ | |
340 | we32k-* \ | |
341 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | |
342 | xtensa-* \ | |
343 | ymp-* \ | |
344 | z8k-*) | |
283 ;; | 345 ;; |
284 # Recognize the various machine names and aliases which stand | 346 # Recognize the various machine names and aliases which stand |
285 # for a CPU type and a company and sometimes even an OS. | 347 # for a CPU type and a company and sometimes even an OS. |
286 386bsd) | 348 386bsd) |
287 basic_machine=i386-unknown | 349 basic_machine=i386-unknown |
340 ;; | 402 ;; |
341 balance) | 403 balance) |
342 basic_machine=ns32k-sequent | 404 basic_machine=ns32k-sequent |
343 os=-dynix | 405 os=-dynix |
344 ;; | 406 ;; |
407 c90) | |
408 basic_machine=c90-cray | |
409 os=-unicos | |
410 ;; | |
345 convex-c1) | 411 convex-c1) |
346 basic_machine=c1-convex | 412 basic_machine=c1-convex |
347 os=-bsd | 413 os=-bsd |
348 ;; | 414 ;; |
349 convex-c2) | 415 convex-c2) |
360 ;; | 426 ;; |
361 convex-c38) | 427 convex-c38) |
362 basic_machine=c38-convex | 428 basic_machine=c38-convex |
363 os=-bsd | 429 os=-bsd |
364 ;; | 430 ;; |
365 cray | ymp) | 431 cray | j90) |
366 basic_machine=ymp-cray | 432 basic_machine=j90-cray |
367 os=-unicos | |
368 ;; | |
369 cray2) | |
370 basic_machine=cray2-cray | |
371 os=-unicos | |
372 ;; | |
373 [cjt]90) | |
374 basic_machine=${basic_machine}-cray | |
375 os=-unicos | 433 os=-unicos |
376 ;; | 434 ;; |
377 crds | unos) | 435 crds | unos) |
378 basic_machine=m68k-crds | 436 basic_machine=m68k-crds |
379 ;; | 437 ;; |
383 da30 | da30-*) | 441 da30 | da30-*) |
384 basic_machine=m68k-da30 | 442 basic_machine=m68k-da30 |
385 ;; | 443 ;; |
386 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | 444 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
387 basic_machine=mips-dec | 445 basic_machine=mips-dec |
446 ;; | |
447 decsystem10* | dec10*) | |
448 basic_machine=pdp10-dec | |
449 os=-tops10 | |
450 ;; | |
451 decsystem20* | dec20*) | |
452 basic_machine=pdp10-dec | |
453 os=-tops20 | |
388 ;; | 454 ;; |
389 delta | 3300 | motorola-3300 | motorola-delta \ | 455 delta | 3300 | motorola-3300 | motorola-delta \ |
390 | 3300-motorola | delta-motorola) | 456 | 3300-motorola | delta-motorola) |
391 basic_machine=m68k-motorola | 457 basic_machine=m68k-motorola |
392 ;; | 458 ;; |
504 ;; | 570 ;; |
505 i370-ibm* | ibm*) | 571 i370-ibm* | ibm*) |
506 basic_machine=i370-ibm | 572 basic_machine=i370-ibm |
507 ;; | 573 ;; |
508 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 574 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
509 i[34567]86v32) | 575 i*86v32) |
510 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 576 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
511 os=-sysv32 | 577 os=-sysv32 |
512 ;; | 578 ;; |
513 i[34567]86v4*) | 579 i*86v4*) |
514 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 580 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
515 os=-sysv4 | 581 os=-sysv4 |
516 ;; | 582 ;; |
517 i[34567]86v) | 583 i*86v) |
518 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 584 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
519 os=-sysv | 585 os=-sysv |
520 ;; | 586 ;; |
521 i[34567]86sol2) | 587 i*86sol2) |
522 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 588 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
523 os=-solaris2 | 589 os=-solaris2 |
524 ;; | 590 ;; |
525 i386mach) | 591 i386mach) |
526 basic_machine=i386-mach | 592 basic_machine=i386-mach |
564 ;; | 630 ;; |
565 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | 631 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
566 basic_machine=m68k-atari | 632 basic_machine=m68k-atari |
567 os=-mint | 633 os=-mint |
568 ;; | 634 ;; |
569 mipsel*-linux*) | |
570 basic_machine=mipsel-unknown | |
571 os=-linux-gnu | |
572 ;; | |
573 mips*-linux*) | |
574 basic_machine=mips-unknown | |
575 os=-linux-gnu | |
576 ;; | |
577 mips3*-*) | 635 mips3*-*) |
578 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | 636 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
579 ;; | 637 ;; |
580 mips3*) | 638 mips3*) |
581 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | 639 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
585 os=-mmixware | 643 os=-mmixware |
586 ;; | 644 ;; |
587 monitor) | 645 monitor) |
588 basic_machine=m68k-rom68k | 646 basic_machine=m68k-rom68k |
589 os=-coff | 647 os=-coff |
648 ;; | |
649 morphos) | |
650 basic_machine=powerpc-unknown | |
651 os=-morphos | |
590 ;; | 652 ;; |
591 msdos) | 653 msdos) |
592 basic_machine=i386-pc | 654 basic_machine=i386-pc |
593 os=-msdos | 655 os=-msdos |
594 ;; | 656 ;; |
658 os=-nonstopux | 720 os=-nonstopux |
659 ;; | 721 ;; |
660 np1) | 722 np1) |
661 basic_machine=np1-gould | 723 basic_machine=np1-gould |
662 ;; | 724 ;; |
725 nv1) | |
726 basic_machine=nv1-cray | |
727 os=-unicosmp | |
728 ;; | |
663 nsr-tandem) | 729 nsr-tandem) |
664 basic_machine=nsr-tandem | 730 basic_machine=nsr-tandem |
665 ;; | 731 ;; |
666 op50n-* | op60c-*) | 732 op50n-* | op60c-*) |
667 basic_machine=hppa1.1-oki | 733 basic_machine=hppa1.1-oki |
668 os=-proelf | 734 os=-proelf |
669 ;; | 735 ;; |
736 or32 | or32-*) | |
737 basic_machine=or32-unknown | |
738 os=-coff | |
739 ;; | |
670 OSE68000 | ose68000) | 740 OSE68000 | ose68000) |
671 basic_machine=m68000-ericsson | 741 basic_machine=m68000-ericsson |
672 os=-ose | 742 os=-ose |
673 ;; | 743 ;; |
674 os68k) | 744 os68k) |
687 basic_machine=sparc-tti | 757 basic_machine=sparc-tti |
688 ;; | 758 ;; |
689 pbb) | 759 pbb) |
690 basic_machine=m68k-tti | 760 basic_machine=m68k-tti |
691 ;; | 761 ;; |
692 pc532 | pc532-*) | 762 pc532 | pc532-*) |
693 basic_machine=ns32k-pc532 | 763 basic_machine=ns32k-pc532 |
694 ;; | 764 ;; |
695 pentium | p5 | k5 | k6 | nexgen) | 765 pentium | p5 | k5 | k6 | nexgen | viac3) |
696 basic_machine=i586-pc | 766 basic_machine=i586-pc |
697 ;; | 767 ;; |
698 pentiumpro | p6 | 6x86 | athlon) | 768 pentiumpro | p6 | 6x86 | athlon | athlon_*) |
699 basic_machine=i686-pc | 769 basic_machine=i686-pc |
700 ;; | 770 ;; |
701 pentiumii | pentium2) | 771 pentiumii | pentium2) |
702 basic_machine=i686-pc | 772 basic_machine=i686-pc |
703 ;; | 773 ;; |
704 pentium-* | p5-* | k5-* | k6-* | nexgen-*) | 774 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
705 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | 775 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
706 ;; | 776 ;; |
707 pentiumpro-* | p6-* | 6x86-* | athlon-*) | 777 pentiumpro-* | p6-* | 6x86-* | athlon-*) |
708 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 778 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
709 ;; | 779 ;; |
714 basic_machine=pn-gould | 784 basic_machine=pn-gould |
715 ;; | 785 ;; |
716 power) basic_machine=power-ibm | 786 power) basic_machine=power-ibm |
717 ;; | 787 ;; |
718 ppc) basic_machine=powerpc-unknown | 788 ppc) basic_machine=powerpc-unknown |
719 ;; | 789 ;; |
720 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 790 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
721 ;; | 791 ;; |
722 ppcle | powerpclittle | ppc-le | powerpc-little) | 792 ppcle | powerpclittle | ppc-le | powerpc-little) |
723 basic_machine=powerpcle-unknown | 793 basic_machine=powerpcle-unknown |
724 ;; | 794 ;; |
725 ppcle-* | powerpclittle-*) | 795 ppcle-* | powerpclittle-*) |
726 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | 796 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
797 ;; | |
798 ppc64) basic_machine=powerpc64-unknown | |
799 ;; | |
800 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
801 ;; | |
802 ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
803 basic_machine=powerpc64le-unknown | |
804 ;; | |
805 ppc64le-* | powerpc64little-*) | |
806 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
727 ;; | 807 ;; |
728 ps2) | 808 ps2) |
729 basic_machine=i386-ibm | 809 basic_machine=i386-ibm |
730 ;; | 810 ;; |
731 pw32) | 811 pw32) |
740 basic_machine=mips-siemens | 820 basic_machine=mips-siemens |
741 ;; | 821 ;; |
742 rtpc | rtpc-*) | 822 rtpc | rtpc-*) |
743 basic_machine=romp-ibm | 823 basic_machine=romp-ibm |
744 ;; | 824 ;; |
825 s390 | s390-*) | |
826 basic_machine=s390-ibm | |
827 ;; | |
828 s390x | s390x-*) | |
829 basic_machine=s390x-ibm | |
830 ;; | |
745 sa29200) | 831 sa29200) |
746 basic_machine=a29k-amd | 832 basic_machine=a29k-amd |
747 os=-udi | 833 os=-udi |
748 ;; | 834 ;; |
835 sb1) | |
836 basic_machine=mipsisa64sb1-unknown | |
837 ;; | |
838 sb1el) | |
839 basic_machine=mipsisa64sb1el-unknown | |
840 ;; | |
749 sequent) | 841 sequent) |
750 basic_machine=i386-sequent | 842 basic_machine=i386-sequent |
751 ;; | 843 ;; |
752 sh) | 844 sh) |
753 basic_machine=sh-hitachi | 845 basic_machine=sh-hitachi |
754 os=-hms | 846 os=-hms |
755 ;; | 847 ;; |
756 sparclite-wrs) | 848 sparclite-wrs | simso-wrs) |
757 basic_machine=sparclite-wrs | 849 basic_machine=sparclite-wrs |
758 os=-vxworks | 850 os=-vxworks |
759 ;; | 851 ;; |
760 sps7) | 852 sps7) |
761 basic_machine=m68k-bull | 853 basic_machine=m68k-bull |
818 symmetry) | 910 symmetry) |
819 basic_machine=i386-sequent | 911 basic_machine=i386-sequent |
820 os=-dynix | 912 os=-dynix |
821 ;; | 913 ;; |
822 t3e) | 914 t3e) |
823 basic_machine=t3e-cray | 915 basic_machine=alphaev5-cray |
824 os=-unicos | 916 os=-unicos |
917 ;; | |
918 t90) | |
919 basic_machine=t90-cray | |
920 os=-unicos | |
921 ;; | |
922 tic4x | c4x*) | |
923 basic_machine=tic4x-unknown | |
924 os=-coff | |
825 ;; | 925 ;; |
826 tic54x | c54x*) | 926 tic54x | c54x*) |
827 basic_machine=tic54x-unknown | 927 basic_machine=tic54x-unknown |
828 os=-coff | 928 os=-coff |
829 ;; | 929 ;; |
930 tic55x | c55x*) | |
931 basic_machine=tic55x-unknown | |
932 os=-coff | |
933 ;; | |
934 tic6x | c6x*) | |
935 basic_machine=tic6x-unknown | |
936 os=-coff | |
937 ;; | |
830 tx39) | 938 tx39) |
831 basic_machine=mipstx39-unknown | 939 basic_machine=mipstx39-unknown |
832 ;; | 940 ;; |
833 tx39el) | 941 tx39el) |
834 basic_machine=mipstx39el-unknown | 942 basic_machine=mipstx39el-unknown |
943 ;; | |
944 toad1) | |
945 basic_machine=pdp10-xkl | |
946 os=-tops20 | |
835 ;; | 947 ;; |
836 tower | tower-32) | 948 tower | tower-32) |
837 basic_machine=m68k-ncr | 949 basic_machine=m68k-ncr |
838 ;; | 950 ;; |
839 udi29k) | 951 udi29k) |
855 vms) | 967 vms) |
856 basic_machine=vax-dec | 968 basic_machine=vax-dec |
857 os=-vms | 969 os=-vms |
858 ;; | 970 ;; |
859 vpp*|vx|vx-*) | 971 vpp*|vx|vx-*) |
860 basic_machine=f301-fujitsu | 972 basic_machine=f301-fujitsu |
861 ;; | 973 ;; |
862 vxworks960) | 974 vxworks960) |
863 basic_machine=i960-wrs | 975 basic_machine=i960-wrs |
864 os=-vxworks | 976 os=-vxworks |
865 ;; | 977 ;; |
866 vxworks68) | 978 vxworks68) |
877 ;; | 989 ;; |
878 w89k-*) | 990 w89k-*) |
879 basic_machine=hppa1.1-winbond | 991 basic_machine=hppa1.1-winbond |
880 os=-proelf | 992 os=-proelf |
881 ;; | 993 ;; |
882 xmp) | 994 xps | xps100) |
883 basic_machine=xmp-cray | 995 basic_machine=xps100-honeywell |
996 ;; | |
997 ymp) | |
998 basic_machine=ymp-cray | |
884 os=-unicos | 999 os=-unicos |
885 ;; | |
886 xps | xps100) | |
887 basic_machine=xps100-honeywell | |
888 ;; | 1000 ;; |
889 z8k-*-coff) | 1001 z8k-*-coff) |
890 basic_machine=z8k-unknown | 1002 basic_machine=z8k-unknown |
891 os=-sim | 1003 os=-sim |
892 ;; | 1004 ;; |
904 basic_machine=hppa1.1-oki | 1016 basic_machine=hppa1.1-oki |
905 ;; | 1017 ;; |
906 op60c) | 1018 op60c) |
907 basic_machine=hppa1.1-oki | 1019 basic_machine=hppa1.1-oki |
908 ;; | 1020 ;; |
909 mips) | |
910 if [ x$os = x-linux-gnu ]; then | |
911 basic_machine=mips-unknown | |
912 else | |
913 basic_machine=mips-mips | |
914 fi | |
915 ;; | |
916 romp) | 1021 romp) |
917 basic_machine=romp-ibm | 1022 basic_machine=romp-ibm |
918 ;; | 1023 ;; |
919 rs6000) | 1024 rs6000) |
920 basic_machine=rs6000-ibm | 1025 basic_machine=rs6000-ibm |
930 basic_machine=pdp11-dec | 1035 basic_machine=pdp11-dec |
931 ;; | 1036 ;; |
932 we32k) | 1037 we32k) |
933 basic_machine=we32k-att | 1038 basic_machine=we32k-att |
934 ;; | 1039 ;; |
935 sh3 | sh4) | 1040 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
936 basic_machine=sh-unknown | 1041 basic_machine=sh-unknown |
937 ;; | 1042 ;; |
938 sparc | sparcv9) | 1043 sh64) |
1044 basic_machine=sh64-unknown | |
1045 ;; | |
1046 sparc | sparcv9 | sparcv9b) | |
939 basic_machine=sparc-sun | 1047 basic_machine=sparc-sun |
940 ;; | 1048 ;; |
941 cydra) | 1049 cydra) |
942 basic_machine=cydra-cydrome | 1050 basic_machine=cydra-cydrome |
943 ;; | 1051 ;; |
944 orion) | 1052 orion) |
945 basic_machine=orion-highlevel | 1053 basic_machine=orion-highlevel |
946 ;; | 1054 ;; |
951 basic_machine=m68k-apple | 1059 basic_machine=m68k-apple |
952 ;; | 1060 ;; |
953 pmac | pmac-mpw) | 1061 pmac | pmac-mpw) |
954 basic_machine=powerpc-apple | 1062 basic_machine=powerpc-apple |
955 ;; | 1063 ;; |
956 c4x*) | 1064 *-unknown) |
957 basic_machine=c4x-none | 1065 # Make sure to match an already-canonicalized machine name. |
958 os=-coff | |
959 ;; | 1066 ;; |
960 *) | 1067 *) |
961 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 1068 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
962 exit 1 | 1069 exit 1 |
963 ;; | 1070 ;; |
1011 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 1118 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1012 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | 1119 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
1013 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1120 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1014 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1121 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1015 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1122 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1123 | -chorusos* | -chorusrdb* \ | |
1016 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1124 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1017 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 1125 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1018 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | 1126 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1019 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1127 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1020 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) | 1128 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1129 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | |
1130 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1131 | -powermax* | -dnix*) | |
1021 # Remember, each alternative MUST END IN *, to match a version number. | 1132 # Remember, each alternative MUST END IN *, to match a version number. |
1022 ;; | 1133 ;; |
1023 -qnx*) | 1134 -qnx*) |
1024 case $basic_machine in | 1135 case $basic_machine in |
1025 x86-* | i[34567]86-*) | 1136 x86-* | i*86-*) |
1026 ;; | 1137 ;; |
1027 *) | 1138 *) |
1028 os=-nto$os | 1139 os=-nto$os |
1029 ;; | 1140 ;; |
1030 esac | 1141 esac |
1031 ;; | 1142 ;; |
1143 -nto-qnx*) | |
1144 ;; | |
1032 -nto*) | 1145 -nto*) |
1033 os=-nto-qnx | 1146 os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1034 ;; | 1147 ;; |
1035 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | 1148 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1036 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | 1149 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1037 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | 1150 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1038 ;; | 1151 ;; |
1067 os=-bsd | 1180 os=-bsd |
1068 ;; | 1181 ;; |
1069 -acis*) | 1182 -acis*) |
1070 os=-aos | 1183 os=-aos |
1071 ;; | 1184 ;; |
1185 -atheos*) | |
1186 os=-atheos | |
1187 ;; | |
1072 -386bsd) | 1188 -386bsd) |
1073 os=-bsd | 1189 os=-bsd |
1074 ;; | 1190 ;; |
1075 -ctix* | -uts*) | 1191 -ctix* | -uts*) |
1076 os=-sysv | 1192 os=-sysv |
1077 ;; | 1193 ;; |
1194 -nova*) | |
1195 os=-rtmk-nova | |
1196 ;; | |
1078 -ns2 ) | 1197 -ns2 ) |
1079 os=-nextstep2 | 1198 os=-nextstep2 |
1080 ;; | 1199 ;; |
1081 -nsk*) | 1200 -nsk*) |
1082 os=-nsk | 1201 os=-nsk |
1083 ;; | 1202 ;; |
1084 # Preserve the version number of sinix5. | 1203 # Preserve the version number of sinix5. |
1113 os=-ose | 1232 os=-ose |
1114 ;; | 1233 ;; |
1115 -xenix) | 1234 -xenix) |
1116 os=-xenix | 1235 os=-xenix |
1117 ;; | 1236 ;; |
1118 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | 1237 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1119 os=-mint | 1238 os=-mint |
1239 ;; | |
1240 -aros*) | |
1241 os=-aros | |
1242 ;; | |
1243 -kaos*) | |
1244 os=-kaos | |
1120 ;; | 1245 ;; |
1121 -none) | 1246 -none) |
1122 ;; | 1247 ;; |
1123 *) | 1248 *) |
1124 # Get rid of the `-' at the beginning of $os. | 1249 # Get rid of the `-' at the beginning of $os. |
1147 os=-linux | 1272 os=-linux |
1148 ;; | 1273 ;; |
1149 arm*-semi) | 1274 arm*-semi) |
1150 os=-aout | 1275 os=-aout |
1151 ;; | 1276 ;; |
1277 # This must come before the *-dec entry. | |
1152 pdp10-*) | 1278 pdp10-*) |
1153 os=-tops20 | 1279 os=-tops20 |
1154 ;; | 1280 ;; |
1155 pdp11-*) | 1281 pdp11-*) |
1156 os=-none | 1282 os=-none |
1157 ;; | 1283 ;; |
1158 *-dec | vax-*) | 1284 *-dec | vax-*) |
1159 os=-ultrix4.2 | 1285 os=-ultrix4.2 |
1160 ;; | 1286 ;; |
1177 os=-elf | 1303 os=-elf |
1178 ;; | 1304 ;; |
1179 mips*-*) | 1305 mips*-*) |
1180 os=-elf | 1306 os=-elf |
1181 ;; | 1307 ;; |
1308 or32-*) | |
1309 os=-coff | |
1310 ;; | |
1182 *-tti) # must be before sparc entry or we get the wrong os. | 1311 *-tti) # must be before sparc entry or we get the wrong os. |
1183 os=-sysv3 | 1312 os=-sysv3 |
1184 ;; | 1313 ;; |
1185 sparc-* | *-sun) | 1314 sparc-* | *-sun) |
1186 os=-sunos4.1.1 | 1315 os=-sunos4.1.1 |
1240 os=-mvs | 1369 os=-mvs |
1241 ;; | 1370 ;; |
1242 *-next) | 1371 *-next) |
1243 os=-nextstep3 | 1372 os=-nextstep3 |
1244 ;; | 1373 ;; |
1245 *-gould) | 1374 *-gould) |
1246 os=-sysv | 1375 os=-sysv |
1247 ;; | 1376 ;; |
1248 *-highlevel) | 1377 *-highlevel) |
1249 os=-bsd | 1378 os=-bsd |
1250 ;; | 1379 ;; |
1251 *-encore) | 1380 *-encore) |
1252 os=-bsd | 1381 os=-bsd |
1253 ;; | 1382 ;; |
1254 *-sgi) | 1383 *-sgi) |
1255 os=-irix | 1384 os=-irix |
1256 ;; | 1385 ;; |
1257 *-siemens) | 1386 *-siemens) |
1258 os=-sysv4 | 1387 os=-sysv4 |
1259 ;; | 1388 ;; |
1260 *-masscomp) | 1389 *-masscomp) |
1261 os=-rtu | 1390 os=-rtu |
1262 ;; | 1391 ;; |
1324 vendor=ibm | 1453 vendor=ibm |
1325 ;; | 1454 ;; |
1326 -ptx*) | 1455 -ptx*) |
1327 vendor=sequent | 1456 vendor=sequent |
1328 ;; | 1457 ;; |
1329 -vxsim* | -vxworks*) | 1458 -vxsim* | -vxworks* | -windiss*) |
1330 vendor=wrs | 1459 vendor=wrs |
1331 ;; | 1460 ;; |
1332 -aux*) | 1461 -aux*) |
1333 vendor=apple | 1462 vendor=apple |
1334 ;; | 1463 ;; |
1338 -mpw* | -macos*) | 1467 -mpw* | -macos*) |
1339 vendor=apple | 1468 vendor=apple |
1340 ;; | 1469 ;; |
1341 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | 1470 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1342 vendor=atari | 1471 vendor=atari |
1472 ;; | |
1473 -vos*) | |
1474 vendor=stratus | |
1343 ;; | 1475 ;; |
1344 esac | 1476 esac |
1345 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1477 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1346 ;; | 1478 ;; |
1347 esac | 1479 esac |