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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
5 # 2011, 2012 Free Software Foundation, Inc. | 5 # 2011, 2012 Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2012-01-01' | 7 timestamp='2012-02-10' |
8 | 8 |
9 # This file is free software; you can redistribute it and/or modify it | 9 # 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 | 10 # under the terms of the GNU General Public License as published by |
11 # the Free Software Foundation; either version 2 of the License, or | 11 # the Free Software Foundation; either version 2 of the License, or |
12 # (at your option) any later version. | 12 # (at your option) any later version. |
13 # | 13 # |
14 # This program is distributed in the hope that it will be useful, but | 14 # This program is distributed in the hope that it will be useful, but |
15 # WITHOUT ANY WARRANTY; without even the implied warranty of | 15 # WITHOUT ANY WARRANTY; without even the implied warranty of |
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 # General Public License for more details. | 17 # General Public License for more details. |
18 # | 18 # |
19 # You should have received a copy of the GNU General Public License | 19 # You should have received a copy of the GNU General Public License |
20 # along with this program; if not, write to the Free Software | 20 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
21 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
22 # 02110-1301, USA. | |
23 # | 21 # |
24 # As a special exception to the GNU General Public License, if you | 22 # As a special exception to the GNU General Public License, if you |
25 # distribute this file as part of a program that contains a | 23 # distribute this file as part of a program that contains a |
26 # configuration script generated by Autoconf, you may include it under | 24 # configuration script generated by Autoconf, you may include it under |
27 # the same distribution terms that you use for the rest of that program. | 25 # the same distribution terms that you use for the rest of that program. |
28 | 26 |
29 | 27 |
30 # Originally written by Per Bothner. Please send patches (context | 28 # Originally written by Per Bothner. Please send patches (context |
31 # diff format) to <config-patches@gnu.org> and include a ChangeLog | 29 # diff format) to <config-patches@gnu.org> and include a ChangeLog |
32 # entry. | 30 # entry. |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 # the GNU system | 854 # the GNU system |
857 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` | 855 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` |
858 exit ;; | 856 exit ;; |
859 *:GNU/*:*:*) | 857 *:GNU/*:*:*) |
860 # other systems with GNU libc and userland | 858 # other systems with GNU libc and userland |
861 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 859 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
862 exit ;; | 860 exit ;; |
863 i*86:Minix:*:*) | 861 i*86:Minix:*:*) |
864 echo ${UNAME_MACHINE}-pc-minix | 862 echo ${UNAME_MACHINE}-pc-minix |
865 exit ;; | 863 exit ;; |
| 864 aarch64:Linux:*:*) |
| 865 echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 866 exit ;; |
| 867 aarch64_be:Linux:*:*) |
| 868 UNAME_MACHINE=aarch64_be |
| 869 echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 870 exit ;; |
866 alpha:Linux:*:*) | 871 alpha:Linux:*:*) |
867 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 872 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
868 EV5) UNAME_MACHINE=alphaev5 ;; | 873 EV5) UNAME_MACHINE=alphaev5 ;; |
869 EV56) UNAME_MACHINE=alphaev56 ;; | 874 EV56) UNAME_MACHINE=alphaev56 ;; |
870 PCA56) UNAME_MACHINE=alphapca56 ;; | 875 PCA56) UNAME_MACHINE=alphapca56 ;; |
871 PCA57) UNAME_MACHINE=alphapca56 ;; | 876 PCA57) UNAME_MACHINE=alphapca56 ;; |
872 EV6) UNAME_MACHINE=alphaev6 ;; | 877 EV6) UNAME_MACHINE=alphaev6 ;; |
873 EV67) UNAME_MACHINE=alphaev67 ;; | 878 EV67) UNAME_MACHINE=alphaev67 ;; |
874 EV68*) UNAME_MACHINE=alphaev68 ;; | 879 EV68*) UNAME_MACHINE=alphaev68 ;; |
875 esac | 880 esac |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 exit ;; | 1318 exit ;; |
1314 i*86:skyos:*:*) | 1319 i*86:skyos:*:*) |
1315 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//
' | 1320 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//
' |
1316 exit ;; | 1321 exit ;; |
1317 i*86:rdos:*:*) | 1322 i*86:rdos:*:*) |
1318 echo ${UNAME_MACHINE}-pc-rdos | 1323 echo ${UNAME_MACHINE}-pc-rdos |
1319 exit ;; | 1324 exit ;; |
1320 i*86:AROS:*:*) | 1325 i*86:AROS:*:*) |
1321 echo ${UNAME_MACHINE}-pc-aros | 1326 echo ${UNAME_MACHINE}-pc-aros |
1322 exit ;; | 1327 exit ;; |
| 1328 x86_64:VMkernel:*:*) |
| 1329 echo ${UNAME_MACHINE}-unknown-esx |
| 1330 exit ;; |
1323 esac | 1331 esac |
1324 | 1332 |
1325 #echo '(No uname command or uname output not recognized.)' 1>&2 | 1333 #echo '(No uname command or uname output not recognized.)' 1>&2 |
1326 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 1334 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1327 | 1335 |
1328 eval $set_cc_for_build | 1336 eval $set_cc_for_build |
1329 cat >$dummy.c <<EOF | 1337 cat >$dummy.c <<EOF |
1330 #ifdef _SEQUENT_ | 1338 #ifdef _SEQUENT_ |
1331 # include <sys/types.h> | 1339 # include <sys/types.h> |
1332 # include <sys/utsname.h> | 1340 # include <sys/utsname.h> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 EOF | 1521 EOF |
1514 | 1522 |
1515 exit 1 | 1523 exit 1 |
1516 | 1524 |
1517 # Local variables: | 1525 # Local variables: |
1518 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1526 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1519 # time-stamp-start: "timestamp='" | 1527 # time-stamp-start: "timestamp='" |
1520 # time-stamp-format: "%:y-%02m-%02d" | 1528 # time-stamp-format: "%:y-%02m-%02d" |
1521 # time-stamp-end: "'" | 1529 # time-stamp-end: "'" |
1522 # End: | 1530 # End: |
OLD | NEW |