Changeset 26793 for main/trunk/greenstone2/common-src/indexers/config.sub
- Timestamp:
- 2013-01-29T16:19:58+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/config.sub
r16583 r26793 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 4 # Free Software Foundation, Inc. 5 6 timestamp='2001-06-08' 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5 # 2011 Free Software Foundation, Inc. 6 7 timestamp='2011-11-11' 7 8 8 9 # This file is (in principle) common to ALL GNU software. … … 22 23 # You should have received a copy of the GNU General Public License 23 24 # along with this program; if not, write to the Free Software 24 # Foundation, Inc., 5 9 Temple Place - Suite 330,25 # Boston, MA 02111-1307, USA.26 25 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 26 # 02110-1301, USA. 27 # 27 28 # As a special exception to the GNU General Public License, if you 28 29 # distribute this file as part of a program that contains a … … 30 31 # the same distribution terms that you use for the rest of that program. 31 32 32 # Please send patches to <[email protected]>. 33 34 # Please send patches to <[email protected]>. Submit a context 35 # diff and a properly formatted GNU ChangeLog entry. 33 36 # 34 37 # Configuration subroutine to validate and canonicalize a configuration type. … … 36 39 # If it is invalid, we print an error message on stderr and exit with code 1. 37 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 38 44 39 45 # This file is supposed to be the same for all GNU packages … … 70 76 GNU config.sub ($timestamp) 71 77 72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Free Software Foundation, Inc. 78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 80 Software Foundation, Inc. 74 81 75 82 This is free software; see the source for copying conditions. There is NO … … 83 90 case $1 in 84 91 --time-stamp | --time* | -t ) 85 echo "$timestamp" ; exit 0;;92 echo "$timestamp" ; exit ;; 86 93 --version | -v ) 87 echo "$version" ; exit 0;;94 echo "$version" ; exit ;; 88 95 --help | --h* | -h ) 89 echo "$usage"; exit 0;;96 echo "$usage"; exit ;; 90 97 -- ) # Stop option processing 91 98 shift; break ;; … … 99 106 # First pass through any local machine types. 100 107 echo $1 101 exit 0;;108 exit ;; 102 109 103 110 * ) … … 118 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 119 126 case $maybe_os in 120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) 127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 129 knetbsd*-gnu* | netbsd*-gnu* | \ 130 kopensolaris*-gnu* | \ 131 storm-chaos* | os2-emx* | rtmk-nova*) 121 132 os=-$maybe_os 122 133 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 144 155 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 145 156 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 146 -apple | -axis )157 -apple | -axis | -knuth | -cray | -microblaze) 147 158 os= 148 159 basic_machine=$1 160 ;; 161 -bluegene*) 162 os=-cnk 149 163 ;; 150 164 -sim | -cisco | -oki | -wec | -winbond) … … 162 176 basic_machine=$1 163 177 ;; 164 165 178 -chorusrdb) 179 os=-chorusrdb 166 180 basic_machine=$1 167 181 ;; 168 182 -hiux*) 169 183 os=-hiuxwe2 184 ;; 185 -sco6) 186 os=-sco5v6 187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 170 188 ;; 171 189 -sco5) … … 182 200 ;; 183 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*) 184 206 # Don't forget version if it is 3.2v4 or newer. 185 207 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 224 246 # Recognize the basic CPU types without company name. 225 247 # Some are omitted here because they have special meanings below. 226 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ 227 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ 228 | pyramid | mn10200 | mn10300 | tron | a29k \ 229 | 580 | i960 | h8300 \ 230 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ 231 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 232 | hppa64 \ 233 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 234 | alphaev6[78] \ 235 | we32k | ns16k | clipper | i370 | sh | sh[34] \ 236 | powerpc | powerpcle \ 237 | 1750a | dsp16xx | pdp10 | pdp11 \ 238 | mips16 | mips64 | mipsel | mips64el \ 239 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 240 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 241 | mips64vr5000 | mips64vr5000el | mcore | s390 | s390x \ 242 | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ 243 | v850 | c4x \ 244 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ 245 | pj | pjl | h8500 | z8k) 248 1750a | 580 \ 249 | a29k \ 250 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 251 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 252 | am33_2.0 \ 253 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 254 | be32 | be64 \ 255 | bfin \ 256 | c4x | clipper \ 257 | d10v | d30v | dlx | dsp16xx \ 258 | epiphany \ 259 | fido | fr30 | frv \ 260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 261 | hexagon \ 262 | i370 | i860 | i960 | ia64 \ 263 | ip2k | iq2000 \ 264 | le32 | le64 \ 265 | lm32 \ 266 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 267 | maxq | mb | microblaze | mcore | mep | metag \ 268 | mips | mipsbe | mipseb | mipsel | mipsle \ 269 | mips16 \ 270 | mips64 | mips64el \ 271 | mips64octeon | mips64octeonel \ 272 | mips64orion | mips64orionel \ 273 | mips64r5900 | mips64r5900el \ 274 | mips64vr | mips64vrel \ 275 | mips64vr4100 | mips64vr4100el \ 276 | mips64vr4300 | mips64vr4300el \ 277 | mips64vr5000 | mips64vr5000el \ 278 | mips64vr5900 | mips64vr5900el \ 279 | mipsisa32 | mipsisa32el \ 280 | mipsisa32r2 | mipsisa32r2el \ 281 | mipsisa64 | mipsisa64el \ 282 | mipsisa64r2 | mipsisa64r2el \ 283 | mipsisa64sb1 | mipsisa64sb1el \ 284 | mipsisa64sr71k | mipsisa64sr71kel \ 285 | mipstx39 | mipstx39el \ 286 | mn10200 | mn10300 \ 287 | moxie \ 288 | mt \ 289 | msp430 \ 290 | nds32 | nds32le | nds32be \ 291 | nios | nios2 \ 292 | ns16k | ns32k \ 293 | open8 \ 294 | or32 \ 295 | pdp10 | pdp11 | pj | pjl \ 296 | powerpc | powerpc64 | powerpc64le | powerpcle \ 297 | pyramid \ 298 | rl78 | rx \ 299 | score \ 300 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 301 | sh64 | sh64le \ 302 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 303 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 304 | spu \ 305 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 306 | ubicom32 \ 307 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 308 | we32k \ 309 | x86 | xc16x | xstormy16 | xtensa \ 310 | z8k | z80) 246 311 basic_machine=$basic_machine-unknown 247 312 ;; 248 m6811 | m68hc11 | m6812 | m68hc12) 313 c54x) 314 basic_machine=tic54x-unknown 315 ;; 316 c55x) 317 basic_machine=tic55x-unknown 318 ;; 319 c6x) 320 basic_machine=tic6x-unknown 321 ;; 322 m6811 | m68hc11 | m6812 | m68hc12 | picochip) 249 323 # Motorola 68HC11/12. 250 324 basic_machine=$basic_machine-unknown … … 252 326 ;; 253 327 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 328 ;; 329 ms1) 330 basic_machine=mt-unknown 331 ;; 332 333 strongarm | thumb | xscale) 334 basic_machine=arm-unknown 335 ;; 336 337 xscaleeb) 338 basic_machine=armeb-unknown 339 ;; 340 341 xscaleel) 342 basic_machine=armel-unknown 254 343 ;; 255 344 … … 266 355 ;; 267 356 # Recognize the basic CPU types with company name. 268 # FIXME: clean up the formatting here. 269 vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 270 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ 271 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ 272 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 273 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 274 | xmp-* | ymp-* \ 275 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ 276 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 277 | hppa2.0n-* | hppa64-* \ 278 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ 279 | alphaev6[78]-* \ 280 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 281 | clipper-* | orion-* \ 282 | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \ 283 | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ 284 | mips16-* | mips64-* | mipsel-* \ 285 | mips64el-* | mips64orion-* | mips64orionel-* \ 286 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 287 | mipstx39-* | mipstx39el-* | mcore-* \ 288 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ 289 | [cjt]90-* \ 290 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 291 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ 292 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) 357 580-* \ 358 | a29k-* \ 359 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 360 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 361 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 362 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 363 | avr-* | avr32-* \ 364 | be32-* | be64-* \ 365 | bfin-* | bs2000-* \ 366 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 367 | clipper-* | craynv-* | cydra-* \ 368 | d10v-* | d30v-* | dlx-* \ 369 | elxsi-* \ 370 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 371 | h8300-* | h8500-* \ 372 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 373 | hexagon-* \ 374 | i*86-* | i860-* | i960-* | ia64-* \ 375 | ip2k-* | iq2000-* \ 376 | le32-* | le64-* \ 377 | lm32-* \ 378 | m32c-* | m32r-* | m32rle-* \ 379 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 380 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ 381 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 382 | mips16-* \ 383 | mips64-* | mips64el-* \ 384 | mips64octeon-* | mips64octeonel-* \ 385 | mips64orion-* | mips64orionel-* \ 386 | mips64r5900-* | mips64r5900el-* \ 387 | mips64vr-* | mips64vrel-* \ 388 | mips64vr4100-* | mips64vr4100el-* \ 389 | mips64vr4300-* | mips64vr4300el-* \ 390 | mips64vr5000-* | mips64vr5000el-* \ 391 | mips64vr5900-* | mips64vr5900el-* \ 392 | mipsisa32-* | mipsisa32el-* \ 393 | mipsisa32r2-* | mipsisa32r2el-* \ 394 | mipsisa64-* | mipsisa64el-* \ 395 | mipsisa64r2-* | mipsisa64r2el-* \ 396 | mipsisa64sb1-* | mipsisa64sb1el-* \ 397 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 398 | mipstx39-* | mipstx39el-* \ 399 | mmix-* \ 400 | mt-* \ 401 | msp430-* \ 402 | nds32-* | nds32le-* | nds32be-* \ 403 | nios-* | nios2-* \ 404 | none-* | np1-* | ns16k-* | ns32k-* \ 405 | open8-* \ 406 | orion-* \ 407 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 408 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 409 | pyramid-* \ 410 | rl78-* | romp-* | rs6000-* | rx-* \ 411 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 412 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 413 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 414 | sparclite-* \ 415 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ 416 | tahoe-* \ 417 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 418 | tile*-* \ 419 | tron-* \ 420 | ubicom32-* \ 421 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 422 | vax-* \ 423 | we32k-* \ 424 | x86-* | x86_64-* | xc16x-* | xps100-* \ 425 | xstormy16-* | xtensa*-* \ 426 | ymp-* \ 427 | z8k-* | z80-*) 428 ;; 429 # Recognize the basic CPU types without company name, with glob match. 430 xtensa*) 431 basic_machine=$basic_machine-unknown 293 432 ;; 294 433 # Recognize the various machine names and aliases which stand … … 308 447 os=-udi 309 448 ;; 449 abacus) 450 basic_machine=abacus-unknown 451 ;; 310 452 adobe68k) 311 453 basic_machine=m68010-adobe … … 322 464 os=-bsd 323 465 ;; 466 amd64) 467 basic_machine=x86_64-pc 468 ;; 469 amd64-*) 470 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 471 ;; 324 472 amdahl) 325 473 basic_machine=580-amdahl … … 345 493 os=-bsd 346 494 ;; 495 aros) 496 basic_machine=i386-pc 497 os=-aros 498 ;; 347 499 aux) 348 500 basic_machine=m68k-apple … … 353 505 os=-dynix 354 506 ;; 507 blackfin) 508 basic_machine=bfin-unknown 509 os=-linux 510 ;; 511 blackfin-*) 512 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 513 os=-linux 514 ;; 515 bluegene*) 516 basic_machine=powerpc-ibm 517 os=-cnk 518 ;; 519 c54x-*) 520 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` 521 ;; 522 c55x-*) 523 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` 524 ;; 525 c6x-*) 526 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` 527 ;; 528 c90) 529 basic_machine=c90-cray 530 os=-unicos 531 ;; 532 cegcc) 533 basic_machine=arm-unknown 534 os=-cegcc 535 ;; 355 536 convex-c1) 356 537 basic_machine=c1-convex … … 373 554 os=-bsd 374 555 ;; 375 cray | ymp)376 basic_machine= ymp-cray556 cray | j90) 557 basic_machine=j90-cray 377 558 os=-unicos 378 559 ;; 379 cray 2)380 basic_machine=cray 2-cray381 os=-unicos 382 ;; 383 [cjt]90)384 basic_machine= ${basic_machine}-cray385 os=- unicos560 craynv) 561 basic_machine=craynv-cray 562 os=-unicosmp 563 ;; 564 cr16 | cr16-*) 565 basic_machine=cr16-unknown 566 os=-elf 386 567 ;; 387 568 crds | unos) 388 569 basic_machine=m68k-crds 389 570 ;; 571 crisv32 | crisv32-* | etraxfs*) 572 basic_machine=crisv32-axis 573 ;; 390 574 cris | cris-* | etrax*) 391 575 basic_machine=cris-axis 392 576 ;; 577 crx) 578 basic_machine=crx-unknown 579 os=-elf 580 ;; 393 581 da30 | da30-*) 394 582 basic_machine=m68k-da30 … … 396 584 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 397 585 basic_machine=mips-dec 586 ;; 587 decsystem10* | dec10*) 588 basic_machine=pdp10-dec 589 os=-tops10 590 ;; 591 decsystem20* | dec20*) 592 basic_machine=pdp10-dec 593 os=-tops20 398 594 ;; 399 595 delta | 3300 | motorola-3300 | motorola-delta \ … … 404 600 basic_machine=m88k-motorola 405 601 os=-sysv3 602 ;; 603 dicos) 604 basic_machine=i686-pc 605 os=-dicos 606 ;; 607 djgpp) 608 basic_machine=i586-pc 609 os=-msdosdjgpp 406 610 ;; 407 611 dpx20 | dpx20-*) … … 555 759 os=-sysv 556 760 ;; 761 m68knommu) 762 basic_machine=m68k-unknown 763 os=-linux 764 ;; 765 m68knommu-*) 766 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 767 os=-linux 768 ;; 557 769 m88k-omron*) 558 770 basic_machine=m88k-omron … … 566 778 os=-sysv 567 779 ;; 780 microblaze) 781 basic_machine=microblaze-xilinx 782 ;; 568 783 mingw32) 569 784 basic_machine=i386-pc 570 785 os=-mingw32 571 786 ;; 787 mingw32ce) 788 basic_machine=arm-unknown 789 os=-mingw32ce 790 ;; 572 791 miniframe) 573 792 basic_machine=m68000-convergent … … 577 796 os=-mint 578 797 ;; 579 mipsel*-linux*)580 basic_machine=mipsel-unknown581 os=-linux-gnu582 ;;583 mips*-linux*)584 basic_machine=mips-unknown585 os=-linux-gnu586 ;;587 798 mips3*-*) 588 799 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` … … 590 801 mips3*) 591 802 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 592 ;;593 mmix*)594 basic_machine=mmix-knuth595 os=-mmixware596 803 ;; 597 804 monitor) … … 599 806 os=-coff 600 807 ;; 808 morphos) 809 basic_machine=powerpc-unknown 810 os=-morphos 811 ;; 601 812 msdos) 602 813 basic_machine=i386-pc 603 814 os=-msdos 604 815 ;; 816 ms1-*) 817 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 818 ;; 819 msys) 820 basic_machine=i386-pc 821 os=-msys 822 ;; 605 823 mvs) 606 824 basic_machine=i370-ibm 607 825 os=-mvs 826 ;; 827 nacl) 828 basic_machine=le32-unknown 829 os=-nacl 608 830 ;; 609 831 ncr3000) … … 671 893 basic_machine=np1-gould 672 894 ;; 895 neo-tandem) 896 basic_machine=neo-tandem 897 ;; 898 nse-tandem) 899 basic_machine=nse-tandem 900 ;; 673 901 nsr-tandem) 674 902 basic_machine=nsr-tandem … … 678 906 os=-proelf 679 907 ;; 908 openrisc | openrisc-*) 909 basic_machine=or32-unknown 910 ;; 911 os400) 912 basic_machine=powerpc-ibm 913 os=-os400 914 ;; 680 915 OSE68000 | ose68000) 681 916 basic_machine=m68000-ericsson … … 694 929 os=-osf 695 930 ;; 931 parisc) 932 basic_machine=hppa-unknown 933 os=-linux 934 ;; 935 parisc-*) 936 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 937 os=-linux 938 ;; 696 939 pbd) 697 940 basic_machine=sparc-tti … … 700 943 basic_machine=m68k-tti 701 944 ;; 702 945 pc532 | pc532-*) 703 946 basic_machine=ns32k-pc532 704 947 ;; 705 pentium | p5 | k5 | k6 | nexgen) 948 pc98) 949 basic_machine=i386-pc 950 ;; 951 pc98-*) 952 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 953 ;; 954 pentium | p5 | k5 | k6 | nexgen | viac3) 706 955 basic_machine=i586-pc 707 956 ;; 708 pentiumpro | p6 | 6x86 | athlon )957 pentiumpro | p6 | 6x86 | athlon | athlon_*) 709 958 basic_machine=i686-pc 710 959 ;; 711 pentiumii | pentium2 )960 pentiumii | pentium2 | pentiumiii | pentium3) 712 961 basic_machine=i686-pc 713 962 ;; 714 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 963 pentium4) 964 basic_machine=i786-pc 965 ;; 966 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 715 967 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 716 968 ;; … … 718 970 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 719 971 ;; 720 pentiumii-* | pentium2-* )972 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 721 973 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 974 ;; 975 pentium4-*) 976 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 722 977 ;; 723 978 pn) … … 726 981 power) basic_machine=power-ibm 727 982 ;; 728 ppc) basic_machine=powerpc-unknown 729 ;; 730 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 983 ppc | ppcbe) basic_machine=powerpc-unknown 984 ;; 985 ppc-* | ppcbe-*) 986 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 731 987 ;; 732 988 ppcle | powerpclittle | ppc-le | powerpc-little) 733 989 basic_machine=powerpcle-unknown 734 990 ;; 735 991 ppcle-* | powerpclittle-*) 736 992 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 993 ;; 994 ppc64) basic_machine=powerpc64-unknown 995 ;; 996 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 997 ;; 998 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 999 basic_machine=powerpc64le-unknown 1000 ;; 1001 ppc64le-* | powerpc64little-*) 1002 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 737 1003 ;; 738 1004 ps2) … … 743 1009 os=-pw32 744 1010 ;; 1011 rdos) 1012 basic_machine=i386-pc 1013 os=-rdos 1014 ;; 745 1015 rom68k) 746 1016 basic_machine=m68k-rom68k … … 753 1023 basic_machine=romp-ibm 754 1024 ;; 1025 s390 | s390-*) 1026 basic_machine=s390-ibm 1027 ;; 1028 s390x | s390x-*) 1029 basic_machine=s390x-ibm 1030 ;; 755 1031 sa29200) 756 1032 basic_machine=a29k-amd 757 1033 os=-udi 758 1034 ;; 1035 sb1) 1036 basic_machine=mipsisa64sb1-unknown 1037 ;; 1038 sb1el) 1039 basic_machine=mipsisa64sb1el-unknown 1040 ;; 1041 sde) 1042 basic_machine=mipsisa32-sde 1043 os=-elf 1044 ;; 1045 sei) 1046 basic_machine=mips-sei 1047 os=-seiux 1048 ;; 759 1049 sequent) 760 1050 basic_machine=i386-sequent … … 764 1054 os=-hms 765 1055 ;; 766 sparclite-wrs) 1056 sh5el) 1057 basic_machine=sh5le-unknown 1058 ;; 1059 sh64) 1060 basic_machine=sh64-unknown 1061 ;; 1062 sparclite-wrs | simso-wrs) 767 1063 basic_machine=sparclite-wrs 768 1064 os=-vxworks … … 782 1078 os=-sysv4 783 1079 ;; 1080 strongarm-* | thumb-*) 1081 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` 1082 ;; 784 1083 sun2) 785 1084 basic_machine=m68000-sun … … 831 1130 ;; 832 1131 t3e) 833 basic_machine= t3e-cray1132 basic_machine=alphaev5-cray 834 1133 os=-unicos 835 1134 ;; 836 tic54x | c54x*) 837 basic_machine=tic54x-unknown 838 os=-coff 1135 t90) 1136 basic_machine=t90-cray 1137 os=-unicos 1138 ;; 1139 tile*) 1140 basic_machine=$basic_machine-unknown 1141 os=-linux-gnu 839 1142 ;; 840 1143 tx39) … … 844 1147 basic_machine=mipstx39el-unknown 845 1148 ;; 1149 toad1) 1150 basic_machine=pdp10-xkl 1151 os=-tops20 1152 ;; 846 1153 tower | tower-32) 847 1154 basic_machine=m68k-ncr 1155 ;; 1156 tpf) 1157 basic_machine=s390x-ibm 1158 os=-tpf 848 1159 ;; 849 1160 udi29k) … … 868 1179 ;; 869 1180 vpp*|vx|vx-*) 870 871 1181 basic_machine=f301-fujitsu 1182 ;; 872 1183 vxworks960) 873 1184 basic_machine=i960-wrs … … 890 1201 os=-proelf 891 1202 ;; 892 windows32) 893 basic_machine=i386-pc 894 os=-windows32-msvcrt 895 ;; 896 xmp) 897 basic_machine=xmp-cray 1203 xbox) 1204 basic_machine=i686-pc 1205 os=-mingw32 1206 ;; 1207 xps | xps100) 1208 basic_machine=xps100-honeywell 1209 ;; 1210 xscale-* | xscalee[bl]-*) 1211 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 1212 ;; 1213 ymp) 1214 basic_machine=ymp-cray 898 1215 os=-unicos 899 ;;900 xps | xps100)901 basic_machine=xps100-honeywell902 1216 ;; 903 1217 z8k-*-coff) 904 1218 basic_machine=z8k-unknown 1219 os=-sim 1220 ;; 1221 z80-*-coff) 1222 basic_machine=z80-unknown 905 1223 os=-sim 906 1224 ;; … … 921 1239 basic_machine=hppa1.1-oki 922 1240 ;; 923 mips)924 if [ x$os = x-linux-gnu ]; then925 basic_machine=mips-unknown926 else927 basic_machine=mips-mips928 fi929 ;;930 1241 romp) 931 1242 basic_machine=romp-ibm 1243 ;; 1244 mmix) 1245 basic_machine=mmix-knuth 932 1246 ;; 933 1247 rs6000) … … 947 1261 basic_machine=we32k-att 948 1262 ;; 949 sh 3 | sh4)1263 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 950 1264 basic_machine=sh-unknown 951 1265 ;; 952 sparc | sparcv 9 | sparcv9b)1266 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 953 1267 basic_machine=sparc-sun 954 1268 ;; 955 1269 cydra) 956 1270 basic_machine=cydra-cydrome 957 1271 ;; … … 967 1281 pmac | pmac-mpw) 968 1282 basic_machine=powerpc-apple 969 ;;970 c4x*)971 basic_machine=c4x-none972 os=-coff973 1283 ;; 974 1284 *-unknown) … … 998 1308 then 999 1309 case $os in 1000 1001 1310 # First match some system type aliases 1311 # that might get confused with valid system types. 1002 1312 # -solaris* is a basic system type, with this one exception. 1313 -auroraux) 1314 os=-auroraux 1315 ;; 1003 1316 -solaris1 | -solaris1.*) 1004 1317 os=`echo $os | sed -e 's|solaris1|sunos4|'` … … 1021 1334 # -sysv* is not here because it comes later, after sysvr4. 1022 1335 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1023 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1024 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1336 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1337 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1338 | -sym* | -kopensolaris* \ 1025 1339 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1026 | -aos* \1340 | -aos* | -aros* \ 1027 1341 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1028 1342 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1029 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1030 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1343 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1344 | -openbsd* | -solidbsd* \ 1345 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1346 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1031 1347 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1032 1348 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1033 | -chorusos* | -chorusrdb* \ 1034 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1035 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1036 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1349 | -chorusos* | -chorusrdb* | -cegcc* \ 1350 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1351 | -mingw32* | -linux-gnu* | -linux-android* \ 1352 | -linux-newlib* | -linux-uclibc* \ 1353 | -uxpv* | -beos* | -mpeix* | -udk* \ 1354 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1037 1355 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1038 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) 1356 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1357 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1358 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1359 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1360 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 1039 1361 # Remember, each alternative MUST END IN *, to match a version number. 1040 1362 ;; … … 1048 1370 esac 1049 1371 ;; 1372 -nto-qnx*) 1373 ;; 1050 1374 -nto*) 1051 os= -nto-qnx1375 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1052 1376 ;; 1053 1377 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1054 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \1378 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1055 1379 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1056 1380 ;; … … 1058 1382 os=`echo $os | sed -e 's|mac|macos|'` 1059 1383 ;; 1384 -linux-dietlibc) 1385 os=-linux-dietlibc 1386 ;; 1060 1387 -linux*) 1061 1388 os=`echo $os | sed -e 's|linux|linux-gnu|'` … … 1070 1397 os=-openedition 1071 1398 ;; 1399 -os400*) 1400 os=-os400 1401 ;; 1072 1402 -wince*) 1073 1403 os=-wince … … 1088 1418 os=-aos 1089 1419 ;; 1420 -atheos*) 1421 os=-atheos 1422 ;; 1423 -syllable*) 1424 os=-syllable 1425 ;; 1090 1426 -386bsd) 1091 1427 os=-bsd … … 1094 1430 os=-sysv 1095 1431 ;; 1432 -nova*) 1433 os=-rtmk-nova 1434 ;; 1096 1435 -ns2 ) 1097 1436 os=-nextstep2 1098 1437 ;; 1099 1438 -nsk*) … … 1107 1446 os=-sysv4 1108 1447 ;; 1448 -tpf*) 1449 os=-tpf 1450 ;; 1109 1451 -triton*) 1110 1452 os=-sysv3 … … 1134 1476 os=-xenix 1135 1477 ;; 1136 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1137 os=-mint 1478 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1479 os=-mint 1480 ;; 1481 -aros*) 1482 os=-aros 1483 ;; 1484 -kaos*) 1485 os=-kaos 1486 ;; 1487 -zvmoe) 1488 os=-zvmoe 1489 ;; 1490 -dicos*) 1491 os=-dicos 1492 ;; 1493 -nacl*) 1138 1494 ;; 1139 1495 -none) … … 1159 1515 1160 1516 case $basic_machine in 1517 score-*) 1518 os=-elf 1519 ;; 1520 spu-*) 1521 os=-elf 1522 ;; 1161 1523 *-acorn) 1162 1524 os=-riscix1.2 … … 1168 1530 os=-aout 1169 1531 ;; 1532 c4x-* | tic4x-*) 1533 os=-coff 1534 ;; 1535 tic54x-*) 1536 os=-coff 1537 ;; 1538 tic55x-*) 1539 os=-coff 1540 ;; 1541 tic6x-*) 1542 os=-coff 1543 ;; 1544 # This must come before the *-dec entry. 1170 1545 pdp10-*) 1171 1546 os=-tops20 1172 1547 ;; 1173 1548 pdp11-*) 1174 1549 os=-none 1175 1550 ;; … … 1192 1567 os=-aout 1193 1568 ;; 1569 mep-*) 1570 os=-elf 1571 ;; 1194 1572 mips*-cisco) 1195 1573 os=-elf … … 1198 1576 os=-elf 1199 1577 ;; 1578 or32-*) 1579 os=-coff 1580 ;; 1200 1581 *-tti) # must be before sparc entry or we get the wrong os. 1201 1582 os=-sysv3 … … 1207 1588 os=-beos 1208 1589 ;; 1590 *-haiku) 1591 os=-haiku 1592 ;; 1209 1593 *-ibm) 1210 1594 os=-aix 1211 1595 ;; 1596 *-knuth) 1597 os=-mmixware 1598 ;; 1212 1599 *-wec) 1213 1600 os=-proelf … … 1261 1648 os=-nextstep3 1262 1649 ;; 1263 1650 *-gould) 1264 1651 os=-sysv 1265 1652 ;; 1266 1653 *-highlevel) 1267 1654 os=-bsd 1268 1655 ;; … … 1270 1657 os=-bsd 1271 1658 ;; 1272 1659 *-sgi) 1273 1660 os=-irix 1274 1661 ;; 1275 1662 *-siemens) 1276 1663 os=-sysv4 1277 1664 ;; … … 1312 1699 vendor=sun 1313 1700 ;; 1314 - aix*)1701 -cnk*|-aix*) 1315 1702 vendor=ibm 1316 1703 ;; … … 1342 1729 vendor=ibm 1343 1730 ;; 1731 -os400*) 1732 vendor=ibm 1733 ;; 1344 1734 -ptx*) 1345 1735 vendor=sequent 1346 1736 ;; 1347 -vxsim* | -vxworks*) 1737 -tpf*) 1738 vendor=ibm 1739 ;; 1740 -vxsim* | -vxworks* | -windiss*) 1348 1741 vendor=wrs 1349 1742 ;; … … 1360 1753 vendor=atari 1361 1754 ;; 1755 -vos*) 1756 vendor=stratus 1757 ;; 1362 1758 esac 1363 1759 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` … … 1366 1762 1367 1763 echo $basic_machine$os 1368 exit 01764 exit 1369 1765 1370 1766 # Local variables:
Note:
See TracChangeset
for help on using the changeset viewer.