Changeset 2721 for trunk/gsdl/config.guess
- Timestamp:
- 2001-08-30T16:54:45+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/config.guess
r2279 r2721 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 4 # Free Software Foundation, Inc. 4 5 # 5 6 # This file is free software; you can redistribute it and/or modify it … … 24 25 # Written by Per Bothner <[email protected]>. 25 26 # The master version of this file is at the FSF in /home/gd/gnu/lib. 27 # Please send patches to the Autoconf mailing list <[email protected]>. 26 28 # 27 29 # This script attempts to guess a canonical system name similar to … … 36 38 # 37 39 40 # Use $HOST_CC if defined. $CC may point to a cross-compiler 41 if test x"$CC_FOR_BUILD" = x; then 42 if test x"$HOST_CC" != x; then 43 CC_FOR_BUILD="$HOST_CC" 44 else 45 if test x"$CC" != x; then 46 CC_FOR_BUILD="$CC" 47 else 48 CC_FOR_BUILD=cc 49 fi 50 fi 51 fi 52 53 38 54 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 39 55 # ([email protected] 8/24/94.) … … 47 63 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 48 64 49 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 65 dummy=dummy-$$ 66 trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 50 67 51 68 # Note: order is significant - the case branches are not exclusive. … … 60 77 # A Xn.n version is an unreleased experimental baselevel. 61 78 # 1.2 uses "1.2" for uname -r. 62 cat <<EOF > dummy.s79 cat <<EOF >$dummy.s 63 80 .globl main 64 81 .ent main … … 77 94 .end main 78 95 EOF 79 $ {CC-cc} dummy.s -odummy 2>/dev/null96 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 80 97 if test "$?" = 0 ; then 81 ./ dummy98 ./$dummy 82 99 case "$?" in 83 100 7) … … 98 115 esac 99 116 fi 100 rm -f dummy.s dummy 101 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` 117 rm -f $dummy.s $dummy 118 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 119 exit 0 ;; 120 Alpha\ *:Windows_NT*:*) 121 # How do we know it's Interix rather than the generic POSIX subsystem? 122 # Should we change UNAME_MACHINE based on the output of uname instead 123 # of the specific Alpha model? 124 echo alpha-pc-interix 102 125 exit 0 ;; 103 126 21064:Windows_NT:50:3) … … 143 166 echo hppa1.1-hitachi-hiuxmpp 144 167 exit 0;; 145 Pyramid*:OSx*:*:* |MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)168 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 146 169 # [email protected] (Earle F. Ake) contributed MIS and NILE. 147 170 if test "`(/bin/universe) 2>/dev/null`" = att ; then … … 151 174 fi 152 175 exit 0 ;; 153 NILE :*:*:dcosx)176 NILE*:*:*:dcosx) 154 177 echo pyramid-pyramid-svr4 155 178 exit 0 ;; … … 202 225 echo m68k-unknown-openbsd${UNAME_RELEASE} 203 226 exit 0 ;; 227 # The situation for MiNT is a little confusing. The machine name 228 # can be virtually everything (everything which is not 229 # "atarist" or "atariste" at least should have a processor 230 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 231 # to the lowercase version "mint" (or "freemint"). Finally 232 # the system name "TOS" denotes a system which is actually not 233 # MiNT. But MiNT is downward compatible to TOS, so this should 234 # be no problem. 235 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 236 echo m68k-atari-mint${UNAME_RELEASE} 237 exit 0 ;; 238 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 239 echo m68k-atari-mint${UNAME_RELEASE} 240 exit 0 ;; 241 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 242 echo m68k-atari-mint${UNAME_RELEASE} 243 exit 0 ;; 244 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 245 echo m68k-milan-mint${UNAME_RELEASE} 246 exit 0 ;; 247 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 248 echo m68k-hades-mint${UNAME_RELEASE} 249 exit 0 ;; 250 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 251 echo m68k-unknown-mint${UNAME_RELEASE} 252 exit 0 ;; 204 253 sun3*:NetBSD:*:*) 205 254 echo m68k-sun-netbsd${UNAME_RELEASE} … … 235 284 echo vax-dec-ultrix${UNAME_RELEASE} 236 285 exit 0 ;; 237 2020:CLIX:*:* )286 2020:CLIX:*:* | 2430:CLIX:*:*) 238 287 echo clipper-intergraph-clix${UNAME_RELEASE} 239 288 exit 0 ;; 240 289 mips:*:*:UMIPS | mips:*:*:RISCos) 241 sed 's/^ //' << EOF >dummy.c 242 int main (argc, argv) int argc; char **argv; { 290 sed 's/^ //' << EOF >$dummy.c 291 #ifdef __cplusplus 292 int main (int argc, char *argv[]) { 293 #else 294 int main (argc, argv) int argc; char *argv[]; { 295 #endif 243 296 #if defined (host_mips) && defined (MIPSEB) 244 297 #if defined (SYSTYPE_SYSV) … … 255 308 } 256 309 EOF 257 $ {CC-cc} dummy.c -odummy \258 && ./ dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \259 && rm dummy.cdummy && exit 0260 rm -f dummy.cdummy310 $CC_FOR_BUILD $dummy.c -o $dummy \ 311 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 312 && rm $dummy.c $dummy && exit 0 313 rm -f $dummy.c $dummy 261 314 echo mips-mips-riscos${UNAME_RELEASE} 262 315 exit 0 ;; … … 310 363 *:AIX:2:3) 311 364 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 312 sed 's/^ //' << EOF > dummy.c365 sed 's/^ //' << EOF >$dummy.c 313 366 #include <sys/systemcfg.h> 314 367 … … 321 374 } 322 375 EOF 323 $ {CC-cc} dummy.c -o dummy && ./dummy && rm dummy.cdummy && exit 0324 rm -f dummy.cdummy376 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 377 rm -f $dummy.c $dummy 325 378 echo rs6000-ibm-aix3.2.5 326 379 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then … … 369 422 9000/31? ) HP_ARCH=m68000 ;; 370 423 9000/[34]?? ) HP_ARCH=m68k ;; 371 9000/ 6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892)372 sed 's/^ //' << EOF > dummy.c424 9000/[678][0-9][0-9]) 425 sed 's/^ //' << EOF >$dummy.c 373 426 #include <stdlib.h> 374 427 #include <unistd.h> 375 428 376 429 int main () 377 430 { 378 431 #if defined(_SC_KERNEL_BITS) 379 432 long bits = sysconf(_SC_KERNEL_BITS); 380 #endif 433 #endif 381 434 long cpu = sysconf (_SC_CPU_VERSION); 382 383 switch (cpu) 435 436 switch (cpu) 384 437 { 385 438 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 386 439 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 387 case CPU_PA_RISC2_0: 440 case CPU_PA_RISC2_0: 388 441 #if defined(_SC_KERNEL_BITS) 389 switch (bits) 442 switch (bits) 390 443 { 391 444 case 64: puts ("hppa2.0w"); break; … … 395 448 #else /* !defined(_SC_KERNEL_BITS) */ 396 449 puts ("hppa2.0"); break; 397 #endif 450 #endif 398 451 default: puts ("hppa1.0"); break; 399 452 } … … 401 454 } 402 455 EOF 403 ($ {CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`404 rm -f dummy.cdummy456 ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 457 rm -f $dummy.c $dummy 405 458 esac 406 459 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 408 461 exit 0 ;; 409 462 3050*:HI-UX:*:*) 410 sed 's/^ //' << EOF > dummy.c463 sed 's/^ //' << EOF >$dummy.c 411 464 #include <unistd.h> 412 465 int … … 433 486 } 434 487 EOF 435 $ {CC-cc} dummy.c -o dummy && ./dummy && rm dummy.cdummy && exit 0436 rm -f dummy.cdummy488 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 489 rm -f $dummy.c $dummy 437 490 echo unknown-hitachi-hiuxwe2 438 491 exit 0 ;; … … 442 495 9000/8??:4.3bsd:*:*) 443 496 echo hppa1.0-hp-bsd 497 exit 0 ;; 498 *9??*:MPE/iX:*:*) 499 echo hppa1.0-hp-mpeix 444 500 exit 0 ;; 445 501 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) … … 459 515 echo hppa1.1-hp-lites 460 516 exit 0 ;; 517 hppa*:OpenBSD:*:*) 518 echo hppa-unknown-openbsd 519 exit 0 ;; 461 520 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 462 521 echo c1-convex-bsd … … 491 550 echo t90-cray-unicos${UNAME_RELEASE} 492 551 exit 0 ;; 552 CRAY*T3E:*:*:*) 553 echo alpha-cray-unicosmk${UNAME_RELEASE} 554 exit 0 ;; 493 555 CRAY-2:*:*:*) 494 556 echo cray2-cray-unicos 495 557 exit 0 ;; 496 558 F300:UNIX_System_V:*:*) 497 FUJITSU_SYS=`uname -p | tr [A-Z] [a-z]| sed -e 's/\///'`559 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 498 560 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 499 561 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" … … 508 570 echo m68k-unknown-openbsd${UNAME_RELEASE} 509 571 exit 0 ;; 572 i?86:BSD/386:*:* | i?86:BSD/OS:*:*) 573 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 574 exit 0 ;; 510 575 sparc*:BSD/OS:*:*) 511 576 echo sparc-unknown-bsdi${UNAME_RELEASE} 512 577 exit 0 ;; 513 i?86:BSD/386:*:* |*:BSD/OS:*:*)514 echo ${UNAME_MACHINE}- pc-bsdi${UNAME_RELEASE}578 *:BSD/OS:*:*) 579 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 515 580 exit 0 ;; 516 581 *:FreeBSD:*:*) 582 if test -x /usr/bin/objformat; then 583 if test "elf" = "`/usr/bin/objformat`"; then 584 echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` 585 exit 0 586 fi 587 fi 517 588 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 518 589 exit 0 ;; … … 528 599 i*:MINGW*:*) 529 600 echo ${UNAME_MACHINE}-pc-mingw32 601 exit 0 ;; 602 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 603 # How do we know it's Interix rather than the generic POSIX subsystem? 604 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 605 # UNAME_MACHINE based on the output of uname instead of i386? 606 echo i386-pc-interix 607 exit 0 ;; 608 i*:UWIN*:*) 609 echo ${UNAME_MACHINE}-pc-uwin 530 610 exit 0 ;; 531 611 p*:CYGWIN*:*) … … 542 622 # filter it out. 543 623 case "$UNAME_MACHINE" in 624 armv*) UNAME_MACHINE=$UNAME_MACHINE ;; 544 625 arm* | sa110*) UNAME_MACHINE="arm" ;; 545 626 esac 546 627 547 628 # The BFD linker knows what the default object file format is, so 548 # first see if it will tell us. 549 ld_help_string=`ld --help 2>&1` 629 # first see if it will tell us. cd to the root directory to prevent 630 # problems with other programs or directories called `ld' in the path. 631 ld_help_string=`cd /; ld --help 2>&1` 550 632 ld_supported_emulations=`echo $ld_help_string \ 551 633 | sed -ne '/supported emulations:/!d … … 555 637 p'` 556 638 case "$ld_supported_emulations" in 639 *ia64) echo "${UNAME_MACHINE}-unknown-linux" ; exit 0 ;; 557 640 i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; 558 641 i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; … … 560 643 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 561 644 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 562 elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; 645 elf32ppc | elf32ppclinux) 646 # Determine Lib Version 647 cat >$dummy.c <<EOF 648 #include <features.h> 649 #if defined(__GLIBC__) 650 extern char __libc_version[]; 651 extern char __libc_release[]; 652 #endif 653 main(argc, argv) 654 int argc; 655 char *argv[]; 656 { 657 #if defined(__GLIBC__) 658 printf("%s %s\n", __libc_version, __libc_release); 659 #else 660 printf("unkown\n"); 661 #endif 662 return 0; 663 } 664 EOF 665 LIBC="" 666 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null 667 if test "$?" = 0 ; then 668 ./$dummy | grep 1\.99 > /dev/null 669 if test "$?" = 0 ; then 670 LIBC="libc1" 671 fi 672 fi 673 rm -f $dummy.c $dummy 674 echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; 563 675 esac 564 676 565 677 if test "${UNAME_MACHINE}" = "alpha" ; then 566 sed 's/^ //' <<EOF > dummy.s678 sed 's/^ //' <<EOF >$dummy.s 567 679 .globl main 568 680 .ent main … … 582 694 EOF 583 695 LIBC="" 584 $ {CC-cc} dummy.s -odummy 2>/dev/null696 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 585 697 if test "$?" = 0 ; then 586 ./ dummy698 ./$dummy 587 699 case "$?" in 588 700 7) … … 601 713 UNAME_MACHINE="alphaev6" 602 714 ;; 603 esac 604 605 objdump --private-headers dummy | \715 esac 716 717 objdump --private-headers $dummy | \ 606 718 grep ld.so.1 > /dev/null 607 719 if test "$?" = 0 ; then 608 720 LIBC="libc1" 609 721 fi 610 fi 611 rm -f dummy.sdummy722 fi 723 rm -f $dummy.s $dummy 612 724 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 613 725 elif test "${UNAME_MACHINE}" = "mips" ; then 614 cat >dummy.c <<EOF 615 main(argc, argv) 616 int argc; 617 char *argv[]; 618 { 726 cat >$dummy.c <<EOF 727 #ifdef __cplusplus 728 int main (int argc, char *argv[]) { 729 #else 730 int main (argc, argv) int argc; char *argv[]; { 731 #endif 619 732 #ifdef __MIPSEB__ 620 733 printf ("%s-unknown-linux-gnu\n", argv[1]); … … 626 739 } 627 740 EOF 628 $ {CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.cdummy && exit 0629 rm -f dummy.cdummy741 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 742 rm -f $dummy.c $dummy 630 743 else 631 744 # Either a pre-BFD a.out linker (linux-gnuoldld) … … 646 759 esac 647 760 # Determine whether the default compiler is a.out or elf 648 cat > dummy.c <<EOF761 cat >$dummy.c <<EOF 649 762 #include <features.h> 650 main(argc, argv) 651 int argc; 652 char *argv[]; 653 { 763 #ifdef __cplusplus 764 int main (int argc, char *argv[]) { 765 #else 766 int main (argc, argv) int argc; char *argv[]; { 767 #endif 654 768 #ifdef __ELF__ 655 769 # ifdef __GLIBC__ … … 668 782 } 669 783 EOF 670 $ {CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.cdummy && exit 0671 rm -f dummy.cdummy784 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 785 rm -f $dummy.c $dummy 672 786 fi ;; 673 787 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions … … 690 804 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 691 805 fi 806 exit 0 ;; 807 i?86:*:5:7*) 808 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 809 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 810 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586 811 (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686 812 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585 813 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} 692 814 exit 0 ;; 693 815 i?86:*:3.2:*) … … 700 822 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 701 823 && UNAME_MACHINE=i586 824 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 825 && UNAME_MACHINE=i686 826 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 827 && UNAME_MACHINE=i686 702 828 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 703 829 else 704 830 echo ${UNAME_MACHINE}-pc-sysv32 705 831 fi 706 exit 0 ;;707 i?86:UnixWare:*:*)708 if /bin/uname -X 2>/dev/null >/dev/null ; then709 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \710 && UNAME_MACHINE=i586711 fi712 echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}713 832 exit 0 ;; 714 833 pc:*:*:*) … … 753 872 echo m68k-atari-sysv4 754 873 exit 0 ;; 755 i?86:LynxOS:2.*:* )874 i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) 756 875 echo i386-unknown-lynxos${UNAME_RELEASE} 757 876 exit 0 ;; … … 764 883 SM[BE]S:UNIX_SV:*:*) 765 884 echo mips-dde-sysv${UNAME_RELEASE} 885 exit 0 ;; 886 RM*:ReliantUNIX-*:*:*) 887 echo mips-sni-sysv4 766 888 exit 0 ;; 767 889 RM*:SINIX-*:*:*) … … 795 917 echo mips-sony-newsos6 796 918 exit 0 ;; 797 R 3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)919 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 798 920 if [ -d /usr/nec ]; then 799 921 echo mips-nec-sysv${UNAME_RELEASE} … … 802 924 fi 803 925 exit 0 ;; 926 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 927 echo powerpc-be-beos 928 exit 0 ;; 929 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 930 echo powerpc-apple-beos 931 exit 0 ;; 932 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 933 echo i586-pc-beos 934 exit 0 ;; 935 SX-4:SUPER-UX:*:*) 936 echo sx4-nec-superux${UNAME_RELEASE} 937 exit 0 ;; 938 SX-5:SUPER-UX:*:*) 939 echo sx5-nec-superux${UNAME_RELEASE} 940 exit 0 ;; 804 941 Power*:Rhapsody:*:*) 805 942 echo powerpc-apple-rhapsody${UNAME_RELEASE} 806 943 exit 0 ;; 807 944 *:Rhapsody:*:*) 808 945 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 809 946 exit 0 ;; 810 *:Darwin:*:* | *:"Mac OS":*:*)811 echo `uname -p`-apple-darwin${UNAME_RELEASE}812 exit 0 ;;813 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.814 echo powerpc-be-beos815 exit 0 ;;816 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.817 echo powerpc-apple-beos818 exit 0 ;;819 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.820 echo i586-pc-beos821 exit 0 ;;822 947 esac 823 948 … … 825 950 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 826 951 827 cat > dummy.c <<EOF952 cat >$dummy.c <<EOF 828 953 #ifdef _SEQUENT_ 829 954 # include <sys/types.h> … … 926 1051 EOF 927 1052 928 $ {CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.cdummy && exit 0929 rm -f dummy.cdummy1053 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 1054 rm -f $dummy.c $dummy 930 1055 931 1056 # Apollos put the system type in the environment.
Note:
See TracChangeset
for help on using the changeset viewer.