… | |
… | |
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 Free Software Foundation, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
5 | # Inc. |
5 | # Inc. |
6 | |
6 | |
7 | timestamp='2006-07-02' |
7 | timestamp='2007-03-06' |
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. |
… | |
… | |
159 | case "${UNAME_MACHINE_ARCH}" in |
159 | case "${UNAME_MACHINE_ARCH}" in |
160 | armeb) machine=armeb-unknown ;; |
160 | armeb) machine=armeb-unknown ;; |
161 | arm*) machine=arm-unknown ;; |
161 | arm*) machine=arm-unknown ;; |
162 | sh3el) machine=shl-unknown ;; |
162 | sh3el) machine=shl-unknown ;; |
163 | sh3eb) machine=sh-unknown ;; |
163 | sh3eb) machine=sh-unknown ;; |
|
|
164 | sh5el) machine=sh5le-unknown ;; |
164 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
165 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
165 | esac |
166 | esac |
166 | # The Operating System including object format, if it has switched |
167 | # The Operating System including object format, if it has switched |
167 | # to ELF recently, or will in the future. |
168 | # to ELF recently, or will in the future. |
168 | case "${UNAME_MACHINE_ARCH}" in |
169 | case "${UNAME_MACHINE_ARCH}" in |
… | |
… | |
778 | esac |
779 | esac |
779 | exit ;; |
780 | exit ;; |
780 | i*:CYGWIN*:*) |
781 | i*:CYGWIN*:*) |
781 | echo ${UNAME_MACHINE}-pc-cygwin |
782 | echo ${UNAME_MACHINE}-pc-cygwin |
782 | exit ;; |
783 | exit ;; |
783 | i*:MINGW*:*) |
784 | *:MINGW*:*) |
784 | echo ${UNAME_MACHINE}-pc-mingw32 |
785 | echo ${UNAME_MACHINE}-pc-mingw32 |
785 | exit ;; |
786 | exit ;; |
786 | i*:windows32*:*) |
787 | i*:windows32*:*) |
787 | # uname -m includes "-pc" on this system. |
788 | # uname -m includes "-pc" on this system. |
788 | echo ${UNAME_MACHINE}-mingw32 |
789 | echo ${UNAME_MACHINE}-mingw32 |
789 | exit ;; |
790 | exit ;; |
790 | i*:PW*:*) |
791 | i*:PW*:*) |
791 | echo ${UNAME_MACHINE}-pc-pw32 |
792 | echo ${UNAME_MACHINE}-pc-pw32 |
792 | exit ;; |
793 | exit ;; |
793 | x86:Interix*:[3456]*) |
794 | *:Interix*:[3456]*) |
|
|
795 | case ${UNAME_MACHINE} in |
|
|
796 | x86) |
794 | echo i586-pc-interix${UNAME_RELEASE} |
797 | echo i586-pc-interix${UNAME_RELEASE} |
795 | exit ;; |
798 | exit ;; |
796 | EM64T:Interix*:[3456]*) |
799 | EM64T | authenticamd) |
797 | echo x86_64-unknown-interix${UNAME_RELEASE} |
800 | echo x86_64-unknown-interix${UNAME_RELEASE} |
798 | exit ;; |
801 | exit ;; |
|
|
802 | esac ;; |
799 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
803 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
800 | echo i${UNAME_MACHINE}-pc-mks |
804 | echo i${UNAME_MACHINE}-pc-mks |
801 | exit ;; |
805 | exit ;; |
802 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
806 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
803 | # How do we know it's Interix rather than the generic POSIX subsystem? |
807 | # How do we know it's Interix rather than the generic POSIX subsystem? |
… | |
… | |
947 | vax:Linux:*:*) |
951 | vax:Linux:*:*) |
948 | echo ${UNAME_MACHINE}-dec-linux-gnu |
952 | echo ${UNAME_MACHINE}-dec-linux-gnu |
949 | exit ;; |
953 | exit ;; |
950 | x86_64:Linux:*:*) |
954 | x86_64:Linux:*:*) |
951 | echo x86_64-unknown-linux-gnu |
955 | echo x86_64-unknown-linux-gnu |
|
|
956 | exit ;; |
|
|
957 | xtensa:Linux:*:*) |
|
|
958 | echo xtensa-unknown-linux-gnu |
952 | exit ;; |
959 | exit ;; |
953 | i*86:Linux:*:*) |
960 | i*86:Linux:*:*) |
954 | # The BFD linker knows what the default object file format is, so |
961 | # The BFD linker knows what the default object file format is, so |
955 | # first see if it will tell us. cd to the root directory to prevent |
962 | # first see if it will tell us. cd to the root directory to prevent |
956 | # problems with other programs or directories called `ld' in the path. |
963 | # problems with other programs or directories called `ld' in the path. |
… | |
… | |
1206 | echo sx5-nec-superux${UNAME_RELEASE} |
1213 | echo sx5-nec-superux${UNAME_RELEASE} |
1207 | exit ;; |
1214 | exit ;; |
1208 | SX-6:SUPER-UX:*:*) |
1215 | SX-6:SUPER-UX:*:*) |
1209 | echo sx6-nec-superux${UNAME_RELEASE} |
1216 | echo sx6-nec-superux${UNAME_RELEASE} |
1210 | exit ;; |
1217 | exit ;; |
|
|
1218 | SX-7:SUPER-UX:*:*) |
|
|
1219 | echo sx7-nec-superux${UNAME_RELEASE} |
|
|
1220 | exit ;; |
|
|
1221 | SX-8:SUPER-UX:*:*) |
|
|
1222 | echo sx8-nec-superux${UNAME_RELEASE} |
|
|
1223 | exit ;; |
|
|
1224 | SX-8R:SUPER-UX:*:*) |
|
|
1225 | echo sx8r-nec-superux${UNAME_RELEASE} |
|
|
1226 | exit ;; |
1211 | Power*:Rhapsody:*:*) |
1227 | Power*:Rhapsody:*:*) |
1212 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1228 | echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1213 | exit ;; |
1229 | exit ;; |
1214 | *:Rhapsody:*:*) |
1230 | *:Rhapsody:*:*) |
1215 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1231 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |