| OLD | NEW |
| 1 #! /bin/sh | 1 #! /bin/sh |
| 2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
| 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright 1992-2013 Free Software Foundation, Inc. |
| 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
| 5 # 2011, 2012 Free Software Foundation, Inc. | |
| 6 | 4 |
| 7 timestamp='2012-02-10' | 5 timestamp='2013-06-10' |
| 8 | 6 |
| 9 # This file is free software; you can redistribute it and/or modify it | 7 # This file is free software; you can redistribute it and/or modify it |
| 10 # under the terms of the GNU General Public License as published by | 8 # under the terms of the GNU General Public License as published by |
| 11 # the Free Software Foundation; either version 2 of the License, or | 9 # the Free Software Foundation; either version 3 of the License, or |
| 12 # (at your option) any later version. | 10 # (at your option) any later version. |
| 13 # | 11 # |
| 14 # This program is distributed in the hope that it will be useful, but | 12 # This program is distributed in the hope that it will be useful, but |
| 15 # WITHOUT ANY WARRANTY; without even the implied warranty of | 13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 # General Public License for more details. | 15 # General Public License for more details. |
| 18 # | 16 # |
| 19 # You should have received a copy of the GNU General Public License | 17 # You should have received a copy of the GNU General Public License |
| 20 # along with this program; if not, see <http://www.gnu.org/licenses/>. | 18 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 21 # | 19 # |
| 22 # As a special exception to the GNU General Public License, if you | 20 # As a special exception to the GNU General Public License, if you |
| 23 # distribute this file as part of a program that contains a | 21 # distribute this file as part of a program that contains a |
| 24 # configuration script generated by Autoconf, you may include it under | 22 # configuration script generated by Autoconf, you may include it under |
| 25 # the same distribution terms that you use for the rest of that program. | 23 # the same distribution terms that you use for the rest of that |
| 26 | 24 # program. This Exception is an additional permission under section 7 |
| 27 | 25 # of the GNU General Public License, version 3 ("GPLv3"). |
| 28 # Originally written by Per Bothner. Please send patches (context | |
| 29 # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
| 30 # entry. | |
| 31 # | 26 # |
| 32 # This script attempts to guess a canonical system name similar to | 27 # Originally written by Per Bothner. |
| 33 # config.sub. If it succeeds, it prints the system name on stdout, and | |
| 34 # exits with 0. Otherwise, it exits with 1. | |
| 35 # | 28 # |
| 36 # You can get the latest version of this script from: | 29 # You can get the latest version of this script from: |
| 37 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD | 30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;h
b=HEAD |
| 31 # |
| 32 # Please send patches with a ChangeLog entry to config-patches@gnu.org. |
| 33 |
| 38 | 34 |
| 39 me=`echo "$0" | sed -e 's,.*/,,'` | 35 me=`echo "$0" | sed -e 's,.*/,,'` |
| 40 | 36 |
| 41 usage="\ | 37 usage="\ |
| 42 Usage: $0 [OPTION] | 38 Usage: $0 [OPTION] |
| 43 | 39 |
| 44 Output the configuration name of the system \`$me' is run on. | 40 Output the configuration name of the system \`$me' is run on. |
| 45 | 41 |
| 46 Operation modes: | 42 Operation modes: |
| 47 -h, --help print this help, then exit | 43 -h, --help print this help, then exit |
| 48 -t, --time-stamp print date of last modification, then exit | 44 -t, --time-stamp print date of last modification, then exit |
| 49 -v, --version print version number, then exit | 45 -v, --version print version number, then exit |
| 50 | 46 |
| 51 Report bugs and patches to <config-patches@gnu.org>." | 47 Report bugs and patches to <config-patches@gnu.org>." |
| 52 | 48 |
| 53 version="\ | 49 version="\ |
| 54 GNU config.guess ($timestamp) | 50 GNU config.guess ($timestamp) |
| 55 | 51 |
| 56 Originally written by Per Bothner. | 52 Originally written by Per Bothner. |
| 57 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 53 Copyright 1992-2013 Free Software Foundation, Inc. |
| 58 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
| 59 Free Software Foundation, Inc. | |
| 60 | 54 |
| 61 This is free software; see the source for copying conditions. There is NO | 55 This is free software; see the source for copying conditions. There is NO |
| 62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 63 | 57 |
| 64 help=" | 58 help=" |
| 65 Try \`$me --help' for more information." | 59 Try \`$me --help' for more information." |
| 66 | 60 |
| 67 # Parse command line | 61 # Parse command line |
| 68 while test $# -gt 0 ; do | 62 while test $# -gt 0 ; do |
| 69 case $1 in | 63 case $1 in |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 # (ghazi@noc.rutgers.edu 1994-08-24) | 125 # (ghazi@noc.rutgers.edu 1994-08-24) |
| 132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | 126 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
| 133 PATH=$PATH:/.attbin ; export PATH | 127 PATH=$PATH:/.attbin ; export PATH |
| 134 fi | 128 fi |
| 135 | 129 |
| 136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | 130 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
| 137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | 131 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
| 138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | 132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
| 139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | 133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
| 140 | 134 |
| 135 case "${UNAME_SYSTEM}" in |
| 136 Linux|GNU|GNU/*) |
| 137 # If the system lacks a compiler, then just pick glibc. |
| 138 # We could probably try harder. |
| 139 LIBC=gnu |
| 140 |
| 141 eval $set_cc_for_build |
| 142 cat <<-EOF > $dummy.c |
| 143 #include <features.h> |
| 144 #if defined(__UCLIBC__) |
| 145 LIBC=uclibc |
| 146 #elif defined(__dietlibc__) |
| 147 LIBC=dietlibc |
| 148 #else |
| 149 LIBC=gnu |
| 150 #endif |
| 151 EOF |
| 152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
| 153 ;; |
| 154 esac |
| 155 |
| 141 # Note: order is significant - the case branches are not exclusive. | 156 # Note: order is significant - the case branches are not exclusive. |
| 142 | 157 |
| 143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 144 *:NetBSD:*:*) | 159 *:NetBSD:*:*) |
| 145 # NetBSD (nbsd) targets should (where applicable) match one or | 160 # NetBSD (nbsd) targets should (where applicable) match one or |
| 146 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | 161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
| 147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | 162 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
| 148 # switched to ELF, *-*-netbsd* would select the old | 163 # switched to ELF, *-*-netbsd* would select the old |
| 149 # object file format. This provides both forward | 164 # object file format. This provides both forward |
| 150 # compatibility and a consistent mechanism for selecting the | 165 # compatibility and a consistent mechanism for selecting the |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 ;; | 208 ;; |
| 194 *) | 209 *) |
| 195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 210 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
| 196 ;; | 211 ;; |
| 197 esac | 212 esac |
| 198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | 213 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
| 199 # contains redundant information, the shorter form: | 214 # contains redundant information, the shorter form: |
| 200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | 215 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
| 201 echo "${machine}-${os}${release}" | 216 echo "${machine}-${os}${release}" |
| 202 exit ;; | 217 exit ;; |
| 218 *:Bitrig:*:*) |
| 219 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
| 220 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} |
| 221 exit ;; |
| 203 *:OpenBSD:*:*) | 222 *:OpenBSD:*:*) |
| 204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | 223 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
| 205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | 224 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} |
| 206 exit ;; | 225 exit ;; |
| 207 *:ekkoBSD:*:*) | 226 *:ekkoBSD:*:*) |
| 208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | 227 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} |
| 209 exit ;; | 228 exit ;; |
| 210 *:SolidBSD:*:*) | 229 *:SolidBSD:*:*) |
| 211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | 230 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
| 212 exit ;; | 231 exit ;; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 exit ;; | 314 exit ;; |
| 296 *:z/VM:*:*) | 315 *:z/VM:*:*) |
| 297 echo s390-ibm-zvmoe | 316 echo s390-ibm-zvmoe |
| 298 exit ;; | 317 exit ;; |
| 299 *:OS400:*:*) | 318 *:OS400:*:*) |
| 300 echo powerpc-ibm-os400 | 319 echo powerpc-ibm-os400 |
| 301 exit ;; | 320 exit ;; |
| 302 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 321 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 303 echo arm-acorn-riscix${UNAME_RELEASE} | 322 echo arm-acorn-riscix${UNAME_RELEASE} |
| 304 exit ;; | 323 exit ;; |
| 305 arm:riscos:*:*|arm:RISCOS:*:*) | 324 arm*:riscos:*:*|arm*:RISCOS:*:*) |
| 306 echo arm-unknown-riscos | 325 echo arm-unknown-riscos |
| 307 exit ;; | 326 exit ;; |
| 308 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | 327 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
| 309 echo hppa1.1-hitachi-hiuxmpp | 328 echo hppa1.1-hitachi-hiuxmpp |
| 310 exit ;; | 329 exit ;; |
| 311 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | 330 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
| 312 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | 331 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
| 313 if test "`(/bin/universe) 2>/dev/null`" = att ; then | 332 if test "`(/bin/universe) 2>/dev/null`" = att ; then |
| 314 echo pyramid-pyramid-sysv3 | 333 echo pyramid-pyramid-sysv3 |
| 315 else | 334 else |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 case ${UNAME_PROCESSOR} in | 813 case ${UNAME_PROCESSOR} in |
| 795 amd64) | 814 amd64) |
| 796 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(]
.*//'` ;; | 815 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(]
.*//'` ;; |
| 797 *) | 816 *) |
| 798 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|se
d -e 's/[-(].*//'` ;; | 817 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|se
d -e 's/[-(].*//'` ;; |
| 799 esac | 818 esac |
| 800 exit ;; | 819 exit ;; |
| 801 i*:CYGWIN*:*) | 820 i*:CYGWIN*:*) |
| 802 echo ${UNAME_MACHINE}-pc-cygwin | 821 echo ${UNAME_MACHINE}-pc-cygwin |
| 803 exit ;; | 822 exit ;; |
| 823 *:MINGW64*:*) |
| 824 echo ${UNAME_MACHINE}-pc-mingw64 |
| 825 exit ;; |
| 804 *:MINGW*:*) | 826 *:MINGW*:*) |
| 805 echo ${UNAME_MACHINE}-pc-mingw32 | 827 echo ${UNAME_MACHINE}-pc-mingw32 |
| 806 exit ;; | 828 exit ;; |
| 807 i*:MSYS*:*) | 829 i*:MSYS*:*) |
| 808 echo ${UNAME_MACHINE}-pc-msys | 830 echo ${UNAME_MACHINE}-pc-msys |
| 809 exit ;; | 831 exit ;; |
| 810 i*:windows32*:*) | 832 i*:windows32*:*) |
| 811 # uname -m includes "-pc" on this system. | 833 # uname -m includes "-pc" on this system. |
| 812 echo ${UNAME_MACHINE}-mingw32 | 834 echo ${UNAME_MACHINE}-mingw32 |
| 813 exit ;; | 835 exit ;; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 echo x86_64-unknown-cygwin | 867 echo x86_64-unknown-cygwin |
| 846 exit ;; | 868 exit ;; |
| 847 p*:CYGWIN*:*) | 869 p*:CYGWIN*:*) |
| 848 echo powerpcle-unknown-cygwin | 870 echo powerpcle-unknown-cygwin |
| 849 exit ;; | 871 exit ;; |
| 850 prep*:SunOS:5.*:*) | 872 prep*:SunOS:5.*:*) |
| 851 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'
` | 873 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'
` |
| 852 exit ;; | 874 exit ;; |
| 853 *:GNU:*:*) | 875 *:GNU:*:*) |
| 854 # the GNU system | 876 # the GNU system |
| 855 » echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` | 877 » echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo $
{UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| 856 exit ;; | 878 exit ;; |
| 857 *:GNU/*:*:*) | 879 *:GNU/*:*:*) |
| 858 # other systems with GNU libc and userland | 880 # other systems with GNU libc and userland |
| 859 » echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 881 » echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
| 860 exit ;; | 882 exit ;; |
| 861 i*86:Minix:*:*) | 883 i*86:Minix:*:*) |
| 862 echo ${UNAME_MACHINE}-pc-minix | 884 echo ${UNAME_MACHINE}-pc-minix |
| 863 exit ;; | 885 exit ;; |
| 864 aarch64:Linux:*:*) | 886 aarch64:Linux:*:*) |
| 865 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 887 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 866 exit ;; | 888 exit ;; |
| 867 aarch64_be:Linux:*:*) | 889 aarch64_be:Linux:*:*) |
| 868 UNAME_MACHINE=aarch64_be | 890 UNAME_MACHINE=aarch64_be |
| 869 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 891 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 870 exit ;; | 892 exit ;; |
| 871 alpha:Linux:*:*) | 893 alpha:Linux:*:*) |
| 872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 894 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 873 EV5) UNAME_MACHINE=alphaev5 ;; | 895 EV5) UNAME_MACHINE=alphaev5 ;; |
| 874 EV56) UNAME_MACHINE=alphaev56 ;; | 896 EV56) UNAME_MACHINE=alphaev56 ;; |
| 875 PCA56) UNAME_MACHINE=alphapca56 ;; | 897 PCA56) UNAME_MACHINE=alphapca56 ;; |
| 876 PCA57) UNAME_MACHINE=alphapca56 ;; | 898 PCA57) UNAME_MACHINE=alphapca56 ;; |
| 877 EV6) UNAME_MACHINE=alphaev6 ;; | 899 EV6) UNAME_MACHINE=alphaev6 ;; |
| 878 EV67) UNAME_MACHINE=alphaev67 ;; | 900 EV67) UNAME_MACHINE=alphaev67 ;; |
| 879 EV68*) UNAME_MACHINE=alphaev68 ;; | 901 EV68*) UNAME_MACHINE=alphaev68 ;; |
| 880 esac | 902 esac |
| 881 objdump --private-headers /bin/sh | grep -q ld.so.1 | 903 objdump --private-headers /bin/sh | grep -q ld.so.1 |
| 882 » if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 904 » if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
| 883 » echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 905 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 906 » exit ;; |
| 907 arc:Linux:*:* | arceb:Linux:*:*) |
| 908 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 884 exit ;; | 909 exit ;; |
| 885 arm*:Linux:*:*) | 910 arm*:Linux:*:*) |
| 886 eval $set_cc_for_build | 911 eval $set_cc_for_build |
| 887 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 912 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 888 | grep -q __ARM_EABI__ | 913 | grep -q __ARM_EABI__ |
| 889 then | 914 then |
| 890 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 915 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 891 else | 916 else |
| 892 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | 917 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
| 893 | grep -q __ARM_PCS_VFP | 918 | grep -q __ARM_PCS_VFP |
| 894 then | 919 then |
| 895 » » echo ${UNAME_MACHINE}-unknown-linux-gnueabi | 920 » » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
| 896 else | 921 else |
| 897 » » echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | 922 » » echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
| 898 fi | 923 fi |
| 899 fi | 924 fi |
| 900 exit ;; | 925 exit ;; |
| 901 avr32*:Linux:*:*) | 926 avr32*:Linux:*:*) |
| 902 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 927 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 903 exit ;; | 928 exit ;; |
| 904 cris:Linux:*:*) | 929 cris:Linux:*:*) |
| 905 » echo ${UNAME_MACHINE}-axis-linux-gnu | 930 » echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 906 exit ;; | 931 exit ;; |
| 907 crisv32:Linux:*:*) | 932 crisv32:Linux:*:*) |
| 908 » echo ${UNAME_MACHINE}-axis-linux-gnu | 933 » echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
| 909 exit ;; | 934 exit ;; |
| 910 frv:Linux:*:*) | 935 frv:Linux:*:*) |
| 911 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 936 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 912 exit ;; | 937 exit ;; |
| 913 hexagon:Linux:*:*) | 938 hexagon:Linux:*:*) |
| 914 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 939 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 915 exit ;; | 940 exit ;; |
| 916 i*86:Linux:*:*) | 941 i*86:Linux:*:*) |
| 917 » LIBC=gnu | 942 » echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
| 918 » eval $set_cc_for_build | |
| 919 » sed 's/^» //' << EOF >$dummy.c | |
| 920 » #ifdef __dietlibc__ | |
| 921 » LIBC=dietlibc | |
| 922 » #endif | |
| 923 EOF | |
| 924 » eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
| 925 » echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
| 926 exit ;; | 943 exit ;; |
| 927 ia64:Linux:*:*) | 944 ia64:Linux:*:*) |
| 928 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 945 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 929 exit ;; | 946 exit ;; |
| 930 m32r*:Linux:*:*) | 947 m32r*:Linux:*:*) |
| 931 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 948 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 932 exit ;; | 949 exit ;; |
| 933 m68*:Linux:*:*) | 950 m68*:Linux:*:*) |
| 934 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 951 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 935 exit ;; | 952 exit ;; |
| 936 mips:Linux:*:* | mips64:Linux:*:*) | 953 mips:Linux:*:* | mips64:Linux:*:*) |
| 937 eval $set_cc_for_build | 954 eval $set_cc_for_build |
| 938 sed 's/^ //' << EOF >$dummy.c | 955 sed 's/^ //' << EOF >$dummy.c |
| 939 #undef CPU | 956 #undef CPU |
| 940 #undef ${UNAME_MACHINE} | 957 #undef ${UNAME_MACHINE} |
| 941 #undef ${UNAME_MACHINE}el | 958 #undef ${UNAME_MACHINE}el |
| 942 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi
ned(MIPSEL) | 959 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defi
ned(MIPSEL) |
| 943 CPU=${UNAME_MACHINE}el | 960 CPU=${UNAME_MACHINE}el |
| 944 #else | 961 #else |
| 945 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi
ned(MIPSEB) | 962 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defi
ned(MIPSEB) |
| 946 CPU=${UNAME_MACHINE} | 963 CPU=${UNAME_MACHINE} |
| 947 #else | 964 #else |
| 948 CPU= | 965 CPU= |
| 949 #endif | 966 #endif |
| 950 #endif | 967 #endif |
| 951 EOF | 968 EOF |
| 952 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | 969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
| 953 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 970 » test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
| 954 ;; | 971 ;; |
| 972 or1k:Linux:*:*) |
| 973 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 974 exit ;; |
| 955 or32:Linux:*:*) | 975 or32:Linux:*:*) |
| 956 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 976 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 957 exit ;; | 977 exit ;; |
| 958 padre:Linux:*:*) | 978 padre:Linux:*:*) |
| 959 » echo sparc-unknown-linux-gnu | 979 » echo sparc-unknown-linux-${LIBC} |
| 960 exit ;; | 980 exit ;; |
| 961 parisc64:Linux:*:* | hppa64:Linux:*:*) | 981 parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 962 » echo hppa64-unknown-linux-gnu | 982 » echo hppa64-unknown-linux-${LIBC} |
| 963 exit ;; | 983 exit ;; |
| 964 parisc:Linux:*:* | hppa:Linux:*:*) | 984 parisc:Linux:*:* | hppa:Linux:*:*) |
| 965 # Look for CPU level | 985 # Look for CPU level |
| 966 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 986 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
| 967 » PA7*) echo hppa1.1-unknown-linux-gnu ;; | 987 » PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
| 968 » PA8*) echo hppa2.0-unknown-linux-gnu ;; | 988 » PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
| 969 » *) echo hppa-unknown-linux-gnu ;; | 989 » *) echo hppa-unknown-linux-${LIBC} ;; |
| 970 esac | 990 esac |
| 971 exit ;; | 991 exit ;; |
| 972 ppc64:Linux:*:*) | 992 ppc64:Linux:*:*) |
| 973 » echo powerpc64-unknown-linux-gnu | 993 » echo powerpc64-unknown-linux-${LIBC} |
| 974 exit ;; | 994 exit ;; |
| 975 ppc:Linux:*:*) | 995 ppc:Linux:*:*) |
| 976 » echo powerpc-unknown-linux-gnu | 996 » echo powerpc-unknown-linux-${LIBC} |
| 997 » exit ;; |
| 998 ppc64le:Linux:*:*) |
| 999 » echo powerpc64le-unknown-linux-${LIBC} |
| 1000 » exit ;; |
| 1001 ppcle:Linux:*:*) |
| 1002 » echo powerpcle-unknown-linux-${LIBC} |
| 977 exit ;; | 1003 exit ;; |
| 978 s390:Linux:*:* | s390x:Linux:*:*) | 1004 s390:Linux:*:* | s390x:Linux:*:*) |
| 979 » echo ${UNAME_MACHINE}-ibm-linux | 1005 » echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
| 980 exit ;; | 1006 exit ;; |
| 981 sh64*:Linux:*:*) | 1007 sh64*:Linux:*:*) |
| 982 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1008 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 983 exit ;; | 1009 exit ;; |
| 984 sh*:Linux:*:*) | 1010 sh*:Linux:*:*) |
| 985 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1011 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 986 exit ;; | 1012 exit ;; |
| 987 sparc:Linux:*:* | sparc64:Linux:*:*) | 1013 sparc:Linux:*:* | sparc64:Linux:*:*) |
| 988 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1014 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 989 exit ;; | 1015 exit ;; |
| 990 tile*:Linux:*:*) | 1016 tile*:Linux:*:*) |
| 991 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1017 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 992 exit ;; | 1018 exit ;; |
| 993 vax:Linux:*:*) | 1019 vax:Linux:*:*) |
| 994 » echo ${UNAME_MACHINE}-dec-linux-gnu | 1020 » echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
| 995 exit ;; | 1021 exit ;; |
| 996 x86_64:Linux:*:*) | 1022 x86_64:Linux:*:*) |
| 997 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1023 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 998 exit ;; | 1024 exit ;; |
| 999 xtensa*:Linux:*:*) | 1025 xtensa*:Linux:*:*) |
| 1000 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 1026 » echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
| 1001 exit ;; | 1027 exit ;; |
| 1002 i*86:DYNIX/ptx:4*:*) | 1028 i*86:DYNIX/ptx:4*:*) |
| 1003 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1029 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
| 1004 # earlier versions are messed up and put the nodename in both | 1030 # earlier versions are messed up and put the nodename in both |
| 1005 # sysname and nodename. | 1031 # sysname and nodename. |
| 1006 echo i386-sequent-sysv4 | 1032 echo i386-sequent-sysv4 |
| 1007 exit ;; | 1033 exit ;; |
| 1008 i*86:UNIX_SV:4.2MP:2.*) | 1034 i*86:UNIX_SV:4.2MP:2.*) |
| 1009 # Unixware is an offshoot of SVR4, but it has its own version | 1035 # Unixware is an offshoot of SVR4, but it has its own version |
| 1010 # number series starting with 2... | 1036 # number series starting with 2... |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 exit ;; | 1220 exit ;; |
| 1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1221 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
| 1196 echo powerpc-apple-beos | 1222 echo powerpc-apple-beos |
| 1197 exit ;; | 1223 exit ;; |
| 1198 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1224 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
| 1199 echo i586-pc-beos | 1225 echo i586-pc-beos |
| 1200 exit ;; | 1226 exit ;; |
| 1201 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | 1227 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1202 echo i586-pc-haiku | 1228 echo i586-pc-haiku |
| 1203 exit ;; | 1229 exit ;; |
| 1230 x86_64:Haiku:*:*) |
| 1231 echo x86_64-unknown-haiku |
| 1232 exit ;; |
| 1204 SX-4:SUPER-UX:*:*) | 1233 SX-4:SUPER-UX:*:*) |
| 1205 echo sx4-nec-superux${UNAME_RELEASE} | 1234 echo sx4-nec-superux${UNAME_RELEASE} |
| 1206 exit ;; | 1235 exit ;; |
| 1207 SX-5:SUPER-UX:*:*) | 1236 SX-5:SUPER-UX:*:*) |
| 1208 echo sx5-nec-superux${UNAME_RELEASE} | 1237 echo sx5-nec-superux${UNAME_RELEASE} |
| 1209 exit ;; | 1238 exit ;; |
| 1210 SX-6:SUPER-UX:*:*) | 1239 SX-6:SUPER-UX:*:*) |
| 1211 echo sx6-nec-superux${UNAME_RELEASE} | 1240 echo sx6-nec-superux${UNAME_RELEASE} |
| 1212 exit ;; | 1241 exit ;; |
| 1213 SX-7:SUPER-UX:*:*) | 1242 SX-7:SUPER-UX:*:*) |
| 1214 echo sx7-nec-superux${UNAME_RELEASE} | 1243 echo sx7-nec-superux${UNAME_RELEASE} |
| 1215 exit ;; | 1244 exit ;; |
| 1216 SX-8:SUPER-UX:*:*) | 1245 SX-8:SUPER-UX:*:*) |
| 1217 echo sx8-nec-superux${UNAME_RELEASE} | 1246 echo sx8-nec-superux${UNAME_RELEASE} |
| 1218 exit ;; | 1247 exit ;; |
| 1219 SX-8R:SUPER-UX:*:*) | 1248 SX-8R:SUPER-UX:*:*) |
| 1220 echo sx8r-nec-superux${UNAME_RELEASE} | 1249 echo sx8r-nec-superux${UNAME_RELEASE} |
| 1221 exit ;; | 1250 exit ;; |
| 1222 Power*:Rhapsody:*:*) | 1251 Power*:Rhapsody:*:*) |
| 1223 echo powerpc-apple-rhapsody${UNAME_RELEASE} | 1252 echo powerpc-apple-rhapsody${UNAME_RELEASE} |
| 1224 exit ;; | 1253 exit ;; |
| 1225 *:Rhapsody:*:*) | 1254 *:Rhapsody:*:*) |
| 1226 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 1227 exit ;; | 1256 exit ;; |
| 1228 *:Darwin:*:*) | 1257 *:Darwin:*:*) |
| 1229 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
| 1230 » case $UNAME_PROCESSOR in | 1259 » eval $set_cc_for_build |
| 1231 » i386) | 1260 » if test "$UNAME_PROCESSOR" = unknown ; then |
| 1232 » » eval $set_cc_for_build | 1261 » UNAME_PROCESSOR=powerpc |
| 1233 » » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | 1262 » fi |
| 1234 » » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif')
| \ | 1263 » if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| 1235 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1264 » if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
| 1236 » » grep IS_64BIT_ARCH >/dev/null | 1265 » » (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
| 1237 » » then | 1266 » » grep IS_64BIT_ARCH >/dev/null |
| 1238 » » UNAME_PROCESSOR="x86_64" | 1267 » then |
| 1239 » » fi | 1268 » » case $UNAME_PROCESSOR in |
| 1240 » » fi ;; | 1269 » » i386) UNAME_PROCESSOR=x86_64 ;; |
| 1241 » unknown) UNAME_PROCESSOR=powerpc ;; | 1270 » » powerpc) UNAME_PROCESSOR=powerpc64 ;; |
| 1242 » esac | 1271 » » esac |
| 1272 » fi |
| 1273 » fi |
| 1243 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1274 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
| 1244 exit ;; | 1275 exit ;; |
| 1245 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1276 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
| 1246 UNAME_PROCESSOR=`uname -p` | 1277 UNAME_PROCESSOR=`uname -p` |
| 1247 if test "$UNAME_PROCESSOR" = "x86"; then | 1278 if test "$UNAME_PROCESSOR" = "x86"; then |
| 1248 UNAME_PROCESSOR=i386 | 1279 UNAME_PROCESSOR=i386 |
| 1249 UNAME_MACHINE=pc | 1280 UNAME_MACHINE=pc |
| 1250 fi | 1281 fi |
| 1251 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | 1282 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} |
| 1252 exit ;; | 1283 exit ;; |
| 1253 *:QNX:*:4*) | 1284 *:QNX:*:4*) |
| 1254 echo i386-pc-qnx | 1285 echo i386-pc-qnx |
| 1255 exit ;; | 1286 exit ;; |
| 1256 NEO-?:NONSTOP_KERNEL:*:*) | 1287 NEO-?:NONSTOP_KERNEL:*:*) |
| 1257 echo neo-tandem-nsk${UNAME_RELEASE} | 1288 echo neo-tandem-nsk${UNAME_RELEASE} |
| 1258 exit ;; | 1289 exit ;; |
| 1259 NSE-?:NONSTOP_KERNEL:*:*) | 1290 NSE-*:NONSTOP_KERNEL:*:*) |
| 1260 echo nse-tandem-nsk${UNAME_RELEASE} | 1291 echo nse-tandem-nsk${UNAME_RELEASE} |
| 1261 exit ;; | 1292 exit ;; |
| 1262 NSR-?:NONSTOP_KERNEL:*:*) | 1293 NSR-?:NONSTOP_KERNEL:*:*) |
| 1263 echo nsr-tandem-nsk${UNAME_RELEASE} | 1294 echo nsr-tandem-nsk${UNAME_RELEASE} |
| 1264 exit ;; | 1295 exit ;; |
| 1265 *:NonStop-UX:*:*) | 1296 *:NonStop-UX:*:*) |
| 1266 echo mips-compaq-nonstopux | 1297 echo mips-compaq-nonstopux |
| 1267 exit ;; | 1298 exit ;; |
| 1268 BS2000:POSIX*:*:*) | 1299 BS2000:POSIX*:*:*) |
| 1269 echo bs2000-siemens-sysv | 1300 echo bs2000-siemens-sysv |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 echo ${UNAME_MACHINE}-pc-rdos | 1354 echo ${UNAME_MACHINE}-pc-rdos |
| 1324 exit ;; | 1355 exit ;; |
| 1325 i*86:AROS:*:*) | 1356 i*86:AROS:*:*) |
| 1326 echo ${UNAME_MACHINE}-pc-aros | 1357 echo ${UNAME_MACHINE}-pc-aros |
| 1327 exit ;; | 1358 exit ;; |
| 1328 x86_64:VMkernel:*:*) | 1359 x86_64:VMkernel:*:*) |
| 1329 echo ${UNAME_MACHINE}-unknown-esx | 1360 echo ${UNAME_MACHINE}-unknown-esx |
| 1330 exit ;; | 1361 exit ;; |
| 1331 esac | 1362 esac |
| 1332 | 1363 |
| 1333 #echo '(No uname command or uname output not recognized.)' 1>&2 | |
| 1334 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
| 1335 | |
| 1336 eval $set_cc_for_build | 1364 eval $set_cc_for_build |
| 1337 cat >$dummy.c <<EOF | 1365 cat >$dummy.c <<EOF |
| 1338 #ifdef _SEQUENT_ | 1366 #ifdef _SEQUENT_ |
| 1339 # include <sys/types.h> | 1367 # include <sys/types.h> |
| 1340 # include <sys/utsname.h> | 1368 # include <sys/utsname.h> |
| 1341 #endif | 1369 #endif |
| 1342 main () | 1370 main () |
| 1343 { | 1371 { |
| 1344 #if defined (sony) | 1372 #if defined (sony) |
| 1345 #if defined (MIPSEB) | 1373 #if defined (MIPSEB) |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 EOF | 1549 EOF |
| 1522 | 1550 |
| 1523 exit 1 | 1551 exit 1 |
| 1524 | 1552 |
| 1525 # Local variables: | 1553 # Local variables: |
| 1526 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1554 # eval: (add-hook 'write-file-hooks 'time-stamp) |
| 1527 # time-stamp-start: "timestamp='" | 1555 # time-stamp-start: "timestamp='" |
| 1528 # time-stamp-format: "%:y-%02m-%02d" | 1556 # time-stamp-format: "%:y-%02m-%02d" |
| 1529 # time-stamp-end: "'" | 1557 # time-stamp-end: "'" |
| 1530 # End: | 1558 # End: |
| OLD | NEW |