Mercurial > emacs
comparison config.guess @ 67893:6af57e0a5d45
* config.guess, config.sub: Updated from master source.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Thu, 29 Dec 2005 14:20:23 +0000 |
parents | 2c7c4607da97 |
children | b99080e25b28 |
comparison
equal
deleted
inserted
replaced
67892:e188efbb47ee | 67893:6af57e0a5d45 |
---|---|
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 Free Software Foundation, Inc. | 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
5 | 5 |
6 timestamp='2005-08-03' | 6 timestamp='2005-12-23' |
7 | 7 |
8 # 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 |
9 # 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 |
10 # the Free Software Foundation; either version 2 of the License, or | 10 # the Free Software Foundation; either version 2 of the License, or |
11 # (at your option) any later version. | 11 # (at your option) any later version. |
762 exit ;; | 762 exit ;; |
763 *:BSD/OS:*:*) | 763 *:BSD/OS:*:*) |
764 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | 764 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
765 exit ;; | 765 exit ;; |
766 *:FreeBSD:*:*) | 766 *:FreeBSD:*:*) |
767 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 767 case ${UNAME_MACHINE} in |
768 pc98) | |
769 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
770 *) | |
771 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
772 esac | |
768 exit ;; | 773 exit ;; |
769 i*:CYGWIN*:*) | 774 i*:CYGWIN*:*) |
770 echo ${UNAME_MACHINE}-pc-cygwin | 775 echo ${UNAME_MACHINE}-pc-cygwin |
771 exit ;; | 776 exit ;; |
772 i*:MINGW*:*) | 777 i*:MINGW*:*) |
777 echo ${UNAME_MACHINE}-mingw32 | 782 echo ${UNAME_MACHINE}-mingw32 |
778 exit ;; | 783 exit ;; |
779 i*:PW*:*) | 784 i*:PW*:*) |
780 echo ${UNAME_MACHINE}-pc-pw32 | 785 echo ${UNAME_MACHINE}-pc-pw32 |
781 exit ;; | 786 exit ;; |
782 x86:Interix*:[34]*) | 787 x86:Interix*:[345]*) |
783 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' | 788 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' |
784 exit ;; | 789 exit ;; |
785 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 790 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
786 echo i${UNAME_MACHINE}-pc-mks | 791 echo i${UNAME_MACHINE}-pc-mks |
787 exit ;; | 792 exit ;; |
849 #else | 854 #else |
850 CPU= | 855 CPU= |
851 #endif | 856 #endif |
852 #endif | 857 #endif |
853 EOF | 858 EOF |
854 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | 859 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" |
855 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 860 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
856 ;; | 861 ;; |
857 mips64:Linux:*:*) | 862 mips64:Linux:*:*) |
858 eval $set_cc_for_build | 863 eval $set_cc_for_build |
859 sed 's/^ //' << EOF >$dummy.c | 864 sed 's/^ //' << EOF >$dummy.c |
868 #else | 873 #else |
869 CPU= | 874 CPU= |
870 #endif | 875 #endif |
871 #endif | 876 #endif |
872 EOF | 877 EOF |
873 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | 878 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`" |
874 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 879 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
875 ;; | 880 ;; |
876 or32:Linux:*:*) | 881 or32:Linux:*:*) |
877 echo or32-unknown-linux-gnu | 882 echo or32-unknown-linux-gnu |
878 exit ;; | 883 exit ;; |
916 sh*:Linux:*:*) | 921 sh*:Linux:*:*) |
917 echo ${UNAME_MACHINE}-unknown-linux-gnu | 922 echo ${UNAME_MACHINE}-unknown-linux-gnu |
918 exit ;; | 923 exit ;; |
919 sparc:Linux:*:* | sparc64:Linux:*:*) | 924 sparc:Linux:*:* | sparc64:Linux:*:*) |
920 echo ${UNAME_MACHINE}-unknown-linux-gnu | 925 echo ${UNAME_MACHINE}-unknown-linux-gnu |
926 exit ;; | |
927 vax:Linux:*:*) | |
928 echo ${UNAME_MACHINE}-dec-linux-gnu | |
921 exit ;; | 929 exit ;; |
922 x86_64:Linux:*:*) | 930 x86_64:Linux:*:*) |
923 echo x86_64-unknown-linux-gnu | 931 echo x86_64-unknown-linux-gnu |
924 exit ;; | 932 exit ;; |
925 i*86:Linux:*:*) | 933 i*86:Linux:*:*) |
962 # endif | 970 # endif |
963 # else | 971 # else |
964 LIBC=gnulibc1 | 972 LIBC=gnulibc1 |
965 # endif | 973 # endif |
966 #else | 974 #else |
967 #ifdef __INTEL_COMPILER | 975 #if defined(__INTEL_COMPILER) || defined(__PGI) |
968 LIBC=gnu | 976 LIBC=gnu |
969 #else | 977 #else |
970 LIBC=gnuaout | 978 LIBC=gnuaout |
971 #endif | 979 #endif |
972 #endif | 980 #endif |
973 #ifdef __dietlibc__ | 981 #ifdef __dietlibc__ |
974 LIBC=dietlibc | 982 LIBC=dietlibc |
975 #endif | 983 #endif |
976 EOF | 984 EOF |
977 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` | 985 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" |
978 test x"${LIBC}" != x && { | 986 test x"${LIBC}" != x && { |
979 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | 987 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
980 exit | 988 exit |
981 } | 989 } |
982 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } | 990 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } |
1183 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1191 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1184 exit ;; | 1192 exit ;; |
1185 *:Darwin:*:*) | 1193 *:Darwin:*:*) |
1186 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1194 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1187 case $UNAME_PROCESSOR in | 1195 case $UNAME_PROCESSOR in |
1188 *86) UNAME_PROCESSOR=i686 ;; | |
1189 unknown) UNAME_PROCESSOR=powerpc ;; | 1196 unknown) UNAME_PROCESSOR=powerpc ;; |
1190 esac | 1197 esac |
1191 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1198 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1192 exit ;; | 1199 exit ;; |
1193 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1200 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1261 *:XENIX:*:SysV) | 1268 *:XENIX:*:SysV) |
1262 echo i386-pc-xenix | 1269 echo i386-pc-xenix |
1263 exit ;; | 1270 exit ;; |
1264 i*86:skyos:*:*) | 1271 i*86:skyos:*:*) |
1265 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | 1272 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1273 exit ;; | |
1274 i*86:rdos:*:*) | |
1275 echo ${UNAME_MACHINE}-pc-rdos | |
1266 exit ;; | 1276 exit ;; |
1267 esac | 1277 esac |
1268 | 1278 |
1269 #echo '(No uname command or uname output not recognized.)' 1>&2 | 1279 #echo '(No uname command or uname output not recognized.)' 1>&2 |
1270 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 1280 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |