Changeset 3238 for trunk/psLib/config.guess
- Timestamp:
- Feb 15, 2005, 3:01:56 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/config.guess (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/config.guess
r3219 r3238 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 , 2004Free Software Foundation, Inc.5 6 timestamp='200 4-08-11'4 # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 timestamp='2003-06-17' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it … … 54 54 55 55 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 , 2002, 2003, 200456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 57 57 Free Software Foundation, Inc. 58 58 … … 137 137 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 138 138 139 case "${UNAME_MACHINE}" in 140 i?86) 141 test -z "$VENDOR" && VENDOR=pc 142 ;; 143 *) 144 test -z "$VENDOR" && VENDOR=unknown 145 ;; 146 esac 147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse 139 ## for Red Hat Linux 140 if test -f /etc/redhat-release ; then 141 VENDOR=redhat ; 142 else 143 VENDOR= ; 144 fi 148 145 149 146 # Note: order is significant - the case branches are not exclusive. … … 208 205 echo "${machine}-${os}${release}" 209 206 exit 0 ;; 210 amd64:OpenBSD:*:*)211 echo x86_64-unknown-openbsd${UNAME_RELEASE}212 exit 0 ;;213 207 amiga:OpenBSD:*:*) 214 208 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 217 211 echo mipsel-unknown-openbsd${UNAME_RELEASE} 218 212 exit 0 ;; 219 cats:OpenBSD:*:*)220 echo arm-unknown-openbsd${UNAME_RELEASE}221 exit 0 ;;222 213 hp300:OpenBSD:*:*) 223 214 echo m68k-unknown-openbsd${UNAME_RELEASE} 224 215 exit 0 ;; 225 luna88k:OpenBSD:*:*)226 echo m88k-unknown-openbsd${UNAME_RELEASE}227 exit 0 ;;228 216 mac68k:OpenBSD:*:*) 229 217 echo m68k-unknown-openbsd${UNAME_RELEASE} … … 256 244 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 257 245 exit 0 ;; 258 *:ekkoBSD:*:*)259 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}260 exit 0 ;;261 macppc:MirBSD:*:*)262 echo powerppc-unknown-mirbsd${UNAME_RELEASE}263 exit 0 ;;264 *:MirBSD:*:*)265 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}266 exit 0 ;;267 246 alpha:OSF1:*:*) 268 case $UNAME_RELEASE in 269 *4.0) 247 if test $UNAME_RELEASE = "V4.0"; then 270 248 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 271 ;; 272 *5.*) 273 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 274 ;; 275 esac 249 fi 276 250 # According to Compaq, /usr/sbin/psrinfo has been available on 277 251 # OSF/1 and Tru64 systems produced since 1995. I hope that … … 311 285 UNAME_MACHINE="alphaev79" ;; 312 286 esac 313 # A Pn.n version is a patched version.314 287 # A Vn.n version is a released version. 315 288 # A Tn.n version is a released field test version. 316 289 # A Xn.n version is an unreleased experimental baselevel. 317 290 # 1.2 uses "1.2" for uname -r. 318 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 291 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 292 exit 0 ;; 293 Alpha*:OpenVMS:*:*) 294 echo alpha-hp-vms 319 295 exit 0 ;; 320 296 Alpha\ *:Windows_NT*:*) … … 338 314 *:OS/390:*:*) 339 315 echo i370-ibm-openedition 340 exit 0 ;;341 *:OS400:*:*)342 echo powerpc-ibm-os400343 316 exit 0 ;; 344 317 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 434 407 echo m68k-unknown-mint${UNAME_RELEASE} 435 408 exit 0 ;; 436 m68k:machten:*:*)437 echo m68k-apple-machten${UNAME_RELEASE}438 exit 0 ;;439 409 powerpc:machten:*:*) 440 410 echo powerpc-apple-machten${UNAME_RELEASE} … … 772 742 exit 0 ;; 773 743 *:UNICOS/mp:*:*) 774 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'744 echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 775 745 exit 0 ;; 776 746 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) … … 780 750 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 781 751 exit 0 ;; 782 5000:UNIX_System_V:4.*:*)783 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`784 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`785 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"786 exit 0 ;;787 752 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 788 753 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} … … 794 759 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 795 760 exit 0 ;; 796 *:FreeBSD:*:*) 797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 761 *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 762 # Determine whether the default compiler uses glibc. 763 eval $set_cc_for_build 764 sed 's/^ //' << EOF >$dummy.c 765 #include <features.h> 766 #if __GLIBC__ >= 2 767 LIBC=gnu 768 #else 769 LIBC= 770 #endif 771 EOF 772 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 773 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 798 774 exit 0 ;; 799 775 i*:CYGWIN*:*) … … 828 804 exit 0 ;; 829 805 *:GNU:*:*) 830 # the GNU system831 806 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 832 exit 0 ;;833 *:GNU/*:*:*)834 # other systems with GNU libc and userland835 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu836 807 exit 0 ;; 837 808 i*86:Minix:*:*) … … 839 810 exit 0 ;; 840 811 arm*:Linux:*:*) 841 echo ${UNAME_MACHINE}- ${VENDOR}-linux812 echo ${UNAME_MACHINE}-unknown-linux-gnu 842 813 exit 0 ;; 843 814 cris:Linux:*:*) 844 echo cris-axis-linux 815 echo cris-axis-linux-gnu 845 816 exit 0 ;; 846 817 ia64:Linux:*:*) 847 echo ${UNAME_MACHINE}-${VENDOR}-linux 848 exit 0 ;; 849 m32r*:Linux:*:*) 850 echo ${UNAME_MACHINE}-${VENDOR}-linux 818 echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 851 819 exit 0 ;; 852 820 m68*:Linux:*:*) 853 echo ${UNAME_MACHINE}- ${VENDOR}-linux821 echo ${UNAME_MACHINE}-unknown-linux-gnu 854 822 exit 0 ;; 855 823 mips:Linux:*:*) … … 870 838 EOF 871 839 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 872 test x"${CPU}" != x && echo "${CPU}- ${VENDOR}-linux" && exit 0840 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 873 841 ;; 874 842 mips64:Linux:*:*) … … 889 857 EOF 890 858 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 891 test x"${CPU}" != x && echo "${CPU}- ${VENDOR}-linux" && exit 0859 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 892 860 ;; 893 861 ppc:Linux:*:*) 894 echo powerpc-${VENDOR }-linux862 echo powerpc-${VENDOR:-unknown}-linux-gnu 895 863 exit 0 ;; 896 864 ppc64:Linux:*:*) 897 echo powerpc64-${VENDOR }-linux865 echo powerpc64-${VENDOR:-unknown}-linux-gnu 898 866 exit 0 ;; 899 867 alpha:Linux:*:*) … … 908 876 esac 909 877 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 910 if test "$?" = 0 ; then LIBC=" -libc1" ; else LIBC="" ; fi911 echo ${UNAME_MACHINE}- ${VENDOR}-linux${LIBC}878 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 879 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 912 880 exit 0 ;; 913 881 parisc:Linux:*:* | hppa:Linux:*:*) 914 882 # Look for CPU level 915 883 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 916 PA7*) echo hppa1.1- ${VENDOR}-linux;;917 PA8*) echo hppa2.0- ${VENDOR}-linux;;918 *) echo hppa- ${VENDOR}-linux;;884 PA7*) echo hppa1.1-unknown-linux-gnu ;; 885 PA8*) echo hppa2.0-unknown-linux-gnu ;; 886 *) echo hppa-unknown-linux-gnu ;; 919 887 esac 920 888 exit 0 ;; 921 889 parisc64:Linux:*:* | hppa64:Linux:*:*) 922 echo hppa64- ${VENDOR}-linux890 echo hppa64-unknown-linux-gnu 923 891 exit 0 ;; 924 892 s390:Linux:*:* | s390x:Linux:*:*) 925 echo ${UNAME_MACHINE}- ibm-linux893 echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 926 894 exit 0 ;; 927 895 sh64*:Linux:*:*) 928 echo ${UNAME_MACHINE}- ${VENDOR}-linux896 echo ${UNAME_MACHINE}-unknown-linux-gnu 929 897 exit 0 ;; 930 898 sh*:Linux:*:*) 931 echo ${UNAME_MACHINE}- ${VENDOR}-linux899 echo ${UNAME_MACHINE}-unknown-linux-gnu 932 900 exit 0 ;; 933 901 sparc:Linux:*:* | sparc64:Linux:*:*) 934 echo ${UNAME_MACHINE}- ${VENDOR}-linux902 echo ${UNAME_MACHINE}-unknown-linux-gnu 935 903 exit 0 ;; 936 904 x86_64:Linux:*:*) 937 echo x86_64-${VENDOR }-linux905 echo x86_64-${VENDOR:-unknown}-linux-gnu 938 906 exit 0 ;; 939 907 i*86:Linux:*:*) … … 950 918 case "$ld_supported_targets" in 951 919 elf32-i386) 952 TENTATIVE="${UNAME_MACHINE}- ${VENDOR}-linux"920 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 953 921 ;; 954 922 a.out-i386-linux) 955 echo "${UNAME_MACHINE}- ${VENDOR}-linuxaout"923 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 956 924 exit 0 ;; 957 925 coff-i386) 958 echo "${UNAME_MACHINE}- ${VENDOR}-linuxcoff"926 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 959 927 exit 0 ;; 960 928 "") 961 # Either a pre-BFD a.out linker (linux oldld) or929 # Either a pre-BFD a.out linker (linux-gnuoldld) or 962 930 # one that does not give us useful --help. 963 echo "${UNAME_MACHINE}- ${VENDOR}-linuxoldld"931 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 964 932 exit 0 ;; 965 933 esac … … 985 953 #endif 986 954 #endif 987 #ifdef __dietlibc__988 LIBC=dietlibc989 #endif990 955 EOF 991 956 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 992 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR }-linux-${LIBC}" | sed 's/linux-gnu/linux/'&& exit 0957 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 993 958 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 994 959 ;; … … 1017 982 i*86:atheos:*:*) 1018 983 echo ${UNAME_MACHINE}-unknown-atheos 1019 exit 0 ;;1020 i*86:syllable:*:*)1021 echo ${UNAME_MACHINE}-pc-syllable1022 984 exit 0 ;; 1023 985 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) … … 1090 1052 echo m68k-diab-dnix 1091 1053 exit 0 ;; 1092 M68*:*:R3V[567 8]*:*)1054 M68*:*:R3V[567]*:*) 1093 1055 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1094 3[34 5]??:*: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)1056 3[34]??:*: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) 1095 1057 OS_REL='' 1096 1058 test -r /etc/.relid \ … … 1190 1152 exit 0 ;; 1191 1153 *:Darwin:*:*) 1192 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1193 case $UNAME_PROCESSOR in 1154 case `uname -p` in 1194 1155 *86) UNAME_PROCESSOR=i686 ;; 1195 unknown) UNAME_PROCESSOR=powerpc ;;1156 powerpc) UNAME_PROCESSOR=powerpc ;; 1196 1157 esac 1197 1158 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} … … 1208 1169 echo i386-pc-qnx 1209 1170 exit 0 ;; 1210 NSR- ?:NONSTOP_KERNEL:*:*)1171 NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) 1211 1172 echo nsr-tandem-nsk${UNAME_RELEASE} 1212 1173 exit 0 ;; … … 1252 1213 echo mips-sei-seiux${UNAME_RELEASE} 1253 1214 exit 0 ;; 1254 *:DragonFly:*:*)1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1256 exit 0 ;;1257 *:*VMS:*:*)1258 UNAME_MACHINE=`(uname -p) 2>/dev/null`1259 case "${UNAME_MACHINE}" in1260 A*) echo alpha-dec-vms && exit 0 ;;1261 I*) echo ia64-dec-vms && exit 0 ;;1262 V*) echo vax-dec-vms && exit 0 ;;1263 esac1264 1215 esac 1265 1216
Note:
See TracChangeset
for help on using the changeset viewer.
