comparison config.sub @ 4338:528c4d906843

Sync config.guess and config.sub with the latest upstream versions. 2007-12-08 Jerry James <james@xemacs.org> * config.guess: * config.sub: Sync with the latest upstream versions.
author james@localhost.localdomain
date Tue, 18 Dec 2007 21:33:56 -0700
parents 3580ae2ce979
children afbfad080ddd
comparison
equal deleted inserted replaced
4337:c32e4dca0296 4338:528c4d906843
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, 2004, 2005, 2006 Free Software Foundation,
5 5 # Inc.
6 timestamp='2005-02-10' 6
7 timestamp='2007-12-05'
7 8
8 # This file is (in principle) common to ALL GNU software. 9 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software 10 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can. 11 # can handle that machine. It does not imply ALL GNU software can.
11 # 12 #
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details. 21 # GNU General Public License for more details.
21 # 22 #
22 # You should have received a copy of the GNU General Public License 23 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software 24 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # Boston, MA 02111-1307, USA. 26 # 02110-1301, USA.
26 27 #
27 # As a special exception to the GNU General Public License, if you 28 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a 29 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under 30 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program. 31 # the same distribution terms that you use for the rest of that program.
32
31 33
32 # Please send patches to <config-patches@gnu.org>. Submit a context 34 # Please send patches to <config-patches@gnu.org>. Submit a context
33 # diff and a properly formatted ChangeLog entry. 35 # diff and a properly formatted ChangeLog entry.
34 # 36 #
35 # Configuration subroutine to validate and canonicalize a configuration type. 37 # Configuration subroutine to validate and canonicalize a configuration type.
81 83
82 # Parse command line 84 # Parse command line
83 while test $# -gt 0 ; do 85 while test $# -gt 0 ; do
84 case $1 in 86 case $1 in
85 --time-stamp | --time* | -t ) 87 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 88 echo "$timestamp" ; exit ;;
87 --version | -v ) 89 --version | -v )
88 echo "$version" ; exit 0 ;; 90 echo "$version" ; exit ;;
89 --help | --h* | -h ) 91 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 92 echo "$usage"; exit ;;
91 -- ) # Stop option processing 93 -- ) # Stop option processing
92 shift; break ;; 94 shift; break ;;
93 - ) # Use stdin as input. 95 - ) # Use stdin as input.
94 break ;; 96 break ;;
95 -* ) 97 -* )
97 exit 1 ;; 99 exit 1 ;;
98 100
99 *local*) 101 *local*)
100 # First pass through any local machine types. 102 # First pass through any local machine types.
101 echo $1 103 echo $1
102 exit 0;; 104 exit ;;
103 105
104 * ) 106 * )
105 break ;; 107 break ;;
106 esac 108 esac
107 done 109 done
116 118
117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 119 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
118 # Here we must recognize all the valid KERNEL-OS combinations. 120 # Here we must recognize all the valid KERNEL-OS combinations.
119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120 case $maybe_os in 122 case $maybe_os in
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os 126 os=-$maybe_os
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125 ;; 128 ;;
126 *) 129 *)
127 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
168 basic_machine=$1 171 basic_machine=$1
169 ;; 172 ;;
170 -hiux*) 173 -hiux*)
171 os=-hiuxwe2 174 os=-hiuxwe2
172 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
173 -sco5) 180 -sco5)
174 os=-sco3.2v5 181 os=-sco3.2v5
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
176 ;; 183 ;;
177 -sco4) 184 -sco4)
181 -sco3.2.[4-9]*) 188 -sco3.2.[4-9]*)
182 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 189 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
183 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 ;; 191 ;;
185 -sco3.2v[4-9]*) 192 -sco3.2v[4-9]*)
193 # Don't forget version if it is 3.2v4 or newer.
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195 ;;
196 -sco5v6*)
186 # Don't forget version if it is 3.2v4 or newer. 197 # Don't forget version if it is 3.2v4 or newer.
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 ;; 199 ;;
189 -sco*) 200 -sco*)
190 os=-sco3.2v2 201 os=-sco3.2v2
228 1750a | 580 \ 239 1750a | 580 \
229 | a29k \ 240 | a29k \
230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232 | am33_2.0 \ 243 | am33_2.0 \
233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245 | bfin \
234 | c4x | clipper \ 246 | c4x | clipper \
235 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx \
236 | fr30 | frv \ 248 | fido | fr30 | frv \
237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
239 | ip2k | iq2000 \ 251 | ip2k | iq2000 \
240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore | mep \
241 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
242 | mips16 \ 255 | mips16 \
243 | mips64 | mips64el \ 256 | mips64 | mips64el \
244 | mips64vr | mips64vrel \ 257 | mips64vr | mips64vrel \
245 | mips64orion | mips64orionel \ 258 | mips64orion | mips64orionel \
246 | mips64vr4100 | mips64vr4100el \ 259 | mips64vr4100 | mips64vr4100el \
247 | mips64vr4300 | mips64vr4300el \ 260 | mips64vr4300 | mips64vr4300el \
248 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
249 | mipsisa32 | mipsisa32el \ 263 | mipsisa32 | mipsisa32el \
250 | mipsisa32r2 | mipsisa32r2el \ 264 | mipsisa32r2 | mipsisa32r2el \
251 | mipsisa64 | mipsisa64el \ 265 | mipsisa64 | mipsisa64el \
252 | mipsisa64r2 | mipsisa64r2el \ 266 | mipsisa64r2 | mipsisa64r2el \
253 | mipsisa64sb1 | mipsisa64sb1el \ 267 | mipsisa64sb1 | mipsisa64sb1el \
254 | mipsisa64sr71k | mipsisa64sr71kel \ 268 | mipsisa64sr71k | mipsisa64sr71kel \
255 | mipstx39 | mipstx39el \ 269 | mipstx39 | mipstx39el \
256 | mn10200 | mn10300 \ 270 | mn10200 | mn10300 \
271 | mt \
257 | msp430 \ 272 | msp430 \
273 | nios | nios2 \
258 | ns16k | ns32k \ 274 | ns16k | ns32k \
259 | openrisc | or32 \ 275 | or32 \
260 | pdp10 | pdp11 | pj | pjl \ 276 | pdp10 | pdp11 | pj | pjl \
261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262 | pyramid \ 278 | pyramid \
263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | score \
280 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
264 | sh64 | sh64le \ 281 | sh64 | sh64le \
265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 282 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
266 | strongarm \ 283 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284 | spu | strongarm \
267 | tahoe | thumb | tic4x | tic80 | tron \ 285 | tahoe | thumb | tic4x | tic80 | tron \
268 | v850 | v850e \ 286 | v850 | v850e \
269 | we32k \ 287 | we32k \
270 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 288 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
271 | z8k) 289 | z8k)
272 basic_machine=$basic_machine-unknown 290 basic_machine=$basic_machine-unknown
273 ;; 291 ;;
274 m6811 | m68hc11 | m6812 | m68hc12) 292 m6811 | m68hc11 | m6812 | m68hc12)
275 # Motorola 68HC11/12. 293 # Motorola 68HC11/12.
276 basic_machine=$basic_machine-unknown 294 basic_machine=$basic_machine-unknown
277 os=-none 295 os=-none
278 ;; 296 ;;
279 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 297 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298 ;;
299 ms1)
300 basic_machine=mt-unknown
280 ;; 301 ;;
281 302
282 # We use `pc' rather than `unknown' 303 # We use `pc' rather than `unknown'
283 # because (1) that's what they normally are, and 304 # because (1) that's what they normally are, and
284 # (2) the word "unknown" tends to confuse beginning users. 305 # (2) the word "unknown" tends to confuse beginning users.
295 | a29k-* \ 316 | a29k-* \
296 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 317 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
297 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 318 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 319 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 320 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
300 | avr-* \ 321 | avr-* | avr32-* \
301 | bs2000-* \ 322 | bfin-* | bs2000-* \
302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 323 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303 | clipper-* | craynv-* | cydra-* \ 324 | clipper-* | craynv-* | cydra-* \
304 | d10v-* | d30v-* | dlx-* \ 325 | d10v-* | d30v-* | dlx-* \
305 | elxsi-* \ 326 | elxsi-* \
306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 327 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
307 | h8300-* | h8500-* \ 328 | h8300-* | h8500-* \
308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 329 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309 | i*86-* | i860-* | i960-* | ia64-* \ 330 | i*86-* | i860-* | i960-* | ia64-* \
310 | ip2k-* | iq2000-* \ 331 | ip2k-* | iq2000-* \
311 | m32r-* | m32rle-* \ 332 | m32c-* | m32r-* | m32rle-* \
312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 333 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313 | m88110-* | m88k-* | maxq-* | mcore-* \ 334 | m88110-* | m88k-* | maxq-* | mcore-* \
314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 335 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315 | mips16-* \ 336 | mips16-* \
316 | mips64-* | mips64el-* \ 337 | mips64-* | mips64el-* \
317 | mips64vr-* | mips64vrel-* \ 338 | mips64vr-* | mips64vrel-* \
318 | mips64orion-* | mips64orionel-* \ 339 | mips64orion-* | mips64orionel-* \
319 | mips64vr4100-* | mips64vr4100el-* \ 340 | mips64vr4100-* | mips64vr4100el-* \
320 | mips64vr4300-* | mips64vr4300el-* \ 341 | mips64vr4300-* | mips64vr4300el-* \
321 | mips64vr5000-* | mips64vr5000el-* \ 342 | mips64vr5000-* | mips64vr5000el-* \
343 | mips64vr5900-* | mips64vr5900el-* \
322 | mipsisa32-* | mipsisa32el-* \ 344 | mipsisa32-* | mipsisa32el-* \
323 | mipsisa32r2-* | mipsisa32r2el-* \ 345 | mipsisa32r2-* | mipsisa32r2el-* \
324 | mipsisa64-* | mipsisa64el-* \ 346 | mipsisa64-* | mipsisa64el-* \
325 | mipsisa64r2-* | mipsisa64r2el-* \ 347 | mipsisa64r2-* | mipsisa64r2el-* \
326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 348 | mipsisa64sb1-* | mipsisa64sb1el-* \
327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 349 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328 | mipstx39-* | mipstx39el-* \ 350 | mipstx39-* | mipstx39el-* \
329 | mmix-* \ 351 | mmix-* \
352 | mt-* \
330 | msp430-* \ 353 | msp430-* \
354 | nios-* | nios2-* \
331 | none-* | np1-* | ns16k-* | ns32k-* \ 355 | none-* | np1-* | ns16k-* | ns32k-* \
332 | orion-* \ 356 | orion-* \
333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 357 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 358 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335 | pyramid-* \ 359 | pyramid-* \
336 | romp-* | rs6000-* \ 360 | romp-* | rs6000-* \
337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 361 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 362 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 363 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 364 | sparclite-* \
365 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
341 | tahoe-* | thumb-* \ 366 | tahoe-* | thumb-* \
342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 367 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
343 | tron-* \ 368 | tron-* \
344 | v850-* | v850e-* | vax-* \ 369 | v850-* | v850e-* | vax-* \
345 | we32k-* \ 370 | we32k-* \
346 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 371 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
347 | xstormy16-* | xtensa-* \ 372 | xstormy16-* | xtensa*-* \
348 | ymp-* \ 373 | ymp-* \
349 | z8k-*) 374 | z8k-*)
375 ;;
376 # Recognize the basic CPU types without company name, with glob match.
377 xtensa*)
378 basic_machine=$basic_machine-unknown
350 ;; 379 ;;
351 # Recognize the various machine names and aliases which stand 380 # Recognize the various machine names and aliases which stand
352 # for a CPU type and a company and sometimes even an OS. 381 # for a CPU type and a company and sometimes even an OS.
353 386bsd) 382 386bsd)
354 basic_machine=i386-unknown 383 basic_machine=i386-unknown
416 ;; 445 ;;
417 balance) 446 balance)
418 basic_machine=ns32k-sequent 447 basic_machine=ns32k-sequent
419 os=-dynix 448 os=-dynix
420 ;; 449 ;;
450 blackfin)
451 basic_machine=bfin-unknown
452 os=-linux
453 ;;
454 blackfin-*)
455 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
456 os=-linux
457 ;;
421 c90) 458 c90)
422 basic_machine=c90-cray 459 basic_machine=c90-cray
423 os=-unicos 460 os=-unicos
424 ;; 461 ;;
425 convex-c1) 462 convex-c1)
448 ;; 485 ;;
449 craynv) 486 craynv)
450 basic_machine=craynv-cray 487 basic_machine=craynv-cray
451 os=-unicosmp 488 os=-unicosmp
452 ;; 489 ;;
453 cr16c) 490 cr16)
454 basic_machine=cr16c-unknown 491 basic_machine=cr16-unknown
455 os=-elf 492 os=-elf
456 ;; 493 ;;
457 crds | unos) 494 crds | unos)
458 basic_machine=m68k-crds 495 basic_machine=m68k-crds
459 ;; 496 ;;
641 ;; 678 ;;
642 isi68 | isi) 679 isi68 | isi)
643 basic_machine=m68k-isi 680 basic_machine=m68k-isi
644 os=-sysv 681 os=-sysv
645 ;; 682 ;;
683 m68knommu)
684 basic_machine=m68k-unknown
685 os=-linux
686 ;;
687 m68knommu-*)
688 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
689 os=-linux
690 ;;
646 m88k-omron*) 691 m88k-omron*)
647 basic_machine=m88k-omron 692 basic_machine=m88k-omron
648 ;; 693 ;;
649 magnum | m3230) 694 magnum | m3230)
650 basic_machine=mips-mips 695 basic_machine=mips-mips
656 ;; 701 ;;
657 mingw32) 702 mingw32)
658 basic_machine=i386-pc 703 basic_machine=i386-pc
659 os=-mingw32 704 os=-mingw32
660 ;; 705 ;;
706 mingw32ce)
707 basic_machine=arm-unknown
708 os=-mingw32ce
709 ;;
661 miniframe) 710 miniframe)
662 basic_machine=m68000-convergent 711 basic_machine=m68000-convergent
663 ;; 712 ;;
664 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 713 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
665 basic_machine=m68k-atari 714 basic_machine=m68k-atari
680 os=-morphos 729 os=-morphos
681 ;; 730 ;;
682 msdos) 731 msdos)
683 basic_machine=i386-pc 732 basic_machine=i386-pc
684 os=-msdos 733 os=-msdos
734 ;;
735 ms1-*)
736 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
685 ;; 737 ;;
686 mvs) 738 mvs)
687 basic_machine=i370-ibm 739 basic_machine=i370-ibm
688 os=-mvs 740 os=-mvs
689 ;; 741 ;;
756 ;; 808 ;;
757 op50n-* | op60c-*) 809 op50n-* | op60c-*)
758 basic_machine=hppa1.1-oki 810 basic_machine=hppa1.1-oki
759 os=-proelf 811 os=-proelf
760 ;; 812 ;;
761 or32 | or32-*) 813 openrisc | openrisc-*)
762 basic_machine=or32-unknown 814 basic_machine=or32-unknown
763 os=-coff
764 ;; 815 ;;
765 os400) 816 os400)
766 basic_machine=powerpc-ibm 817 basic_machine=powerpc-ibm
767 os=-os400 818 os=-os400
768 ;; 819 ;;
780 ;; 831 ;;
781 paragon) 832 paragon)
782 basic_machine=i860-intel 833 basic_machine=i860-intel
783 os=-osf 834 os=-osf
784 ;; 835 ;;
836 parisc)
837 basic_machine=hppa-unknown
838 os=-linux
839 ;;
840 parisc-*)
841 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
842 os=-linux
843 ;;
785 pbd) 844 pbd)
786 basic_machine=sparc-tti 845 basic_machine=sparc-tti
787 ;; 846 ;;
788 pbb) 847 pbb)
789 basic_machine=m68k-tti 848 basic_machine=m68k-tti
790 ;; 849 ;;
791 pc532 | pc532-*) 850 pc532 | pc532-*)
792 basic_machine=ns32k-pc532 851 basic_machine=ns32k-pc532
852 ;;
853 pc98)
854 basic_machine=i386-pc
855 ;;
856 pc98-*)
857 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
793 ;; 858 ;;
794 pentium | p5 | k5 | k6 | nexgen | viac3) 859 pentium | p5 | k5 | k6 | nexgen | viac3)
795 basic_machine=i586-pc 860 basic_machine=i586-pc
796 ;; 861 ;;
797 pentiumpro | p6 | 6x86 | athlon | athlon_*) 862 pentiumpro | p6 | 6x86 | athlon | athlon_*)
845 ;; 910 ;;
846 pw32) 911 pw32)
847 basic_machine=i586-unknown 912 basic_machine=i586-unknown
848 os=-pw32 913 os=-pw32
849 ;; 914 ;;
915 rdos)
916 basic_machine=i386-pc
917 os=-rdos
918 ;;
850 rom68k) 919 rom68k)
851 basic_machine=m68k-rom68k 920 basic_machine=m68k-rom68k
852 os=-coff 921 os=-coff
853 ;; 922 ;;
854 rm[46]00) 923 rm[46]00)
871 basic_machine=mipsisa64sb1-unknown 940 basic_machine=mipsisa64sb1-unknown
872 ;; 941 ;;
873 sb1el) 942 sb1el)
874 basic_machine=mipsisa64sb1el-unknown 943 basic_machine=mipsisa64sb1el-unknown
875 ;; 944 ;;
945 sde)
946 basic_machine=mipsisa32-sde
947 os=-elf
948 ;;
876 sei) 949 sei)
877 basic_machine=mips-sei 950 basic_machine=mips-sei
878 os=-seiux 951 os=-seiux
879 ;; 952 ;;
880 sequent) 953 sequent)
881 basic_machine=i386-sequent 954 basic_machine=i386-sequent
882 ;; 955 ;;
883 sh) 956 sh)
884 basic_machine=sh-hitachi 957 basic_machine=sh-hitachi
885 os=-hms 958 os=-hms
959 ;;
960 sh5el)
961 basic_machine=sh5le-unknown
886 ;; 962 ;;
887 sh64) 963 sh64)
888 basic_machine=sh64-unknown 964 basic_machine=sh64-unknown
889 ;; 965 ;;
890 sparclite-wrs | simso-wrs) 966 sparclite-wrs | simso-wrs)
1084 basic_machine=pdp11-dec 1160 basic_machine=pdp11-dec
1085 ;; 1161 ;;
1086 we32k) 1162 we32k)
1087 basic_machine=we32k-att 1163 basic_machine=we32k-att
1088 ;; 1164 ;;
1089 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1165 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1090 basic_machine=sh-unknown 1166 basic_machine=sh-unknown
1091 ;; 1167 ;;
1092 sh64) 1168 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1093 basic_machine=sh64-unknown
1094 ;;
1095 sparc | sparcv8 | sparcv9 | sparcv9b)
1096 basic_machine=sparc-sun 1169 basic_machine=sparc-sun
1097 ;; 1170 ;;
1098 cydra) 1171 cydra)
1099 basic_machine=cydra-cydrome 1172 basic_machine=cydra-cydrome
1100 ;; 1173 ;;
1163 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1236 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1164 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1237 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1165 | -aos* \ 1238 | -aos* \
1166 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1239 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1167 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1240 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1168 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1241 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1242 | -openbsd* | -solidbsd* \
1169 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1243 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1170 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1244 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1171 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1245 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1172 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1246 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1173 | -chorusos* | -chorusrdb* \ 1247 | -chorusos* | -chorusrdb* \
1174 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1248 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1175 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1249 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1250 | -uxpv* | -beos* | -mpeix* | -udk* \
1176 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1251 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1177 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1252 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1178 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1253 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1179 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1254 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1180 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1255 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1181 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1256 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1257 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1182 # Remember, each alternative MUST END IN *, to match a version number. 1258 # Remember, each alternative MUST END IN *, to match a version number.
1183 ;; 1259 ;;
1184 -qnx*) 1260 -qnx*)
1185 case $basic_machine in 1261 case $basic_machine in
1186 x86-* | i*86-*) 1262 x86-* | i*86-*)
1194 ;; 1270 ;;
1195 -nto*) 1271 -nto*)
1196 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1272 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1197 ;; 1273 ;;
1198 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1274 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1199 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1275 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1200 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1276 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1201 ;; 1277 ;;
1202 -mac*) 1278 -mac*)
1203 os=`echo $os | sed -e 's|mac|macos|'` 1279 os=`echo $os | sed -e 's|mac|macos|'`
1204 ;; 1280 ;;
1328 # that MANUFACTURER isn't an operating system. Otherwise, code above 1404 # that MANUFACTURER isn't an operating system. Otherwise, code above
1329 # will signal an error saying that MANUFACTURER isn't an operating 1405 # will signal an error saying that MANUFACTURER isn't an operating
1330 # system, and we'll never get to this point. 1406 # system, and we'll never get to this point.
1331 1407
1332 case $basic_machine in 1408 case $basic_machine in
1409 score-*)
1410 os=-elf
1411 ;;
1412 spu-*)
1413 os=-elf
1414 ;;
1333 *-acorn) 1415 *-acorn)
1334 os=-riscix1.2 1416 os=-riscix1.2
1335 ;; 1417 ;;
1336 arm*-rebel) 1418 arm*-rebel)
1337 os=-linux 1419 os=-linux
1338 ;; 1420 ;;
1339 arm*-semi) 1421 arm*-semi)
1340 os=-aout 1422 os=-aout
1341 ;; 1423 ;;
1342 c4x-* | tic4x-*) 1424 c4x-* | tic4x-*)
1343 os=-coff 1425 os=-coff
1344 ;; 1426 ;;
1345 # This must come before the *-dec entry. 1427 # This must come before the *-dec entry.
1346 pdp10-*) 1428 pdp10-*)
1347 os=-tops20 1429 os=-tops20
1348 ;; 1430 ;;
1349 pdp11-*) 1431 pdp11-*)
1365 # os=-sunos4 1447 # os=-sunos4
1366 ;; 1448 ;;
1367 m68*-cisco) 1449 m68*-cisco)
1368 os=-aout 1450 os=-aout
1369 ;; 1451 ;;
1452 mep-*)
1453 os=-elf
1454 ;;
1370 mips*-cisco) 1455 mips*-cisco)
1371 os=-elf 1456 os=-elf
1372 ;; 1457 ;;
1373 mips*-*) 1458 mips*-*)
1374 os=-elf 1459 os=-elf
1382 sparc-* | *-sun) 1467 sparc-* | *-sun)
1383 os=-sunos4.1.1 1468 os=-sunos4.1.1
1384 ;; 1469 ;;
1385 *-be) 1470 *-be)
1386 os=-beos 1471 os=-beos
1472 ;;
1473 *-haiku)
1474 os=-haiku
1387 ;; 1475 ;;
1388 *-ibm) 1476 *-ibm)
1389 os=-aix 1477 os=-aix
1390 ;; 1478 ;;
1391 *-knuth) 1479 *-knuth)
1554 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1642 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1555 ;; 1643 ;;
1556 esac 1644 esac
1557 1645
1558 echo $basic_machine$os 1646 echo $basic_machine$os
1559 exit 0 1647 exit
1560 1648
1561 # Local variables: 1649 # Local variables:
1562 # eval: (add-hook 'write-file-hooks 'time-stamp) 1650 # eval: (add-hook 'write-file-hooks 'time-stamp)
1563 # time-stamp-start: "timestamp='" 1651 # time-stamp-start: "timestamp='"
1564 # time-stamp-format: "%:y-%02m-%02d" 1652 # time-stamp-format: "%:y-%02m-%02d"