aboutsummaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-06-04 06:15:42 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-06-04 06:15:42 +0000
commit3de510e74ee8118be59543726d8b721cbb3d4bb8 (patch)
treee86ed201e9ad3b9ba1452a962a6d78a390dcac8a /autoconf
parent9a9d218ed013653b28741c26f28df0bd34c630fa (diff)
Use processor name in the target triple. This fixes PowerPC64 to generate
64bit code for example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rwxr-xr-xautoconf/config.guess5
1 files changed, 2 insertions, 3 deletions
diff --git a/autoconf/config.guess b/autoconf/config.guess
index 865fe53d6b..9807c916b8 100755
--- a/autoconf/config.guess
+++ b/autoconf/config.guess
@@ -789,13 +789,12 @@ EOF
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
case ${UNAME_MACHINE} in
- pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)