| 1262 | i386) |
| 1263 | eval $set_cc_for_build |
| 1264 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
| 1265 | # if system compiler available test by code generation |
| 1266 | sed 's/^ //' << EOF >$dummy.c |
| 1267 | #if defined(__LP64__) |
| 1268 | main() |
| 1269 | { |
| 1270 | } |
| 1271 | #endif |
| 1272 | EOF |
| 1273 | if test `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep -c main` = 1 ; then |
| 1274 | UNAME_PROCESSOR=x86_64 |
| 1275 | fi |
| 1276 | else |
| 1277 | # architecture test in absence of compiler |
| 1278 | case `uname -r` in |
| 1279 | [1-9].*) ;; |
| 1280 | *) |
| 1281 | # if darwin10 or later test if EMT64 capable |
| 1282 | if test `sysctl -n hw.cpu64bit_capable | grep -c 1` = 1 ; then |
| 1283 | UNAME_PROCESSOR=x86_64 |
| 1284 | fi ;; |
| 1285 | esac |
| 1286 | fi ;; |