Mercurial > sdl-ios-xcode
comparison build-scripts/config.guess @ 3086:0102ed19c21a
Updated config.guess and config.sub
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 04 Mar 2009 09:35:32 +0000 |
parents | 386ebf50dd91 |
children | 6b14223dd5c7 |
comparison
equal
deleted
inserted
replaced
3085:4800979de337 | 3086:0102ed19c21a |
---|---|
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, 2006, 2007, 2008 |
5 # Inc. | 5 # Free Software Foundation, Inc. |
6 | 6 |
7 timestamp='2007-12-12' | 7 timestamp='2009-02-03' |
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. |
54 | 54 |
55 version="\ | 55 version="\ |
56 GNU config.guess ($timestamp) | 56 GNU config.guess ($timestamp) |
57 | 57 |
58 Originally written by Per Bothner. | 58 Originally written by Per Bothner. |
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
60 Free Software Foundation, Inc. | 60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
61 | 61 |
62 This is free software; see the source for copying conditions. There is NO | 62 This is free software; see the source for copying conditions. There is NO |
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
64 | 64 |
65 help=" | 65 help=" |
329 exit ;; | 329 exit ;; |
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | 330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
332 exit ;; | 332 exit ;; |
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | 333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 334 eval $set_cc_for_build |
335 SUN_ARCH="i386" | |
336 # If there is a compiler, see if it is configured for 64-bit objects. | |
337 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
338 # This test works for both compilers. | |
339 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
340 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
341 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
342 grep IS_64BIT_ARCH >/dev/null | |
343 then | |
344 SUN_ARCH="x86_64" | |
345 fi | |
346 fi | |
347 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
335 exit ;; | 348 exit ;; |
336 sun4*:SunOS:6*:*) | 349 sun4*:SunOS:6*:*) |
337 # According to config.sub, this is the proper way to canonicalize | 350 # According to config.sub, this is the proper way to canonicalize |
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but | 351 # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
339 # it's likely to be more like Solaris than SunOS4. | 352 # it's likely to be more like Solaris than SunOS4. |
530 echo rs6000-ibm-aix3.2.4 | 543 echo rs6000-ibm-aix3.2.4 |
531 else | 544 else |
532 echo rs6000-ibm-aix3.2 | 545 echo rs6000-ibm-aix3.2 |
533 fi | 546 fi |
534 exit ;; | 547 exit ;; |
535 *:AIX:*:[45]) | 548 *:AIX:*:[456]) |
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 549 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | 550 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
538 IBM_ARCH=rs6000 | 551 IBM_ARCH=rs6000 |
539 else | 552 else |
540 IBM_ARCH=powerpc | 553 IBM_ARCH=powerpc |
794 *:Interix*:[3456]*) | 807 *:Interix*:[3456]*) |
795 case ${UNAME_MACHINE} in | 808 case ${UNAME_MACHINE} in |
796 x86) | 809 x86) |
797 echo i586-pc-interix${UNAME_RELEASE} | 810 echo i586-pc-interix${UNAME_RELEASE} |
798 exit ;; | 811 exit ;; |
799 EM64T | authenticamd) | 812 EM64T | authenticamd | genuineintel) |
800 echo x86_64-unknown-interix${UNAME_RELEASE} | 813 echo x86_64-unknown-interix${UNAME_RELEASE} |
801 exit ;; | 814 exit ;; |
802 IA64) | 815 IA64) |
803 echo ia64-unknown-interix${UNAME_RELEASE} | 816 echo ia64-unknown-interix${UNAME_RELEASE} |
804 exit ;; | 817 exit ;; |
933 esac | 946 esac |
934 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null | 947 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
935 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 948 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
936 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 949 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
937 exit ;; | 950 exit ;; |
951 padre:Linux:*:*) | |
952 echo sparc-unknown-linux-gnu | |
953 exit ;; | |
938 parisc:Linux:*:* | hppa:Linux:*:*) | 954 parisc:Linux:*:* | hppa:Linux:*:*) |
939 # Look for CPU level | 955 # Look for CPU level |
940 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 956 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
941 PA7*) echo hppa1.1-unknown-linux-gnu ;; | 957 PA7*) echo hppa1.1-unknown-linux-gnu ;; |
942 PA8*) echo hppa2.0-unknown-linux-gnu ;; | 958 PA8*) echo hppa2.0-unknown-linux-gnu ;; |
982 elf32-i386) | 998 elf32-i386) |
983 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | 999 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
984 ;; | 1000 ;; |
985 a.out-i386-linux) | 1001 a.out-i386-linux) |
986 echo "${UNAME_MACHINE}-pc-linux-gnuaout" | 1002 echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
987 exit ;; | |
988 coff-i386) | |
989 echo "${UNAME_MACHINE}-pc-linux-gnucoff" | |
990 exit ;; | 1003 exit ;; |
991 "") | 1004 "") |
992 # Either a pre-BFD a.out linker (linux-gnuoldld) or | 1005 # Either a pre-BFD a.out linker (linux-gnuoldld) or |
993 # one that does not give us useful --help. | 1006 # one that does not give us useful --help. |
994 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" | 1007 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
1139 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | 1152 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1140 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | 1153 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1141 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 1154 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1142 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1155 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1143 && { echo i486-ncr-sysv4; exit; } ;; | 1156 && { echo i486-ncr-sysv4; exit; } ;; |
1157 NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
1158 OS_REL='.3' | |
1159 test -r /etc/.relid \ | |
1160 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1161 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1162 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1163 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1164 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1165 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
1166 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1144 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | 1167 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1145 echo m68k-unknown-lynxos${UNAME_RELEASE} | 1168 echo m68k-unknown-lynxos${UNAME_RELEASE} |
1146 exit ;; | 1169 exit ;; |
1147 mc68030:UNIX_System_V:4.*:*) | 1170 mc68030:UNIX_System_V:4.*:*) |
1148 echo m68k-atari-sysv4 | 1171 echo m68k-atari-sysv4 |
1213 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | 1236 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
1214 echo powerpc-apple-beos | 1237 echo powerpc-apple-beos |
1215 exit ;; | 1238 exit ;; |
1216 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | 1239 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1217 echo i586-pc-beos | 1240 echo i586-pc-beos |
1241 exit ;; | |
1242 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | |
1243 echo i586-pc-haiku | |
1218 exit ;; | 1244 exit ;; |
1219 SX-4:SUPER-UX:*:*) | 1245 SX-4:SUPER-UX:*:*) |
1220 echo sx4-nec-superux${UNAME_RELEASE} | 1246 echo sx4-nec-superux${UNAME_RELEASE} |
1221 exit ;; | 1247 exit ;; |
1222 SX-5:SUPER-UX:*:*) | 1248 SX-5:SUPER-UX:*:*) |
1321 i*86:skyos:*:*) | 1347 i*86:skyos:*:*) |
1322 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | 1348 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' |
1323 exit ;; | 1349 exit ;; |
1324 i*86:rdos:*:*) | 1350 i*86:rdos:*:*) |
1325 echo ${UNAME_MACHINE}-pc-rdos | 1351 echo ${UNAME_MACHINE}-pc-rdos |
1352 exit ;; | |
1353 i*86:AROS:*:*) | |
1354 echo ${UNAME_MACHINE}-pc-aros | |
1326 exit ;; | 1355 exit ;; |
1327 esac | 1356 esac |
1328 | 1357 |
1329 #echo '(No uname command or uname output not recognized.)' 1>&2 | 1358 #echo '(No uname command or uname output not recognized.)' 1>&2 |
1330 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 1359 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
1482 | 1511 |
1483 This script, last modified $timestamp, has failed to recognize | 1512 This script, last modified $timestamp, has failed to recognize |
1484 the operating system you are using. It is advised that you | 1513 the operating system you are using. It is advised that you |
1485 download the most up to date version of the config scripts from | 1514 download the most up to date version of the config scripts from |
1486 | 1515 |
1487 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess | 1516 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1488 and | 1517 and |
1489 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub | 1518 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1490 | 1519 |
1491 If the version you run ($0) is already up to date, please | 1520 If the version you run ($0) is already up to date, please |
1492 send the following data and any information you think might be | 1521 send the following data and any information you think might be |
1493 pertinent to <config-patches@gnu.org> in order to provide the needed | 1522 pertinent to <config-patches@gnu.org> in order to provide the needed |
1494 information to handle your system. | 1523 information to handle your system. |