1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script. |
2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
4 | # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
5 | |
5 | |
6 | timestamp='2005-07-08' |
6 | timestamp='2004-03-12' |
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 | # |
… | |
… | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | # GNU General Public License for more details. |
20 | # GNU General Public License for more details. |
21 | # |
21 | # |
22 | # You should have received a copy of the GNU General Public License |
22 | # You should have received a copy of the GNU General Public License |
23 | # along with this program; if not, write to the Free Software |
23 | # along with this program; if not, write to the Free Software |
24 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
24 | # Foundation, Inc., 59 Temple Place - Suite 330, |
25 | # 02110-1301, USA. |
25 | # Boston, MA 02111-1307, USA. |
26 | # |
26 | |
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 | |
|
|
32 | |
31 | |
33 | # Please send patches to <config-patches@gnu.org>. Submit a context |
32 | # Please send patches to <config-patches@gnu.org>. Submit a context |
34 | # diff and a properly formatted ChangeLog entry. |
33 | # diff and a properly formatted ChangeLog entry. |
35 | # |
34 | # |
36 | # Configuration subroutine to validate and canonicalize a configuration type. |
35 | # Configuration subroutine to validate and canonicalize a configuration type. |
… | |
… | |
69 | Report bugs and patches to <config-patches@gnu.org>." |
68 | Report bugs and patches to <config-patches@gnu.org>." |
70 | |
69 | |
71 | version="\ |
70 | version="\ |
72 | GNU config.sub ($timestamp) |
71 | GNU config.sub ($timestamp) |
73 | |
72 | |
74 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
73 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
75 | Free Software Foundation, Inc. |
74 | Free Software Foundation, Inc. |
76 | |
75 | |
77 | This is free software; see the source for copying conditions. There is NO |
76 | This is free software; see the source for copying conditions. There is NO |
78 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
77 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
79 | |
78 | |
… | |
… | |
82 | |
81 | |
83 | # Parse command line |
82 | # Parse command line |
84 | while test $# -gt 0 ; do |
83 | while test $# -gt 0 ; do |
85 | case $1 in |
84 | case $1 in |
86 | --time-stamp | --time* | -t ) |
85 | --time-stamp | --time* | -t ) |
87 | echo "$timestamp" ; exit ;; |
86 | echo "$timestamp" ; exit 0 ;; |
88 | --version | -v ) |
87 | --version | -v ) |
89 | echo "$version" ; exit ;; |
88 | echo "$version" ; exit 0 ;; |
90 | --help | --h* | -h ) |
89 | --help | --h* | -h ) |
91 | echo "$usage"; exit ;; |
90 | echo "$usage"; exit 0 ;; |
92 | -- ) # Stop option processing |
91 | -- ) # Stop option processing |
93 | shift; break ;; |
92 | shift; break ;; |
94 | - ) # Use stdin as input. |
93 | - ) # Use stdin as input. |
95 | break ;; |
94 | break ;; |
96 | -* ) |
95 | -* ) |
… | |
… | |
98 | exit 1 ;; |
97 | exit 1 ;; |
99 | |
98 | |
100 | *local*) |
99 | *local*) |
101 | # First pass through any local machine types. |
100 | # First pass through any local machine types. |
102 | echo $1 |
101 | echo $1 |
103 | exit ;; |
102 | exit 0;; |
104 | |
103 | |
105 | * ) |
104 | * ) |
106 | break ;; |
105 | break ;; |
107 | esac |
106 | esac |
108 | done |
107 | done |
… | |
… | |
144 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
143 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
145 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
144 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
146 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
145 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
147 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
146 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
148 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
147 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
149 | -apple | -axis | -knuth | -cray) |
148 | -apple | -axis) |
150 | os= |
149 | os= |
151 | basic_machine=$1 |
150 | basic_machine=$1 |
152 | ;; |
151 | ;; |
153 | -sim | -cisco | -oki | -wec | -winbond) |
152 | -sim | -cisco | -oki | -wec | -winbond) |
154 | os= |
153 | os= |
… | |
… | |
230 | | a29k \ |
229 | | a29k \ |
231 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
232 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
233 | | am33_2.0 \ |
232 | | am33_2.0 \ |
234 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
233 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
235 | | bfin \ |
|
|
236 | | c4x | clipper \ |
234 | | c4x | clipper \ |
237 | | d10v | d30v | dlx | dsp16xx \ |
235 | | d10v | d30v | dlx | dsp16xx \ |
238 | | fr30 | frv \ |
236 | | fr30 | frv \ |
239 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
237 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
240 | | i370 | i860 | i960 | ia64 \ |
238 | | i370 | i860 | i960 | ia64 \ |
241 | | ip2k | iq2000 \ |
239 | | ip2k | iq2000 \ |
242 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
240 | | m32r | m32rle | m68000 | m68k | m88k | mcore \ |
243 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
241 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
244 | | mips16 \ |
242 | | mips16 \ |
245 | | mips64 | mips64el \ |
243 | | mips64 | mips64el \ |
246 | | mips64vr | mips64vrel \ |
244 | | mips64vr | mips64vrel \ |
247 | | mips64orion | mips64orionel \ |
245 | | mips64orion | mips64orionel \ |
248 | | mips64vr4100 | mips64vr4100el \ |
246 | | mips64vr4100 | mips64vr4100el \ |
249 | | mips64vr4300 | mips64vr4300el \ |
247 | | mips64vr4300 | mips64vr4300el \ |
250 | | mips64vr5000 | mips64vr5000el \ |
248 | | mips64vr5000 | mips64vr5000el \ |
251 | | mips64vr5900 | mips64vr5900el \ |
|
|
252 | | mipsisa32 | mipsisa32el \ |
249 | | mipsisa32 | mipsisa32el \ |
253 | | mipsisa32r2 | mipsisa32r2el \ |
250 | | mipsisa32r2 | mipsisa32r2el \ |
254 | | mipsisa64 | mipsisa64el \ |
251 | | mipsisa64 | mipsisa64el \ |
255 | | mipsisa64r2 | mipsisa64r2el \ |
252 | | mipsisa64r2 | mipsisa64r2el \ |
256 | | mipsisa64sb1 | mipsisa64sb1el \ |
253 | | mipsisa64sb1 | mipsisa64sb1el \ |
257 | | mipsisa64sr71k | mipsisa64sr71kel \ |
254 | | mipsisa64sr71k | mipsisa64sr71kel \ |
258 | | mipstx39 | mipstx39el \ |
255 | | mipstx39 | mipstx39el \ |
259 | | mn10200 | mn10300 \ |
256 | | mn10200 | mn10300 \ |
260 | | ms1 \ |
|
|
261 | | msp430 \ |
257 | | msp430 \ |
262 | | ns16k | ns32k \ |
258 | | ns16k | ns32k \ |
263 | | or32 \ |
259 | | openrisc | or32 \ |
264 | | pdp10 | pdp11 | pj | pjl \ |
260 | | pdp10 | pdp11 | pj | pjl \ |
265 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
261 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
266 | | pyramid \ |
262 | | pyramid \ |
267 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
263 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
268 | | sh64 | sh64le \ |
264 | | sh64 | sh64le \ |
269 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
265 | | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ |
270 | | sparcv8 | sparcv9 | sparcv9b \ |
|
|
271 | | strongarm \ |
266 | | strongarm \ |
272 | | tahoe | thumb | tic4x | tic80 | tron \ |
267 | | tahoe | thumb | tic4x | tic80 | tron \ |
273 | | v850 | v850e \ |
268 | | v850 | v850e \ |
274 | | we32k \ |
269 | | we32k \ |
275 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
270 | | x86 | xscale | xstormy16 | xtensa \ |
276 | | z8k) |
271 | | z8k) |
277 | basic_machine=$basic_machine-unknown |
|
|
278 | ;; |
|
|
279 | m32c) |
|
|
280 | basic_machine=$basic_machine-unknown |
272 | basic_machine=$basic_machine-unknown |
281 | ;; |
273 | ;; |
282 | m6811 | m68hc11 | m6812 | m68hc12) |
274 | m6811 | m68hc11 | m6812 | m68hc12) |
283 | # Motorola 68HC11/12. |
275 | # Motorola 68HC11/12. |
284 | basic_machine=$basic_machine-unknown |
276 | basic_machine=$basic_machine-unknown |
… | |
… | |
304 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
296 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
305 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
297 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
306 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
298 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
307 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
299 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
308 | | avr-* \ |
300 | | avr-* \ |
309 | | bfin-* | bs2000-* \ |
301 | | bs2000-* \ |
310 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
302 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
311 | | clipper-* | craynv-* | cydra-* \ |
303 | | clipper-* | cydra-* \ |
312 | | d10v-* | d30v-* | dlx-* \ |
304 | | d10v-* | d30v-* | dlx-* \ |
313 | | elxsi-* \ |
305 | | elxsi-* \ |
314 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
306 | | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ |
315 | | h8300-* | h8500-* \ |
307 | | h8300-* | h8500-* \ |
316 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
308 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
317 | | i*86-* | i860-* | i960-* | ia64-* \ |
309 | | i*86-* | i860-* | i960-* | ia64-* \ |
318 | | ip2k-* | iq2000-* \ |
310 | | ip2k-* | iq2000-* \ |
319 | | m32r-* | m32rle-* \ |
311 | | m32r-* | m32rle-* \ |
320 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
312 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
321 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
313 | | m88110-* | m88k-* | mcore-* \ |
322 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
314 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
323 | | mips16-* \ |
315 | | mips16-* \ |
324 | | mips64-* | mips64el-* \ |
316 | | mips64-* | mips64el-* \ |
325 | | mips64vr-* | mips64vrel-* \ |
317 | | mips64vr-* | mips64vrel-* \ |
326 | | mips64orion-* | mips64orionel-* \ |
318 | | mips64orion-* | mips64orionel-* \ |
327 | | mips64vr4100-* | mips64vr4100el-* \ |
319 | | mips64vr4100-* | mips64vr4100el-* \ |
328 | | mips64vr4300-* | mips64vr4300el-* \ |
320 | | mips64vr4300-* | mips64vr4300el-* \ |
329 | | mips64vr5000-* | mips64vr5000el-* \ |
321 | | mips64vr5000-* | mips64vr5000el-* \ |
330 | | mips64vr5900-* | mips64vr5900el-* \ |
|
|
331 | | mipsisa32-* | mipsisa32el-* \ |
322 | | mipsisa32-* | mipsisa32el-* \ |
332 | | mipsisa32r2-* | mipsisa32r2el-* \ |
323 | | mipsisa32r2-* | mipsisa32r2el-* \ |
333 | | mipsisa64-* | mipsisa64el-* \ |
324 | | mipsisa64-* | mipsisa64el-* \ |
334 | | mipsisa64r2-* | mipsisa64r2el-* \ |
325 | | mipsisa64r2-* | mipsisa64r2el-* \ |
335 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
326 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
336 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
327 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
337 | | mipstx39-* | mipstx39el-* \ |
328 | | mipstx39-* | mipstx39el-* \ |
338 | | mmix-* \ |
|
|
339 | | ms1-* \ |
|
|
340 | | msp430-* \ |
329 | | msp430-* \ |
341 | | none-* | np1-* | ns16k-* | ns32k-* \ |
330 | | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ |
342 | | orion-* \ |
331 | | orion-* \ |
343 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
332 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
344 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
333 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
345 | | pyramid-* \ |
334 | | pyramid-* \ |
346 | | romp-* | rs6000-* \ |
335 | | romp-* | rs6000-* \ |
347 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
336 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
348 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
337 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
349 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
338 | | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
350 | | sparclite-* \ |
|
|
351 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
339 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
352 | | tahoe-* | thumb-* \ |
340 | | tahoe-* | thumb-* \ |
353 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
341 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
354 | | tron-* \ |
342 | | tron-* \ |
355 | | v850-* | v850e-* | vax-* \ |
343 | | v850-* | v850e-* | vax-* \ |
356 | | we32k-* \ |
344 | | we32k-* \ |
357 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
345 | | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
358 | | xstormy16-* | xtensa-* \ |
346 | | xtensa-* \ |
359 | | ymp-* \ |
347 | | ymp-* \ |
360 | | z8k-*) |
348 | | z8k-*) |
361 | ;; |
|
|
362 | m32c-*) |
|
|
363 | ;; |
349 | ;; |
364 | # Recognize the various machine names and aliases which stand |
350 | # Recognize the various machine names and aliases which stand |
365 | # for a CPU type and a company and sometimes even an OS. |
351 | # for a CPU type and a company and sometimes even an OS. |
366 | 386bsd) |
352 | 386bsd) |
367 | basic_machine=i386-unknown |
353 | basic_machine=i386-unknown |
… | |
… | |
457 | ;; |
443 | ;; |
458 | cray | j90) |
444 | cray | j90) |
459 | basic_machine=j90-cray |
445 | basic_machine=j90-cray |
460 | os=-unicos |
446 | os=-unicos |
461 | ;; |
447 | ;; |
462 | craynv) |
|
|
463 | basic_machine=craynv-cray |
|
|
464 | os=-unicosmp |
|
|
465 | ;; |
|
|
466 | cr16c) |
448 | cr16c) |
467 | basic_machine=cr16c-unknown |
449 | basic_machine=cr16c-unknown |
468 | os=-elf |
450 | os=-elf |
469 | ;; |
451 | ;; |
470 | crds | unos) |
452 | crds | unos) |
471 | basic_machine=m68k-crds |
453 | basic_machine=m68k-crds |
472 | ;; |
454 | ;; |
473 | crisv32 | crisv32-* | etraxfs*) |
|
|
474 | basic_machine=crisv32-axis |
|
|
475 | ;; |
|
|
476 | cris | cris-* | etrax*) |
455 | cris | cris-* | etrax*) |
477 | basic_machine=cris-axis |
456 | basic_machine=cris-axis |
478 | ;; |
457 | ;; |
479 | crx) |
458 | crx) |
480 | basic_machine=crx-unknown |
459 | basic_machine=crx-unknown |
… | |
… | |
499 | basic_machine=m68k-motorola |
478 | basic_machine=m68k-motorola |
500 | ;; |
479 | ;; |
501 | delta88) |
480 | delta88) |
502 | basic_machine=m88k-motorola |
481 | basic_machine=m88k-motorola |
503 | os=-sysv3 |
482 | os=-sysv3 |
504 | ;; |
|
|
505 | djgpp) |
|
|
506 | basic_machine=i586-pc |
|
|
507 | os=-msdosdjgpp |
|
|
508 | ;; |
483 | ;; |
509 | dpx20 | dpx20-*) |
484 | dpx20 | dpx20-*) |
510 | basic_machine=rs6000-bull |
485 | basic_machine=rs6000-bull |
511 | os=-bosx |
486 | os=-bosx |
512 | ;; |
487 | ;; |
… | |
… | |
681 | mips3*-*) |
656 | mips3*-*) |
682 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
657 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
683 | ;; |
658 | ;; |
684 | mips3*) |
659 | mips3*) |
685 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
660 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
|
|
661 | ;; |
|
|
662 | mmix*) |
|
|
663 | basic_machine=mmix-knuth |
|
|
664 | os=-mmixware |
686 | ;; |
665 | ;; |
687 | monitor) |
666 | monitor) |
688 | basic_machine=m68k-rom68k |
667 | basic_machine=m68k-rom68k |
689 | os=-coff |
668 | os=-coff |
690 | ;; |
669 | ;; |
… | |
… | |
762 | os=-nonstopux |
741 | os=-nonstopux |
763 | ;; |
742 | ;; |
764 | np1) |
743 | np1) |
765 | basic_machine=np1-gould |
744 | basic_machine=np1-gould |
766 | ;; |
745 | ;; |
|
|
746 | nv1) |
|
|
747 | basic_machine=nv1-cray |
|
|
748 | os=-unicosmp |
|
|
749 | ;; |
767 | nsr-tandem) |
750 | nsr-tandem) |
768 | basic_machine=nsr-tandem |
751 | basic_machine=nsr-tandem |
769 | ;; |
752 | ;; |
770 | op50n-* | op60c-*) |
753 | op50n-* | op60c-*) |
771 | basic_machine=hppa1.1-oki |
754 | basic_machine=hppa1.1-oki |
772 | os=-proelf |
755 | os=-proelf |
773 | ;; |
756 | ;; |
774 | openrisc | openrisc-*) |
757 | or32 | or32-*) |
775 | basic_machine=or32-unknown |
758 | basic_machine=or32-unknown |
|
|
759 | os=-coff |
776 | ;; |
760 | ;; |
777 | os400) |
761 | os400) |
778 | basic_machine=powerpc-ibm |
762 | basic_machine=powerpc-ibm |
779 | os=-os400 |
763 | os=-os400 |
780 | ;; |
764 | ;; |
… | |
… | |
1042 | os=-none |
1026 | os=-none |
1043 | ;; |
1027 | ;; |
1044 | w89k-*) |
1028 | w89k-*) |
1045 | basic_machine=hppa1.1-winbond |
1029 | basic_machine=hppa1.1-winbond |
1046 | os=-proelf |
1030 | os=-proelf |
1047 | ;; |
|
|
1048 | xbox) |
|
|
1049 | basic_machine=i686-pc |
|
|
1050 | os=-mingw32 |
|
|
1051 | ;; |
1031 | ;; |
1052 | xps | xps100) |
1032 | xps | xps100) |
1053 | basic_machine=xps100-honeywell |
1033 | basic_machine=xps100-honeywell |
1054 | ;; |
1034 | ;; |
1055 | ymp) |
1035 | ymp) |
… | |
… | |
1077 | basic_machine=hppa1.1-oki |
1057 | basic_machine=hppa1.1-oki |
1078 | ;; |
1058 | ;; |
1079 | romp) |
1059 | romp) |
1080 | basic_machine=romp-ibm |
1060 | basic_machine=romp-ibm |
1081 | ;; |
1061 | ;; |
1082 | mmix) |
|
|
1083 | basic_machine=mmix-knuth |
|
|
1084 | ;; |
|
|
1085 | rs6000) |
1062 | rs6000) |
1086 | basic_machine=rs6000-ibm |
1063 | basic_machine=rs6000-ibm |
1087 | ;; |
1064 | ;; |
1088 | vax) |
1065 | vax) |
1089 | basic_machine=vax-dec |
1066 | basic_machine=vax-dec |
… | |
… | |
1096 | basic_machine=pdp11-dec |
1073 | basic_machine=pdp11-dec |
1097 | ;; |
1074 | ;; |
1098 | we32k) |
1075 | we32k) |
1099 | basic_machine=we32k-att |
1076 | basic_machine=we32k-att |
1100 | ;; |
1077 | ;; |
1101 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1078 | sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
1102 | basic_machine=sh-unknown |
1079 | basic_machine=sh-unknown |
|
|
1080 | ;; |
|
|
1081 | sh64) |
|
|
1082 | basic_machine=sh64-unknown |
1103 | ;; |
1083 | ;; |
1104 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1084 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1105 | basic_machine=sparc-sun |
1085 | basic_machine=sparc-sun |
1106 | ;; |
1086 | ;; |
1107 | cydra) |
1087 | cydra) |
… | |
… | |
1185 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1165 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1186 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1166 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1187 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1167 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1188 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1168 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1189 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1169 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1190 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1170 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
1191 | | -skyos* | -haiku*) |
|
|
1192 | # Remember, each alternative MUST END IN *, to match a version number. |
1171 | # Remember, each alternative MUST END IN *, to match a version number. |
1193 | ;; |
1172 | ;; |
1194 | -qnx*) |
1173 | -qnx*) |
1195 | case $basic_machine in |
1174 | case $basic_machine in |
1196 | x86-* | i*86-*) |
1175 | x86-* | i*86-*) |
… | |
… | |
1204 | ;; |
1183 | ;; |
1205 | -nto*) |
1184 | -nto*) |
1206 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1185 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1207 | ;; |
1186 | ;; |
1208 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1187 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1209 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
1188 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1210 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1189 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1211 | ;; |
1190 | ;; |
1212 | -mac*) |
1191 | -mac*) |
1213 | os=`echo $os | sed -e 's|mac|macos|'` |
1192 | os=`echo $os | sed -e 's|mac|macos|'` |
1214 | ;; |
1193 | ;; |
… | |
… | |
1312 | -aros*) |
1291 | -aros*) |
1313 | os=-aros |
1292 | os=-aros |
1314 | ;; |
1293 | ;; |
1315 | -kaos*) |
1294 | -kaos*) |
1316 | os=-kaos |
1295 | os=-kaos |
1317 | ;; |
|
|
1318 | -zvmoe) |
|
|
1319 | os=-zvmoe |
|
|
1320 | ;; |
1296 | ;; |
1321 | -none) |
1297 | -none) |
1322 | ;; |
1298 | ;; |
1323 | *) |
1299 | *) |
1324 | # Get rid of the `-' at the beginning of $os. |
1300 | # Get rid of the `-' at the beginning of $os. |
… | |
… | |
1393 | os=-sunos4.1.1 |
1369 | os=-sunos4.1.1 |
1394 | ;; |
1370 | ;; |
1395 | *-be) |
1371 | *-be) |
1396 | os=-beos |
1372 | os=-beos |
1397 | ;; |
1373 | ;; |
1398 | *-haiku) |
|
|
1399 | os=-haiku |
|
|
1400 | ;; |
|
|
1401 | *-ibm) |
1374 | *-ibm) |
1402 | os=-aix |
1375 | os=-aix |
1403 | ;; |
|
|
1404 | *-knuth) |
|
|
1405 | os=-mmixware |
|
|
1406 | ;; |
1376 | ;; |
1407 | *-wec) |
1377 | *-wec) |
1408 | os=-proelf |
1378 | os=-proelf |
1409 | ;; |
1379 | ;; |
1410 | *-winbond) |
1380 | *-winbond) |
… | |
… | |
1567 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1537 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1568 | ;; |
1538 | ;; |
1569 | esac |
1539 | esac |
1570 | |
1540 | |
1571 | echo $basic_machine$os |
1541 | echo $basic_machine$os |
1572 | exit |
1542 | exit 0 |
1573 | |
1543 | |
1574 | # Local variables: |
1544 | # Local variables: |
1575 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1545 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1576 | # time-stamp-start: "timestamp='" |
1546 | # time-stamp-start: "timestamp='" |
1577 | # time-stamp-format: "%:y-%02m-%02d" |
1547 | # time-stamp-format: "%:y-%02m-%02d" |