Mercurial > emacs
comparison config.sub @ 45533:70f18b582c77
Updated from master source.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Mon, 27 May 2002 06:43:19 +0000 |
parents | 65667218173f |
children | 30a573658814 |
comparison
equal
deleted
inserted
replaced
45532:6d0025248c2b | 45533:70f18b582c77 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script, version 1.1. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # Free Software Foundation, Inc. | 4 # 2000, 2001, 2002 Free Software Foundation, Inc. |
5 | 5 |
6 version='2000-11-10' | 6 timestamp='2002-05-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. |
58 $0 [OPTION] ALIAS | 59 $0 [OPTION] ALIAS |
59 | 60 |
60 Canonicalize a configuration name. | 61 Canonicalize a configuration name. |
61 | 62 |
62 Operation modes: | 63 Operation modes: |
63 -h, --help print this help, then exit | 64 -h, --help print this help, then exit |
64 -V, --version print version number, then exit" | 65 -t, --time-stamp print date of last modification, then exit |
66 -v, --version print version number, then exit | |
67 | |
68 Report bugs and patches to <config-patches@gnu.org>." | |
69 | |
70 version="\ | |
71 GNU config.sub ($timestamp) | |
72 | |
73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 | |
74 Free Software Foundation, Inc. | |
75 | |
76 This is free software; see the source for copying conditions. There is NO | |
77 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
65 | 78 |
66 help=" | 79 help=" |
67 Try \`$me --help' for more information." | 80 Try \`$me --help' for more information." |
68 | 81 |
69 # Parse command line | 82 # Parse command line |
70 while test $# -gt 0 ; do | 83 while test $# -gt 0 ; do |
71 case "$1" in | 84 case $1 in |
72 --version | --vers* | -V ) | 85 --time-stamp | --time* | -t ) |
86 echo "$timestamp" ; exit 0 ;; | |
87 --version | -v ) | |
73 echo "$version" ; exit 0 ;; | 88 echo "$version" ; exit 0 ;; |
74 --help | --h* | -h ) | 89 --help | --h* | -h ) |
75 echo "$usage"; exit 0 ;; | 90 echo "$usage"; exit 0 ;; |
76 -- ) # Stop option processing | 91 -- ) # Stop option processing |
77 shift; break ;; | 92 shift; break ;; |
78 - ) # Use stdin as input. | 93 - ) # Use stdin as input. |
79 break ;; | 94 break ;; |
80 -* ) | 95 -* ) |
81 exec >&2 | 96 echo "$me: invalid option $1$help" |
82 echo "$me: invalid option $1" | |
83 echo "$help" | |
84 exit 1 ;; | 97 exit 1 ;; |
85 | 98 |
86 *local*) | 99 *local*) |
87 # First pass through any local machine types. | 100 # First pass through any local machine types. |
88 echo $1 | 101 echo $1 |
103 | 116 |
104 # 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). |
105 # Here we must recognize all the valid KERNEL-OS combinations. | 118 # Here we must recognize all the valid KERNEL-OS combinations. |
106 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
107 case $maybe_os in | 120 case $maybe_os in |
108 nto-qnx* | linux-gnu* | storm-chaos*) | 121 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) |
109 os=-$maybe_os | 122 os=-$maybe_os |
110 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
111 ;; | 124 ;; |
112 *) | 125 *) |
113 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 126 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
143 ;; | 156 ;; |
144 -wrs) | 157 -wrs) |
145 os=-vxworks | 158 os=-vxworks |
146 basic_machine=$1 | 159 basic_machine=$1 |
147 ;; | 160 ;; |
161 -chorusos*) | |
162 os=-chorusos | |
163 basic_machine=$1 | |
164 ;; | |
165 -chorusrdb) | |
166 os=-chorusrdb | |
167 basic_machine=$1 | |
168 ;; | |
148 -hiux*) | 169 -hiux*) |
149 os=-hiuxwe2 | 170 os=-hiuxwe2 |
150 ;; | 171 ;; |
151 -sco5) | 172 -sco5) |
152 os=-sco3.2v5 | 173 os=-sco3.2v5 |
201 | 222 |
202 # Decode aliases for certain CPU-COMPANY combinations. | 223 # Decode aliases for certain CPU-COMPANY combinations. |
203 case $basic_machine in | 224 case $basic_machine in |
204 # Recognize the basic CPU types without company name. | 225 # Recognize the basic CPU types without company name. |
205 # Some are omitted here because they have special meanings below. | 226 # Some are omitted here because they have special meanings below. |
206 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | 227 1750a | 580 \ |
207 | arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 228 | a29k \ |
208 | 580 | i960 | h8300 \ | 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
209 | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ | 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
210 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
211 | hppa64 \ | 232 | c4x | clipper \ |
212 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ | 233 | d10v | d30v | dsp16xx \ |
213 | alphaev6[78] \ | 234 | fr30 \ |
214 | we32k | ns16k | clipper | i370 | sh | sh[34] \ | 235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
215 | powerpc | powerpcle \ | 236 | i370 | i860 | i960 | ia64 \ |
216 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ | 237 | m32r | m68000 | m68k | m88k | mcore \ |
217 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | 238 | mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ |
218 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | 239 | mips64vr4100 | mips64vr4100el | mips64vr4300 \ |
219 | mips64vr5000 | miprs64vr5000el | mcore \ | 240 | mips64vr4300el | mips64vr5000 | mips64vr5000el \ |
220 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | 241 | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ |
221 | thumb | d10v | d30v | fr30 | avr) | 242 | mipsisa32 | mipsisa64 \ |
243 | mn10200 | mn10300 \ | |
244 | ns16k | ns32k \ | |
245 | openrisc | or32 \ | |
246 | pdp10 | pdp11 | pj | pjl \ | |
247 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
248 | pyramid \ | |
249 | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \ | |
250 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | |
251 | strongarm \ | |
252 | tahoe | thumb | tic80 | tron \ | |
253 | v850 | v850e \ | |
254 | we32k \ | |
255 | x86 | xscale | xstormy16 | xtensa \ | |
256 | z8k) | |
222 basic_machine=$basic_machine-unknown | 257 basic_machine=$basic_machine-unknown |
223 ;; | 258 ;; |
224 m6811 | m68hc11 | m6812 | m68hc12) | 259 m6811 | m68hc11 | m6812 | m68hc12) |
225 # Motorola 68HC11/12. | 260 # Motorola 68HC11/12. |
226 basic_machine=$basic_machine-unknown | 261 basic_machine=$basic_machine-unknown |
227 os=-none | 262 os=-none |
228 ;; | 263 ;; |
229 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) | 264 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
230 ;; | 265 ;; |
231 | 266 |
232 # We use `pc' rather than `unknown' | 267 # We use `pc' rather than `unknown' |
233 # because (1) that's what they normally are, and | 268 # because (1) that's what they normally are, and |
234 # (2) the word "unknown" tends to confuse beginning users. | 269 # (2) the word "unknown" tends to confuse beginning users. |
235 i[234567]86 | x86_64) | 270 i*86 | x86_64) |
236 basic_machine=$basic_machine-pc | 271 basic_machine=$basic_machine-pc |
237 ;; | 272 ;; |
238 # Object if more than one company name word. | 273 # Object if more than one company name word. |
239 *-*-*) | 274 *-*-*) |
240 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 275 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
241 exit 1 | 276 exit 1 |
242 ;; | 277 ;; |
243 # Recognize the basic CPU types with company name. | 278 # Recognize the basic CPU types with company name. |
244 # FIXME: clean up the formatting here. | 279 580-* \ |
245 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | 280 | a29k-* \ |
246 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | 281 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
247 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 282 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
248 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 283 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
249 | xmp-* | ymp-* \ | 284 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
250 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ | 285 | avr-* \ |
251 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | 286 | bs2000-* \ |
252 | hppa2.0n-* | hppa64-* \ | 287 | c[123]* | c30-* | [cjt]90-* | c54x-* \ |
253 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ | 288 | clipper-* | cydra-* \ |
254 | alphaev6[78]-* \ | 289 | d10v-* | d30v-* \ |
255 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | 290 | elxsi-* \ |
256 | clipper-* | orion-* \ | 291 | f30[01]-* | f700-* | fr30-* | fx80-* \ |
257 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 292 | h8300-* | h8500-* \ |
258 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 293 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
259 | mips64el-* | mips64orion-* | mips64orionel-* \ | 294 | i*86-* | i860-* | i960-* | ia64-* \ |
260 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 295 | m32r-* \ |
261 | mipstx39-* | mipstx39el-* | mcore-* \ | 296 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
262 | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ | 297 | m88110-* | m88k-* | mcore-* \ |
263 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | 298 | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ |
264 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ | 299 | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ |
265 | bs2000-* | tic54x-* | c54x-* | x86_64-*) | 300 | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ |
301 | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ | |
302 | none-* | np1-* | ns16k-* | ns32k-* \ | |
303 | orion-* \ | |
304 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | |
305 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
306 | pyramid-* \ | |
307 | romp-* | rs6000-* \ | |
308 | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \ | |
309 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | |
310 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | |
311 | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ | |
312 | v850-* | v850e-* | vax-* \ | |
313 | we32k-* \ | |
314 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | |
315 | xtensa-* \ | |
316 | ymp-* \ | |
317 | z8k-*) | |
266 ;; | 318 ;; |
267 # Recognize the various machine names and aliases which stand | 319 # Recognize the various machine names and aliases which stand |
268 # for a CPU type and a company and sometimes even an OS. | 320 # for a CPU type and a company and sometimes even an OS. |
269 386bsd) | 321 386bsd) |
270 basic_machine=i386-unknown | 322 basic_machine=i386-unknown |
323 ;; | 375 ;; |
324 balance) | 376 balance) |
325 basic_machine=ns32k-sequent | 377 basic_machine=ns32k-sequent |
326 os=-dynix | 378 os=-dynix |
327 ;; | 379 ;; |
380 c90) | |
381 basic_machine=c90-cray | |
382 os=-unicos | |
383 ;; | |
328 convex-c1) | 384 convex-c1) |
329 basic_machine=c1-convex | 385 basic_machine=c1-convex |
330 os=-bsd | 386 os=-bsd |
331 ;; | 387 ;; |
332 convex-c2) | 388 convex-c2) |
343 ;; | 399 ;; |
344 convex-c38) | 400 convex-c38) |
345 basic_machine=c38-convex | 401 basic_machine=c38-convex |
346 os=-bsd | 402 os=-bsd |
347 ;; | 403 ;; |
348 cray | ymp) | 404 cray | j90) |
349 basic_machine=ymp-cray | 405 basic_machine=j90-cray |
350 os=-unicos | |
351 ;; | |
352 cray2) | |
353 basic_machine=cray2-cray | |
354 os=-unicos | |
355 ;; | |
356 [ctj]90-cray) | |
357 basic_machine=c90-cray | |
358 os=-unicos | 406 os=-unicos |
359 ;; | 407 ;; |
360 crds | unos) | 408 crds | unos) |
361 basic_machine=m68k-crds | 409 basic_machine=m68k-crds |
362 ;; | 410 ;; |
366 da30 | da30-*) | 414 da30 | da30-*) |
367 basic_machine=m68k-da30 | 415 basic_machine=m68k-da30 |
368 ;; | 416 ;; |
369 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | 417 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
370 basic_machine=mips-dec | 418 basic_machine=mips-dec |
419 ;; | |
420 decsystem10* | dec10*) | |
421 basic_machine=pdp10-dec | |
422 os=-tops10 | |
423 ;; | |
424 decsystem20* | dec20*) | |
425 basic_machine=pdp10-dec | |
426 os=-tops20 | |
371 ;; | 427 ;; |
372 delta | 3300 | motorola-3300 | motorola-delta \ | 428 delta | 3300 | motorola-3300 | motorola-delta \ |
373 | 3300-motorola | delta-motorola) | 429 | 3300-motorola | delta-motorola) |
374 basic_machine=m68k-motorola | 430 basic_machine=m68k-motorola |
375 ;; | 431 ;; |
408 ;; | 464 ;; |
409 gmicro) | 465 gmicro) |
410 basic_machine=tron-gmicro | 466 basic_machine=tron-gmicro |
411 os=-sysv | 467 os=-sysv |
412 ;; | 468 ;; |
469 go32) | |
470 basic_machine=i386-pc | |
471 os=-go32 | |
472 ;; | |
413 h3050r* | hiux*) | 473 h3050r* | hiux*) |
414 basic_machine=hppa1.1-hitachi | 474 basic_machine=hppa1.1-hitachi |
415 os=-hiuxwe2 | 475 os=-hiuxwe2 |
416 ;; | 476 ;; |
417 h8300hms) | 477 h8300hms) |
483 ;; | 543 ;; |
484 i370-ibm* | ibm*) | 544 i370-ibm* | ibm*) |
485 basic_machine=i370-ibm | 545 basic_machine=i370-ibm |
486 ;; | 546 ;; |
487 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 547 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
488 i[34567]86v32) | 548 i*86v32) |
489 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 549 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
490 os=-sysv32 | 550 os=-sysv32 |
491 ;; | 551 ;; |
492 i[34567]86v4*) | 552 i*86v4*) |
493 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 553 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
494 os=-sysv4 | 554 os=-sysv4 |
495 ;; | 555 ;; |
496 i[34567]86v) | 556 i*86v) |
497 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 557 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
498 os=-sysv | 558 os=-sysv |
499 ;; | 559 ;; |
500 i[34567]86sol2) | 560 i*86sol2) |
501 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 561 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
502 os=-solaris2 | 562 os=-solaris2 |
503 ;; | 563 ;; |
504 i386mach) | 564 i386mach) |
505 basic_machine=i386-mach | 565 basic_machine=i386-mach |
506 os=-mach | 566 os=-mach |
507 ;; | 567 ;; |
508 i386-vsta | vsta) | 568 i386-vsta | vsta) |
509 basic_machine=i386-unknown | 569 basic_machine=i386-unknown |
510 os=-vsta | 570 os=-vsta |
511 ;; | |
512 i386-go32 | go32) | |
513 basic_machine=i386-unknown | |
514 os=-go32 | |
515 ;; | |
516 i386-mingw32 | mingw32) | |
517 basic_machine=i386-unknown | |
518 os=-mingw32 | |
519 ;; | |
520 i[34567]86-pw32 | pw32) | |
521 basic_machine=i586-unknown | |
522 os=-pw32 | |
523 ;; | 571 ;; |
524 iris | iris4d) | 572 iris | iris4d) |
525 basic_machine=mips-sgi | 573 basic_machine=mips-sgi |
526 case $os in | 574 case $os in |
527 -irix*) | 575 -irix*) |
544 ;; | 592 ;; |
545 merlin) | 593 merlin) |
546 basic_machine=ns32k-utek | 594 basic_machine=ns32k-utek |
547 os=-sysv | 595 os=-sysv |
548 ;; | 596 ;; |
597 mingw32) | |
598 basic_machine=i386-pc | |
599 os=-mingw32 | |
600 ;; | |
549 miniframe) | 601 miniframe) |
550 basic_machine=m68000-convergent | 602 basic_machine=m68000-convergent |
551 ;; | 603 ;; |
552 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | 604 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
553 basic_machine=m68k-atari | 605 basic_machine=m68k-atari |
554 os=-mint | 606 os=-mint |
555 ;; | 607 ;; |
556 mipsel*-linux*) | |
557 basic_machine=mipsel-unknown | |
558 os=-linux-gnu | |
559 ;; | |
560 mips*-linux*) | |
561 basic_machine=mips-unknown | |
562 os=-linux-gnu | |
563 ;; | |
564 mips3*-*) | 608 mips3*-*) |
565 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | 609 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
566 ;; | 610 ;; |
567 mips3*) | 611 mips3*) |
568 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | 612 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
573 ;; | 617 ;; |
574 monitor) | 618 monitor) |
575 basic_machine=m68k-rom68k | 619 basic_machine=m68k-rom68k |
576 os=-coff | 620 os=-coff |
577 ;; | 621 ;; |
622 morphos) | |
623 basic_machine=powerpc-unknown | |
624 os=-morphos | |
625 ;; | |
578 msdos) | 626 msdos) |
579 basic_machine=i386-unknown | 627 basic_machine=i386-pc |
580 os=-msdos | 628 os=-msdos |
581 ;; | 629 ;; |
582 mvs) | 630 mvs) |
583 basic_machine=i370-ibm | 631 basic_machine=i370-ibm |
584 os=-mvs | 632 os=-mvs |
652 ;; | 700 ;; |
653 op50n-* | op60c-*) | 701 op50n-* | op60c-*) |
654 basic_machine=hppa1.1-oki | 702 basic_machine=hppa1.1-oki |
655 os=-proelf | 703 os=-proelf |
656 ;; | 704 ;; |
705 or32 | or32-*) | |
706 basic_machine=or32-unknown | |
707 os=-coff | |
708 ;; | |
657 OSE68000 | ose68000) | 709 OSE68000 | ose68000) |
658 basic_machine=m68000-ericsson | 710 basic_machine=m68000-ericsson |
659 os=-ose | 711 os=-ose |
660 ;; | 712 ;; |
661 os68k) | 713 os68k) |
677 basic_machine=m68k-tti | 729 basic_machine=m68k-tti |
678 ;; | 730 ;; |
679 pc532 | pc532-*) | 731 pc532 | pc532-*) |
680 basic_machine=ns32k-pc532 | 732 basic_machine=ns32k-pc532 |
681 ;; | 733 ;; |
682 pentium | p5 | k5 | k6 | nexgen) | 734 pentium | p5 | k5 | k6 | nexgen | viac3) |
683 basic_machine=i586-pc | 735 basic_machine=i586-pc |
684 ;; | 736 ;; |
685 pentiumpro | p6 | 6x86 | athlon) | 737 pentiumpro | p6 | 6x86 | athlon) |
686 basic_machine=i686-pc | 738 basic_machine=i686-pc |
687 ;; | 739 ;; |
688 pentiumii | pentium2) | 740 pentiumii | pentium2) |
689 basic_machine=i686-pc | 741 basic_machine=i686-pc |
690 ;; | 742 ;; |
691 pentium-* | p5-* | k5-* | k6-* | nexgen-*) | 743 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
692 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | 744 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
693 ;; | 745 ;; |
694 pentiumpro-* | p6-* | 6x86-* | athlon-*) | 746 pentiumpro-* | p6-* | 6x86-* | athlon-*) |
695 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 747 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
696 ;; | 748 ;; |
698 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 750 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
699 ;; | 751 ;; |
700 pn) | 752 pn) |
701 basic_machine=pn-gould | 753 basic_machine=pn-gould |
702 ;; | 754 ;; |
703 power) basic_machine=rs6000-ibm | 755 power) basic_machine=power-ibm |
704 ;; | 756 ;; |
705 ppc) basic_machine=powerpc-unknown | 757 ppc) basic_machine=powerpc-unknown |
706 ;; | 758 ;; |
707 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 759 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
708 ;; | 760 ;; |
710 basic_machine=powerpcle-unknown | 762 basic_machine=powerpcle-unknown |
711 ;; | 763 ;; |
712 ppcle-* | powerpclittle-*) | 764 ppcle-* | powerpclittle-*) |
713 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | 765 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
714 ;; | 766 ;; |
767 ppc64) basic_machine=powerpc64-unknown | |
768 ;; | |
769 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
770 ;; | |
771 ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
772 basic_machine=powerpc64le-unknown | |
773 ;; | |
774 ppc64le-* | powerpc64little-*) | |
775 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
776 ;; | |
715 ps2) | 777 ps2) |
716 basic_machine=i386-ibm | 778 basic_machine=i386-ibm |
779 ;; | |
780 pw32) | |
781 basic_machine=i586-unknown | |
782 os=-pw32 | |
717 ;; | 783 ;; |
718 rom68k) | 784 rom68k) |
719 basic_machine=m68k-rom68k | 785 basic_machine=m68k-rom68k |
720 os=-coff | 786 os=-coff |
721 ;; | 787 ;; |
723 basic_machine=mips-siemens | 789 basic_machine=mips-siemens |
724 ;; | 790 ;; |
725 rtpc | rtpc-*) | 791 rtpc | rtpc-*) |
726 basic_machine=romp-ibm | 792 basic_machine=romp-ibm |
727 ;; | 793 ;; |
794 s390 | s390-*) | |
795 basic_machine=s390-ibm | |
796 ;; | |
797 s390x | s390x-*) | |
798 basic_machine=s390x-ibm | |
799 ;; | |
728 sa29200) | 800 sa29200) |
729 basic_machine=a29k-amd | 801 basic_machine=a29k-amd |
730 os=-udi | 802 os=-udi |
731 ;; | 803 ;; |
732 sequent) | 804 sequent) |
734 ;; | 806 ;; |
735 sh) | 807 sh) |
736 basic_machine=sh-hitachi | 808 basic_machine=sh-hitachi |
737 os=-hms | 809 os=-hms |
738 ;; | 810 ;; |
739 sparclite-wrs) | 811 sparclite-wrs | simso-wrs) |
740 basic_machine=sparclite-wrs | 812 basic_machine=sparclite-wrs |
741 os=-vxworks | 813 os=-vxworks |
742 ;; | 814 ;; |
743 sps7) | 815 sps7) |
744 basic_machine=m68k-bull | 816 basic_machine=m68k-bull |
792 basic_machine=sparc-sun | 864 basic_machine=sparc-sun |
793 ;; | 865 ;; |
794 sun386 | sun386i | roadrunner) | 866 sun386 | sun386i | roadrunner) |
795 basic_machine=i386-sun | 867 basic_machine=i386-sun |
796 ;; | 868 ;; |
797 sv1) | 869 sv1) |
798 basic_machine=sv1-cray | 870 basic_machine=sv1-cray |
799 os=-unicos | 871 os=-unicos |
800 ;; | 872 ;; |
801 symmetry) | 873 symmetry) |
802 basic_machine=i386-sequent | 874 basic_machine=i386-sequent |
803 os=-dynix | 875 os=-dynix |
804 ;; | 876 ;; |
877 t3d) | |
878 basic_machine=alpha-cray | |
879 os=-unicos | |
880 ;; | |
805 t3e) | 881 t3e) |
806 basic_machine=t3e-cray | 882 basic_machine=alphaev5-cray |
883 os=-unicos | |
884 ;; | |
885 t90) | |
886 basic_machine=t90-cray | |
807 os=-unicos | 887 os=-unicos |
808 ;; | 888 ;; |
809 tic54x | c54x*) | 889 tic54x | c54x*) |
810 basic_machine=tic54x-unknown | 890 basic_machine=tic54x-unknown |
811 os=-coff | 891 os=-coff |
813 tx39) | 893 tx39) |
814 basic_machine=mipstx39-unknown | 894 basic_machine=mipstx39-unknown |
815 ;; | 895 ;; |
816 tx39el) | 896 tx39el) |
817 basic_machine=mipstx39el-unknown | 897 basic_machine=mipstx39el-unknown |
898 ;; | |
899 toad1) | |
900 basic_machine=pdp10-xkl | |
901 os=-tops20 | |
818 ;; | 902 ;; |
819 tower | tower-32) | 903 tower | tower-32) |
820 basic_machine=m68k-ncr | 904 basic_machine=m68k-ncr |
821 ;; | 905 ;; |
822 udi29k) | 906 udi29k) |
860 ;; | 944 ;; |
861 w89k-*) | 945 w89k-*) |
862 basic_machine=hppa1.1-winbond | 946 basic_machine=hppa1.1-winbond |
863 os=-proelf | 947 os=-proelf |
864 ;; | 948 ;; |
865 xmp) | 949 windows32) |
866 basic_machine=xmp-cray | 950 basic_machine=i386-pc |
867 os=-unicos | 951 os=-windows32-msvcrt |
868 ;; | 952 ;; |
869 xps | xps100) | 953 xps | xps100) |
870 basic_machine=xps100-honeywell | 954 basic_machine=xps100-honeywell |
955 ;; | |
956 ymp) | |
957 basic_machine=ymp-cray | |
958 os=-unicos | |
871 ;; | 959 ;; |
872 z8k-*-coff) | 960 z8k-*-coff) |
873 basic_machine=z8k-unknown | 961 basic_machine=z8k-unknown |
874 os=-sim | 962 os=-sim |
875 ;; | 963 ;; |
887 basic_machine=hppa1.1-oki | 975 basic_machine=hppa1.1-oki |
888 ;; | 976 ;; |
889 op60c) | 977 op60c) |
890 basic_machine=hppa1.1-oki | 978 basic_machine=hppa1.1-oki |
891 ;; | 979 ;; |
892 mips) | |
893 if [ x$os = x-linux-gnu ]; then | |
894 basic_machine=mips-unknown | |
895 else | |
896 basic_machine=mips-mips | |
897 fi | |
898 ;; | |
899 romp) | 980 romp) |
900 basic_machine=romp-ibm | 981 basic_machine=romp-ibm |
901 ;; | 982 ;; |
902 rs6000) | 983 rs6000) |
903 basic_machine=rs6000-ibm | 984 basic_machine=rs6000-ibm |
904 ;; | 985 ;; |
905 vax) | 986 vax) |
906 basic_machine=vax-dec | 987 basic_machine=vax-dec |
907 ;; | 988 ;; |
989 pdp10) | |
990 # there are many clones, so DEC is not a safe bet | |
991 basic_machine=pdp10-unknown | |
992 ;; | |
908 pdp11) | 993 pdp11) |
909 basic_machine=pdp11-dec | 994 basic_machine=pdp11-dec |
910 ;; | 995 ;; |
911 we32k) | 996 we32k) |
912 basic_machine=we32k-att | 997 basic_machine=we32k-att |
913 ;; | 998 ;; |
914 sh3 | sh4) | 999 sh3 | sh4 | sh3eb | sh4eb) |
915 basic_machine=sh-unknown | 1000 basic_machine=sh-unknown |
916 ;; | 1001 ;; |
917 sparc | sparcv9) | 1002 sh64) |
1003 basic_machine=sh64-unknown | |
1004 ;; | |
1005 sparc | sparcv9 | sparcv9b) | |
918 basic_machine=sparc-sun | 1006 basic_machine=sparc-sun |
919 ;; | 1007 ;; |
920 cydra) | 1008 cydra) |
921 basic_machine=cydra-cydrome | 1009 basic_machine=cydra-cydrome |
922 ;; | 1010 ;; |
933 basic_machine=powerpc-apple | 1021 basic_machine=powerpc-apple |
934 ;; | 1022 ;; |
935 c4x*) | 1023 c4x*) |
936 basic_machine=c4x-none | 1024 basic_machine=c4x-none |
937 os=-coff | 1025 os=-coff |
1026 ;; | |
1027 *-unknown) | |
1028 # Make sure to match an already-canonicalized machine name. | |
938 ;; | 1029 ;; |
939 *) | 1030 *) |
940 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 1031 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
941 exit 1 | 1032 exit 1 |
942 ;; | 1033 ;; |
990 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | 1081 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
991 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | 1082 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
992 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1083 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
993 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1084 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
994 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1085 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1086 | -chorusos* | -chorusrdb* \ | |
995 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1087 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
996 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 1088 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
997 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | 1089 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
998 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* | -storm-chaos*) | 1090 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1091 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | |
1092 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | |
1093 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) | |
999 # Remember, each alternative MUST END IN *, to match a version number. | 1094 # Remember, each alternative MUST END IN *, to match a version number. |
1000 ;; | 1095 ;; |
1001 -qnx*) | 1096 -qnx*) |
1002 case $basic_machine in | 1097 case $basic_machine in |
1003 x86-* | i[34567]86-*) | 1098 x86-* | i*86-*) |
1004 ;; | 1099 ;; |
1005 *) | 1100 *) |
1006 os=-nto$os | 1101 os=-nto$os |
1007 ;; | 1102 ;; |
1008 esac | 1103 esac |
1045 os=-bsd | 1140 os=-bsd |
1046 ;; | 1141 ;; |
1047 -acis*) | 1142 -acis*) |
1048 os=-aos | 1143 os=-aos |
1049 ;; | 1144 ;; |
1145 -atheos*) | |
1146 os=-atheos | |
1147 ;; | |
1050 -386bsd) | 1148 -386bsd) |
1051 os=-bsd | 1149 os=-bsd |
1052 ;; | 1150 ;; |
1053 -ctix* | -uts*) | 1151 -ctix* | -uts*) |
1054 os=-sysv | 1152 os=-sysv |
1153 ;; | |
1154 -nova*) | |
1155 os=-rtmk-nova | |
1055 ;; | 1156 ;; |
1056 -ns2 ) | 1157 -ns2 ) |
1057 os=-nextstep2 | 1158 os=-nextstep2 |
1058 ;; | 1159 ;; |
1059 -nsk*) | 1160 -nsk*) |
1091 os=-ose | 1192 os=-ose |
1092 ;; | 1193 ;; |
1093 -xenix) | 1194 -xenix) |
1094 os=-xenix | 1195 os=-xenix |
1095 ;; | 1196 ;; |
1096 -*mint | -*MiNT) | 1197 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1097 os=-mint | 1198 os=-mint |
1098 ;; | 1199 ;; |
1099 -none) | 1200 -none) |
1100 ;; | 1201 ;; |
1101 *) | 1202 *) |
1125 os=-linux | 1226 os=-linux |
1126 ;; | 1227 ;; |
1127 arm*-semi) | 1228 arm*-semi) |
1128 os=-aout | 1229 os=-aout |
1129 ;; | 1230 ;; |
1231 # This must come before the *-dec entry. | |
1232 pdp10-*) | |
1233 os=-tops20 | |
1234 ;; | |
1130 pdp11-*) | 1235 pdp11-*) |
1131 os=-none | 1236 os=-none |
1132 ;; | 1237 ;; |
1133 *-dec | vax-*) | 1238 *-dec | vax-*) |
1134 os=-ultrix4.2 | 1239 os=-ultrix4.2 |
1152 os=-elf | 1257 os=-elf |
1153 ;; | 1258 ;; |
1154 mips*-*) | 1259 mips*-*) |
1155 os=-elf | 1260 os=-elf |
1156 ;; | 1261 ;; |
1262 or32-*) | |
1263 os=-coff | |
1264 ;; | |
1157 *-tti) # must be before sparc entry or we get the wrong os. | 1265 *-tti) # must be before sparc entry or we get the wrong os. |
1158 os=-sysv3 | 1266 os=-sysv3 |
1159 ;; | 1267 ;; |
1160 sparc-* | *-sun) | 1268 sparc-* | *-sun) |
1161 os=-sunos4.1.1 | 1269 os=-sunos4.1.1 |
1233 os=-sysv4 | 1341 os=-sysv4 |
1234 ;; | 1342 ;; |
1235 *-masscomp) | 1343 *-masscomp) |
1236 os=-rtu | 1344 os=-rtu |
1237 ;; | 1345 ;; |
1238 f301-fujitsu) | 1346 f30[01]-fujitsu | f700-fujitsu) |
1239 os=-uxpv | 1347 os=-uxpv |
1240 ;; | 1348 ;; |
1241 *-rom68k) | 1349 *-rom68k) |
1242 os=-coff | 1350 os=-coff |
1243 ;; | 1351 ;; |
1299 vendor=ibm | 1407 vendor=ibm |
1300 ;; | 1408 ;; |
1301 -ptx*) | 1409 -ptx*) |
1302 vendor=sequent | 1410 vendor=sequent |
1303 ;; | 1411 ;; |
1304 -vxsim* | -vxworks*) | 1412 -vxsim* | -vxworks* | -windiss*) |
1305 vendor=wrs | 1413 vendor=wrs |
1306 ;; | 1414 ;; |
1307 -aux*) | 1415 -aux*) |
1308 vendor=apple | 1416 vendor=apple |
1309 ;; | 1417 ;; |
1311 vendor=hitachi | 1419 vendor=hitachi |
1312 ;; | 1420 ;; |
1313 -mpw* | -macos*) | 1421 -mpw* | -macos*) |
1314 vendor=apple | 1422 vendor=apple |
1315 ;; | 1423 ;; |
1316 -*mint | -*MiNT) | 1424 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1317 vendor=atari | 1425 vendor=atari |
1426 ;; | |
1427 -vos*) | |
1428 vendor=stratus | |
1318 ;; | 1429 ;; |
1319 esac | 1430 esac |
1320 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1431 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1321 ;; | 1432 ;; |
1322 esac | 1433 esac |
1324 echo $basic_machine$os | 1435 echo $basic_machine$os |
1325 exit 0 | 1436 exit 0 |
1326 | 1437 |
1327 # Local variables: | 1438 # Local variables: |
1328 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1439 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1329 # time-stamp-start: "version='" | 1440 # time-stamp-start: "timestamp='" |
1330 # time-stamp-format: "%:y-%02m-%02d" | 1441 # time-stamp-format: "%:y-%02m-%02d" |
1331 # time-stamp-end: "'" | 1442 # time-stamp-end: "'" |
1332 # End: | 1443 # End: |