summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-23 14:11:10 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-23 14:11:10 +0000
commitaab8588a5da73490b8383d0b7fa74d1fdc47a58e (patch)
tree7e3bd255696e4ed04fe7c520c843f848a0bc2706 /configure
parent67c4d23c4f31d603ba179fcede6eb53d32fdf1ea (diff)
downloadqemu-aab8588a5da73490b8383d0b7fa74d1fdc47a58e.tar.gz
qemu-aab8588a5da73490b8383d0b7fa74d1fdc47a58e.tar.bz2
qemu-aab8588a5da73490b8383d0b7fa74d1fdc47a58e.zip
Darwin: Check for x86_64 only on i386
The sysctl variable if we're 64-bit capable only exists on i386. So we should only check it if we're on i386. This suppresses a warning on PowerPC spotted by Andreas Faerber. Signed-off-by: Alexander Graf <alex@csgraf.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6640 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index c3fbbbeb03..62925d895d 100755
--- a/configure
+++ b/configure
@@ -244,9 +244,9 @@ Darwin)
bsd="yes"
darwin="yes"
# on Leopard most of the system is 32-bit, so we have to ask the kernel it if we can run 64-bit userspace code
-is_x86_64=`sysctl -n hw.optional.x86_64`
-if [ "$is_x86_64" = "1" ]; then
- cpu=x86_64
+if [ "$cpu" = "i386" ] ; then
+ is_x86_64=`sysctl -n hw.optional.x86_64`
+ [ "$is_x86_64" = "1" ] && cpu=x86_64
fi
if [ "$cpu" = "x86_64" ] ; then
OS_CFLAGS="-arch x86_64"