Mercurial > sdl-ios-xcode
comparison config.sub @ 53:25dfe480c75e
Added MacOS X Project Builder projects
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 10 Jun 2001 18:20:23 +0000 |
parents | 6e53ad1f461e |
children | dac996d69abb |
comparison
equal
deleted
inserted
replaced
52:3f344be3301b | 53:25dfe480c75e |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Configuration validation subroutine script, version 1.1. | 2 # Configuration validation subroutine script. |
3 # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
4 # Free Software Foundation, Inc. | |
5 | |
6 timestamp='2001-03-19' | |
7 | |
4 # This file is (in principle) common to ALL GNU software. | 8 # This file is (in principle) common to ALL GNU software. |
5 # 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 |
6 # 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. |
7 # | 11 # |
8 # This file is free software; you can redistribute it and/or modify | 12 # This file is free software; you can redistribute it and/or modify |
23 # 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 |
24 # distribute this file as part of a program that contains a | 28 # distribute this file as part of a program that contains a |
25 # configuration script generated by Autoconf, you may include it under | 29 # configuration script generated by Autoconf, you may include it under |
26 # 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. |
27 | 31 |
32 # Please send patches to <config-patches@gnu.org>. | |
33 # | |
28 # Configuration subroutine to validate and canonicalize a configuration type. | 34 # Configuration subroutine to validate and canonicalize a configuration type. |
29 # Supply the specified configuration type as an argument. | 35 # Supply the specified configuration type as an argument. |
30 # If it is invalid, we print an error message on stderr and exit with code 1. | 36 # If it is invalid, we print an error message on stderr and exit with code 1. |
31 # Otherwise, we print the canonical config type on stdout and succeed. | 37 # Otherwise, we print the canonical config type on stdout and succeed. |
32 | 38 |
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | 49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
44 # or in some cases, the newer four-part form: | 50 # or in some cases, the newer four-part form: |
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | 51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
46 # It is wrong to echo any other type of specification. | 52 # It is wrong to echo any other type of specification. |
47 | 53 |
48 if [ x$1 = x ] | 54 me=`echo "$0" | sed -e 's,.*/,,'` |
49 then | 55 |
50 echo Configuration name missing. 1>&2 | 56 usage="\ |
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 | 57 Usage: $0 [OPTION] CPU-MFR-OPSYS |
52 echo "or $0 ALIAS" 1>&2 | 58 $0 [OPTION] ALIAS |
53 echo where ALIAS is a recognized configuration type. 1>&2 | 59 |
54 exit 1 | 60 Canonicalize a configuration name. |
55 fi | 61 |
56 | 62 Operation modes: |
57 # First pass through any local machine types. | 63 -h, --help print this help, then exit |
58 case $1 in | 64 -t, --time-stamp print date of last modification, then exit |
59 *local*) | 65 -v, --version print version number, then exit |
60 echo $1 | 66 |
61 exit 0 | 67 Report bugs and patches to <config-patches@gnu.org>." |
62 ;; | 68 |
63 *) | 69 version="\ |
64 ;; | 70 GNU config.sub ($timestamp) |
71 | |
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 | |
73 Free Software Foundation, Inc. | |
74 | |
75 This is free software; see the source for copying conditions. There is NO | |
76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
77 | |
78 help=" | |
79 Try \`$me --help' for more information." | |
80 | |
81 # Parse command line | |
82 while test $# -gt 0 ; do | |
83 case $1 in | |
84 --time-stamp | --time* | -t ) | |
85 echo "$timestamp" ; exit 0 ;; | |
86 --version | -v ) | |
87 echo "$version" ; exit 0 ;; | |
88 --help | --h* | -h ) | |
89 echo "$usage"; exit 0 ;; | |
90 -- ) # Stop option processing | |
91 shift; break ;; | |
92 - ) # Use stdin as input. | |
93 break ;; | |
94 -* ) | |
95 echo "$me: invalid option $1$help" | |
96 exit 1 ;; | |
97 | |
98 *local*) | |
99 # First pass through any local machine types. | |
100 echo $1 | |
101 exit 0;; | |
102 | |
103 * ) | |
104 break ;; | |
105 esac | |
106 done | |
107 | |
108 case $# in | |
109 0) echo "$me: missing argument$help" >&2 | |
110 exit 1;; | |
111 1) ;; | |
112 *) echo "$me: too many arguments$help" >&2 | |
113 exit 1;; | |
65 esac | 114 esac |
66 | 115 |
67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | 116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
68 # Here we must recognize all the valid KERNEL-OS combinations. | 117 # Here we must recognize all the valid KERNEL-OS combinations. |
69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
70 case $maybe_os in | 119 case $maybe_os in |
71 linux-gnu*) | 120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) |
72 os=-$maybe_os | 121 os=-$maybe_os |
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
74 ;; | 123 ;; |
75 *) | 124 *) |
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 125 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | 141 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | 142 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | 143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | 144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
97 -apple) | 146 -apple | -axis) |
98 os= | 147 os= |
99 basic_machine=$1 | 148 basic_machine=$1 |
100 ;; | 149 ;; |
101 -sim | -cisco | -oki | -wec | -winbond) | 150 -sim | -cisco | -oki | -wec | -winbond) |
102 os= | 151 os= |
103 basic_machine=$1 | 152 basic_machine=$1 |
104 ;; | 153 ;; |
105 -scout) | 154 -scout) |
106 ;; | 155 ;; |
107 -wrs) | 156 -wrs) |
108 os=vxworks | 157 os=-vxworks |
109 basic_machine=$1 | 158 basic_machine=$1 |
110 ;; | 159 ;; |
111 -hiux*) | 160 -hiux*) |
112 os=-hiuxwe2 | 161 os=-hiuxwe2 |
113 ;; | 162 ;; |
153 -windowsnt*) | 202 -windowsnt*) |
154 os=`echo $os | sed -e 's/windowsnt/winnt/'` | 203 os=`echo $os | sed -e 's/windowsnt/winnt/'` |
155 ;; | 204 ;; |
156 -psos*) | 205 -psos*) |
157 os=-psos | 206 os=-psos |
207 ;; | |
208 -mint | -mint[0-9]*) | |
209 basic_machine=m68k-atari | |
210 os=-mint | |
158 ;; | 211 ;; |
159 esac | 212 esac |
160 | 213 |
161 # Decode aliases for certain CPU-COMPANY combinations. | 214 # Decode aliases for certain CPU-COMPANY combinations. |
162 case $basic_machine in | 215 case $basic_machine in |
163 # Recognize the basic CPU types without company name. | 216 # Recognize the basic CPU types without company name. |
164 # Some are omitted here because they have special meanings below. | 217 # Some are omitted here because they have special meanings below. |
165 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | 218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ |
166 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ |
220 | pyramid | mn10200 | mn10300 | tron | a29k \ | |
167 | 580 | i960 | h8300 \ | 221 | 580 | i960 | h8300 \ |
222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ | |
168 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
169 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ | 224 | hppa64 \ |
170 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | 225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
171 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ | 226 | alphaev6[78] \ |
227 | we32k | ns16k | clipper | i370 | sh | sh[34] \ | |
228 | powerpc | powerpcle \ | |
229 | 1750a | dsp16xx | pdp10 | pdp11 \ | |
230 | mips16 | mips64 | mipsel | mips64el \ | |
172 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | 231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
173 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | 232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
174 | mips64vr5000 | miprs64vr5000el \ | 233 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ |
175 | armv[34][lb] | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | 234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
176 | thumb | d10v) | 235 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ |
236 | pj | pjl | h8500) | |
177 basic_machine=$basic_machine-unknown | 237 basic_machine=$basic_machine-unknown |
178 ;; | 238 ;; |
179 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) | 239 m6811 | m68hc11 | m6812 | m68hc12) |
240 # Motorola 68HC11/12. | |
241 basic_machine=$basic_machine-unknown | |
242 os=-none | |
243 ;; | |
244 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65) | |
180 ;; | 245 ;; |
181 | 246 |
182 # We use `pc' rather than `unknown' | 247 # We use `pc' rather than `unknown' |
183 # because (1) that's what they normally are, and | 248 # because (1) that's what they normally are, and |
184 # (2) the word "unknown" tends to confuse beginning users. | 249 # (2) the word "unknown" tends to confuse beginning users. |
185 i[34567]86) | 250 i[234567]86 | x86_64) |
186 basic_machine=$basic_machine-pc | 251 basic_machine=$basic_machine-pc |
187 ;; | 252 ;; |
188 # Object if more than one company name word. | 253 # Object if more than one company name word. |
189 *-*-*) | 254 *-*-*) |
190 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 255 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
191 exit 1 | 256 exit 1 |
192 ;; | 257 ;; |
193 # Recognize the basic CPU types with company name. | 258 # Recognize the basic CPU types with company name. |
194 vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ | 259 # FIXME: clean up the formatting here. |
195 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | 260 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
261 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ | |
262 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ | |
196 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 263 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
197 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 264 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
198 | xmp-* | ymp-* \ | 265 | xmp-* | ymp-* \ |
199 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ | 266 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ |
200 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ | 267 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
268 | hppa2.0n-* | hppa64-* \ | |
269 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ | |
270 | alphaev6[78]-* \ | |
201 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | 271 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
202 | clipper-* | orion-* \ | 272 | clipper-* | orion-* \ |
203 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 273 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
204 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 274 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
205 | mips64el-* | mips64orion-* | mips64orionel-* \ | 275 | mips64el-* | mips64orion-* | mips64orionel-* \ |
206 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 276 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
207 | mipstx39-* | mipstx39el-* \ | 277 | mipstx39-* | mipstx39el-* | mcore-* \ |
208 | armv[34][lb]-* \ | 278 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ |
209 | f301-* | armv*-* | t3e-* \ | 279 | [cjt]90-* \ |
210 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | 280 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
211 | thumb-* | v850-* | d30v-* | tic30-* | c30-* ) | 281 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ |
282 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) | |
212 ;; | 283 ;; |
213 # Recognize the various machine names and aliases which stand | 284 # Recognize the various machine names and aliases which stand |
214 # for a CPU type and a company and sometimes even an OS. | 285 # for a CPU type and a company and sometimes even an OS. |
215 386bsd) | 286 386bsd) |
216 basic_machine=i386-unknown | 287 basic_machine=i386-unknown |
243 amdahl) | 314 amdahl) |
244 basic_machine=580-amdahl | 315 basic_machine=580-amdahl |
245 os=-sysv | 316 os=-sysv |
246 ;; | 317 ;; |
247 amiga | amiga-*) | 318 amiga | amiga-*) |
248 basic_machine=m68k-cbm | 319 basic_machine=m68k-unknown |
249 ;; | 320 ;; |
250 amigaos | amigados) | 321 amigaos | amigados) |
251 basic_machine=m68k-cbm | 322 basic_machine=m68k-unknown |
252 os=-amigaos | 323 os=-amigaos |
253 ;; | 324 ;; |
254 amigaunix | amix) | 325 amigaunix | amix) |
255 basic_machine=m68k-cbm | 326 basic_machine=m68k-unknown |
256 os=-sysv4 | 327 os=-sysv4 |
257 ;; | 328 ;; |
258 apollo68) | 329 apollo68) |
259 basic_machine=m68k-apollo | 330 basic_machine=m68k-apollo |
260 os=-sysv | 331 os=-sysv |
297 ;; | 368 ;; |
298 cray2) | 369 cray2) |
299 basic_machine=cray2-cray | 370 basic_machine=cray2-cray |
300 os=-unicos | 371 os=-unicos |
301 ;; | 372 ;; |
302 [ctj]90-cray) | 373 [cjt]90) |
303 basic_machine=c90-cray | 374 basic_machine=${basic_machine}-cray |
304 os=-unicos | 375 os=-unicos |
305 ;; | 376 ;; |
306 crds | unos) | 377 crds | unos) |
307 basic_machine=m68k-crds | 378 basic_machine=m68k-crds |
379 ;; | |
380 cris | cris-* | etrax*) | |
381 basic_machine=cris-axis | |
308 ;; | 382 ;; |
309 da30 | da30-*) | 383 da30 | da30-*) |
310 basic_machine=m68k-da30 | 384 basic_machine=m68k-da30 |
311 ;; | 385 ;; |
312 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | 386 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
351 ;; | 425 ;; |
352 gmicro) | 426 gmicro) |
353 basic_machine=tron-gmicro | 427 basic_machine=tron-gmicro |
354 os=-sysv | 428 os=-sysv |
355 ;; | 429 ;; |
430 go32) | |
431 basic_machine=i386-pc | |
432 os=-go32 | |
433 ;; | |
356 h3050r* | hiux*) | 434 h3050r* | hiux*) |
357 basic_machine=hppa1.1-hitachi | 435 basic_machine=hppa1.1-hitachi |
358 os=-hiuxwe2 | 436 os=-hiuxwe2 |
359 ;; | 437 ;; |
360 h8300hms) | 438 h8300hms) |
424 basic_machine=hppa1.1-hp | 502 basic_machine=hppa1.1-hp |
425 os=-proelf | 503 os=-proelf |
426 ;; | 504 ;; |
427 i370-ibm* | ibm*) | 505 i370-ibm* | ibm*) |
428 basic_machine=i370-ibm | 506 basic_machine=i370-ibm |
429 os=-mvs | |
430 ;; | 507 ;; |
431 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 508 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
432 i[34567]86v32) | 509 i[34567]86v32) |
433 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 510 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
434 os=-sysv32 | 511 os=-sysv32 |
450 os=-mach | 527 os=-mach |
451 ;; | 528 ;; |
452 i386-vsta | vsta) | 529 i386-vsta | vsta) |
453 basic_machine=i386-unknown | 530 basic_machine=i386-unknown |
454 os=-vsta | 531 os=-vsta |
455 ;; | |
456 i386-go32 | go32) | |
457 basic_machine=i386-unknown | |
458 os=-go32 | |
459 ;; | |
460 i386-mingw32 | mingw32) | |
461 basic_machine=i386-unknown | |
462 os=-mingw32 | |
463 ;; | 532 ;; |
464 iris | iris4d) | 533 iris | iris4d) |
465 basic_machine=mips-sgi | 534 basic_machine=mips-sgi |
466 case $os in | 535 case $os in |
467 -irix*) | 536 -irix*) |
484 ;; | 553 ;; |
485 merlin) | 554 merlin) |
486 basic_machine=ns32k-utek | 555 basic_machine=ns32k-utek |
487 os=-sysv | 556 os=-sysv |
488 ;; | 557 ;; |
558 mingw32) | |
559 basic_machine=i386-pc | |
560 os=-mingw32 | |
561 ;; | |
489 miniframe) | 562 miniframe) |
490 basic_machine=m68000-convergent | 563 basic_machine=m68000-convergent |
491 ;; | 564 ;; |
492 *mint | *MiNT) | 565 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
493 basic_machine=m68k-atari | 566 basic_machine=m68k-atari |
494 os=-mint | 567 os=-mint |
495 ;; | 568 ;; |
496 mipsel*-linux*) | 569 mipsel*-linux*) |
497 basic_machine=mipsel-unknown | 570 basic_machine=mipsel-unknown |
505 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | 578 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
506 ;; | 579 ;; |
507 mips3*) | 580 mips3*) |
508 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | 581 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
509 ;; | 582 ;; |
583 mmix*) | |
584 basic_machine=mmix-knuth | |
585 os=-mmixware | |
586 ;; | |
510 monitor) | 587 monitor) |
511 basic_machine=m68k-rom68k | 588 basic_machine=m68k-rom68k |
512 os=-coff | 589 os=-coff |
513 ;; | 590 ;; |
514 msdos) | 591 msdos) |
515 basic_machine=i386-unknown | 592 basic_machine=i386-pc |
516 os=-msdos | 593 os=-msdos |
594 ;; | |
595 mvs) | |
596 basic_machine=i370-ibm | |
597 os=-mvs | |
517 ;; | 598 ;; |
518 ncr3000) | 599 ncr3000) |
519 basic_machine=i486-ncr | 600 basic_machine=i486-ncr |
520 os=-sysv4 | 601 os=-sysv4 |
521 ;; | 602 ;; |
522 netbsd386) | 603 netbsd386) |
523 basic_machine=i386-unknown | 604 basic_machine=i386-unknown |
524 os=-netbsd | 605 os=-netbsd |
525 ;; | 606 ;; |
526 netwinder) | 607 netwinder) |
527 basic_machine=armv4l-corel | 608 basic_machine=armv4l-rebel |
528 os=-linux | 609 os=-linux |
529 ;; | 610 ;; |
530 news | news700 | news800 | news900) | 611 news | news700 | news800 | news900) |
531 basic_machine=m68k-sony | 612 basic_machine=m68k-sony |
532 os=-newsos | 613 os=-newsos |
570 ;; | 651 ;; |
571 mon960) | 652 mon960) |
572 basic_machine=i960-intel | 653 basic_machine=i960-intel |
573 os=-mon960 | 654 os=-mon960 |
574 ;; | 655 ;; |
656 nonstopux) | |
657 basic_machine=mips-compaq | |
658 os=-nonstopux | |
659 ;; | |
575 np1) | 660 np1) |
576 basic_machine=np1-gould | 661 basic_machine=np1-gould |
662 ;; | |
663 nsr-tandem) | |
664 basic_machine=nsr-tandem | |
577 ;; | 665 ;; |
578 op50n-* | op60c-*) | 666 op50n-* | op60c-*) |
579 basic_machine=hppa1.1-oki | 667 basic_machine=hppa1.1-oki |
580 os=-proelf | 668 os=-proelf |
581 ;; | 669 ;; |
602 basic_machine=m68k-tti | 690 basic_machine=m68k-tti |
603 ;; | 691 ;; |
604 pc532 | pc532-*) | 692 pc532 | pc532-*) |
605 basic_machine=ns32k-pc532 | 693 basic_machine=ns32k-pc532 |
606 ;; | 694 ;; |
607 pentium | p5 | k5 | k6 | nexen) | 695 pentium | p5 | k5 | k6 | nexgen) |
608 basic_machine=i586-pc | 696 basic_machine=i586-pc |
609 ;; | 697 ;; |
610 pentiumpro | p6 | 6x86) | 698 pentiumpro | p6 | 6x86 | athlon) |
611 basic_machine=i686-pc | 699 basic_machine=i686-pc |
612 ;; | 700 ;; |
613 pentiumii | pentium2) | 701 pentiumii | pentium2) |
614 basic_machine=i786-pc | 702 basic_machine=i686-pc |
615 ;; | 703 ;; |
616 pentium-* | p5-* | k5-* | k6-* | nexen-*) | 704 pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
617 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | 705 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
618 ;; | 706 ;; |
619 pentiumpro-* | p6-* | 6x86-*) | 707 pentiumpro-* | p6-* | 6x86-* | athlon-*) |
620 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | 708 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
621 ;; | 709 ;; |
622 pentiumii-* | pentium2-*) | 710 pentiumii-* | pentium2-*) |
623 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | 711 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
624 ;; | 712 ;; |
625 pn) | 713 pn) |
626 basic_machine=pn-gould | 714 basic_machine=pn-gould |
627 ;; | 715 ;; |
628 power) basic_machine=rs6000-ibm | 716 power) basic_machine=power-ibm |
629 ;; | 717 ;; |
630 ppc) basic_machine=powerpc-unknown | 718 ppc) basic_machine=powerpc-unknown |
631 ;; | 719 ;; |
632 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 720 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
633 ;; | 721 ;; |
638 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | 726 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
639 ;; | 727 ;; |
640 ps2) | 728 ps2) |
641 basic_machine=i386-ibm | 729 basic_machine=i386-ibm |
642 ;; | 730 ;; |
731 pw32) | |
732 basic_machine=i586-unknown | |
733 os=-pw32 | |
734 ;; | |
643 rom68k) | 735 rom68k) |
644 basic_machine=m68k-rom68k | 736 basic_machine=m68k-rom68k |
645 os=-coff | 737 os=-coff |
646 ;; | 738 ;; |
647 rm[46]00) | 739 rm[46]00) |
717 basic_machine=sparc-sun | 809 basic_machine=sparc-sun |
718 ;; | 810 ;; |
719 sun386 | sun386i | roadrunner) | 811 sun386 | sun386i | roadrunner) |
720 basic_machine=i386-sun | 812 basic_machine=i386-sun |
721 ;; | 813 ;; |
814 sv1) | |
815 basic_machine=sv1-cray | |
816 os=-unicos | |
817 ;; | |
722 symmetry) | 818 symmetry) |
723 basic_machine=i386-sequent | 819 basic_machine=i386-sequent |
724 os=-dynix | 820 os=-dynix |
725 ;; | 821 ;; |
726 t3e) | 822 t3e) |
727 basic_machine=t3e-cray | 823 basic_machine=t3e-cray |
728 os=-unicos | 824 os=-unicos |
825 ;; | |
826 tic54x | c54x*) | |
827 basic_machine=tic54x-unknown | |
828 os=-coff | |
729 ;; | 829 ;; |
730 tx39) | 830 tx39) |
731 basic_machine=mipstx39-unknown | 831 basic_machine=mipstx39-unknown |
732 ;; | 832 ;; |
733 tx39el) | 833 tx39el) |
820 basic_machine=rs6000-ibm | 920 basic_machine=rs6000-ibm |
821 ;; | 921 ;; |
822 vax) | 922 vax) |
823 basic_machine=vax-dec | 923 basic_machine=vax-dec |
824 ;; | 924 ;; |
925 pdp10) | |
926 # there are many clones, so DEC is not a safe bet | |
927 basic_machine=pdp10-unknown | |
928 ;; | |
825 pdp11) | 929 pdp11) |
826 basic_machine=pdp11-dec | 930 basic_machine=pdp11-dec |
827 ;; | 931 ;; |
828 we32k) | 932 we32k) |
829 basic_machine=we32k-att | 933 basic_machine=we32k-att |
934 ;; | |
935 sh3 | sh4) | |
936 basic_machine=sh-unknown | |
830 ;; | 937 ;; |
831 sparc | sparcv9) | 938 sparc | sparcv9) |
832 basic_machine=sparc-sun | 939 basic_machine=sparc-sun |
833 ;; | 940 ;; |
834 cydra) | 941 cydra) |
906 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1013 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
907 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1014 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
908 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1015 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
909 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1016 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
910 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 1017 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
911 | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) | 1018 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
1019 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | |
1020 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) | |
912 # Remember, each alternative MUST END IN *, to match a version number. | 1021 # Remember, each alternative MUST END IN *, to match a version number. |
1022 ;; | |
1023 -qnx*) | |
1024 case $basic_machine in | |
1025 x86-* | i[34567]86-*) | |
1026 ;; | |
1027 *) | |
1028 os=-nto$os | |
1029 ;; | |
1030 esac | |
1031 ;; | |
1032 -nto*) | |
1033 os=-nto-qnx | |
913 ;; | 1034 ;; |
914 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | 1035 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
915 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | 1036 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
916 | -macos* | -mpw* | -magic* | -mon960* | -lnews*) | 1037 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
917 ;; | 1038 ;; |
918 -mac*) | 1039 -mac*) |
919 os=`echo $os | sed -e 's|mac|macos|'` | 1040 os=`echo $os | sed -e 's|mac|macos|'` |
920 ;; | 1041 ;; |
921 -linux*) | 1042 -linux*) |
925 os=`echo $os | sed -e 's|sunos5|solaris2|'` | 1046 os=`echo $os | sed -e 's|sunos5|solaris2|'` |
926 ;; | 1047 ;; |
927 -sunos6*) | 1048 -sunos6*) |
928 os=`echo $os | sed -e 's|sunos6|solaris3|'` | 1049 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
929 ;; | 1050 ;; |
1051 -opened*) | |
1052 os=-openedition | |
1053 ;; | |
1054 -wince*) | |
1055 os=-wince | |
1056 ;; | |
930 -osfrose*) | 1057 -osfrose*) |
931 os=-osfrose | 1058 os=-osfrose |
932 ;; | 1059 ;; |
933 -osf*) | 1060 -osf*) |
934 os=-osf | 1061 os=-osf |
948 -ctix* | -uts*) | 1075 -ctix* | -uts*) |
949 os=-sysv | 1076 os=-sysv |
950 ;; | 1077 ;; |
951 -ns2 ) | 1078 -ns2 ) |
952 os=-nextstep2 | 1079 os=-nextstep2 |
1080 ;; | |
1081 -nsk*) | |
1082 os=-nsk | |
953 ;; | 1083 ;; |
954 # Preserve the version number of sinix5. | 1084 # Preserve the version number of sinix5. |
955 -sinix5.*) | 1085 -sinix5.*) |
956 os=`echo $os | sed -e 's|sinix|sysv|'` | 1086 os=`echo $os | sed -e 's|sinix|sysv|'` |
957 ;; | 1087 ;; |
983 os=-ose | 1113 os=-ose |
984 ;; | 1114 ;; |
985 -xenix) | 1115 -xenix) |
986 os=-xenix | 1116 os=-xenix |
987 ;; | 1117 ;; |
988 -*mint | -*MiNT) | 1118 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
989 os=-mint | 1119 os=-mint |
990 ;; | 1120 ;; |
991 -none) | 1121 -none) |
992 ;; | 1122 ;; |
993 *) | 1123 *) |
1011 | 1141 |
1012 case $basic_machine in | 1142 case $basic_machine in |
1013 *-acorn) | 1143 *-acorn) |
1014 os=-riscix1.2 | 1144 os=-riscix1.2 |
1015 ;; | 1145 ;; |
1016 arm*-corel) | 1146 arm*-rebel) |
1017 os=-linux | 1147 os=-linux |
1018 ;; | 1148 ;; |
1019 arm*-semi) | 1149 arm*-semi) |
1020 os=-aout | 1150 os=-aout |
1151 ;; | |
1152 pdp10-*) | |
1153 os=-tops20 | |
1021 ;; | 1154 ;; |
1022 pdp11-*) | 1155 pdp11-*) |
1023 os=-none | 1156 os=-none |
1024 ;; | 1157 ;; |
1025 *-dec | vax-*) | 1158 *-dec | vax-*) |
1125 os=-sysv4 | 1258 os=-sysv4 |
1126 ;; | 1259 ;; |
1127 *-masscomp) | 1260 *-masscomp) |
1128 os=-rtu | 1261 os=-rtu |
1129 ;; | 1262 ;; |
1130 f301-fujitsu) | 1263 f30[01]-fujitsu | f700-fujitsu) |
1131 os=-uxpv | 1264 os=-uxpv |
1132 ;; | 1265 ;; |
1133 *-rom68k) | 1266 *-rom68k) |
1134 os=-coff | 1267 os=-coff |
1135 ;; | 1268 ;; |
1185 vendor=omron | 1318 vendor=omron |
1186 ;; | 1319 ;; |
1187 -genix*) | 1320 -genix*) |
1188 vendor=ns | 1321 vendor=ns |
1189 ;; | 1322 ;; |
1190 -mvs*) | 1323 -mvs* | -opened*) |
1191 vendor=ibm | 1324 vendor=ibm |
1192 ;; | 1325 ;; |
1193 -ptx*) | 1326 -ptx*) |
1194 vendor=sequent | 1327 vendor=sequent |
1195 ;; | 1328 ;; |
1203 vendor=hitachi | 1336 vendor=hitachi |
1204 ;; | 1337 ;; |
1205 -mpw* | -macos*) | 1338 -mpw* | -macos*) |
1206 vendor=apple | 1339 vendor=apple |
1207 ;; | 1340 ;; |
1208 -*mint | -*MiNT) | 1341 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1209 vendor=atari | 1342 vendor=atari |
1210 ;; | 1343 ;; |
1211 esac | 1344 esac |
1212 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1345 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1213 ;; | 1346 ;; |
1214 esac | 1347 esac |
1215 | 1348 |
1216 echo $basic_machine$os | 1349 echo $basic_machine$os |
1350 exit 0 | |
1351 | |
1352 # Local variables: | |
1353 # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1354 # time-stamp-start: "timestamp='" | |
1355 # time-stamp-format: "%:y-%02m-%02d" | |
1356 # time-stamp-end: "'" | |
1357 # End: |