config.guess (113908) | config.guess (126274) |
---|---|
1#! /bin/sh 2# Attempt to guess a canonical system name. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4# 2000, 2001, 2002 Free Software Foundation, Inc. 5 6timestamp='2002-07-23' 7 8# This file is free software; you can redistribute it and/or modify it --- 160 unchanged lines hidden (view full) --- 169 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 170 # Return netbsd for either. FIX? 171 os=netbsd 172 else 173 os=netbsdelf 174 fi 175 ;; 176 *) | 1#! /bin/sh 2# Attempt to guess a canonical system name. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4# 2000, 2001, 2002 Free Software Foundation, Inc. 5 6timestamp='2002-07-23' 7 8# This file is free software; you can redistribute it and/or modify it --- 160 unchanged lines hidden (view full) --- 169 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 170 # Return netbsd for either. FIX? 171 os=netbsd 172 else 173 os=netbsdelf 174 fi 175 ;; 176 *) |
177 os=netbsd | 177 os=netbsd |
178 ;; 179 esac 180 # The OS release 181 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 182 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 183 # contains redundant information, the shorter form: 184 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 185 echo "${machine}-${os}${release}" --- 191 unchanged lines hidden (view full) --- 377 # can be virtually everything (everything which is not 378 # "atarist" or "atariste" at least should have a processor 379 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 380 # to the lowercase version "mint" (or "freemint"). Finally 381 # the system name "TOS" denotes a system which is actually not 382 # MiNT. But MiNT is downward compatible to TOS, so this should 383 # be no problem. 384 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | 178 ;; 179 esac 180 # The OS release 181 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 182 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 183 # contains redundant information, the shorter form: 184 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 185 echo "${machine}-${os}${release}" --- 191 unchanged lines hidden (view full) --- 377 # can be virtually everything (everything which is not 378 # "atarist" or "atariste" at least should have a processor 379 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 380 # to the lowercase version "mint" (or "freemint"). Finally 381 # the system name "TOS" denotes a system which is actually not 382 # MiNT. But MiNT is downward compatible to TOS, so this should 383 # be no problem. 384 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
385 echo m68k-atari-mint${UNAME_RELEASE} | 385 echo m68k-atari-mint${UNAME_RELEASE} |
386 exit 0 ;; 387 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 388 echo m68k-atari-mint${UNAME_RELEASE} | 386 exit 0 ;; 387 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 388 echo m68k-atari-mint${UNAME_RELEASE} |
389 exit 0 ;; | 389 exit 0 ;; |
390 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | 390 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
391 echo m68k-atari-mint${UNAME_RELEASE} | 391 echo m68k-atari-mint${UNAME_RELEASE} |
392 exit 0 ;; 393 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | 392 exit 0 ;; 393 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
394 echo m68k-milan-mint${UNAME_RELEASE} 395 exit 0 ;; | 394 echo m68k-milan-mint${UNAME_RELEASE} 395 exit 0 ;; |
396 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | 396 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
397 echo m68k-hades-mint${UNAME_RELEASE} 398 exit 0 ;; | 397 echo m68k-hades-mint${UNAME_RELEASE} 398 exit 0 ;; |
399 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 399 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
400 echo m68k-unknown-mint${UNAME_RELEASE} 401 exit 0 ;; | 400 echo m68k-unknown-mint${UNAME_RELEASE} 401 exit 0 ;; |
402 powerpc:machten:*:*) 403 echo powerpc-apple-machten${UNAME_RELEASE} 404 exit 0 ;; 405 RISC*:Mach:*:*) 406 echo mips-dec-mach_bsd4.3 407 exit 0 ;; 408 RISC*:ULTRIX:*:*) 409 echo mips-dec-ultrix${UNAME_RELEASE} --- 47 unchanged lines hidden (view full) --- 457 exit 0 ;; 458 m88k:*:4*:R4*) 459 echo m88k-motorola-sysv4 460 exit 0 ;; 461 m88k:*:3*:R3*) 462 echo m88k-motorola-sysv3 463 exit 0 ;; 464 AViiON:dgux:*:*) | 402 powerpc:machten:*:*) 403 echo powerpc-apple-machten${UNAME_RELEASE} 404 exit 0 ;; 405 RISC*:Mach:*:*) 406 echo mips-dec-mach_bsd4.3 407 exit 0 ;; 408 RISC*:ULTRIX:*:*) 409 echo mips-dec-ultrix${UNAME_RELEASE} --- 47 unchanged lines hidden (view full) --- 457 exit 0 ;; 458 m88k:*:4*:R4*) 459 echo m88k-motorola-sysv4 460 exit 0 ;; 461 m88k:*:3*:R3*) 462 echo m88k-motorola-sysv3 463 exit 0 ;; 464 AViiON:dgux:*:*) |
465 # DG/UX returns AViiON for all architectures 466 UNAME_PROCESSOR=`/usr/bin/uname -p` | 465 # DG/UX returns AViiON for all architectures 466 UNAME_PROCESSOR=`/usr/bin/uname -p` |
467 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 468 then 469 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 470 [ ${TARGET_BINARY_INTERFACE}x = x ] 471 then 472 echo m88k-dg-dgux${UNAME_RELEASE} 473 else 474 echo m88k-dg-dguxbcs${UNAME_RELEASE} 475 fi 476 else 477 echo i586-dg-dgux${UNAME_RELEASE} 478 fi | 467 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 468 then 469 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 470 [ ${TARGET_BINARY_INTERFACE}x = x ] 471 then 472 echo m88k-dg-dgux${UNAME_RELEASE} 473 else 474 echo m88k-dg-dguxbcs${UNAME_RELEASE} 475 fi 476 else 477 echo i586-dg-dgux${UNAME_RELEASE} 478 fi |
479 exit 0 ;; | 479 exit 0 ;; |
480 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 481 echo m88k-dolphin-sysv3 482 exit 0 ;; 483 M88*:*:R3*:*) 484 # Delta 88k system running SVR3 485 echo m88k-motorola-sysv3 486 exit 0 ;; 487 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) --- 80 unchanged lines hidden (view full) --- 568 9000/[34678]??:HP-UX:*:*) 569 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 570 case "${UNAME_MACHINE}" in 571 9000/31? ) HP_ARCH=m68000 ;; 572 9000/[34]?? ) HP_ARCH=m68k ;; 573 9000/[678][0-9][0-9]) 574 if [ -x /usr/bin/getconf ]; then 575 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 480 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 481 echo m88k-dolphin-sysv3 482 exit 0 ;; 483 M88*:*:R3*:*) 484 # Delta 88k system running SVR3 485 echo m88k-motorola-sysv3 486 exit 0 ;; 487 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) --- 80 unchanged lines hidden (view full) --- 568 9000/[34678]??:HP-UX:*:*) 569 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 570 case "${UNAME_MACHINE}" in 571 9000/31? ) HP_ARCH=m68000 ;; 572 9000/[34]?? ) HP_ARCH=m68k ;; 573 9000/[678][0-9][0-9]) 574 if [ -x /usr/bin/getconf ]; then 575 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
576 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 577 case "${sc_cpu_version}" in 578 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 579 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 580 532) # CPU_PA_RISC2_0 581 case "${sc_kernel_bits}" in 582 32) HP_ARCH="hppa2.0n" ;; 583 64) HP_ARCH="hppa2.0w" ;; | 576 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 577 case "${sc_cpu_version}" in 578 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 579 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 580 532) # CPU_PA_RISC2_0 581 case "${sc_kernel_bits}" in 582 32) HP_ARCH="hppa2.0n" ;; 583 64) HP_ARCH="hppa2.0w" ;; |
584 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | 584 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
585 esac ;; 586 esac | 585 esac ;; 586 esac |
587 fi 588 if [ "${HP_ARCH}" = "" ]; then 589 eval $set_cc_for_build 590 sed 's/^ //' << EOF >$dummy.c 591 | 587 fi 588 if [ "${HP_ARCH}" = "" ]; then 589 eval $set_cc_for_build 590 sed 's/^ //' << EOF >$dummy.c 591 |
592 #define _HPUX_SOURCE 593 #include <stdlib.h> 594 #include <unistd.h> | 592 #define _HPUX_SOURCE 593 #include <stdlib.h> 594 #include <unistd.h> |
595 | 595 |
596 int main () 597 { 598 #if defined(_SC_KERNEL_BITS) 599 long bits = sysconf(_SC_KERNEL_BITS); 600 #endif 601 long cpu = sysconf (_SC_CPU_VERSION); | 596 int main () 597 { 598 #if defined(_SC_KERNEL_BITS) 599 long bits = sysconf(_SC_KERNEL_BITS); 600 #endif 601 long cpu = sysconf (_SC_CPU_VERSION); |
602 | 602 |
603 switch (cpu) 604 { 605 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 606 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 607 case CPU_PA_RISC2_0: 608 #if defined(_SC_KERNEL_BITS) 609 switch (bits) 610 { 611 case 64: puts ("hppa2.0w"); break; 612 case 32: puts ("hppa2.0n"); break; 613 default: puts ("hppa2.0"); break; 614 } break; 615 #else /* !defined(_SC_KERNEL_BITS) */ 616 puts ("hppa2.0"); break; 617 #endif 618 default: puts ("hppa1.0"); break; 619 } 620 exit (0); 621 } | 603 switch (cpu) 604 { 605 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 606 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 607 case CPU_PA_RISC2_0: 608 #if defined(_SC_KERNEL_BITS) 609 switch (bits) 610 { 611 case 64: puts ("hppa2.0w"); break; 612 case 32: puts ("hppa2.0n"); break; 613 default: puts ("hppa2.0"); break; 614 } break; 615 #else /* !defined(_SC_KERNEL_BITS) */ 616 puts ("hppa2.0"); break; 617 #endif 618 default: puts ("hppa1.0"); break; 619 } 620 exit (0); 621 } |
622EOF 623 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` 624 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 625 rm -f $dummy.c $dummy && rmdir $tmpdir 626 fi ;; 627 esac 628 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 629 exit 0 ;; --- 54 unchanged lines hidden (view full) --- 684 echo ${UNAME_MACHINE}-unknown-osf1 685 fi 686 exit 0 ;; 687 parisc*:Lites*:*:*) 688 echo hppa1.1-hp-lites 689 exit 0 ;; 690 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 691 echo c1-convex-bsd | 622EOF 623 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` 624 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 625 rm -f $dummy.c $dummy && rmdir $tmpdir 626 fi ;; 627 esac 628 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 629 exit 0 ;; --- 54 unchanged lines hidden (view full) --- 684 echo ${UNAME_MACHINE}-unknown-osf1 685 fi 686 exit 0 ;; 687 parisc*:Lites*:*:*) 688 echo hppa1.1-hp-lites 689 exit 0 ;; 690 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 691 echo c1-convex-bsd |
692 exit 0 ;; | 692 exit 0 ;; |
693 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 694 if getsysinfo -f scalar_acc 695 then echo c32-convex-bsd 696 else echo c2-convex-bsd 697 fi | 693 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 694 if getsysinfo -f scalar_acc 695 then echo c32-convex-bsd 696 else echo c2-convex-bsd 697 fi |
698 exit 0 ;; | 698 exit 0 ;; |
699 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 700 echo c34-convex-bsd | 699 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 700 echo c34-convex-bsd |
701 exit 0 ;; | 701 exit 0 ;; |
702 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 703 echo c38-convex-bsd | 702 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 703 echo c38-convex-bsd |
704 exit 0 ;; | 704 exit 0 ;; |
705 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 706 echo c4-convex-bsd | 705 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 706 echo c4-convex-bsd |
707 exit 0 ;; | 707 exit 0 ;; |
708 CRAY*Y-MP:*:*:*) 709 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 710 exit 0 ;; 711 CRAY*[A-Z]90:*:*:*) 712 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 713 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 714 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 715 -e 's/\.[^.]*$/.X/' --- 10 unchanged lines hidden (view full) --- 726 CRAY*SV1:*:*:*) 727 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 728 exit 0 ;; 729 *:UNICOS/mp:*:*) 730 echo nv1-cray-unicosmp | sed -e 's/\.[^.]*$/.X/' 731 exit 0 ;; 732 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 733 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 708 CRAY*Y-MP:*:*:*) 709 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 710 exit 0 ;; 711 CRAY*[A-Z]90:*:*:*) 712 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 713 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 714 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 715 -e 's/\.[^.]*$/.X/' --- 10 unchanged lines hidden (view full) --- 726 CRAY*SV1:*:*:*) 727 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 728 exit 0 ;; 729 *:UNICOS/mp:*:*) 730 echo nv1-cray-unicosmp | sed -e 's/\.[^.]*$/.X/' 731 exit 0 ;; 732 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 733 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
734 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 735 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 736 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 737 exit 0 ;; | 734 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 735 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 736 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 737 exit 0 ;; |
738 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 739 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 740 exit 0 ;; 741 sparc*:BSD/OS:*:*) 742 echo sparc-unknown-bsdi${UNAME_RELEASE} 743 exit 0 ;; 744 *:BSD/OS:*:*) 745 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} --- 85 unchanged lines hidden (view full) --- 831 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 832 EV5) UNAME_MACHINE=alphaev5 ;; 833 EV56) UNAME_MACHINE=alphaev56 ;; 834 PCA56) UNAME_MACHINE=alphapca56 ;; 835 PCA57) UNAME_MACHINE=alphapca56 ;; 836 EV6) UNAME_MACHINE=alphaev6 ;; 837 EV67) UNAME_MACHINE=alphaev67 ;; 838 EV68*) UNAME_MACHINE=alphaev68 ;; | 738 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 739 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 740 exit 0 ;; 741 sparc*:BSD/OS:*:*) 742 echo sparc-unknown-bsdi${UNAME_RELEASE} 743 exit 0 ;; 744 *:BSD/OS:*:*) 745 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} --- 85 unchanged lines hidden (view full) --- 831 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 832 EV5) UNAME_MACHINE=alphaev5 ;; 833 EV56) UNAME_MACHINE=alphaev56 ;; 834 PCA56) UNAME_MACHINE=alphapca56 ;; 835 PCA57) UNAME_MACHINE=alphapca56 ;; 836 EV6) UNAME_MACHINE=alphaev6 ;; 837 EV67) UNAME_MACHINE=alphaev67 ;; 838 EV68*) UNAME_MACHINE=alphaev68 ;; |
839 esac | 839 esac |
840 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 841 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 842 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 843 exit 0 ;; 844 parisc:Linux:*:* | hppa:Linux:*:*) 845 # Look for CPU level 846 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 847 PA7*) echo hppa1.1-unknown-linux-gnu ;; --- 22 unchanged lines hidden (view full) --- 870 # problems with other programs or directories called `ld' in the path. 871 # Set LC_ALL=C to ensure ld outputs messages in English. 872 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 873 | sed -ne '/supported targets:/!d 874 s/[ ][ ]*/ /g 875 s/.*supported targets: *// 876 s/ .*// 877 p'` | 840 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 841 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 842 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 843 exit 0 ;; 844 parisc:Linux:*:* | hppa:Linux:*:*) 845 # Look for CPU level 846 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 847 PA7*) echo hppa1.1-unknown-linux-gnu ;; --- 22 unchanged lines hidden (view full) --- 870 # problems with other programs or directories called `ld' in the path. 871 # Set LC_ALL=C to ensure ld outputs messages in English. 872 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 873 | sed -ne '/supported targets:/!d 874 s/[ ][ ]*/ /g 875 s/.*supported targets: *// 876 s/ .*// 877 p'` |
878 case "$ld_supported_targets" in | 878 case "$ld_supported_targets" in |
879 elf32-i386) 880 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 881 ;; 882 a.out-i386-linux) 883 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 884 exit 0 ;; 885 coff-i386) 886 echo "${UNAME_MACHINE}-pc-linux-gnucoff" --- 33 unchanged lines hidden (view full) --- 920 ;; 921 i*86:DYNIX/ptx:4*:*) 922 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 923 # earlier versions are messed up and put the nodename in both 924 # sysname and nodename. 925 echo i386-sequent-sysv4 926 exit 0 ;; 927 i*86:UNIX_SV:4.2MP:2.*) | 879 elf32-i386) 880 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 881 ;; 882 a.out-i386-linux) 883 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 884 exit 0 ;; 885 coff-i386) 886 echo "${UNAME_MACHINE}-pc-linux-gnucoff" --- 33 unchanged lines hidden (view full) --- 920 ;; 921 i*86:DYNIX/ptx:4*:*) 922 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 923 # earlier versions are messed up and put the nodename in both 924 # sysname and nodename. 925 echo i386-sequent-sysv4 926 exit 0 ;; 927 i*86:UNIX_SV:4.2MP:2.*) |
928 # Unixware is an offshoot of SVR4, but it has its own version 929 # number series starting with 2... 930 # I am not positive that other SVR4 systems won't match this, | 928 # Unixware is an offshoot of SVR4, but it has its own version 929 # number series starting with 2... 930 # I am not positive that other SVR4 systems won't match this, |
931 # I just have to hope. -- rms. | 931 # I just have to hope. -- rms. |
932 # Use sysv4.2uw... so that sysv4* matches it. | 932 # Use sysv4.2uw... so that sysv4* matches it. |
933 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 934 exit 0 ;; 935 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 936 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 937 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 938 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 939 else 940 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} --- 25 unchanged lines hidden (view full) --- 966 echo ${UNAME_MACHINE}-pc-sysv32 967 fi 968 exit 0 ;; 969 i*86:*DOS:*:*) 970 echo ${UNAME_MACHINE}-pc-msdosdjgpp 971 exit 0 ;; 972 pc:*:*:*) 973 # Left here for compatibility: | 933 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 934 exit 0 ;; 935 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 936 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 937 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 938 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 939 else 940 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} --- 25 unchanged lines hidden (view full) --- 966 echo ${UNAME_MACHINE}-pc-sysv32 967 fi 968 exit 0 ;; 969 i*86:*DOS:*:*) 970 echo ${UNAME_MACHINE}-pc-msdosdjgpp 971 exit 0 ;; 972 pc:*:*:*) 973 # Left here for compatibility: |
974 # uname -m prints for DJGPP always 'pc', but it prints nothing about 975 # the processor, so we play safe by assuming i386. | 974 # uname -m prints for DJGPP always 'pc', but it prints nothing about 975 # the processor, so we play safe by assuming i386. |
976 echo i386-pc-msdosdjgpp | 976 echo i386-pc-msdosdjgpp |
977 exit 0 ;; | 977 exit 0 ;; |
978 Intel:Mach:3*:*) 979 echo i386-pc-mach3 980 exit 0 ;; 981 paragon:*:*:*) 982 echo i860-intel-osf1 983 exit 0 ;; 984 i860:*:4.*:*) # i860-SVR4 985 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then --- 12 unchanged lines hidden (view full) --- 998 OS_REL='' 999 test -r /etc/.relid \ 1000 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1001 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1002 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1003 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1004 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1005 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 978 Intel:Mach:3*:*) 979 echo i386-pc-mach3 980 exit 0 ;; 981 paragon:*:*:*) 982 echo i860-intel-osf1 983 exit 0 ;; 984 i860:*:4.*:*) # i860-SVR4 985 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then --- 12 unchanged lines hidden (view full) --- 998 OS_REL='' 999 test -r /etc/.relid \ 1000 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1001 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1002 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1003 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1004 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1005 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1006 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1007 && echo i486-ncr-sysv4 && exit 0 ;; | 1006 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1007 && echo i486-ncr-sysv4 && exit 0 ;; |
1008 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1009 echo m68k-unknown-lynxos${UNAME_RELEASE} 1010 exit 0 ;; 1011 mc68030:UNIX_System_V:4.*:*) 1012 echo m68k-atari-sysv4 1013 exit 0 ;; 1014 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1015 echo i386-unknown-lynxos${UNAME_RELEASE} --- 20 unchanged lines hidden (view full) --- 1036 if uname -p 2>/dev/null >/dev/null ; then 1037 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1038 echo ${UNAME_MACHINE}-sni-sysv4 1039 else 1040 echo ns32k-sni-sysv 1041 fi 1042 exit 0 ;; 1043 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1008 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1009 echo m68k-unknown-lynxos${UNAME_RELEASE} 1010 exit 0 ;; 1011 mc68030:UNIX_System_V:4.*:*) 1012 echo m68k-atari-sysv4 1013 exit 0 ;; 1014 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1015 echo i386-unknown-lynxos${UNAME_RELEASE} --- 20 unchanged lines hidden (view full) --- 1036 if uname -p 2>/dev/null >/dev/null ; then 1037 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1038 echo ${UNAME_MACHINE}-sni-sysv4 1039 else 1040 echo ns32k-sni-sysv 1041 fi 1042 exit 0 ;; 1043 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
1044 # says <Richard.M.Bartel@ccMail.Census.GOV> 1045 echo i586-unisys-sysv4 1046 exit 0 ;; | 1044 # says <Richard.M.Bartel@ccMail.Census.GOV> 1045 echo i586-unisys-sysv4 1046 exit 0 ;; |
1047 *:UNIX_System_V:4*:FTX*) 1048 # From Gerald Hewes <hewes@openmarket.com>. 1049 # How about differentiating between stratus architectures? -djm 1050 echo hppa1.1-stratus-sysv4 1051 exit 0 ;; 1052 *:*:*:FTX*) 1053 # From seanf@swdc.stratus.com. 1054 echo i860-stratus-sysv4 --- 5 unchanged lines hidden (view full) --- 1060 mc68*:A/UX:*:*) 1061 echo m68k-apple-aux${UNAME_RELEASE} 1062 exit 0 ;; 1063 news*:NEWS-OS:6*:*) 1064 echo mips-sony-newsos6 1065 exit 0 ;; 1066 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1067 if [ -d /usr/nec ]; then | 1047 *:UNIX_System_V:4*:FTX*) 1048 # From Gerald Hewes <hewes@openmarket.com>. 1049 # How about differentiating between stratus architectures? -djm 1050 echo hppa1.1-stratus-sysv4 1051 exit 0 ;; 1052 *:*:*:FTX*) 1053 # From seanf@swdc.stratus.com. 1054 echo i860-stratus-sysv4 --- 5 unchanged lines hidden (view full) --- 1060 mc68*:A/UX:*:*) 1061 echo m68k-apple-aux${UNAME_RELEASE} 1062 exit 0 ;; 1063 news*:NEWS-OS:6*:*) 1064 echo mips-sony-newsos6 1065 exit 0 ;; 1066 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1067 if [ -d /usr/nec ]; then |
1068 echo mips-nec-sysv${UNAME_RELEASE} | 1068 echo mips-nec-sysv${UNAME_RELEASE} |
1069 else | 1069 else |
1070 echo mips-unknown-sysv${UNAME_RELEASE} | 1070 echo mips-unknown-sysv${UNAME_RELEASE} |
1071 fi | 1071 fi |
1072 exit 0 ;; | 1072 exit 0 ;; |
1073 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1074 echo powerpc-be-beos 1075 exit 0 ;; 1076 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1077 echo powerpc-apple-beos 1078 exit 0 ;; 1079 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1080 echo i586-pc-beos --- 93 unchanged lines hidden (view full) --- 1174#if defined (MIPSEB) 1175 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1176 I don't know.... */ 1177 printf ("mips-sony-bsd\n"); exit (0); 1178#else 1179#include <sys/param.h> 1180 printf ("m68k-sony-newsos%s\n", 1181#ifdef NEWSOS4 | 1073 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1074 echo powerpc-be-beos 1075 exit 0 ;; 1076 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1077 echo powerpc-apple-beos 1078 exit 0 ;; 1079 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1080 echo i586-pc-beos --- 93 unchanged lines hidden (view full) --- 1174#if defined (MIPSEB) 1175 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1176 I don't know.... */ 1177 printf ("mips-sony-bsd\n"); exit (0); 1178#else 1179#include <sys/param.h> 1180 printf ("m68k-sony-newsos%s\n", 1181#ifdef NEWSOS4 |
1182 "4" | 1182 "4" |
1183#else 1184 "" 1185#endif | 1183#else 1184 "" 1185#endif |
1186 ); exit (0); | 1186 ); exit (0); |
1187#endif 1188#endif 1189 1190#if defined (__arm) && defined (__acorn) && defined (__unix) 1191 printf ("arm-acorn-riscix"); exit (0); 1192#endif 1193 1194#if defined (hp300) && !defined (hpux) --- 163 unchanged lines hidden --- | 1187#endif 1188#endif 1189 1190#if defined (__arm) && defined (__acorn) && defined (__unix) 1191 printf ("arm-acorn-riscix"); exit (0); 1192#endif 1193 1194#if defined (hp300) && !defined (hpux) --- 163 unchanged lines hidden --- |