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 Free Software Foundation, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
5 | # Inc. |
|
|
6 | |
5 | |
7 | timestamp='2006-07-02' |
6 | timestamp='2006-02-23' |
8 | |
7 | |
9 | # This file is free software; you can redistribute it and/or modify it |
8 | # 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 |
9 | # under the terms of the GNU General Public License as published by |
11 | # the Free Software Foundation; either version 2 of the License, or |
10 | # the Free Software Foundation; either version 2 of the License, or |
12 | # (at your option) any later version. |
11 | # (at your option) any later version. |
… | |
… | |
209 | exit ;; |
208 | exit ;; |
210 | *:SolidBSD:*:*) |
209 | *:SolidBSD:*:*) |
211 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
210 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} |
212 | exit ;; |
211 | exit ;; |
213 | macppc:MirBSD:*:*) |
212 | macppc:MirBSD:*:*) |
214 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} |
213 | echo powerppc-unknown-mirbsd${UNAME_RELEASE} |
215 | exit ;; |
214 | exit ;; |
216 | *:MirBSD:*:*) |
215 | *:MirBSD:*:*) |
217 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
216 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} |
218 | exit ;; |
217 | exit ;; |
219 | alpha:OSF1:*:*) |
218 | alpha:OSF1:*:*) |
… | |
… | |
769 | exit ;; |
768 | exit ;; |
770 | *:FreeBSD:*:*) |
769 | *:FreeBSD:*:*) |
771 | case ${UNAME_MACHINE} in |
770 | case ${UNAME_MACHINE} in |
772 | pc98) |
771 | pc98) |
773 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
772 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
774 | amd64) |
|
|
775 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
|
|
776 | *) |
773 | *) |
777 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
774 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
778 | esac |
775 | esac |
779 | exit ;; |
776 | exit ;; |
780 | i*:CYGWIN*:*) |
777 | i*:CYGWIN*:*) |
781 | echo ${UNAME_MACHINE}-pc-cygwin |
778 | echo ${UNAME_MACHINE}-pc-cygwin |
782 | exit ;; |
779 | exit ;; |
783 | i*:MINGW*:*) |
780 | i*:MINGW*:*) |
784 | echo ${UNAME_MACHINE}-pc-mingw32 |
781 | echo ${UNAME_MACHINE}-pc-mingw32 |
785 | exit ;; |
782 | exit ;; |
|
|
783 | i*:MSYS_NT-*:*:*) |
|
|
784 | echo ${UNAME_MACHINE}-pc-mingw32 |
|
|
785 | exit ;; |
786 | i*:windows32*:*) |
786 | i*:windows32*:*) |
787 | # uname -m includes "-pc" on this system. |
787 | # uname -m includes "-pc" on this system. |
788 | echo ${UNAME_MACHINE}-mingw32 |
788 | echo ${UNAME_MACHINE}-mingw32 |
789 | exit ;; |
789 | exit ;; |
790 | i*:PW*:*) |
790 | i*:PW*:*) |
791 | echo ${UNAME_MACHINE}-pc-pw32 |
791 | echo ${UNAME_MACHINE}-pc-pw32 |
792 | exit ;; |
792 | exit ;; |
793 | x86:Interix*:[3456]*) |
793 | x86:Interix*:[345]*) |
794 | echo i586-pc-interix${UNAME_RELEASE} |
794 | echo i586-pc-interix${UNAME_RELEASE} |
795 | exit ;; |
795 | exit ;; |
796 | EM64T:Interix*:[3456]*) |
796 | EM64T:Interix*:[345]*) |
797 | echo x86_64-unknown-interix${UNAME_RELEASE} |
797 | echo x86_64-unknown-interix${UNAME_RELEASE} |
798 | exit ;; |
798 | exit ;; |
799 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
799 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
800 | echo i${UNAME_MACHINE}-pc-mks |
800 | echo i${UNAME_MACHINE}-pc-mks |
801 | exit ;; |
801 | exit ;; |
… | |
… | |
827 | exit ;; |
827 | exit ;; |
828 | i*86:Minix:*:*) |
828 | i*86:Minix:*:*) |
829 | echo ${UNAME_MACHINE}-pc-minix |
829 | echo ${UNAME_MACHINE}-pc-minix |
830 | exit ;; |
830 | exit ;; |
831 | arm*:Linux:*:*) |
831 | arm*:Linux:*:*) |
832 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
833 | exit ;; |
|
|
834 | avr32*:Linux:*:*) |
|
|
835 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
832 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
836 | exit ;; |
833 | exit ;; |
837 | cris:Linux:*:*) |
834 | cris:Linux:*:*) |
838 | echo cris-axis-linux-gnu |
835 | echo cris-axis-linux-gnu |
839 | exit ;; |
836 | exit ;; |
… | |
… | |
990 | # endif |
987 | # endif |
991 | # else |
988 | # else |
992 | LIBC=gnulibc1 |
989 | LIBC=gnulibc1 |
993 | # endif |
990 | # endif |
994 | #else |
991 | #else |
995 | #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) |
992 | #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) |
996 | LIBC=gnu |
993 | LIBC=gnu |
997 | #else |
994 | #else |
998 | LIBC=gnuaout |
995 | LIBC=gnuaout |
999 | #endif |
996 | #endif |
1000 | #endif |
997 | #endif |