Mercurial > urweb
comparison config.sub @ 1826:6a621a625b04
New release
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 25 Sep 2012 08:16:58 -0400 |
parents | 40557fb08e98 |
children |
comparison
equal
deleted
inserted
replaced
1825:52c291b05738 | 1826:6a621a625b04 |
---|---|
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, 2006, 2007, 2008, 2009, 2010, | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
5 # 2011, 2012 Free Software Foundation, Inc. | 5 # Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2012-04-18' | 7 timestamp='2010-01-22' |
8 | 8 |
9 # This file is (in principle) common to ALL GNU software. | 9 # This file is (in principle) common to ALL GNU software. |
10 # 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 |
11 # 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. |
12 # | 12 # |
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 # GNU General Public License for more details. | 21 # GNU General Public License for more details. |
22 # | 22 # |
23 # 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 |
24 # along with this program; if not, see <http://www.gnu.org/licenses/>. | 24 # along with this program; if not, write to the Free Software |
25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
26 # 02110-1301, USA. | |
25 # | 27 # |
26 # 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 |
27 # distribute this file as part of a program that contains a | 29 # distribute this file as part of a program that contains a |
28 # configuration script generated by Autoconf, you may include it under | 30 # configuration script generated by Autoconf, you may include it under |
29 # 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. |
72 | 74 |
73 version="\ | 75 version="\ |
74 GNU config.sub ($timestamp) | 76 GNU config.sub ($timestamp) |
75 | 77 |
76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
77 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | 79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
78 Free Software Foundation, Inc. | 80 Software Foundation, Inc. |
79 | 81 |
80 This is free software; see the source for copying conditions. There is NO | 82 This is free software; see the source for copying conditions. There is NO |
81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
82 | 84 |
83 help=" | 85 help=" |
120 | 122 |
121 # 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). |
122 # Here we must recognize all the valid KERNEL-OS combinations. | 124 # Here we must recognize all the valid KERNEL-OS combinations. |
123 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
124 case $maybe_os in | 126 case $maybe_os in |
125 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ | 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
126 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | 128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
127 knetbsd*-gnu* | netbsd*-gnu* | \ | |
128 kopensolaris*-gnu* | \ | 129 kopensolaris*-gnu* | \ |
129 storm-chaos* | os2-emx* | rtmk-nova*) | 130 storm-chaos* | os2-emx* | rtmk-nova*) |
130 os=-$maybe_os | 131 os=-$maybe_os |
131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | 132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
132 ;; | |
133 android-linux) | |
134 os=-linux-android | |
135 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
136 ;; | 133 ;; |
137 *) | 134 *) |
138 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 135 basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
139 if [ $basic_machine != $1 ] | 136 if [ $basic_machine != $1 ] |
140 then os=`echo $1 | sed 's/.*-/-/'` | 137 then os=`echo $1 | sed 's/.*-/-/'` |
158 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | 155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
159 -apple | -axis | -knuth | -cray | -microblaze) | 156 -apple | -axis | -knuth | -cray | -microblaze) |
160 os= | 157 os= |
161 basic_machine=$1 | 158 basic_machine=$1 |
162 ;; | 159 ;; |
163 -bluegene*) | 160 -bluegene*) |
164 os=-cnk | 161 os=-cnk |
165 ;; | 162 ;; |
166 -sim | -cisco | -oki | -wec | -winbond) | 163 -sim | -cisco | -oki | -wec | -winbond) |
167 os= | 164 os= |
168 basic_machine=$1 | 165 basic_machine=$1 |
169 ;; | 166 ;; |
175 ;; | 172 ;; |
176 -chorusos*) | 173 -chorusos*) |
177 os=-chorusos | 174 os=-chorusos |
178 basic_machine=$1 | 175 basic_machine=$1 |
179 ;; | 176 ;; |
180 -chorusrdb) | 177 -chorusrdb) |
181 os=-chorusrdb | 178 os=-chorusrdb |
182 basic_machine=$1 | 179 basic_machine=$1 |
183 ;; | 180 ;; |
184 -hiux*) | 181 -hiux*) |
185 os=-hiuxwe2 | 182 os=-hiuxwe2 |
186 ;; | 183 ;; |
187 -sco6) | 184 -sco6) |
188 os=-sco5v6 | 185 os=-sco5v6 |
222 -clix*) | 219 -clix*) |
223 basic_machine=clipper-intergraph | 220 basic_machine=clipper-intergraph |
224 ;; | 221 ;; |
225 -isc*) | 222 -isc*) |
226 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | 223 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
227 ;; | |
228 -lynx*178) | |
229 os=-lynxos178 | |
230 ;; | |
231 -lynx*5) | |
232 os=-lynxos5 | |
233 ;; | 224 ;; |
234 -lynx*) | 225 -lynx*) |
235 os=-lynxos | 226 os=-lynxos |
236 ;; | 227 ;; |
237 -ptx*) | 228 -ptx*) |
253 case $basic_machine in | 244 case $basic_machine in |
254 # Recognize the basic CPU types without company name. | 245 # Recognize the basic CPU types without company name. |
255 # Some are omitted here because they have special meanings below. | 246 # Some are omitted here because they have special meanings below. |
256 1750a | 580 \ | 247 1750a | 580 \ |
257 | a29k \ | 248 | a29k \ |
258 | aarch64 | aarch64_be \ | |
259 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | 249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
260 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | 250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
261 | am33_2.0 \ | 251 | am33_2.0 \ |
262 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | 252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
263 | be32 | be64 \ | |
264 | bfin \ | 253 | bfin \ |
265 | c4x | clipper \ | 254 | c4x | clipper \ |
266 | d10v | d30v | dlx | dsp16xx \ | 255 | d10v | d30v | dlx | dsp16xx \ |
267 | epiphany \ | |
268 | fido | fr30 | frv \ | 256 | fido | fr30 | frv \ |
269 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | 257 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
270 | hexagon \ | |
271 | i370 | i860 | i960 | ia64 \ | 258 | i370 | i860 | i960 | ia64 \ |
272 | ip2k | iq2000 \ | 259 | ip2k | iq2000 \ |
273 | le32 | le64 \ | |
274 | lm32 \ | 260 | lm32 \ |
275 | m32c | m32r | m32rle | m68000 | m68k | m88k \ | 261 | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
276 | maxq | mb | microblaze | mcore | mep | metag \ | 262 | maxq | mb | microblaze | mcore | mep | metag \ |
277 | mips | mipsbe | mipseb | mipsel | mipsle \ | 263 | mips | mipsbe | mipseb | mipsel | mipsle \ |
278 | mips16 \ | 264 | mips16 \ |
294 | mipstx39 | mipstx39el \ | 280 | mipstx39 | mipstx39el \ |
295 | mn10200 | mn10300 \ | 281 | mn10200 | mn10300 \ |
296 | moxie \ | 282 | moxie \ |
297 | mt \ | 283 | mt \ |
298 | msp430 \ | 284 | msp430 \ |
299 | nds32 | nds32le | nds32be \ | |
300 | nios | nios2 \ | 285 | nios | nios2 \ |
301 | ns16k | ns32k \ | 286 | ns16k | ns32k \ |
302 | open8 \ | |
303 | or32 \ | 287 | or32 \ |
304 | pdp10 | pdp11 | pj | pjl \ | 288 | pdp10 | pdp11 | pj | pjl \ |
305 | powerpc | powerpc64 | powerpc64le | powerpcle \ | 289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
306 | pyramid \ | 290 | pyramid \ |
307 | rl78 | rx \ | 291 | rx \ |
308 | score \ | 292 | score \ |
309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | 293 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
310 | sh64 | sh64le \ | 294 | sh64 | sh64le \ |
311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | 295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
312 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
313 | spu \ | 297 | spu | strongarm \ |
314 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | 298 | tahoe | thumb | tic4x | tic80 | tron \ |
315 | ubicom32 \ | 299 | ubicom32 \ |
316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | 300 | v850 | v850e \ |
317 | we32k \ | 301 | we32k \ |
318 | x86 | xc16x | xstormy16 | xtensa \ | 302 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
319 | z8k | z80) | 303 | z8k | z80) |
320 basic_machine=$basic_machine-unknown | 304 basic_machine=$basic_machine-unknown |
321 ;; | 305 ;; |
322 c54x) | 306 m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
323 basic_machine=tic54x-unknown | 307 # Motorola 68HC11/12. |
324 ;; | |
325 c55x) | |
326 basic_machine=tic55x-unknown | |
327 ;; | |
328 c6x) | |
329 basic_machine=tic6x-unknown | |
330 ;; | |
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) | |
332 basic_machine=$basic_machine-unknown | 308 basic_machine=$basic_machine-unknown |
333 os=-none | 309 os=-none |
334 ;; | 310 ;; |
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | 311 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
336 ;; | 312 ;; |
337 ms1) | 313 ms1) |
338 basic_machine=mt-unknown | 314 basic_machine=mt-unknown |
339 ;; | |
340 | |
341 strongarm | thumb | xscale) | |
342 basic_machine=arm-unknown | |
343 ;; | |
344 xgate) | |
345 basic_machine=$basic_machine-unknown | |
346 os=-none | |
347 ;; | |
348 xscaleeb) | |
349 basic_machine=armeb-unknown | |
350 ;; | |
351 | |
352 xscaleel) | |
353 basic_machine=armel-unknown | |
354 ;; | 315 ;; |
355 | 316 |
356 # We use `pc' rather than `unknown' | 317 # We use `pc' rather than `unknown' |
357 # because (1) that's what they normally are, and | 318 # because (1) that's what they normally are, and |
358 # (2) the word "unknown" tends to confuse beginning users. | 319 # (2) the word "unknown" tends to confuse beginning users. |
365 exit 1 | 326 exit 1 |
366 ;; | 327 ;; |
367 # Recognize the basic CPU types with company name. | 328 # Recognize the basic CPU types with company name. |
368 580-* \ | 329 580-* \ |
369 | a29k-* \ | 330 | a29k-* \ |
370 | aarch64-* | aarch64_be-* \ | |
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | 331 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | 332 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | 333 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
375 | avr-* | avr32-* \ | 335 | avr-* | avr32-* \ |
376 | be32-* | be64-* \ | |
377 | bfin-* | bs2000-* \ | 336 | bfin-* | bs2000-* \ |
378 | c[123]* | c30-* | [cjt]90-* | c4x-* \ | 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
379 | clipper-* | craynv-* | cydra-* \ | 338 | clipper-* | craynv-* | cydra-* \ |
380 | d10v-* | d30v-* | dlx-* \ | 339 | d10v-* | d30v-* | dlx-* \ |
381 | elxsi-* \ | 340 | elxsi-* \ |
382 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | 341 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
383 | h8300-* | h8500-* \ | 342 | h8300-* | h8500-* \ |
384 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | 343 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
385 | hexagon-* \ | |
386 | i*86-* | i860-* | i960-* | ia64-* \ | 344 | i*86-* | i860-* | i960-* | ia64-* \ |
387 | ip2k-* | iq2000-* \ | 345 | ip2k-* | iq2000-* \ |
388 | le32-* | le64-* \ | |
389 | lm32-* \ | 346 | lm32-* \ |
390 | m32c-* | m32r-* | m32rle-* \ | 347 | m32c-* | m32r-* | m32rle-* \ |
391 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | 348 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
392 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | 349 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
393 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | 350 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
409 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | 366 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
410 | mipstx39-* | mipstx39el-* \ | 367 | mipstx39-* | mipstx39el-* \ |
411 | mmix-* \ | 368 | mmix-* \ |
412 | mt-* \ | 369 | mt-* \ |
413 | msp430-* \ | 370 | msp430-* \ |
414 | nds32-* | nds32le-* | nds32be-* \ | |
415 | nios-* | nios2-* \ | 371 | nios-* | nios2-* \ |
416 | none-* | np1-* | ns16k-* | ns32k-* \ | 372 | none-* | np1-* | ns16k-* | ns32k-* \ |
417 | open8-* \ | |
418 | orion-* \ | 373 | orion-* \ |
419 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 374 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
420 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | 375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
421 | pyramid-* \ | 376 | pyramid-* \ |
422 | rl78-* | romp-* | rs6000-* | rx-* \ | 377 | romp-* | rs6000-* | rx-* \ |
423 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | 378 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
424 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 379 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
425 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | 380 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
426 | sparclite-* \ | 381 | sparclite-* \ |
427 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | 382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
428 | tahoe-* \ | 383 | tahoe-* | thumb-* \ |
429 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | 384 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
430 | tile*-* \ | 385 | tile-* | tilegx-* \ |
431 | tron-* \ | 386 | tron-* \ |
432 | ubicom32-* \ | 387 | ubicom32-* \ |
433 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | 388 | v850-* | v850e-* | vax-* \ |
434 | vax-* \ | |
435 | we32k-* \ | 389 | we32k-* \ |
436 | x86-* | x86_64-* | xc16x-* | xps100-* \ | 390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
437 | xstormy16-* | xtensa*-* \ | 391 | xstormy16-* | xtensa*-* \ |
438 | ymp-* \ | 392 | ymp-* \ |
439 | z8k-* | z80-*) | 393 | z8k-* | z80-*) |
440 ;; | 394 ;; |
441 # Recognize the basic CPU types without company name, with glob match. | 395 # Recognize the basic CPU types without company name, with glob match. |
456 ;; | 410 ;; |
457 a29khif) | 411 a29khif) |
458 basic_machine=a29k-amd | 412 basic_machine=a29k-amd |
459 os=-udi | 413 os=-udi |
460 ;; | 414 ;; |
461 abacus) | 415 abacus) |
462 basic_machine=abacus-unknown | 416 basic_machine=abacus-unknown |
463 ;; | 417 ;; |
464 adobe68k) | 418 adobe68k) |
465 basic_machine=m68010-adobe | 419 basic_machine=m68010-adobe |
466 os=-scout | 420 os=-scout |
526 ;; | 480 ;; |
527 bluegene*) | 481 bluegene*) |
528 basic_machine=powerpc-ibm | 482 basic_machine=powerpc-ibm |
529 os=-cnk | 483 os=-cnk |
530 ;; | 484 ;; |
531 c54x-*) | |
532 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
533 ;; | |
534 c55x-*) | |
535 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
536 ;; | |
537 c6x-*) | |
538 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
539 ;; | |
540 c90) | 485 c90) |
541 basic_machine=c90-cray | 486 basic_machine=c90-cray |
542 os=-unicos | 487 os=-unicos |
543 ;; | 488 ;; |
544 cegcc) | 489 cegcc) |
545 basic_machine=arm-unknown | 490 basic_machine=arm-unknown |
546 os=-cegcc | 491 os=-cegcc |
547 ;; | 492 ;; |
548 convex-c1) | 493 convex-c1) |
549 basic_machine=c1-convex | 494 basic_machine=c1-convex |
571 ;; | 516 ;; |
572 craynv) | 517 craynv) |
573 basic_machine=craynv-cray | 518 basic_machine=craynv-cray |
574 os=-unicosmp | 519 os=-unicosmp |
575 ;; | 520 ;; |
576 cr16 | cr16-*) | 521 cr16) |
577 basic_machine=cr16-unknown | 522 basic_machine=cr16-unknown |
578 os=-elf | 523 os=-elf |
579 ;; | 524 ;; |
580 crds | unos) | 525 crds | unos) |
581 basic_machine=m68k-crds | 526 basic_machine=m68k-crds |
729 os=-proelf | 674 os=-proelf |
730 ;; | 675 ;; |
731 i370-ibm* | ibm*) | 676 i370-ibm* | ibm*) |
732 basic_machine=i370-ibm | 677 basic_machine=i370-ibm |
733 ;; | 678 ;; |
679 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
734 i*86v32) | 680 i*86v32) |
735 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | 681 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
736 os=-sysv32 | 682 os=-sysv32 |
737 ;; | 683 ;; |
738 i*86v4*) | 684 i*86v4*) |
786 ;; | 732 ;; |
787 merlin) | 733 merlin) |
788 basic_machine=ns32k-utek | 734 basic_machine=ns32k-utek |
789 os=-sysv | 735 os=-sysv |
790 ;; | 736 ;; |
791 microblaze) | 737 microblaze) |
792 basic_machine=microblaze-xilinx | 738 basic_machine=microblaze-xilinx |
793 ;; | 739 ;; |
794 mingw32) | 740 mingw32) |
795 basic_machine=i386-pc | 741 basic_machine=i386-pc |
796 os=-mingw32 | 742 os=-mingw32 |
825 os=-msdos | 771 os=-msdos |
826 ;; | 772 ;; |
827 ms1-*) | 773 ms1-*) |
828 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | 774 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
829 ;; | 775 ;; |
830 msys) | |
831 basic_machine=i386-pc | |
832 os=-msys | |
833 ;; | |
834 mvs) | 776 mvs) |
835 basic_machine=i370-ibm | 777 basic_machine=i370-ibm |
836 os=-mvs | 778 os=-mvs |
837 ;; | |
838 nacl) | |
839 basic_machine=le32-unknown | |
840 os=-nacl | |
841 ;; | 779 ;; |
842 ncr3000) | 780 ncr3000) |
843 basic_machine=i486-ncr | 781 basic_machine=i486-ncr |
844 os=-sysv4 | 782 os=-sysv4 |
845 ;; | 783 ;; |
901 os=-nonstopux | 839 os=-nonstopux |
902 ;; | 840 ;; |
903 np1) | 841 np1) |
904 basic_machine=np1-gould | 842 basic_machine=np1-gould |
905 ;; | 843 ;; |
906 neo-tandem) | |
907 basic_machine=neo-tandem | |
908 ;; | |
909 nse-tandem) | |
910 basic_machine=nse-tandem | |
911 ;; | |
912 nsr-tandem) | 844 nsr-tandem) |
913 basic_machine=nsr-tandem | 845 basic_machine=nsr-tandem |
914 ;; | 846 ;; |
915 op50n-* | op60c-*) | 847 op50n-* | op60c-*) |
916 basic_machine=hppa1.1-oki | 848 basic_machine=hppa1.1-oki |
989 pn) | 921 pn) |
990 basic_machine=pn-gould | 922 basic_machine=pn-gould |
991 ;; | 923 ;; |
992 power) basic_machine=power-ibm | 924 power) basic_machine=power-ibm |
993 ;; | 925 ;; |
994 ppc | ppcbe) basic_machine=powerpc-unknown | 926 ppc) basic_machine=powerpc-unknown |
995 ;; | 927 ;; |
996 ppc-* | ppcbe-*) | 928 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
997 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
998 ;; | 929 ;; |
999 ppcle | powerpclittle | ppc-le | powerpc-little) | 930 ppcle | powerpclittle | ppc-le | powerpc-little) |
1000 basic_machine=powerpcle-unknown | 931 basic_machine=powerpcle-unknown |
1001 ;; | 932 ;; |
1002 ppcle-* | powerpclittle-*) | 933 ppcle-* | powerpclittle-*) |
1086 ;; | 1017 ;; |
1087 stratus) | 1018 stratus) |
1088 basic_machine=i860-stratus | 1019 basic_machine=i860-stratus |
1089 os=-sysv4 | 1020 os=-sysv4 |
1090 ;; | 1021 ;; |
1091 strongarm-* | thumb-*) | |
1092 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1093 ;; | |
1094 sun2) | 1022 sun2) |
1095 basic_machine=m68000-sun | 1023 basic_machine=m68000-sun |
1096 ;; | 1024 ;; |
1097 sun2os3) | 1025 sun2os3) |
1098 basic_machine=m68000-sun | 1026 basic_machine=m68000-sun |
1145 ;; | 1073 ;; |
1146 t90) | 1074 t90) |
1147 basic_machine=t90-cray | 1075 basic_machine=t90-cray |
1148 os=-unicos | 1076 os=-unicos |
1149 ;; | 1077 ;; |
1078 tic54x | c54x*) | |
1079 basic_machine=tic54x-unknown | |
1080 os=-coff | |
1081 ;; | |
1082 tic55x | c55x*) | |
1083 basic_machine=tic55x-unknown | |
1084 os=-coff | |
1085 ;; | |
1086 tic6x | c6x*) | |
1087 basic_machine=tic6x-unknown | |
1088 os=-coff | |
1089 ;; | |
1090 # This must be matched before tile*. | |
1091 tilegx*) | |
1092 basic_machine=tilegx-unknown | |
1093 os=-linux-gnu | |
1094 ;; | |
1150 tile*) | 1095 tile*) |
1151 basic_machine=$basic_machine-unknown | 1096 basic_machine=tile-unknown |
1152 os=-linux-gnu | 1097 os=-linux-gnu |
1153 ;; | 1098 ;; |
1154 tx39) | 1099 tx39) |
1155 basic_machine=mipstx39-unknown | 1100 basic_machine=mipstx39-unknown |
1156 ;; | 1101 ;; |
1215 basic_machine=i686-pc | 1160 basic_machine=i686-pc |
1216 os=-mingw32 | 1161 os=-mingw32 |
1217 ;; | 1162 ;; |
1218 xps | xps100) | 1163 xps | xps100) |
1219 basic_machine=xps100-honeywell | 1164 basic_machine=xps100-honeywell |
1220 ;; | |
1221 xscale-* | xscalee[bl]-*) | |
1222 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1223 ;; | 1165 ;; |
1224 ymp) | 1166 ymp) |
1225 basic_machine=ymp-cray | 1167 basic_machine=ymp-cray |
1226 os=-unicos | 1168 os=-unicos |
1227 ;; | 1169 ;; |
1316 # Decode manufacturer-specific aliases for certain operating systems. | 1258 # Decode manufacturer-specific aliases for certain operating systems. |
1317 | 1259 |
1318 if [ x"$os" != x"" ] | 1260 if [ x"$os" != x"" ] |
1319 then | 1261 then |
1320 case $os in | 1262 case $os in |
1321 # First match some system type aliases | 1263 # First match some system type aliases |
1322 # that might get confused with valid system types. | 1264 # that might get confused with valid system types. |
1323 # -solaris* is a basic system type, with this one exception. | 1265 # -solaris* is a basic system type, with this one exception. |
1324 -auroraux) | 1266 -auroraux) |
1325 os=-auroraux | 1267 os=-auroraux |
1326 ;; | 1268 ;; |
1327 -solaris1 | -solaris1.*) | 1269 -solaris1 | -solaris1.*) |
1328 os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1270 os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1329 ;; | 1271 ;; |
1330 -solaris) | 1272 -solaris) |
1356 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | 1298 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1357 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | 1299 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1358 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 1300 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1359 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1360 | -chorusos* | -chorusrdb* | -cegcc* \ | 1302 | -chorusos* | -chorusrdb* | -cegcc* \ |
1361 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1362 | -mingw32* | -linux-gnu* | -linux-android* \ | 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
1363 | -linux-newlib* | -linux-uclibc* \ | |
1364 | -uxpv* | -beos* | -mpeix* | -udk* \ | 1305 | -uxpv* | -beos* | -mpeix* | -udk* \ |
1365 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1366 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1367 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | 1308 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1368 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1309 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1405 os=`echo $os | sed -e 's|sunos6|solaris3|'` | 1346 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1406 ;; | 1347 ;; |
1407 -opened*) | 1348 -opened*) |
1408 os=-openedition | 1349 os=-openedition |
1409 ;; | 1350 ;; |
1410 -os400*) | 1351 -os400*) |
1411 os=-os400 | 1352 os=-os400 |
1412 ;; | 1353 ;; |
1413 -wince*) | 1354 -wince*) |
1414 os=-wince | 1355 os=-wince |
1415 ;; | 1356 ;; |
1454 os=`echo $os | sed -e 's|sinix|sysv|'` | 1395 os=`echo $os | sed -e 's|sinix|sysv|'` |
1455 ;; | 1396 ;; |
1456 -sinix*) | 1397 -sinix*) |
1457 os=-sysv4 | 1398 os=-sysv4 |
1458 ;; | 1399 ;; |
1459 -tpf*) | 1400 -tpf*) |
1460 os=-tpf | 1401 os=-tpf |
1461 ;; | 1402 ;; |
1462 -triton*) | 1403 -triton*) |
1463 os=-sysv3 | 1404 os=-sysv3 |
1464 ;; | 1405 ;; |
1499 os=-zvmoe | 1440 os=-zvmoe |
1500 ;; | 1441 ;; |
1501 -dicos*) | 1442 -dicos*) |
1502 os=-dicos | 1443 os=-dicos |
1503 ;; | 1444 ;; |
1504 -nacl*) | 1445 -nacl*) |
1505 ;; | 1446 ;; |
1506 -none) | 1447 -none) |
1507 ;; | 1448 ;; |
1508 *) | 1449 *) |
1509 # Get rid of the `-' at the beginning of $os. | 1450 # Get rid of the `-' at the beginning of $os. |
1510 os=`echo $os | sed 's/[^-]*-//'` | 1451 os=`echo $os | sed 's/[^-]*-//'` |
1523 # that MANUFACTURER isn't an operating system. Otherwise, code above | 1464 # that MANUFACTURER isn't an operating system. Otherwise, code above |
1524 # will signal an error saying that MANUFACTURER isn't an operating | 1465 # will signal an error saying that MANUFACTURER isn't an operating |
1525 # system, and we'll never get to this point. | 1466 # system, and we'll never get to this point. |
1526 | 1467 |
1527 case $basic_machine in | 1468 case $basic_machine in |
1528 score-*) | 1469 score-*) |
1529 os=-elf | 1470 os=-elf |
1530 ;; | 1471 ;; |
1531 spu-*) | 1472 spu-*) |
1532 os=-elf | 1473 os=-elf |
1533 ;; | 1474 ;; |
1534 *-acorn) | 1475 *-acorn) |
1535 os=-riscix1.2 | 1476 os=-riscix1.2 |
1536 ;; | 1477 ;; |
1538 os=-linux | 1479 os=-linux |
1539 ;; | 1480 ;; |
1540 arm*-semi) | 1481 arm*-semi) |
1541 os=-aout | 1482 os=-aout |
1542 ;; | 1483 ;; |
1543 c4x-* | tic4x-*) | 1484 c4x-* | tic4x-*) |
1544 os=-coff | 1485 os=-coff |
1545 ;; | |
1546 hexagon-*) | |
1547 os=-elf | |
1548 ;; | |
1549 tic54x-*) | |
1550 os=-coff | |
1551 ;; | |
1552 tic55x-*) | |
1553 os=-coff | |
1554 ;; | |
1555 tic6x-*) | |
1556 os=-coff | |
1557 ;; | 1486 ;; |
1558 # This must come before the *-dec entry. | 1487 # This must come before the *-dec entry. |
1559 pdp10-*) | 1488 pdp10-*) |
1560 os=-tops20 | 1489 os=-tops20 |
1561 ;; | 1490 ;; |
1571 i386-sun) | 1500 i386-sun) |
1572 os=-sunos4.0.2 | 1501 os=-sunos4.0.2 |
1573 ;; | 1502 ;; |
1574 m68000-sun) | 1503 m68000-sun) |
1575 os=-sunos3 | 1504 os=-sunos3 |
1505 # This also exists in the configure program, but was not the | |
1506 # default. | |
1507 # os=-sunos4 | |
1576 ;; | 1508 ;; |
1577 m68*-cisco) | 1509 m68*-cisco) |
1578 os=-aout | 1510 os=-aout |
1579 ;; | 1511 ;; |
1580 mep-*) | 1512 mep-*) |
1581 os=-elf | 1513 os=-elf |
1582 ;; | 1514 ;; |
1583 mips*-cisco) | 1515 mips*-cisco) |
1584 os=-elf | 1516 os=-elf |
1585 ;; | 1517 ;; |
1602 os=-haiku | 1534 os=-haiku |
1603 ;; | 1535 ;; |
1604 *-ibm) | 1536 *-ibm) |
1605 os=-aix | 1537 os=-aix |
1606 ;; | 1538 ;; |
1607 *-knuth) | 1539 *-knuth) |
1608 os=-mmixware | 1540 os=-mmixware |
1609 ;; | 1541 ;; |
1610 *-wec) | 1542 *-wec) |
1611 os=-proelf | 1543 os=-proelf |
1612 ;; | 1544 ;; |