ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/config.sub
(Generate patch)

Comparing rxvt-unicode/config.sub (file contents):
Revision 1.1 by ayin, Tue Jan 17 12:20:04 2006 UTC vs.
Revision 1.4 by sf-exg, Tue Apr 12 08:00:07 2011 UTC

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, 2007, 2008, 2009, 2010,
5# 2011 Free Software Foundation, Inc.
5 6
6timestamp='2005-07-08' 7timestamp='2011-03-23'
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#
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.
31 32
32 33
33# Please send patches to <config-patches@gnu.org>. Submit a context 34# Please send patches to <config-patches@gnu.org>. Submit a context
34# diff and a properly formatted ChangeLog entry. 35# diff and a properly formatted GNU ChangeLog entry.
35# 36#
36# Configuration subroutine to validate and canonicalize a configuration type. 37# Configuration subroutine to validate and canonicalize a configuration type.
37# Supply the specified configuration type as an argument. 38# Supply the specified configuration type as an argument.
38# If it is invalid, we print an error message on stderr and exit with code 1. 39# If it is invalid, we print an error message on stderr and exit with code 1.
39# Otherwise, we print the canonical config type on stdout and succeed. 40# Otherwise, we print the canonical config type on stdout and succeed.
41
42# You can get the latest version of this script from:
43# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
40 44
41# This file is supposed to be the same for all GNU packages 45# This file is supposed to be the same for all GNU packages
42# and recognize all the CPU types, system types and aliases 46# and recognize all the CPU types, system types and aliases
43# that are meaningful with *any* GNU software. 47# that are meaningful with *any* GNU software.
44# Each package is responsible for reporting which valid configurations 48# Each package is responsible for reporting which valid configurations
69Report bugs and patches to <config-patches@gnu.org>." 73Report bugs and patches to <config-patches@gnu.org>."
70 74
71version="\ 75version="\
72GNU config.sub ($timestamp) 76GNU config.sub ($timestamp)
73 77
74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
75Free Software Foundation, Inc. 80Software Foundation, Inc.
76 81
77This is free software; see the source for copying conditions. There is NO 82This is free software; see the source for copying conditions. There is NO
78warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 83warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79 84
80help=" 85help="
117 122
118# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 123# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119# Here we must recognize all the valid KERNEL-OS combinations. 124# Here we must recognize all the valid KERNEL-OS combinations.
120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121case $maybe_os in 126case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
129 knetbsd*-gnu* | netbsd*-gnu* | \
130 kopensolaris*-gnu* | \
131 storm-chaos* | os2-emx* | rtmk-nova*)
124 os=-$maybe_os 132 os=-$maybe_os
125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 133 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
126 ;; 134 ;;
127 *) 135 *)
128 basic_machine=`echo $1 | sed 's/-[^-]*$//'` 136 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
144 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 152 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
145 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 153 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
146 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 154 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
147 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 155 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
148 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 156 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
149 -apple | -axis | -knuth | -cray) 157 -apple | -axis | -knuth | -cray | -microblaze)
150 os= 158 os=
151 basic_machine=$1 159 basic_machine=$1
160 ;;
161 -bluegene*)
162 os=-cnk
152 ;; 163 ;;
153 -sim | -cisco | -oki | -wec | -winbond) 164 -sim | -cisco | -oki | -wec | -winbond)
154 os= 165 os=
155 basic_machine=$1 166 basic_machine=$1
156 ;; 167 ;;
162 ;; 173 ;;
163 -chorusos*) 174 -chorusos*)
164 os=-chorusos 175 os=-chorusos
165 basic_machine=$1 176 basic_machine=$1
166 ;; 177 ;;
167 -chorusrdb) 178 -chorusrdb)
168 os=-chorusrdb 179 os=-chorusrdb
169 basic_machine=$1 180 basic_machine=$1
170 ;; 181 ;;
171 -hiux*) 182 -hiux*)
172 os=-hiuxwe2 183 os=-hiuxwe2
184 ;;
185 -sco6)
186 os=-sco5v6
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
173 ;; 188 ;;
174 -sco5) 189 -sco5)
175 os=-sco3.2v5 190 os=-sco3.2v5
176 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 191 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
177 ;; 192 ;;
182 -sco3.2.[4-9]*) 197 -sco3.2.[4-9]*)
183 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 198 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 199 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 ;; 200 ;;
186 -sco3.2v[4-9]*) 201 -sco3.2v[4-9]*)
202 # Don't forget version if it is 3.2v4 or newer.
203 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 ;;
205 -sco5v6*)
187 # Don't forget version if it is 3.2v4 or newer. 206 # Don't forget version if it is 3.2v4 or newer.
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 207 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;; 208 ;;
190 -sco*) 209 -sco*)
191 os=-sco3.2v2 210 os=-sco3.2v2
229 1750a | 580 \ 248 1750a | 580 \
230 | a29k \ 249 | a29k \
231 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
232 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
233 | am33_2.0 \ 252 | am33_2.0 \
234 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 253 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
235 | bfin \ 254 | bfin \
236 | c4x | clipper \ 255 | c4x | clipper \
237 | d10v | d30v | dlx | dsp16xx \ 256 | d10v | d30v | dlx | dsp16xx \
238 | fr30 | frv \ 257 | fido | fr30 | frv \
239 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 258 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
240 | i370 | i860 | i960 | ia64 \ 259 | i370 | i860 | i960 | ia64 \
241 | ip2k | iq2000 \ 260 | ip2k | iq2000 \
261 | lm32 \
242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 262 | m32c | m32r | m32rle | m68000 | m68k | m88k \
263 | maxq | mb | microblaze | mcore | mep | metag \
243 | mips | mipsbe | mipseb | mipsel | mipsle \ 264 | mips | mipsbe | mipseb | mipsel | mipsle \
244 | mips16 \ 265 | mips16 \
245 | mips64 | mips64el \ 266 | mips64 | mips64el \
267 | mips64octeon | mips64octeonel \
268 | mips64orion | mips64orionel \
269 | mips64r5900 | mips64r5900el \
246 | mips64vr | mips64vrel \ 270 | mips64vr | mips64vrel \
247 | mips64orion | mips64orionel \
248 | mips64vr4100 | mips64vr4100el \ 271 | mips64vr4100 | mips64vr4100el \
249 | mips64vr4300 | mips64vr4300el \ 272 | mips64vr4300 | mips64vr4300el \
250 | mips64vr5000 | mips64vr5000el \ 273 | mips64vr5000 | mips64vr5000el \
251 | mips64vr5900 | mips64vr5900el \ 274 | mips64vr5900 | mips64vr5900el \
252 | mipsisa32 | mipsisa32el \ 275 | mipsisa32 | mipsisa32el \
255 | mipsisa64r2 | mipsisa64r2el \ 278 | mipsisa64r2 | mipsisa64r2el \
256 | mipsisa64sb1 | mipsisa64sb1el \ 279 | mipsisa64sb1 | mipsisa64sb1el \
257 | mipsisa64sr71k | mipsisa64sr71kel \ 280 | mipsisa64sr71k | mipsisa64sr71kel \
258 | mipstx39 | mipstx39el \ 281 | mipstx39 | mipstx39el \
259 | mn10200 | mn10300 \ 282 | mn10200 | mn10300 \
283 | moxie \
260 | ms1 \ 284 | mt \
261 | msp430 \ 285 | msp430 \
286 | nds32 | nds32le | nds32be \
287 | nios | nios2 \
262 | ns16k | ns32k \ 288 | ns16k | ns32k \
289 | open8 \
263 | or32 \ 290 | or32 \
264 | pdp10 | pdp11 | pj | pjl \ 291 | pdp10 | pdp11 | pj | pjl \
265 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 292 | powerpc | powerpc64 | powerpc64le | powerpcle \
266 | pyramid \ 293 | pyramid \
294 | rx \
295 | score \
267 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 296 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
268 | sh64 | sh64le \ 297 | sh64 | sh64le \
269 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
270 | sparcv8 | sparcv9 | sparcv9b \ 299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
271 | strongarm \ 300 | spu \
272 | tahoe | thumb | tic4x | tic80 | tron \ 301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
302 | ubicom32 \
273 | v850 | v850e \ 303 | v850 | v850e \
274 | we32k \ 304 | we32k \
275 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 305 | x86 | xc16x | xstormy16 | xtensa \
276 | z8k) 306 | z8k | z80)
277 basic_machine=$basic_machine-unknown 307 basic_machine=$basic_machine-unknown
278 ;; 308 ;;
279 m32c) 309 c54x)
310 basic_machine=tic54x-unknown
311 ;;
312 c55x)
313 basic_machine=tic55x-unknown
314 ;;
315 c6x)
280 basic_machine=$basic_machine-unknown 316 basic_machine=tic6x-unknown
281 ;; 317 ;;
282 m6811 | m68hc11 | m6812 | m68hc12) 318 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
283 # Motorola 68HC11/12. 319 # Motorola 68HC11/12.
284 basic_machine=$basic_machine-unknown 320 basic_machine=$basic_machine-unknown
285 os=-none 321 os=-none
286 ;; 322 ;;
287 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 323 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
324 ;;
325 ms1)
326 basic_machine=mt-unknown
327 ;;
328
329 strongarm | thumb | xscale)
330 basic_machine=arm-unknown
331 ;;
332
333 xscaleeb)
334 basic_machine=armeb-unknown
335 ;;
336
337 xscaleel)
338 basic_machine=armel-unknown
288 ;; 339 ;;
289 340
290 # We use `pc' rather than `unknown' 341 # We use `pc' rather than `unknown'
291 # because (1) that's what they normally are, and 342 # because (1) that's what they normally are, and
292 # (2) the word "unknown" tends to confuse beginning users. 343 # (2) the word "unknown" tends to confuse beginning users.
303 | a29k-* \ 354 | a29k-* \
304 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 355 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
305 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 356 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
306 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 357 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
307 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 358 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
308 | avr-* \ 359 | avr-* | avr32-* \
309 | bfin-* | bs2000-* \ 360 | bfin-* | bs2000-* \
310 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 361 | c[123]* | c30-* | [cjt]90-* | c4x-* \
311 | clipper-* | craynv-* | cydra-* \ 362 | clipper-* | craynv-* | cydra-* \
312 | d10v-* | d30v-* | dlx-* \ 363 | d10v-* | d30v-* | dlx-* \
313 | elxsi-* \ 364 | elxsi-* \
314 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 365 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
315 | h8300-* | h8500-* \ 366 | h8300-* | h8500-* \
316 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 367 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
317 | i*86-* | i860-* | i960-* | ia64-* \ 368 | i*86-* | i860-* | i960-* | ia64-* \
318 | ip2k-* | iq2000-* \ 369 | ip2k-* | iq2000-* \
370 | lm32-* \
319 | m32r-* | m32rle-* \ 371 | m32c-* | m32r-* | m32rle-* \
320 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 372 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
321 | m88110-* | m88k-* | maxq-* | mcore-* \ 373 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
322 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 374 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
323 | mips16-* \ 375 | mips16-* \
324 | mips64-* | mips64el-* \ 376 | mips64-* | mips64el-* \
377 | mips64octeon-* | mips64octeonel-* \
378 | mips64orion-* | mips64orionel-* \
379 | mips64r5900-* | mips64r5900el-* \
325 | mips64vr-* | mips64vrel-* \ 380 | mips64vr-* | mips64vrel-* \
326 | mips64orion-* | mips64orionel-* \
327 | mips64vr4100-* | mips64vr4100el-* \ 381 | mips64vr4100-* | mips64vr4100el-* \
328 | mips64vr4300-* | mips64vr4300el-* \ 382 | mips64vr4300-* | mips64vr4300el-* \
329 | mips64vr5000-* | mips64vr5000el-* \ 383 | mips64vr5000-* | mips64vr5000el-* \
330 | mips64vr5900-* | mips64vr5900el-* \ 384 | mips64vr5900-* | mips64vr5900el-* \
331 | mipsisa32-* | mipsisa32el-* \ 385 | mipsisa32-* | mipsisa32el-* \
334 | mipsisa64r2-* | mipsisa64r2el-* \ 388 | mipsisa64r2-* | mipsisa64r2el-* \
335 | mipsisa64sb1-* | mipsisa64sb1el-* \ 389 | mipsisa64sb1-* | mipsisa64sb1el-* \
336 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 390 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
337 | mipstx39-* | mipstx39el-* \ 391 | mipstx39-* | mipstx39el-* \
338 | mmix-* \ 392 | mmix-* \
339 | ms1-* \ 393 | mt-* \
340 | msp430-* \ 394 | msp430-* \
395 | nds32-* | nds32le-* | nds32be-* \
396 | nios-* | nios2-* \
341 | none-* | np1-* | ns16k-* | ns32k-* \ 397 | none-* | np1-* | ns16k-* | ns32k-* \
398 | open8-* \
342 | orion-* \ 399 | orion-* \
343 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 400 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
344 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 401 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
345 | pyramid-* \ 402 | pyramid-* \
346 | romp-* | rs6000-* \ 403 | romp-* | rs6000-* | rx-* \
347 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 404 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
348 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 405 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
349 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 406 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
350 | sparclite-* \ 407 | sparclite-* \
351 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 408 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
352 | tahoe-* | thumb-* \ 409 | tahoe-* \
353 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 410 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
411 | tile-* | tilegx-* \
354 | tron-* \ 412 | tron-* \
413 | ubicom32-* \
355 | v850-* | v850e-* | vax-* \ 414 | v850-* | v850e-* | vax-* \
356 | we32k-* \ 415 | we32k-* \
357 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 416 | x86-* | x86_64-* | xc16x-* | xps100-* \
358 | xstormy16-* | xtensa-* \ 417 | xstormy16-* | xtensa*-* \
359 | ymp-* \ 418 | ymp-* \
360 | z8k-*) 419 | z8k-* | z80-*)
361 ;; 420 ;;
362 m32c-*) 421 # Recognize the basic CPU types without company name, with glob match.
422 xtensa*)
423 basic_machine=$basic_machine-unknown
363 ;; 424 ;;
364 # Recognize the various machine names and aliases which stand 425 # Recognize the various machine names and aliases which stand
365 # for a CPU type and a company and sometimes even an OS. 426 # for a CPU type and a company and sometimes even an OS.
366 386bsd) 427 386bsd)
367 basic_machine=i386-unknown 428 basic_machine=i386-unknown
375 ;; 436 ;;
376 a29khif) 437 a29khif)
377 basic_machine=a29k-amd 438 basic_machine=a29k-amd
378 os=-udi 439 os=-udi
379 ;; 440 ;;
380 abacus) 441 abacus)
381 basic_machine=abacus-unknown 442 basic_machine=abacus-unknown
382 ;; 443 ;;
383 adobe68k) 444 adobe68k)
384 basic_machine=m68010-adobe 445 basic_machine=m68010-adobe
385 os=-scout 446 os=-scout
421 ;; 482 ;;
422 apollo68bsd) 483 apollo68bsd)
423 basic_machine=m68k-apollo 484 basic_machine=m68k-apollo
424 os=-bsd 485 os=-bsd
425 ;; 486 ;;
487 aros)
488 basic_machine=i386-pc
489 os=-aros
490 ;;
426 aux) 491 aux)
427 basic_machine=m68k-apple 492 basic_machine=m68k-apple
428 os=-aux 493 os=-aux
429 ;; 494 ;;
430 balance) 495 balance)
431 basic_machine=ns32k-sequent 496 basic_machine=ns32k-sequent
432 os=-dynix 497 os=-dynix
433 ;; 498 ;;
499 blackfin)
500 basic_machine=bfin-unknown
501 os=-linux
502 ;;
503 blackfin-*)
504 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
505 os=-linux
506 ;;
507 bluegene*)
508 basic_machine=powerpc-ibm
509 os=-cnk
510 ;;
511 c54x-*)
512 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
513 ;;
514 c55x-*)
515 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
516 ;;
517 c6x-*)
518 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
519 ;;
434 c90) 520 c90)
435 basic_machine=c90-cray 521 basic_machine=c90-cray
436 os=-unicos 522 os=-unicos
437 ;; 523 ;;
524 cegcc)
525 basic_machine=arm-unknown
526 os=-cegcc
527 ;;
438 convex-c1) 528 convex-c1)
439 basic_machine=c1-convex 529 basic_machine=c1-convex
440 os=-bsd 530 os=-bsd
441 ;; 531 ;;
442 convex-c2) 532 convex-c2)
461 ;; 551 ;;
462 craynv) 552 craynv)
463 basic_machine=craynv-cray 553 basic_machine=craynv-cray
464 os=-unicosmp 554 os=-unicosmp
465 ;; 555 ;;
466 cr16c) 556 cr16 | cr16-*)
467 basic_machine=cr16c-unknown 557 basic_machine=cr16-unknown
468 os=-elf 558 os=-elf
469 ;; 559 ;;
470 crds | unos) 560 crds | unos)
471 basic_machine=m68k-crds 561 basic_machine=m68k-crds
472 ;; 562 ;;
499 basic_machine=m68k-motorola 589 basic_machine=m68k-motorola
500 ;; 590 ;;
501 delta88) 591 delta88)
502 basic_machine=m88k-motorola 592 basic_machine=m88k-motorola
503 os=-sysv3 593 os=-sysv3
594 ;;
595 dicos)
596 basic_machine=i686-pc
597 os=-dicos
504 ;; 598 ;;
505 djgpp) 599 djgpp)
506 basic_machine=i586-pc 600 basic_machine=i586-pc
507 os=-msdosdjgpp 601 os=-msdosdjgpp
508 ;; 602 ;;
654 ;; 748 ;;
655 isi68 | isi) 749 isi68 | isi)
656 basic_machine=m68k-isi 750 basic_machine=m68k-isi
657 os=-sysv 751 os=-sysv
658 ;; 752 ;;
753 m68knommu)
754 basic_machine=m68k-unknown
755 os=-linux
756 ;;
757 m68knommu-*)
758 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
759 os=-linux
760 ;;
659 m88k-omron*) 761 m88k-omron*)
660 basic_machine=m88k-omron 762 basic_machine=m88k-omron
661 ;; 763 ;;
662 magnum | m3230) 764 magnum | m3230)
663 basic_machine=mips-mips 765 basic_machine=mips-mips
665 ;; 767 ;;
666 merlin) 768 merlin)
667 basic_machine=ns32k-utek 769 basic_machine=ns32k-utek
668 os=-sysv 770 os=-sysv
669 ;; 771 ;;
772 microblaze)
773 basic_machine=microblaze-xilinx
774 ;;
670 mingw32) 775 mingw32)
671 basic_machine=i386-pc 776 basic_machine=i386-pc
672 os=-mingw32 777 os=-mingw32
673 ;; 778 ;;
779 mingw32ce)
780 basic_machine=arm-unknown
781 os=-mingw32ce
782 ;;
674 miniframe) 783 miniframe)
675 basic_machine=m68000-convergent 784 basic_machine=m68000-convergent
676 ;; 785 ;;
677 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 786 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
678 basic_machine=m68k-atari 787 basic_machine=m68k-atari
693 os=-morphos 802 os=-morphos
694 ;; 803 ;;
695 msdos) 804 msdos)
696 basic_machine=i386-pc 805 basic_machine=i386-pc
697 os=-msdos 806 os=-msdos
807 ;;
808 ms1-*)
809 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
698 ;; 810 ;;
699 mvs) 811 mvs)
700 basic_machine=i370-ibm 812 basic_machine=i370-ibm
701 os=-mvs 813 os=-mvs
702 ;; 814 ;;
762 os=-nonstopux 874 os=-nonstopux
763 ;; 875 ;;
764 np1) 876 np1)
765 basic_machine=np1-gould 877 basic_machine=np1-gould
766 ;; 878 ;;
879 neo-tandem)
880 basic_machine=neo-tandem
881 ;;
882 nse-tandem)
883 basic_machine=nse-tandem
884 ;;
767 nsr-tandem) 885 nsr-tandem)
768 basic_machine=nsr-tandem 886 basic_machine=nsr-tandem
769 ;; 887 ;;
770 op50n-* | op60c-*) 888 op50n-* | op60c-*)
771 basic_machine=hppa1.1-oki 889 basic_machine=hppa1.1-oki
792 ;; 910 ;;
793 paragon) 911 paragon)
794 basic_machine=i860-intel 912 basic_machine=i860-intel
795 os=-osf 913 os=-osf
796 ;; 914 ;;
915 parisc)
916 basic_machine=hppa-unknown
917 os=-linux
918 ;;
919 parisc-*)
920 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
921 os=-linux
922 ;;
797 pbd) 923 pbd)
798 basic_machine=sparc-tti 924 basic_machine=sparc-tti
799 ;; 925 ;;
800 pbb) 926 pbb)
801 basic_machine=m68k-tti 927 basic_machine=m68k-tti
802 ;; 928 ;;
803 pc532 | pc532-*) 929 pc532 | pc532-*)
804 basic_machine=ns32k-pc532 930 basic_machine=ns32k-pc532
805 ;; 931 ;;
932 pc98)
933 basic_machine=i386-pc
934 ;;
935 pc98-*)
936 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
937 ;;
806 pentium | p5 | k5 | k6 | nexgen | viac3) 938 pentium | p5 | k5 | k6 | nexgen | viac3)
807 basic_machine=i586-pc 939 basic_machine=i586-pc
808 ;; 940 ;;
809 pentiumpro | p6 | 6x86 | athlon | athlon_*) 941 pentiumpro | p6 | 6x86 | athlon | athlon_*)
810 basic_machine=i686-pc 942 basic_machine=i686-pc
830 pn) 962 pn)
831 basic_machine=pn-gould 963 basic_machine=pn-gould
832 ;; 964 ;;
833 power) basic_machine=power-ibm 965 power) basic_machine=power-ibm
834 ;; 966 ;;
835 ppc) basic_machine=powerpc-unknown 967 ppc | ppcbe) basic_machine=powerpc-unknown
836 ;; 968 ;;
969 ppc-* | ppcbe-*)
837 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 970 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
838 ;; 971 ;;
839 ppcle | powerpclittle | ppc-le | powerpc-little) 972 ppcle | powerpclittle | ppc-le | powerpc-little)
840 basic_machine=powerpcle-unknown 973 basic_machine=powerpcle-unknown
841 ;; 974 ;;
842 ppcle-* | powerpclittle-*) 975 ppcle-* | powerpclittle-*)
857 ;; 990 ;;
858 pw32) 991 pw32)
859 basic_machine=i586-unknown 992 basic_machine=i586-unknown
860 os=-pw32 993 os=-pw32
861 ;; 994 ;;
995 rdos)
996 basic_machine=i386-pc
997 os=-rdos
998 ;;
862 rom68k) 999 rom68k)
863 basic_machine=m68k-rom68k 1000 basic_machine=m68k-rom68k
864 os=-coff 1001 os=-coff
865 ;; 1002 ;;
866 rm[46]00) 1003 rm[46]00)
883 basic_machine=mipsisa64sb1-unknown 1020 basic_machine=mipsisa64sb1-unknown
884 ;; 1021 ;;
885 sb1el) 1022 sb1el)
886 basic_machine=mipsisa64sb1el-unknown 1023 basic_machine=mipsisa64sb1el-unknown
887 ;; 1024 ;;
1025 sde)
1026 basic_machine=mipsisa32-sde
1027 os=-elf
1028 ;;
888 sei) 1029 sei)
889 basic_machine=mips-sei 1030 basic_machine=mips-sei
890 os=-seiux 1031 os=-seiux
891 ;; 1032 ;;
892 sequent) 1033 sequent)
894 ;; 1035 ;;
895 sh) 1036 sh)
896 basic_machine=sh-hitachi 1037 basic_machine=sh-hitachi
897 os=-hms 1038 os=-hms
898 ;; 1039 ;;
1040 sh5el)
1041 basic_machine=sh5le-unknown
1042 ;;
899 sh64) 1043 sh64)
900 basic_machine=sh64-unknown 1044 basic_machine=sh64-unknown
901 ;; 1045 ;;
902 sparclite-wrs | simso-wrs) 1046 sparclite-wrs | simso-wrs)
903 basic_machine=sparclite-wrs 1047 basic_machine=sparclite-wrs
915 ;; 1059 ;;
916 stratus) 1060 stratus)
917 basic_machine=i860-stratus 1061 basic_machine=i860-stratus
918 os=-sysv4 1062 os=-sysv4
919 ;; 1063 ;;
1064 strongarm-* | thumb-*)
1065 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1066 ;;
920 sun2) 1067 sun2)
921 basic_machine=m68000-sun 1068 basic_machine=m68000-sun
922 ;; 1069 ;;
923 sun2os3) 1070 sun2os3)
924 basic_machine=m68000-sun 1071 basic_machine=m68000-sun
971 ;; 1118 ;;
972 t90) 1119 t90)
973 basic_machine=t90-cray 1120 basic_machine=t90-cray
974 os=-unicos 1121 os=-unicos
975 ;; 1122 ;;
976 tic54x | c54x*) 1123 # This must be matched before tile*.
977 basic_machine=tic54x-unknown 1124 tilegx*)
978 os=-coff
979 ;;
980 tic55x | c55x*)
981 basic_machine=tic55x-unknown
982 os=-coff
983 ;;
984 tic6x | c6x*)
985 basic_machine=tic6x-unknown 1125 basic_machine=tilegx-unknown
986 os=-coff 1126 os=-linux-gnu
1127 ;;
1128 tile*)
1129 basic_machine=tile-unknown
1130 os=-linux-gnu
987 ;; 1131 ;;
988 tx39) 1132 tx39)
989 basic_machine=mipstx39-unknown 1133 basic_machine=mipstx39-unknown
990 ;; 1134 ;;
991 tx39el) 1135 tx39el)
1050 os=-mingw32 1194 os=-mingw32
1051 ;; 1195 ;;
1052 xps | xps100) 1196 xps | xps100)
1053 basic_machine=xps100-honeywell 1197 basic_machine=xps100-honeywell
1054 ;; 1198 ;;
1199 xscale-* | xscalee[bl]-*)
1200 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1201 ;;
1055 ymp) 1202 ymp)
1056 basic_machine=ymp-cray 1203 basic_machine=ymp-cray
1057 os=-unicos 1204 os=-unicos
1058 ;; 1205 ;;
1059 z8k-*-coff) 1206 z8k-*-coff)
1060 basic_machine=z8k-unknown 1207 basic_machine=z8k-unknown
1208 os=-sim
1209 ;;
1210 z80-*-coff)
1211 basic_machine=z80-unknown
1061 os=-sim 1212 os=-sim
1062 ;; 1213 ;;
1063 none) 1214 none)
1064 basic_machine=none-none 1215 basic_machine=none-none
1065 os=-none 1216 os=-none
1096 basic_machine=pdp11-dec 1247 basic_machine=pdp11-dec
1097 ;; 1248 ;;
1098 we32k) 1249 we32k)
1099 basic_machine=we32k-att 1250 basic_machine=we32k-att
1100 ;; 1251 ;;
1101 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1252 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1102 basic_machine=sh-unknown 1253 basic_machine=sh-unknown
1103 ;; 1254 ;;
1104 sparc | sparcv8 | sparcv9 | sparcv9b) 1255 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1105 basic_machine=sparc-sun 1256 basic_machine=sparc-sun
1106 ;; 1257 ;;
1107 cydra) 1258 cydra)
1108 basic_machine=cydra-cydrome 1259 basic_machine=cydra-cydrome
1109 ;; 1260 ;;
1143# Decode manufacturer-specific aliases for certain operating systems. 1294# Decode manufacturer-specific aliases for certain operating systems.
1144 1295
1145if [ x"$os" != x"" ] 1296if [ x"$os" != x"" ]
1146then 1297then
1147case $os in 1298case $os in
1148 # First match some system type aliases 1299 # First match some system type aliases
1149 # that might get confused with valid system types. 1300 # that might get confused with valid system types.
1150 # -solaris* is a basic system type, with this one exception. 1301 # -solaris* is a basic system type, with this one exception.
1302 -auroraux)
1303 os=-auroraux
1304 ;;
1151 -solaris1 | -solaris1.*) 1305 -solaris1 | -solaris1.*)
1152 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1306 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1153 ;; 1307 ;;
1154 -solaris) 1308 -solaris)
1155 os=-solaris2 1309 os=-solaris2
1166 # First accept the basic system types. 1320 # First accept the basic system types.
1167 # The portable systems comes first. 1321 # The portable systems comes first.
1168 # Each alternative MUST END IN A *, to match a version number. 1322 # Each alternative MUST END IN A *, to match a version number.
1169 # -sysv* is not here because it comes later, after sysvr4. 1323 # -sysv* is not here because it comes later, after sysvr4.
1170 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1324 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1171 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1325 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1172 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1326 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1327 | -sym* | -kopensolaris* \
1173 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1328 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1174 | -aos* \ 1329 | -aos* | -aros* \
1175 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1330 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1176 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1331 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1177 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1332 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1333 | -openbsd* | -solidbsd* \
1178 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1334 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1179 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1335 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1180 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1336 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1181 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1337 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1182 | -chorusos* | -chorusrdb* \ 1338 | -chorusos* | -chorusrdb* | -cegcc* \
1183 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1339 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1184 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1340 | -mingw32* | -linux-gnu* | -linux-android* \
1341 | -linux-newlib* | -linux-uclibc* \
1342 | -uxpv* | -beos* | -mpeix* | -udk* \
1185 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1343 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1186 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1344 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1187 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1345 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1188 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1346 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1189 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1347 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1190 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1348 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1191 | -skyos* | -haiku*) 1349 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1192 # Remember, each alternative MUST END IN *, to match a version number. 1350 # Remember, each alternative MUST END IN *, to match a version number.
1193 ;; 1351 ;;
1194 -qnx*) 1352 -qnx*)
1195 case $basic_machine in 1353 case $basic_machine in
1196 x86-* | i*86-*) 1354 x86-* | i*86-*)
1225 os=`echo $os | sed -e 's|sunos6|solaris3|'` 1383 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1226 ;; 1384 ;;
1227 -opened*) 1385 -opened*)
1228 os=-openedition 1386 os=-openedition
1229 ;; 1387 ;;
1230 -os400*) 1388 -os400*)
1231 os=-os400 1389 os=-os400
1232 ;; 1390 ;;
1233 -wince*) 1391 -wince*)
1234 os=-wince 1392 os=-wince
1235 ;; 1393 ;;
1274 os=`echo $os | sed -e 's|sinix|sysv|'` 1432 os=`echo $os | sed -e 's|sinix|sysv|'`
1275 ;; 1433 ;;
1276 -sinix*) 1434 -sinix*)
1277 os=-sysv4 1435 os=-sysv4
1278 ;; 1436 ;;
1279 -tpf*) 1437 -tpf*)
1280 os=-tpf 1438 os=-tpf
1281 ;; 1439 ;;
1282 -triton*) 1440 -triton*)
1283 os=-sysv3 1441 os=-sysv3
1284 ;; 1442 ;;
1315 -kaos*) 1473 -kaos*)
1316 os=-kaos 1474 os=-kaos
1317 ;; 1475 ;;
1318 -zvmoe) 1476 -zvmoe)
1319 os=-zvmoe 1477 os=-zvmoe
1478 ;;
1479 -dicos*)
1480 os=-dicos
1481 ;;
1482 -nacl*)
1320 ;; 1483 ;;
1321 -none) 1484 -none)
1322 ;; 1485 ;;
1323 *) 1486 *)
1324 # Get rid of the `-' at the beginning of $os. 1487 # Get rid of the `-' at the beginning of $os.
1338# that MANUFACTURER isn't an operating system. Otherwise, code above 1501# that MANUFACTURER isn't an operating system. Otherwise, code above
1339# will signal an error saying that MANUFACTURER isn't an operating 1502# will signal an error saying that MANUFACTURER isn't an operating
1340# system, and we'll never get to this point. 1503# system, and we'll never get to this point.
1341 1504
1342case $basic_machine in 1505case $basic_machine in
1506 score-*)
1507 os=-elf
1508 ;;
1509 spu-*)
1510 os=-elf
1511 ;;
1343 *-acorn) 1512 *-acorn)
1344 os=-riscix1.2 1513 os=-riscix1.2
1345 ;; 1514 ;;
1346 arm*-rebel) 1515 arm*-rebel)
1347 os=-linux 1516 os=-linux
1348 ;; 1517 ;;
1349 arm*-semi) 1518 arm*-semi)
1350 os=-aout 1519 os=-aout
1351 ;; 1520 ;;
1352 c4x-* | tic4x-*) 1521 c4x-* | tic4x-*)
1353 os=-coff 1522 os=-coff
1354 ;; 1523 ;;
1524 tic54x-*)
1525 os=-coff
1526 ;;
1527 tic55x-*)
1528 os=-coff
1529 ;;
1530 tic6x-*)
1531 os=-coff
1532 ;;
1355 # This must come before the *-dec entry. 1533 # This must come before the *-dec entry.
1356 pdp10-*) 1534 pdp10-*)
1357 os=-tops20 1535 os=-tops20
1358 ;; 1536 ;;
1359 pdp11-*) 1537 pdp11-*)
1375 # os=-sunos4 1553 # os=-sunos4
1376 ;; 1554 ;;
1377 m68*-cisco) 1555 m68*-cisco)
1378 os=-aout 1556 os=-aout
1379 ;; 1557 ;;
1558 mep-*)
1559 os=-elf
1560 ;;
1380 mips*-cisco) 1561 mips*-cisco)
1381 os=-elf 1562 os=-elf
1382 ;; 1563 ;;
1383 mips*-*) 1564 mips*-*)
1384 os=-elf 1565 os=-elf
1399 os=-haiku 1580 os=-haiku
1400 ;; 1581 ;;
1401 *-ibm) 1582 *-ibm)
1402 os=-aix 1583 os=-aix
1403 ;; 1584 ;;
1404 *-knuth) 1585 *-knuth)
1405 os=-mmixware 1586 os=-mmixware
1406 ;; 1587 ;;
1407 *-wec) 1588 *-wec)
1408 os=-proelf 1589 os=-proelf
1409 ;; 1590 ;;
1504 vendor=acorn 1685 vendor=acorn
1505 ;; 1686 ;;
1506 -sunos*) 1687 -sunos*)
1507 vendor=sun 1688 vendor=sun
1508 ;; 1689 ;;
1509 -aix*) 1690 -cnk*|-aix*)
1510 vendor=ibm 1691 vendor=ibm
1511 ;; 1692 ;;
1512 -beos*) 1693 -beos*)
1513 vendor=be 1694 vendor=be
1514 ;; 1695 ;;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines