… | |
… | |
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 Free Software Foundation, Inc. |
5 | # 2011 Free Software Foundation, Inc. |
6 | |
6 | |
7 | timestamp='2011-05-11' |
7 | timestamp='2011-11-11' |
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. |
… | |
… | |
790 | exit ;; |
790 | exit ;; |
791 | *:BSD/OS:*:*) |
791 | *:BSD/OS:*:*) |
792 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
792 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
793 | exit ;; |
793 | exit ;; |
794 | *:FreeBSD:*:*) |
794 | *:FreeBSD:*:*) |
|
|
795 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
795 | case ${UNAME_MACHINE} in |
796 | case ${UNAME_PROCESSOR} in |
796 | pc98) |
|
|
797 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
|
|
798 | amd64) |
797 | amd64) |
799 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
798 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
800 | *) |
799 | *) |
801 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
800 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
802 | esac |
801 | esac |
803 | exit ;; |
802 | exit ;; |
804 | i*:CYGWIN*:*) |
803 | i*:CYGWIN*:*) |
805 | echo ${UNAME_MACHINE}-pc-cygwin |
804 | echo ${UNAME_MACHINE}-pc-cygwin |
806 | exit ;; |
805 | exit ;; |
807 | *:MINGW*:*) |
806 | *:MINGW*:*) |
808 | echo ${UNAME_MACHINE}-pc-mingw32 |
807 | echo ${UNAME_MACHINE}-pc-mingw32 |
|
|
808 | exit ;; |
|
|
809 | i*:MSYS*:*) |
|
|
810 | echo ${UNAME_MACHINE}-pc-msys |
809 | exit ;; |
811 | exit ;; |
810 | i*:windows32*:*) |
812 | i*:windows32*:*) |
811 | # uname -m includes "-pc" on this system. |
813 | # uname -m includes "-pc" on this system. |
812 | echo ${UNAME_MACHINE}-mingw32 |
814 | echo ${UNAME_MACHINE}-mingw32 |
813 | exit ;; |
815 | exit ;; |
… | |
… | |
900 | crisv32:Linux:*:*) |
902 | crisv32:Linux:*:*) |
901 | echo crisv32-axis-linux-gnu |
903 | echo crisv32-axis-linux-gnu |
902 | exit ;; |
904 | exit ;; |
903 | frv:Linux:*:*) |
905 | frv:Linux:*:*) |
904 | echo frv-unknown-linux-gnu |
906 | echo frv-unknown-linux-gnu |
|
|
907 | exit ;; |
|
|
908 | hexagon:Linux:*:*) |
|
|
909 | echo hexagon-unknown-linux-gnu |
905 | exit ;; |
910 | exit ;; |
906 | i*86:Linux:*:*) |
911 | i*86:Linux:*:*) |
907 | LIBC=gnu |
912 | LIBC=gnu |
908 | eval $set_cc_for_build |
913 | eval $set_cc_for_build |
909 | sed 's/^ //' << EOF >$dummy.c |
914 | sed 's/^ //' << EOF >$dummy.c |