source:
patches/expect-5.44.1.15-config_update-1.patch@
41969c7
Last change on this file since 41969c7 was 1341743, checked in by , 14 years ago | |
---|---|
|
|
File size: 63.1 KB |
-
expect-5.44.1.15
Submitted By: Joe Ciccone <jciccone@gmail.com> Date: 2010-07-29 Initial Package Version: 5.4.3 Origin: Jim Gifford Upstream Status: Unknown Description: Updates config.sub and config.guess diff -Naur expect-5.44.1.15.orig/config.guess expect-5.44.1.15/config.guess
old new 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 5 # Free Software Foundation, Inc. 5 6 6 timestamp='200 3-10-07'7 timestamp='2009-12-30' 7 8 8 9 # This file is free software; you can redistribute it and/or modify it 9 10 # under the terms of the GNU General Public License as published by … … 17 18 # 18 19 # You should have received a copy of the GNU General Public License 19 20 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22 # 02110-1301, USA. 21 23 # 22 24 # As a special exception to the GNU General Public License, if you 23 25 # distribute this file as part of a program that contains a 24 26 # configuration script generated by Autoconf, you may include it under 25 27 # the same distribution terms that you use for the rest of that program. 26 28 27 # Originally written by Per Bothner <per@bothner.com>. 28 # Please send patches to <config-patches@gnu.org>. Submit a context 29 # diff and a properly formatted ChangeLog entry. 29 30 # Originally written by Per Bothner. Please send patches (context 31 # diff format) to <config-patches@gnu.org> and include a ChangeLog 32 # entry. 30 33 # 31 34 # This script attempts to guess a canonical system name similar to 32 35 # config.sub. If it succeeds, it prints the system name on stdout, and 33 36 # exits with 0. Otherwise, it exits with 1. 34 37 # 35 # The plan is that this can be called by configure scripts if you36 # don't specify an explicit build system type.38 # You can get the latest version of this script from: 39 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 37 40 38 41 me=`echo "$0" | sed -e 's,.*/,,'` 39 42 … … 53 56 GNU config.guess ($timestamp) 54 57 55 58 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 Free Software Foundation, Inc. 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free 61 Software Foundation, Inc. 58 62 59 63 This is free software; see the source for copying conditions. There is NO 60 64 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." … … 66 70 while test $# -gt 0 ; do 67 71 case $1 in 68 72 --time-stamp | --time* | -t ) 69 echo "$timestamp" ; exit 0;;73 echo "$timestamp" ; exit ;; 70 74 --version | -v ) 71 echo "$version" ; exit 0;;75 echo "$version" ; exit ;; 72 76 --help | --h* | -h ) 73 echo "$usage"; exit 0;;77 echo "$usage"; exit ;; 74 78 -- ) # Stop option processing 75 79 shift; break ;; 76 80 - ) # Use stdin as input. … … 104 108 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 105 109 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 110 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q"$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||111 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 113 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 110 114 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; … … 123 127 ;; 124 128 ,,*) CC_FOR_BUILD=$CC ;; 125 129 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 126 esac ; '130 esac ; set_cc_for_build= ;' 127 131 128 132 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 129 133 # (ghazi@noc.rutgers.edu 1994-08-24) … … 158 162 arm*) machine=arm-unknown ;; 159 163 sh3el) machine=shl-unknown ;; 160 164 sh3eb) machine=sh-unknown ;; 165 sh5el) machine=sh5le-unknown ;; 161 166 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 162 167 esac 163 168 # The Operating System including object format, if it has switched … … 166 171 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 167 172 eval $set_cc_for_build 168 173 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 169 | grep __ELF__ >/dev/null174 | grep -q __ELF__ 170 175 then 171 176 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 172 177 # Return netbsd for either. FIX? … … 196 201 # contains redundant information, the shorter form: 197 202 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 198 203 echo "${machine}-${os}${release}" 199 exit 0 ;; 200 amiga:OpenBSD:*:*) 201 echo m68k-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 203 arc:OpenBSD:*:*) 204 echo mipsel-unknown-openbsd${UNAME_RELEASE} 205 exit 0 ;; 206 hp300:OpenBSD:*:*) 207 echo m68k-unknown-openbsd${UNAME_RELEASE} 208 exit 0 ;; 209 mac68k:OpenBSD:*:*) 210 echo m68k-unknown-openbsd${UNAME_RELEASE} 211 exit 0 ;; 212 macppc:OpenBSD:*:*) 213 echo powerpc-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 215 mvme68k:OpenBSD:*:*) 216 echo m68k-unknown-openbsd${UNAME_RELEASE} 217 exit 0 ;; 218 mvme88k:OpenBSD:*:*) 219 echo m88k-unknown-openbsd${UNAME_RELEASE} 220 exit 0 ;; 221 mvmeppc:OpenBSD:*:*) 222 echo powerpc-unknown-openbsd${UNAME_RELEASE} 223 exit 0 ;; 224 pmax:OpenBSD:*:*) 225 echo mipsel-unknown-openbsd${UNAME_RELEASE} 226 exit 0 ;; 227 sgi:OpenBSD:*:*) 228 echo mipseb-unknown-openbsd${UNAME_RELEASE} 229 exit 0 ;; 230 sun3:OpenBSD:*:*) 231 echo m68k-unknown-openbsd${UNAME_RELEASE} 232 exit 0 ;; 233 wgrisc:OpenBSD:*:*) 234 echo mipsel-unknown-openbsd${UNAME_RELEASE} 235 exit 0 ;; 204 exit ;; 236 205 *:OpenBSD:*:*) 237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 238 exit 0 ;; 206 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 207 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 208 exit ;; 209 *:ekkoBSD:*:*) 210 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 211 exit ;; 212 *:SolidBSD:*:*) 213 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 214 exit ;; 215 macppc:MirBSD:*:*) 216 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 217 exit ;; 218 *:MirBSD:*:*) 219 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 220 exit ;; 239 221 alpha:OSF1:*:*) 240 if test $UNAME_RELEASE = "V4.0"; then 222 case $UNAME_RELEASE in 223 *4.0) 241 224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 242 fi 225 ;; 226 *5.*) 227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 228 ;; 229 esac 243 230 # According to Compaq, /usr/sbin/psrinfo has been available on 244 231 # OSF/1 and Tru64 systems produced since 1995. I hope that 245 232 # covers most systems running today. This code pipes the CPU … … 277 264 "EV7.9 (21364A)") 278 265 UNAME_MACHINE="alphaev79" ;; 279 266 esac 267 # A Pn.n version is a patched version. 280 268 # A Vn.n version is a released version. 281 269 # A Tn.n version is a released field test version. 282 270 # A Xn.n version is an unreleased experimental baselevel. 283 271 # 1.2 uses "1.2" for uname -r. 284 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 285 exit 0 ;; 286 Alpha*:OpenVMS:*:*) 287 echo alpha-hp-vms 288 exit 0 ;; 272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 273 exit ;; 289 274 Alpha\ *:Windows_NT*:*) 290 275 # How do we know it's Interix rather than the generic POSIX subsystem? 291 276 # Should we change UNAME_MACHINE based on the output of uname instead 292 277 # of the specific Alpha model? 293 278 echo alpha-pc-interix 294 exit 0;;279 exit ;; 295 280 21064:Windows_NT:50:3) 296 281 echo alpha-dec-winnt3.5 297 exit 0;;282 exit ;; 298 283 Amiga*:UNIX_System_V:4.0:*) 299 284 echo m68k-unknown-sysv4 300 exit 0;;285 exit ;; 301 286 *:[Aa]miga[Oo][Ss]:*:*) 302 287 echo ${UNAME_MACHINE}-unknown-amigaos 303 exit 0;;288 exit ;; 304 289 *:[Mm]orph[Oo][Ss]:*:*) 305 290 echo ${UNAME_MACHINE}-unknown-morphos 306 exit 0;;291 exit ;; 307 292 *:OS/390:*:*) 308 293 echo i370-ibm-openedition 309 exit 0 ;; 294 exit ;; 295 *:z/VM:*:*) 296 echo s390-ibm-zvmoe 297 exit ;; 298 *:OS400:*:*) 299 echo powerpc-ibm-os400 300 exit ;; 310 301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 311 302 echo arm-acorn-riscix${UNAME_RELEASE} 312 exit 0;; 303 exit ;; 304 arm:riscos:*:*|arm:RISCOS:*:*) 305 echo arm-unknown-riscos 306 exit ;; 313 307 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 314 308 echo hppa1.1-hitachi-hiuxmpp 315 exit 0;;309 exit ;; 316 310 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 317 311 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 318 312 if test "`(/bin/universe) 2>/dev/null`" = att ; then … … 320 314 else 321 315 echo pyramid-pyramid-bsd 322 316 fi 323 exit 0;;317 exit ;; 324 318 NILE*:*:*:dcosx) 325 319 echo pyramid-pyramid-svr4 326 exit 0;;320 exit ;; 327 321 DRS?6000:unix:4.0:6*) 328 322 echo sparc-icl-nx6 329 exit 0;;330 DRS?6000:UNIX_SV:4.2*:7* )323 exit ;; 324 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 331 325 case `/usr/bin/uname -p` in 332 sparc) echo sparc-icl-nx7 && exit 0;;326 sparc) echo sparc-icl-nx7; exit ;; 333 327 esac ;; 328 s390x:SunOS:*:*) 329 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 330 exit ;; 334 331 sun4H:SunOS:5.*:*) 335 332 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 336 exit 0;;333 exit ;; 337 334 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 338 335 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 339 exit 0 ;; 340 i86pc:SunOS:5.*:*) 341 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 342 exit 0 ;; 336 exit ;; 337 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 338 echo i386-pc-auroraux${UNAME_RELEASE} 339 exit ;; 340 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 341 eval $set_cc_for_build 342 SUN_ARCH="i386" 343 # If there is a compiler, see if it is configured for 64-bit objects. 344 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 345 # This test works for both compilers. 346 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 347 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 348 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 349 grep IS_64BIT_ARCH >/dev/null 350 then 351 SUN_ARCH="x86_64" 352 fi 353 fi 354 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 355 exit ;; 343 356 sun4*:SunOS:6*:*) 344 357 # According to config.sub, this is the proper way to canonicalize 345 358 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 346 359 # it's likely to be more like Solaris than SunOS4. 347 360 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 348 exit 0;;361 exit ;; 349 362 sun4*:SunOS:*:*) 350 363 case "`/usr/bin/arch -k`" in 351 364 Series*|S4*) … … 354 367 esac 355 368 # Japanese Language versions have a version number like `4.1.3-JL'. 356 369 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 357 exit 0;;370 exit ;; 358 371 sun3*:SunOS:*:*) 359 372 echo m68k-sun-sunos${UNAME_RELEASE} 360 exit 0;;373 exit ;; 361 374 sun*:*:4.2BSD:*) 362 375 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 363 376 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 … … 369 382 echo sparc-sun-sunos${UNAME_RELEASE} 370 383 ;; 371 384 esac 372 exit 0;;385 exit ;; 373 386 aushp:SunOS:*:*) 374 387 echo sparc-auspex-sunos${UNAME_RELEASE} 375 exit 0;;388 exit ;; 376 389 # The situation for MiNT is a little confusing. The machine name 377 390 # can be virtually everything (everything which is not 378 391 # "atarist" or "atariste" at least should have a processor … … 383 396 # be no problem. 384 397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 385 398 echo m68k-atari-mint${UNAME_RELEASE} 386 exit 0;;399 exit ;; 387 400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 388 401 echo m68k-atari-mint${UNAME_RELEASE} 389 exit 0;;402 exit ;; 390 403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 391 404 echo m68k-atari-mint${UNAME_RELEASE} 392 exit 0;;405 exit ;; 393 406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 394 407 echo m68k-milan-mint${UNAME_RELEASE} 395 exit 0;;408 exit ;; 396 409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 397 410 echo m68k-hades-mint${UNAME_RELEASE} 398 exit 0;;411 exit ;; 399 412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 400 413 echo m68k-unknown-mint${UNAME_RELEASE} 401 exit 0 ;; 414 exit ;; 415 m68k:machten:*:*) 416 echo m68k-apple-machten${UNAME_RELEASE} 417 exit ;; 402 418 powerpc:machten:*:*) 403 419 echo powerpc-apple-machten${UNAME_RELEASE} 404 exit 0;;420 exit ;; 405 421 RISC*:Mach:*:*) 406 422 echo mips-dec-mach_bsd4.3 407 exit 0;;423 exit ;; 408 424 RISC*:ULTRIX:*:*) 409 425 echo mips-dec-ultrix${UNAME_RELEASE} 410 exit 0;;426 exit ;; 411 427 VAX*:ULTRIX*:*:*) 412 428 echo vax-dec-ultrix${UNAME_RELEASE} 413 exit 0;;429 exit ;; 414 430 2020:CLIX:*:* | 2430:CLIX:*:*) 415 431 echo clipper-intergraph-clix${UNAME_RELEASE} 416 exit 0;;432 exit ;; 417 433 mips:*:*:UMIPS | mips:*:*:RISCos) 418 434 eval $set_cc_for_build 419 435 sed 's/^ //' << EOF >$dummy.c … … 437 453 exit (-1); 438 454 } 439 455 EOF 440 $CC_FOR_BUILD -o $dummy $dummy.c \ 441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 442 && exit 0 456 $CC_FOR_BUILD -o $dummy $dummy.c && 457 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 458 SYSTEM_NAME=`$dummy $dummyarg` && 459 { echo "$SYSTEM_NAME"; exit; } 443 460 echo mips-mips-riscos${UNAME_RELEASE} 444 exit 0;;461 exit ;; 445 462 Motorola:PowerMAX_OS:*:*) 446 463 echo powerpc-motorola-powermax 447 exit 0;;464 exit ;; 448 465 Motorola:*:4.3:PL8-*) 449 466 echo powerpc-harris-powermax 450 exit 0;;467 exit ;; 451 468 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 452 469 echo powerpc-harris-powermax 453 exit 0;;470 exit ;; 454 471 Night_Hawk:Power_UNIX:*:*) 455 472 echo powerpc-harris-powerunix 456 exit 0;;473 exit ;; 457 474 m88k:CX/UX:7*:*) 458 475 echo m88k-harris-cxux7 459 exit 0;;476 exit ;; 460 477 m88k:*:4*:R4*) 461 478 echo m88k-motorola-sysv4 462 exit 0;;479 exit ;; 463 480 m88k:*:3*:R3*) 464 481 echo m88k-motorola-sysv3 465 exit 0;;482 exit ;; 466 483 AViiON:dgux:*:*) 467 484 # DG/UX returns AViiON for all architectures 468 485 UNAME_PROCESSOR=`/usr/bin/uname -p` … … 478 495 else 479 496 echo i586-dg-dgux${UNAME_RELEASE} 480 497 fi 481 exit 0;;498 exit ;; 482 499 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 483 500 echo m88k-dolphin-sysv3 484 exit 0;;501 exit ;; 485 502 M88*:*:R3*:*) 486 503 # Delta 88k system running SVR3 487 504 echo m88k-motorola-sysv3 488 exit 0;;505 exit ;; 489 506 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 490 507 echo m88k-tektronix-sysv3 491 exit 0;;508 exit ;; 492 509 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 493 510 echo m68k-tektronix-bsd 494 exit 0;;511 exit ;; 495 512 *:IRIX*:*:*) 496 513 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 497 exit 0;;514 exit ;; 498 515 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 499 echo romp-ibm-aix 500 exit 0 ;;# Note that: echo "'`uname -s`'" gives 'AIX '516 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 517 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 501 518 i*86:AIX:*:*) 502 519 echo i386-ibm-aix 503 exit 0;;520 exit ;; 504 521 ia64:AIX:*:*) 505 522 if [ -x /usr/bin/oslevel ] ; then 506 523 IBM_REV=`/usr/bin/oslevel` … … 508 525 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 509 526 fi 510 527 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 511 exit 0;;528 exit ;; 512 529 *:AIX:2:3) 513 530 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 514 531 eval $set_cc_for_build … … 523 540 exit(0); 524 541 } 525 542 EOF 526 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 527 echo rs6000-ibm-aix3.2.5 543 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 544 then 545 echo "$SYSTEM_NAME" 546 else 547 echo rs6000-ibm-aix3.2.5 548 fi 528 549 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 529 550 echo rs6000-ibm-aix3.2.4 530 551 else 531 552 echo rs6000-ibm-aix3.2 532 553 fi 533 exit 0;;534 *:AIX:*:[45 ])554 exit ;; 555 *:AIX:*:[456]) 535 556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 536 557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 537 558 IBM_ARCH=rs6000 … … 544 565 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 545 566 fi 546 567 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 547 exit 0;;568 exit ;; 548 569 *:AIX:*:*) 549 570 echo rs6000-ibm-aix 550 exit 0;;571 exit ;; 551 572 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 552 573 echo romp-ibm-bsd4.4 553 exit 0;;574 exit ;; 554 575 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 555 576 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 556 exit 0 ;;# report: romp-ibm BSD 4.3577 exit ;; # report: romp-ibm BSD 4.3 557 578 *:BOSX:*:*) 558 579 echo rs6000-bull-bosx 559 exit 0;;580 exit ;; 560 581 DPX/2?00:B.O.S.:*:*) 561 582 echo m68k-bull-sysv3 562 exit 0;;583 exit ;; 563 584 9000/[34]??:4.3bsd:1.*:*) 564 585 echo m68k-hp-bsd 565 exit 0;;586 exit ;; 566 587 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 567 588 echo m68k-hp-bsd4.4 568 exit 0;;589 exit ;; 569 590 9000/[34678]??:HP-UX:*:*) 570 591 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 571 592 case "${UNAME_MACHINE}" in … … 627 648 esac 628 649 if [ ${HP_ARCH} = "hppa2.0w" ] 629 650 then 630 # avoid double evaluation of $set_cc_for_build 631 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 632 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 651 eval $set_cc_for_build 652 653 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 654 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 655 # generating 64-bit code. GNU and HP use different nomenclature: 656 # 657 # $ CC_FOR_BUILD=cc ./config.guess 658 # => hppa2.0w-hp-hpux11.23 659 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 660 # => hppa64-hp-hpux11.23 661 662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 663 grep -q __LP64__ 633 664 then 634 665 HP_ARCH="hppa2.0w" 635 666 else … … 637 668 fi 638 669 fi 639 670 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 640 exit 0;;671 exit ;; 641 672 ia64:HP-UX:*:*) 642 673 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 643 674 echo ia64-hp-hpux${HPUX_REV} 644 exit 0;;675 exit ;; 645 676 3050*:HI-UX:*:*) 646 677 eval $set_cc_for_build 647 678 sed 's/^ //' << EOF >$dummy.c … … 669 700 exit (0); 670 701 } 671 702 EOF 672 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 703 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 704 { echo "$SYSTEM_NAME"; exit; } 673 705 echo unknown-hitachi-hiuxwe2 674 exit 0;;706 exit ;; 675 707 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 676 708 echo hppa1.1-hp-bsd 677 exit 0;;709 exit ;; 678 710 9000/8??:4.3bsd:*:*) 679 711 echo hppa1.0-hp-bsd 680 exit 0;;712 exit ;; 681 713 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 682 714 echo hppa1.0-hp-mpeix 683 exit 0;;715 exit ;; 684 716 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 685 717 echo hppa1.1-hp-osf 686 exit 0;;718 exit ;; 687 719 hp8??:OSF1:*:*) 688 720 echo hppa1.0-hp-osf 689 exit 0;;721 exit ;; 690 722 i*86:OSF1:*:*) 691 723 if [ -x /usr/sbin/sysversion ] ; then 692 724 echo ${UNAME_MACHINE}-unknown-osf1mk 693 725 else 694 726 echo ${UNAME_MACHINE}-unknown-osf1 695 727 fi 696 exit 0;;728 exit ;; 697 729 parisc*:Lites*:*:*) 698 730 echo hppa1.1-hp-lites 699 exit 0;;731 exit ;; 700 732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 701 733 echo c1-convex-bsd 702 exit 0;;734 exit ;; 703 735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 704 736 if getsysinfo -f scalar_acc 705 737 then echo c32-convex-bsd 706 738 else echo c2-convex-bsd 707 739 fi 708 exit 0;;740 exit ;; 709 741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 710 742 echo c34-convex-bsd 711 exit 0;;743 exit ;; 712 744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 713 745 echo c38-convex-bsd 714 exit 0;;746 exit ;; 715 747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 716 748 echo c4-convex-bsd 717 exit 0;;749 exit ;; 718 750 CRAY*Y-MP:*:*:*) 719 751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 720 exit 0;;752 exit ;; 721 753 CRAY*[A-Z]90:*:*:*) 722 754 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 723 755 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 724 756 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 725 757 -e 's/\.[^.]*$/.X/' 726 exit 0;;758 exit ;; 727 759 CRAY*TS:*:*:*) 728 760 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 729 exit 0;;761 exit ;; 730 762 CRAY*T3E:*:*:*) 731 763 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 732 exit 0;;764 exit ;; 733 765 CRAY*SV1:*:*:*) 734 766 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 735 exit 0;;767 exit ;; 736 768 *:UNICOS/mp:*:*) 737 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'738 exit 0;;769 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 770 exit ;; 739 771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 740 772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 741 773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 742 774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 743 775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 744 exit 0 ;; 776 exit ;; 777 5000:UNIX_System_V:4.*:*) 778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 781 exit ;; 745 782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 746 783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 747 exit 0;;784 exit ;; 748 785 sparc*:BSD/OS:*:*) 749 786 echo sparc-unknown-bsdi${UNAME_RELEASE} 750 exit 0;;787 exit ;; 751 788 *:BSD/OS:*:*) 752 789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 753 exit 0;;790 exit ;; 754 791 *:FreeBSD:*:*) 755 # Determine whether the default compiler uses glibc. 756 eval $set_cc_for_build 757 sed 's/^ //' << EOF >$dummy.c 758 #include <features.h> 759 #if __GLIBC__ >= 2 760 LIBC=gnu 761 #else 762 LIBC= 763 #endif 764 EOF 765 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 766 # GNU/KFreeBSD systems have a "k" prefix to indicate we are using 767 # FreeBSD's kernel, but not the complete OS. 768 case ${LIBC} in gnu) kernel_only='k' ;; esac 769 echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 770 exit 0 ;; 792 case ${UNAME_MACHINE} in 793 pc98) 794 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 795 amd64) 796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 797 *) 798 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 799 esac 800 exit ;; 771 801 i*:CYGWIN*:*) 772 802 echo ${UNAME_MACHINE}-pc-cygwin 773 exit 0;;774 i*:MINGW*:*)803 exit ;; 804 *:MINGW*:*) 775 805 echo ${UNAME_MACHINE}-pc-mingw32 776 exit 0 ;; 806 exit ;; 807 i*:windows32*:*) 808 # uname -m includes "-pc" on this system. 809 echo ${UNAME_MACHINE}-mingw32 810 exit ;; 777 811 i*:PW*:*) 778 812 echo ${UNAME_MACHINE}-pc-pw32 779 exit 0 ;; 780 x86:Interix*:[34]*) 781 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 782 exit 0 ;; 813 exit ;; 814 *:Interix*:*) 815 case ${UNAME_MACHINE} in 816 x86) 817 echo i586-pc-interix${UNAME_RELEASE} 818 exit ;; 819 authenticamd | genuineintel | EM64T) 820 echo x86_64-unknown-interix${UNAME_RELEASE} 821 exit ;; 822 IA64) 823 echo ia64-unknown-interix${UNAME_RELEASE} 824 exit ;; 825 esac ;; 783 826 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 784 827 echo i${UNAME_MACHINE}-pc-mks 785 exit 0 ;; 828 exit ;; 829 8664:Windows_NT:*) 830 echo x86_64-pc-mks 831 exit ;; 786 832 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 787 833 # How do we know it's Interix rather than the generic POSIX subsystem? 788 834 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 789 835 # UNAME_MACHINE based on the output of uname instead of i386? 790 836 echo i586-pc-interix 791 exit 0;;837 exit ;; 792 838 i*:UWIN*:*) 793 839 echo ${UNAME_MACHINE}-pc-uwin 794 exit 0 ;; 840 exit ;; 841 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 842 echo x86_64-unknown-cygwin 843 exit ;; 795 844 p*:CYGWIN*:*) 796 845 echo powerpcle-unknown-cygwin 797 exit 0;;846 exit ;; 798 847 prep*:SunOS:5.*:*) 799 848 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 800 exit 0;;849 exit ;; 801 850 *:GNU:*:*) 802 851 # the GNU system 803 852 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 804 exit 0;;853 exit ;; 805 854 *:GNU/*:*:*) 806 855 # other systems with GNU libc and userland 807 856 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 808 exit 0;;857 exit ;; 809 858 i*86:Minix:*:*) 810 859 echo ${UNAME_MACHINE}-pc-minix 811 exit 0 ;; 860 exit ;; 861 alpha:Linux:*:*) 862 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 863 EV5) UNAME_MACHINE=alphaev5 ;; 864 EV56) UNAME_MACHINE=alphaev56 ;; 865 PCA56) UNAME_MACHINE=alphapca56 ;; 866 PCA57) UNAME_MACHINE=alphapca56 ;; 867 EV6) UNAME_MACHINE=alphaev6 ;; 868 EV67) UNAME_MACHINE=alphaev67 ;; 869 EV68*) UNAME_MACHINE=alphaev68 ;; 870 esac 871 objdump --private-headers /bin/sh | grep -q ld.so.1 872 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 874 exit ;; 812 875 arm*:Linux:*:*) 876 eval $set_cc_for_build 877 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 878 | grep -q __ARM_EABI__ 879 then 880 echo ${UNAME_MACHINE}-unknown-linux-gnu 881 else 882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 883 fi 884 exit ;; 885 avr32*:Linux:*:*) 813 886 echo ${UNAME_MACHINE}-unknown-linux-gnu 814 exit 0;;887 exit ;; 815 888 cris:Linux:*:*) 816 889 echo cris-axis-linux-gnu 817 exit 0 ;; 818 ia64:Linux:*:*) 819 echo ${UNAME_MACHINE}-unknown-linux-gnu 820 exit 0 ;; 821 m68*:Linux:*:*) 822 echo ${UNAME_MACHINE}-unknown-linux-gnu 823 exit 0 ;; 824 mips:Linux:*:*) 890 exit ;; 891 crisv32:Linux:*:*) 892 echo crisv32-axis-linux-gnu 893 exit ;; 894 frv:Linux:*:*) 895 echo frv-unknown-linux-gnu 896 exit ;; 897 i*86:Linux:*:*) 898 LIBC=gnu 825 899 eval $set_cc_for_build 826 900 sed 's/^ //' << EOF >$dummy.c 827 #undef CPU 828 #undef mips 829 #undef mipsel 830 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 831 CPU=mipsel 832 #else 833 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 834 CPU=mips 835 #else 836 CPU= 837 #endif 901 #ifdef __dietlibc__ 902 LIBC=dietlibc 838 903 #endif 839 904 EOF 840 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 841 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 842 ;; 843 mips64:Linux:*:*) 905 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 906 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 907 exit ;; 908 ia64:Linux:*:*) 909 echo ${UNAME_MACHINE}-unknown-linux-gnu 910 exit ;; 911 m32r*:Linux:*:*) 912 echo ${UNAME_MACHINE}-unknown-linux-gnu 913 exit ;; 914 m68*:Linux:*:*) 915 echo ${UNAME_MACHINE}-unknown-linux-gnu 916 exit ;; 917 mips:Linux:*:* | mips64:Linux:*:*) 844 918 eval $set_cc_for_build 845 919 sed 's/^ //' << EOF >$dummy.c 846 920 #undef CPU 847 #undef mips64848 #undef mips64el921 #undef ${UNAME_MACHINE} 922 #undef ${UNAME_MACHINE}el 849 923 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 850 CPU= mips64el924 CPU=${UNAME_MACHINE}el 851 925 #else 852 926 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 853 CPU= mips64927 CPU=${UNAME_MACHINE} 854 928 #else 855 929 CPU= 856 930 #endif 857 931 #endif 858 932 EOF 859 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`860 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 934 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 861 935 ;; 862 ppc:Linux:*:*) 863 echo powerpc-unknown-linux-gnu 864 exit 0 ;; 865 ppc64:Linux:*:*) 866 echo powerpc64-unknown-linux-gnu 867 exit 0 ;; 868 alpha:Linux:*:*) 869 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 870 EV5) UNAME_MACHINE=alphaev5 ;; 871 EV56) UNAME_MACHINE=alphaev56 ;; 872 PCA56) UNAME_MACHINE=alphapca56 ;; 873 PCA57) UNAME_MACHINE=alphapca56 ;; 874 EV6) UNAME_MACHINE=alphaev6 ;; 875 EV67) UNAME_MACHINE=alphaev67 ;; 876 EV68*) UNAME_MACHINE=alphaev68 ;; 877 esac 878 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 879 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 880 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 881 exit 0 ;; 936 or32:Linux:*:*) 937 echo or32-unknown-linux-gnu 938 exit ;; 939 padre:Linux:*:*) 940 echo sparc-unknown-linux-gnu 941 exit ;; 942 parisc64:Linux:*:* | hppa64:Linux:*:*) 943 echo hppa64-unknown-linux-gnu 944 exit ;; 882 945 parisc:Linux:*:* | hppa:Linux:*:*) 883 946 # Look for CPU level 884 947 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in … … 886 949 PA8*) echo hppa2.0-unknown-linux-gnu ;; 887 950 *) echo hppa-unknown-linux-gnu ;; 888 951 esac 889 exit 0 ;; 890 parisc64:Linux:*:* | hppa64:Linux:*:*) 891 echo hppa64-unknown-linux-gnu 892 exit 0 ;; 952 exit ;; 953 ppc64:Linux:*:*) 954 echo powerpc64-unknown-linux-gnu 955 exit ;; 956 ppc:Linux:*:*) 957 echo powerpc-unknown-linux-gnu 958 exit ;; 893 959 s390:Linux:*:* | s390x:Linux:*:*) 894 960 echo ${UNAME_MACHINE}-ibm-linux 895 exit 0;;961 exit ;; 896 962 sh64*:Linux:*:*) 897 963 echo ${UNAME_MACHINE}-unknown-linux-gnu 898 exit 0;;964 exit ;; 899 965 sh*:Linux:*:*) 900 966 echo ${UNAME_MACHINE}-unknown-linux-gnu 901 exit 0;;967 exit ;; 902 968 sparc:Linux:*:* | sparc64:Linux:*:*) 903 969 echo ${UNAME_MACHINE}-unknown-linux-gnu 904 exit 0 ;; 970 exit ;; 971 vax:Linux:*:*) 972 echo ${UNAME_MACHINE}-dec-linux-gnu 973 exit ;; 905 974 x86_64:Linux:*:*) 906 975 echo x86_64-unknown-linux-gnu 907 exit 0 ;; 908 i*86:Linux:*:*) 909 # The BFD linker knows what the default object file format is, so 910 # first see if it will tell us. cd to the root directory to prevent 911 # problems with other programs or directories called `ld' in the path. 912 # Set LC_ALL=C to ensure ld outputs messages in English. 913 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 914 | sed -ne '/supported targets:/!d 915 s/[ ][ ]*/ /g 916 s/.*supported targets: *// 917 s/ .*// 918 p'` 919 case "$ld_supported_targets" in 920 elf32-i386) 921 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 922 ;; 923 a.out-i386-linux) 924 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 925 exit 0 ;; 926 coff-i386) 927 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 928 exit 0 ;; 929 "") 930 # Either a pre-BFD a.out linker (linux-gnuoldld) or 931 # one that does not give us useful --help. 932 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 933 exit 0 ;; 934 esac 935 # Determine whether the default compiler is a.out or elf 936 eval $set_cc_for_build 937 sed 's/^ //' << EOF >$dummy.c 938 #include <features.h> 939 #ifdef __ELF__ 940 # ifdef __GLIBC__ 941 # if __GLIBC__ >= 2 942 LIBC=gnu 943 # else 944 LIBC=gnulibc1 945 # endif 946 # else 947 LIBC=gnulibc1 948 # endif 949 #else 950 #ifdef __INTEL_COMPILER 951 LIBC=gnu 952 #else 953 LIBC=gnuaout 954 #endif 955 #endif 956 #ifdef __dietlibc__ 957 LIBC=dietlibc 958 #endif 959 EOF 960 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 961 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 962 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 963 ;; 976 exit ;; 977 xtensa*:Linux:*:*) 978 echo ${UNAME_MACHINE}-unknown-linux-gnu 979 exit ;; 964 980 i*86:DYNIX/ptx:4*:*) 965 981 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 966 982 # earlier versions are messed up and put the nodename in both 967 983 # sysname and nodename. 968 984 echo i386-sequent-sysv4 969 exit 0;;985 exit ;; 970 986 i*86:UNIX_SV:4.2MP:2.*) 971 987 # Unixware is an offshoot of SVR4, but it has its own version 972 988 # number series starting with 2... … … 974 990 # I just have to hope. -- rms. 975 991 # Use sysv4.2uw... so that sysv4* matches it. 976 992 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 977 exit 0;;993 exit ;; 978 994 i*86:OS/2:*:*) 979 995 # If we were able to find `uname', then EMX Unix compatibility 980 996 # is probably installed. 981 997 echo ${UNAME_MACHINE}-pc-os2-emx 982 exit 0;;998 exit ;; 983 999 i*86:XTS-300:*:STOP) 984 1000 echo ${UNAME_MACHINE}-unknown-stop 985 exit 0;;1001 exit ;; 986 1002 i*86:atheos:*:*) 987 1003 echo ${UNAME_MACHINE}-unknown-atheos 988 exit 0 ;; 989 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1004 exit ;; 1005 i*86:syllable:*:*) 1006 echo ${UNAME_MACHINE}-pc-syllable 1007 exit ;; 1008 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 990 1009 echo i386-unknown-lynxos${UNAME_RELEASE} 991 exit 0;;1010 exit ;; 992 1011 i*86:*DOS:*:*) 993 1012 echo ${UNAME_MACHINE}-pc-msdosdjgpp 994 exit 0;;1013 exit ;; 995 1014 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 996 1015 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 997 1016 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 999 1018 else 1000 1019 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1001 1020 fi 1002 exit 0 ;; 1003 i*86:*:5:[78]*) 1021 exit ;; 1022 i*86:*:5:[678]*) 1023 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1004 1024 case `/bin/uname -X | grep "^Machine"` in 1005 1025 *486*) UNAME_MACHINE=i486 ;; 1006 1026 *Pentium) UNAME_MACHINE=i586 ;; 1007 1027 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1008 1028 esac 1009 1029 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1010 exit 0;;1030 exit ;; 1011 1031 i*86:*:3.2:*) 1012 1032 if test -f /usr/options/cb.name; then 1013 1033 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` … … 1025 1045 else 1026 1046 echo ${UNAME_MACHINE}-pc-sysv32 1027 1047 fi 1028 exit 0;;1048 exit ;; 1029 1049 pc:*:*:*) 1030 1050 # Left here for compatibility: 1031 1051 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1032 # the processor, so we play safe by assuming i386. 1033 echo i386-pc-msdosdjgpp 1034 exit 0 ;; 1052 # the processor, so we play safe by assuming i586. 1053 # Note: whatever this is, it MUST be the same as what config.sub 1054 # prints for the "djgpp" host, or else GDB configury will decide that 1055 # this is a cross-build. 1056 echo i586-pc-msdosdjgpp 1057 exit ;; 1035 1058 Intel:Mach:3*:*) 1036 1059 echo i386-pc-mach3 1037 exit 0;;1060 exit ;; 1038 1061 paragon:*:*:*) 1039 1062 echo i860-intel-osf1 1040 exit 0;;1063 exit ;; 1041 1064 i860:*:4.*:*) # i860-SVR4 1042 1065 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1043 1066 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1044 1067 else # Add other i860-SVR4 vendors below as they are discovered. 1045 1068 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1046 1069 fi 1047 exit 0;;1070 exit ;; 1048 1071 mini*:CTIX:SYS*5:*) 1049 1072 # "miniframe" 1050 1073 echo m68010-convergent-sysv 1051 exit 0;;1074 exit ;; 1052 1075 mc68k:UNIX:SYSTEM5:3.51m) 1053 1076 echo m68k-convergent-sysv 1054 exit 0;;1077 exit ;; 1055 1078 M680?0:D-NIX:5.3:*) 1056 1079 echo m68k-diab-dnix 1057 exit 0;;1058 M68*:*:R3V[567 ]*:*)1059 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0;;1060 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 )1080 exit ;; 1081 M68*:*:R3V[5678]*:*) 1082 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1083 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1061 1084 OS_REL='' 1062 1085 test -r /etc/.relid \ 1063 1086 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1064 1087 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1065 && echo i486-ncr-sysv4.3${OS_REL} && exit 01088 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1066 1089 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1067 && echo i586-ncr-sysv4.3${OS_REL} && exit 0;;1090 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1068 1091 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1069 1092 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1070 && echo i486-ncr-sysv4 && exit 0 ;; 1093 && { echo i486-ncr-sysv4; exit; } ;; 1094 NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1095 OS_REL='.3' 1096 test -r /etc/.relid \ 1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1099 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1100 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1102 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1103 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1071 1104 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1072 1105 echo m68k-unknown-lynxos${UNAME_RELEASE} 1073 exit 0;;1106 exit ;; 1074 1107 mc68030:UNIX_System_V:4.*:*) 1075 1108 echo m68k-atari-sysv4 1076 exit 0;;1109 exit ;; 1077 1110 TSUNAMI:LynxOS:2.*:*) 1078 1111 echo sparc-unknown-lynxos${UNAME_RELEASE} 1079 exit 0;;1112 exit ;; 1080 1113 rs6000:LynxOS:2.*:*) 1081 1114 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1082 exit 0;;1083 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4. 0*:*)1115 exit ;; 1116 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1084 1117 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1085 exit 0;;1118 exit ;; 1086 1119 SM[BE]S:UNIX_SV:*:*) 1087 1120 echo mips-dde-sysv${UNAME_RELEASE} 1088 exit 0;;1121 exit ;; 1089 1122 RM*:ReliantUNIX-*:*:*) 1090 1123 echo mips-sni-sysv4 1091 exit 0;;1124 exit ;; 1092 1125 RM*:SINIX-*:*:*) 1093 1126 echo mips-sni-sysv4 1094 exit 0;;1127 exit ;; 1095 1128 *:SINIX-*:*:*) 1096 1129 if uname -p 2>/dev/null >/dev/null ; then 1097 1130 UNAME_MACHINE=`(uname -p) 2>/dev/null` … … 1099 1132 else 1100 1133 echo ns32k-sni-sysv 1101 1134 fi 1102 exit 0;;1135 exit ;; 1103 1136 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1104 1137 # says <Richard.M.Bartel@ccMail.Census.GOV> 1105 1138 echo i586-unisys-sysv4 1106 exit 0;;1139 exit ;; 1107 1140 *:UNIX_System_V:4*:FTX*) 1108 1141 # From Gerald Hewes <hewes@openmarket.com>. 1109 1142 # How about differentiating between stratus architectures? -djm 1110 1143 echo hppa1.1-stratus-sysv4 1111 exit 0;;1144 exit ;; 1112 1145 *:*:*:FTX*) 1113 1146 # From seanf@swdc.stratus.com. 1114 1147 echo i860-stratus-sysv4 1115 exit 0 ;; 1148 exit ;; 1149 i*86:VOS:*:*) 1150 # From Paul.Green@stratus.com. 1151 echo ${UNAME_MACHINE}-stratus-vos 1152 exit ;; 1116 1153 *:VOS:*:*) 1117 1154 # From Paul.Green@stratus.com. 1118 1155 echo hppa1.1-stratus-vos 1119 exit 0;;1156 exit ;; 1120 1157 mc68*:A/UX:*:*) 1121 1158 echo m68k-apple-aux${UNAME_RELEASE} 1122 exit 0;;1159 exit ;; 1123 1160 news*:NEWS-OS:6*:*) 1124 1161 echo mips-sony-newsos6 1125 exit 0;;1162 exit ;; 1126 1163 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1127 1164 if [ -d /usr/nec ]; then 1128 1165 echo mips-nec-sysv${UNAME_RELEASE} 1129 1166 else 1130 1167 echo mips-unknown-sysv${UNAME_RELEASE} 1131 1168 fi 1132 exit 0;;1169 exit ;; 1133 1170 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1134 1171 echo powerpc-be-beos 1135 exit 0;;1172 exit ;; 1136 1173 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1137 1174 echo powerpc-apple-beos 1138 exit 0;;1175 exit ;; 1139 1176 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1140 1177 echo i586-pc-beos 1141 exit 0 ;; 1178 exit ;; 1179 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1180 echo i586-pc-haiku 1181 exit ;; 1142 1182 SX-4:SUPER-UX:*:*) 1143 1183 echo sx4-nec-superux${UNAME_RELEASE} 1144 exit 0;;1184 exit ;; 1145 1185 SX-5:SUPER-UX:*:*) 1146 1186 echo sx5-nec-superux${UNAME_RELEASE} 1147 exit 0;;1187 exit ;; 1148 1188 SX-6:SUPER-UX:*:*) 1149 1189 echo sx6-nec-superux${UNAME_RELEASE} 1150 exit 0 ;; 1190 exit ;; 1191 SX-7:SUPER-UX:*:*) 1192 echo sx7-nec-superux${UNAME_RELEASE} 1193 exit ;; 1194 SX-8:SUPER-UX:*:*) 1195 echo sx8-nec-superux${UNAME_RELEASE} 1196 exit ;; 1197 SX-8R:SUPER-UX:*:*) 1198 echo sx8r-nec-superux${UNAME_RELEASE} 1199 exit ;; 1151 1200 Power*:Rhapsody:*:*) 1152 1201 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1153 exit 0;;1202 exit ;; 1154 1203 *:Rhapsody:*:*) 1155 1204 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1156 exit 0;;1205 exit ;; 1157 1206 *:Darwin:*:*) 1158 case `uname -p` in 1159 *86) UNAME_PROCESSOR=i686 ;; 1160 powerpc) UNAME_PROCESSOR=powerpc ;; 1207 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1208 case $UNAME_PROCESSOR in 1209 i386) 1210 eval $set_cc_for_build 1211 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1212 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1213 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1214 grep IS_64BIT_ARCH >/dev/null 1215 then 1216 UNAME_PROCESSOR="x86_64" 1217 fi 1218 fi ;; 1219 unknown) UNAME_PROCESSOR=powerpc ;; 1161 1220 esac 1162 1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1163 exit 0;;1222 exit ;; 1164 1223 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1165 1224 UNAME_PROCESSOR=`uname -p` 1166 1225 if test "$UNAME_PROCESSOR" = "x86"; then … … 1168 1227 UNAME_MACHINE=pc 1169 1228 fi 1170 1229 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1171 exit 0;;1230 exit ;; 1172 1231 *:QNX:*:4*) 1173 1232 echo i386-pc-qnx 1174 exit 0 ;; 1175 NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) 1233 exit ;; 1234 NSE-?:NONSTOP_KERNEL:*:*) 1235 echo nse-tandem-nsk${UNAME_RELEASE} 1236 exit ;; 1237 NSR-?:NONSTOP_KERNEL:*:*) 1176 1238 echo nsr-tandem-nsk${UNAME_RELEASE} 1177 exit 0;;1239 exit ;; 1178 1240 *:NonStop-UX:*:*) 1179 1241 echo mips-compaq-nonstopux 1180 exit 0;;1242 exit ;; 1181 1243 BS2000:POSIX*:*:*) 1182 1244 echo bs2000-siemens-sysv 1183 exit 0;;1245 exit ;; 1184 1246 DS/*:UNIX_System_V:*:*) 1185 1247 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1186 exit 0;;1248 exit ;; 1187 1249 *:Plan9:*:*) 1188 1250 # "uname -m" is not consistent, so use $cputype instead. 386 1189 1251 # is converted to i386 for consistency with other x86 … … 1194 1256 UNAME_MACHINE="$cputype" 1195 1257 fi 1196 1258 echo ${UNAME_MACHINE}-unknown-plan9 1197 exit 0;;1259 exit ;; 1198 1260 *:TOPS-10:*:*) 1199 1261 echo pdp10-unknown-tops10 1200 exit 0;;1262 exit ;; 1201 1263 *:TENEX:*:*) 1202 1264 echo pdp10-unknown-tenex 1203 exit 0;;1265 exit ;; 1204 1266 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1205 1267 echo pdp10-dec-tops20 1206 exit 0;;1268 exit ;; 1207 1269 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1208 1270 echo pdp10-xkl-tops20 1209 exit 0;;1271 exit ;; 1210 1272 *:TOPS-20:*:*) 1211 1273 echo pdp10-unknown-tops20 1212 exit 0;;1274 exit ;; 1213 1275 *:ITS:*:*) 1214 1276 echo pdp10-unknown-its 1215 exit 0;;1277 exit ;; 1216 1278 SEI:*:*:SEIUX) 1217 1279 echo mips-sei-seiux${UNAME_RELEASE} 1218 exit 0 ;; 1280 exit ;; 1281 *:DragonFly:*:*) 1282 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1283 exit ;; 1284 *:*VMS:*:*) 1285 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1286 case "${UNAME_MACHINE}" in 1287 A*) echo alpha-dec-vms ; exit ;; 1288 I*) echo ia64-dec-vms ; exit ;; 1289 V*) echo vax-dec-vms ; exit ;; 1290 esac ;; 1291 *:XENIX:*:SysV) 1292 echo i386-pc-xenix 1293 exit ;; 1294 i*86:skyos:*:*) 1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1296 exit ;; 1297 i*86:rdos:*:*) 1298 echo ${UNAME_MACHINE}-pc-rdos 1299 exit ;; 1300 i*86:AROS:*:*) 1301 echo ${UNAME_MACHINE}-pc-aros 1302 exit ;; 1219 1303 esac 1220 1304 1221 1305 #echo '(No uname command or uname output not recognized.)' 1>&2 … … 1247 1331 #endif 1248 1332 1249 1333 #if defined (__arm) && defined (__acorn) && defined (__unix) 1250 printf ("arm-acorn-riscix "); exit (0);1334 printf ("arm-acorn-riscix\n"); exit (0); 1251 1335 #endif 1252 1336 1253 1337 #if defined (hp300) && !defined (hpux) … … 1336 1420 } 1337 1421 EOF 1338 1422 1339 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1423 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1424 { echo "$SYSTEM_NAME"; exit; } 1340 1425 1341 1426 # Apollos put the system type in the environment. 1342 1427 1343 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }1428 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1344 1429 1345 1430 # Convex versions that predate uname can use getsysinfo(1) 1346 1431 … … 1349 1434 case `getsysinfo -f cpu_type` in 1350 1435 c1*) 1351 1436 echo c1-convex-bsd 1352 exit 0;;1437 exit ;; 1353 1438 c2*) 1354 1439 if getsysinfo -f scalar_acc 1355 1440 then echo c32-convex-bsd 1356 1441 else echo c2-convex-bsd 1357 1442 fi 1358 exit 0;;1443 exit ;; 1359 1444 c34*) 1360 1445 echo c34-convex-bsd 1361 exit 0;;1446 exit ;; 1362 1447 c38*) 1363 1448 echo c38-convex-bsd 1364 exit 0;;1449 exit ;; 1365 1450 c4*) 1366 1451 echo c4-convex-bsd 1367 exit 0;;1452 exit ;; 1368 1453 esac 1369 1454 fi 1370 1455 … … 1375 1460 the operating system you are using. It is advised that you 1376 1461 download the most up to date version of the config scripts from 1377 1462 1378 ftp://ftp.gnu.org/pub/gnu/config/ 1463 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1464 and 1465 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1379 1466 1380 1467 If the version you run ($0) is already up to date, please 1381 1468 send the following data and any information you think might be -
expect-5.44.1.15
diff -Naur expect-5.44.1.15.orig/config.sub expect-5.44.1.15/config.sub
old new 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 5 # Free Software Foundation, Inc. 5 6 6 timestamp='20 03-10-07'7 timestamp='2010-01-22' 7 8 8 9 # This file is (in principle) common to ALL GNU software. 9 10 # The presence of a machine in this file suggests that SOME GNU software … … 21 22 # 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 29 30 # configuration script generated by Autoconf, you may include it under 30 31 # the same distribution terms that you use for the rest of that program. 31 32 33 32 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 GNU ChangeLog entry. 34 36 # 35 37 # Configuration subroutine to validate and canonicalize a configuration type. 36 38 # Supply the specified configuration type as an argument. 37 39 # If it is invalid, we print an error message on stderr and exit with code 1. 38 40 # Otherwise, we print the canonical config type on stdout and succeed. 39 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 44 40 45 # This file is supposed to be the same for all GNU packages 41 46 # and recognize all the CPU types, system types and aliases 42 47 # that are meaningful with *any* GNU software. … … 70 75 version="\ 71 76 GNU config.sub ($timestamp) 72 77 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 74 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 Free 80 Software Foundation, Inc. 75 81 76 82 This is free software; see the source for copying conditions. There is NO 77 83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." … … 83 89 while test $# -gt 0 ; do 84 90 case $1 in 85 91 --time-stamp | --time* | -t ) 86 echo "$timestamp" ; exit 0;;92 echo "$timestamp" ; exit ;; 87 93 --version | -v ) 88 echo "$version" ; exit 0;;94 echo "$version" ; exit ;; 89 95 --help | --h* | -h ) 90 echo "$usage"; exit 0;;96 echo "$usage"; exit ;; 91 97 -- ) # Stop option processing 92 98 shift; break ;; 93 99 - ) # Use stdin as input. … … 99 105 *local*) 100 106 # First pass through any local machine types. 101 107 echo $1 102 exit 0;;108 exit ;; 103 109 104 110 * ) 105 111 break ;; … … 118 124 # Here we must recognize all the valid KERNEL-OS combinations. 119 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 126 case $maybe_os in 121 nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 129 kopensolaris*-gnu* | \ 130 storm-chaos* | os2-emx* | rtmk-nova*) 122 131 os=-$maybe_os 123 132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 124 133 ;; … … 144 153 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 145 154 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 146 155 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 147 -apple | -axis )156 -apple | -axis | -knuth | -cray | -microblaze) 148 157 os= 149 158 basic_machine=$1 150 159 ;; 160 -bluegene*) 161 os=-cnk 162 ;; 151 163 -sim | -cisco | -oki | -wec | -winbond) 152 164 os= 153 165 basic_machine=$1 … … 169 181 -hiux*) 170 182 os=-hiuxwe2 171 183 ;; 184 -sco6) 185 os=-sco5v6 186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 187 ;; 172 188 -sco5) 173 189 os=-sco3.2v5 174 190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 185 201 # Don't forget version if it is 3.2v4 or newer. 186 202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 187 203 ;; 204 -sco5v6*) 205 # Don't forget version if it is 3.2v4 or newer. 206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 207 ;; 188 208 -sco*) 189 209 os=-sco3.2v2 190 210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 229 249 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 230 250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 231 251 | am33_2.0 \ 232 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 253 | bfin \ 233 254 | c4x | clipper \ 234 255 | d10v | d30v | dlx | dsp16xx \ 235 | f r30 | frv \256 | fido | fr30 | frv \ 236 257 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 237 258 | i370 | i860 | i960 | ia64 \ 238 259 | ip2k | iq2000 \ 239 | m32r | m68000 | m68k | m88k | mcore \ 260 | lm32 \ 261 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 262 | maxq | mb | microblaze | mcore | mep | metag \ 240 263 | mips | mipsbe | mipseb | mipsel | mipsle \ 241 264 | mips16 \ 242 265 | mips64 | mips64el \ 243 | mips64 vr | mips64vrel \266 | mips64octeon | mips64octeonel \ 244 267 | mips64orion | mips64orionel \ 268 | mips64r5900 | mips64r5900el \ 269 | mips64vr | mips64vrel \ 245 270 | mips64vr4100 | mips64vr4100el \ 246 271 | mips64vr4300 | mips64vr4300el \ 247 272 | mips64vr5000 | mips64vr5000el \ 273 | mips64vr5900 | mips64vr5900el \ 248 274 | mipsisa32 | mipsisa32el \ 249 275 | mipsisa32r2 | mipsisa32r2el \ 250 276 | mipsisa64 | mipsisa64el \ … … 253 279 | mipsisa64sr71k | mipsisa64sr71kel \ 254 280 | mipstx39 | mipstx39el \ 255 281 | mn10200 | mn10300 \ 282 | moxie \ 283 | mt \ 256 284 | msp430 \ 285 | nios | nios2 \ 257 286 | ns16k | ns32k \ 258 | o penrisc | or32 \287 | or32 \ 259 288 | pdp10 | pdp11 | pj | pjl \ 260 289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 261 290 | pyramid \ 262 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 291 | rx \ 292 | score \ 293 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 263 294 | sh64 | sh64le \ 264 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 265 | strongarm \ 295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 297 | spu | strongarm \ 266 298 | tahoe | thumb | tic4x | tic80 | tron \ 299 | ubicom32 \ 267 300 | v850 | v850e \ 268 301 | we32k \ 269 | x86 | x scale| xstormy16 | xtensa \270 | z8k )302 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 303 | z8k | z80) 271 304 basic_machine=$basic_machine-unknown 272 305 ;; 273 m6811 | m68hc11 | m6812 | m68hc12 )306 m6811 | m68hc11 | m6812 | m68hc12 | picochip) 274 307 # Motorola 68HC11/12. 275 308 basic_machine=$basic_machine-unknown 276 309 os=-none 277 310 ;; 278 311 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 279 312 ;; 313 ms1) 314 basic_machine=mt-unknown 315 ;; 280 316 281 317 # We use `pc' rather than `unknown' 282 318 # because (1) that's what they normally are, and … … 296 332 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 297 333 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 298 334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 299 | avr-* \300 | b s2000-* \335 | avr-* | avr32-* \ 336 | bfin-* | bs2000-* \ 301 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 302 | clipper-* | c ydra-* \338 | clipper-* | craynv-* | cydra-* \ 303 339 | d10v-* | d30v-* | dlx-* \ 304 340 | elxsi-* \ 305 | f30[01]-* | f700-* | f r30-* | frv-* | fx80-* \341 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 306 342 | h8300-* | h8500-* \ 307 343 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 308 344 | i*86-* | i860-* | i960-* | ia64-* \ 309 345 | ip2k-* | iq2000-* \ 310 | m32r-* \ 346 | lm32-* \ 347 | m32c-* | m32r-* | m32rle-* \ 311 348 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 312 | m88110-* | m88k-* | m core-* \349 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ 313 350 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 314 351 | mips16-* \ 315 352 | mips64-* | mips64el-* \ 316 | mips64 vr-* | mips64vrel-* \353 | mips64octeon-* | mips64octeonel-* \ 317 354 | mips64orion-* | mips64orionel-* \ 355 | mips64r5900-* | mips64r5900el-* \ 356 | mips64vr-* | mips64vrel-* \ 318 357 | mips64vr4100-* | mips64vr4100el-* \ 319 358 | mips64vr4300-* | mips64vr4300el-* \ 320 359 | mips64vr5000-* | mips64vr5000el-* \ 360 | mips64vr5900-* | mips64vr5900el-* \ 321 361 | mipsisa32-* | mipsisa32el-* \ 322 362 | mipsisa32r2-* | mipsisa32r2el-* \ 323 363 | mipsisa64-* | mipsisa64el-* \ … … 325 365 | mipsisa64sb1-* | mipsisa64sb1el-* \ 326 366 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 327 367 | mipstx39-* | mipstx39el-* \ 368 | mmix-* \ 369 | mt-* \ 328 370 | msp430-* \ 329 | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 371 | nios-* | nios2-* \ 372 | none-* | np1-* | ns16k-* | ns32k-* \ 330 373 | orion-* \ 331 374 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 332 375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 333 376 | pyramid-* \ 334 | romp-* | rs6000-* \335 | sh-* | sh[1234]-* | sh[2 3]e-* | sh[34]eb-* | shbe-* \377 | romp-* | rs6000-* | rx-* \ 378 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 336 379 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 337 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 338 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 380 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 381 | sparclite-* \ 382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 339 383 | tahoe-* | thumb-* \ 340 384 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 385 | tile-* | tilegx-* \ 341 386 | tron-* \ 387 | ubicom32-* \ 342 388 | v850-* | v850e-* | vax-* \ 343 389 | we32k-* \ 344 | x86-* | x86_64-* | x ps100-* | xscale-* | xstormy16-* \345 | x tensa-* \390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 391 | xstormy16-* | xtensa*-* \ 346 392 | ymp-* \ 347 | z8k-*) 393 | z8k-* | z80-*) 394 ;; 395 # Recognize the basic CPU types without company name, with glob match. 396 xtensa*) 397 basic_machine=$basic_machine-unknown 348 398 ;; 349 399 # Recognize the various machine names and aliases which stand 350 400 # for a CPU type and a company and sometimes even an OS. … … 362 412 basic_machine=a29k-amd 363 413 os=-udi 364 414 ;; 415 abacus) 416 basic_machine=abacus-unknown 417 ;; 365 418 adobe68k) 366 419 basic_machine=m68010-adobe 367 420 os=-scout … … 379 432 amd64) 380 433 basic_machine=x86_64-pc 381 434 ;; 435 amd64-*) 436 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 437 ;; 382 438 amdahl) 383 439 basic_machine=580-amdahl 384 440 os=-sysv … … 402 458 basic_machine=m68k-apollo 403 459 os=-bsd 404 460 ;; 461 aros) 462 basic_machine=i386-pc 463 os=-aros 464 ;; 405 465 aux) 406 466 basic_machine=m68k-apple 407 467 os=-aux … … 410 470 basic_machine=ns32k-sequent 411 471 os=-dynix 412 472 ;; 473 blackfin) 474 basic_machine=bfin-unknown 475 os=-linux 476 ;; 477 blackfin-*) 478 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 479 os=-linux 480 ;; 481 bluegene*) 482 basic_machine=powerpc-ibm 483 os=-cnk 484 ;; 413 485 c90) 414 486 basic_machine=c90-cray 415 487 os=-unicos 416 488 ;; 489 cegcc) 490 basic_machine=arm-unknown 491 os=-cegcc 492 ;; 417 493 convex-c1) 418 494 basic_machine=c1-convex 419 495 os=-bsd … … 438 514 basic_machine=j90-cray 439 515 os=-unicos 440 516 ;; 517 craynv) 518 basic_machine=craynv-cray 519 os=-unicosmp 520 ;; 521 cr16) 522 basic_machine=cr16-unknown 523 os=-elf 524 ;; 441 525 crds | unos) 442 526 basic_machine=m68k-crds 443 527 ;; 528 crisv32 | crisv32-* | etraxfs*) 529 basic_machine=crisv32-axis 530 ;; 444 531 cris | cris-* | etrax*) 445 532 basic_machine=cris-axis 446 533 ;; 534 crx) 535 basic_machine=crx-unknown 536 os=-elf 537 ;; 447 538 da30 | da30-*) 448 539 basic_machine=m68k-da30 449 540 ;; … … 466 557 basic_machine=m88k-motorola 467 558 os=-sysv3 468 559 ;; 560 dicos) 561 basic_machine=i686-pc 562 os=-dicos 563 ;; 564 djgpp) 565 basic_machine=i586-pc 566 os=-msdosdjgpp 567 ;; 469 568 dpx20 | dpx20-*) 470 569 basic_machine=rs6000-bull 471 570 os=-bosx … … 616 715 basic_machine=m68k-isi 617 716 os=-sysv 618 717 ;; 718 m68knommu) 719 basic_machine=m68k-unknown 720 os=-linux 721 ;; 722 m68knommu-*) 723 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 724 os=-linux 725 ;; 619 726 m88k-omron*) 620 727 basic_machine=m88k-omron 621 728 ;; … … 627 734 basic_machine=ns32k-utek 628 735 os=-sysv 629 736 ;; 737 microblaze) 738 basic_machine=microblaze-xilinx 739 ;; 630 740 mingw32) 631 741 basic_machine=i386-pc 632 742 os=-mingw32 633 743 ;; 744 mingw32ce) 745 basic_machine=arm-unknown 746 os=-mingw32ce 747 ;; 634 748 miniframe) 635 749 basic_machine=m68000-convergent 636 750 ;; … … 644 758 mips3*) 645 759 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 646 760 ;; 647 mmix*)648 basic_machine=mmix-knuth649 os=-mmixware650 ;;651 761 monitor) 652 762 basic_machine=m68k-rom68k 653 763 os=-coff … … 660 770 basic_machine=i386-pc 661 771 os=-msdos 662 772 ;; 773 ms1-*) 774 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 775 ;; 663 776 mvs) 664 777 basic_machine=i370-ibm 665 778 os=-mvs … … 728 841 np1) 729 842 basic_machine=np1-gould 730 843 ;; 731 nv1)732 basic_machine=nv1-cray733 os=-unicosmp734 ;;735 844 nsr-tandem) 736 845 basic_machine=nsr-tandem 737 846 ;; … … 739 848 basic_machine=hppa1.1-oki 740 849 os=-proelf 741 850 ;; 742 o r32 | or32-*)851 openrisc | openrisc-*) 743 852 basic_machine=or32-unknown 744 os=-coff 853 ;; 854 os400) 855 basic_machine=powerpc-ibm 856 os=-os400 745 857 ;; 746 858 OSE68000 | ose68000) 747 859 basic_machine=m68000-ericsson … … 759 871 basic_machine=i860-intel 760 872 os=-osf 761 873 ;; 874 parisc) 875 basic_machine=hppa-unknown 876 os=-linux 877 ;; 878 parisc-*) 879 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 880 os=-linux 881 ;; 762 882 pbd) 763 883 basic_machine=sparc-tti 764 884 ;; … … 768 888 pc532 | pc532-*) 769 889 basic_machine=ns32k-pc532 770 890 ;; 891 pc98) 892 basic_machine=i386-pc 893 ;; 894 pc98-*) 895 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 896 ;; 771 897 pentium | p5 | k5 | k6 | nexgen | viac3) 772 898 basic_machine=i586-pc 773 899 ;; … … 824 950 basic_machine=i586-unknown 825 951 os=-pw32 826 952 ;; 953 rdos) 954 basic_machine=i386-pc 955 os=-rdos 956 ;; 827 957 rom68k) 828 958 basic_machine=m68k-rom68k 829 959 os=-coff … … 850 980 sb1el) 851 981 basic_machine=mipsisa64sb1el-unknown 852 982 ;; 983 sde) 984 basic_machine=mipsisa32-sde 985 os=-elf 986 ;; 853 987 sei) 854 988 basic_machine=mips-sei 855 989 os=-seiux … … 861 995 basic_machine=sh-hitachi 862 996 os=-hms 863 997 ;; 998 sh5el) 999 basic_machine=sh5le-unknown 1000 ;; 864 1001 sh64) 865 1002 basic_machine=sh64-unknown 866 1003 ;; … … 950 1087 basic_machine=tic6x-unknown 951 1088 os=-coff 952 1089 ;; 1090 # This must be matched before tile*. 1091 tilegx*) 1092 basic_machine=tilegx-unknown 1093 os=-linux-gnu 1094 ;; 1095 tile*) 1096 basic_machine=tile-unknown 1097 os=-linux-gnu 1098 ;; 953 1099 tx39) 954 1100 basic_machine=mipstx39-unknown 955 1101 ;; … … 963 1109 tower | tower-32) 964 1110 basic_machine=m68k-ncr 965 1111 ;; 1112 tpf) 1113 basic_machine=s390x-ibm 1114 os=-tpf 1115 ;; 966 1116 udi29k) 967 1117 basic_machine=a29k-amd 968 1118 os=-udi … … 1006 1156 basic_machine=hppa1.1-winbond 1007 1157 os=-proelf 1008 1158 ;; 1159 xbox) 1160 basic_machine=i686-pc 1161 os=-mingw32 1162 ;; 1009 1163 xps | xps100) 1010 1164 basic_machine=xps100-honeywell 1011 1165 ;; … … 1017 1171 basic_machine=z8k-unknown 1018 1172 os=-sim 1019 1173 ;; 1174 z80-*-coff) 1175 basic_machine=z80-unknown 1176 os=-sim 1177 ;; 1020 1178 none) 1021 1179 basic_machine=none-none 1022 1180 os=-none … … 1036 1194 romp) 1037 1195 basic_machine=romp-ibm 1038 1196 ;; 1197 mmix) 1198 basic_machine=mmix-knuth 1199 ;; 1039 1200 rs6000) 1040 1201 basic_machine=rs6000-ibm 1041 1202 ;; … … 1052 1213 we32k) 1053 1214 basic_machine=we32k-att 1054 1215 ;; 1055 sh 3 | sh4| sh[34]eb | sh[1234]le | sh[23]ele)1216 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 1056 1217 basic_machine=sh-unknown 1057 1218 ;; 1058 sh64) 1059 basic_machine=sh64-unknown 1060 ;; 1061 sparc | sparcv9 | sparcv9b) 1219 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1062 1220 basic_machine=sparc-sun 1063 1221 ;; 1064 1222 cydra) … … 1105 1263 # First match some system type aliases 1106 1264 # that might get confused with valid system types. 1107 1265 # -solaris* is a basic system type, with this one exception. 1266 -auroraux) 1267 os=-auroraux 1268 ;; 1108 1269 -solaris1 | -solaris1.*) 1109 1270 os=`echo $os | sed -e 's|solaris1|sunos4|'` 1110 1271 ;; … … 1125 1286 # Each alternative MUST END IN A *, to match a version number. 1126 1287 # -sysv* is not here because it comes later, after sysvr4. 1127 1288 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1128 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1129 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1289 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1290 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1291 | -sym* | -kopensolaris* \ 1130 1292 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1131 | -aos* \1293 | -aos* | -aros* \ 1132 1294 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1133 1295 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1134 | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ 1135 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1296 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1297 | -openbsd* | -solidbsd* \ 1298 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1299 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1136 1300 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1137 1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1138 | -chorusos* | -chorusrdb* \1302 | -chorusos* | -chorusrdb* | -cegcc* \ 1139 1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1140 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1305 | -uxpv* | -beos* | -mpeix* | -udk* \ 1141 1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1142 1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1143 1308 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1144 1309 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1145 1310 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1146 | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 1311 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1312 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 1147 1313 # Remember, each alternative MUST END IN *, to match a version number. 1148 1314 ;; 1149 1315 -qnx*) … … 1161 1327 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1162 1328 ;; 1163 1329 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1164 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \1330 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1165 1331 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1166 1332 ;; 1167 1333 -mac*) … … 1182 1348 -opened*) 1183 1349 os=-openedition 1184 1350 ;; 1351 -os400*) 1352 os=-os400 1353 ;; 1185 1354 -wince*) 1186 1355 os=-wince 1187 1356 ;; … … 1203 1372 -atheos*) 1204 1373 os=-atheos 1205 1374 ;; 1375 -syllable*) 1376 os=-syllable 1377 ;; 1206 1378 -386bsd) 1207 1379 os=-bsd 1208 1380 ;; … … 1225 1397 -sinix*) 1226 1398 os=-sysv4 1227 1399 ;; 1400 -tpf*) 1401 os=-tpf 1402 ;; 1228 1403 -triton*) 1229 1404 os=-sysv3 1230 1405 ;; … … 1261 1436 -kaos*) 1262 1437 os=-kaos 1263 1438 ;; 1439 -zvmoe) 1440 os=-zvmoe 1441 ;; 1442 -dicos*) 1443 os=-dicos 1444 ;; 1445 -nacl*) 1446 ;; 1264 1447 -none) 1265 1448 ;; 1266 1449 *) … … 1283 1466 # system, and we'll never get to this point. 1284 1467 1285 1468 case $basic_machine in 1469 score-*) 1470 os=-elf 1471 ;; 1472 spu-*) 1473 os=-elf 1474 ;; 1286 1475 *-acorn) 1287 1476 os=-riscix1.2 1288 1477 ;; … … 1292 1481 arm*-semi) 1293 1482 os=-aout 1294 1483 ;; 1295 c4x-* | tic4x-*)1296 os=-coff1297 1484 c4x-* | tic4x-*) 1485 os=-coff 1486 ;; 1298 1487 # This must come before the *-dec entry. 1299 1488 pdp10-*) 1300 1489 os=-tops20 … … 1320 1509 m68*-cisco) 1321 1510 os=-aout 1322 1511 ;; 1512 mep-*) 1513 os=-elf 1514 ;; 1323 1515 mips*-cisco) 1324 1516 os=-elf 1325 1517 ;; … … 1338 1530 *-be) 1339 1531 os=-beos 1340 1532 ;; 1533 *-haiku) 1534 os=-haiku 1535 ;; 1341 1536 *-ibm) 1342 1537 os=-aix 1343 1538 ;; 1539 *-knuth) 1540 os=-mmixware 1541 ;; 1344 1542 *-wec) 1345 1543 os=-proelf 1346 1544 ;; … … 1443 1641 -sunos*) 1444 1642 vendor=sun 1445 1643 ;; 1446 - aix*)1644 -cnk*|-aix*) 1447 1645 vendor=ibm 1448 1646 ;; 1449 1647 -beos*) … … 1473 1671 -mvs* | -opened*) 1474 1672 vendor=ibm 1475 1673 ;; 1674 -os400*) 1675 vendor=ibm 1676 ;; 1476 1677 -ptx*) 1477 1678 vendor=sequent 1478 1679 ;; 1680 -tpf*) 1681 vendor=ibm 1682 ;; 1479 1683 -vxsim* | -vxworks* | -windiss*) 1480 1684 vendor=wrs 1481 1685 ;; … … 1500 1704 esac 1501 1705 1502 1706 echo $basic_machine$os 1503 exit 01707 exit 1504 1708 1505 1709 # Local variables: 1506 1710 # eval: (add-hook 'write-file-hooks 'time-stamp)
Note:
See TracBrowser
for help on using the repository browser.