qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6640] Darwin: Check for x86_64 only on i386
@ 2009-02-23 14:11 malc
  0 siblings, 0 replies; only message in thread
From: malc @ 2009-02-23 14:11 UTC (permalink / raw)
  To: qemu-devel

Revision: 6640
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6640
Author:   malc
Date:     2009-02-23 14:11:10 +0000 (Mon, 23 Feb 2009)

Log Message:
-----------
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>

Modified Paths:
--------------
    trunk/configure

Modified: trunk/configure
===================================================================
--- trunk/configure	2009-02-23 13:16:07 UTC (rev 6639)
+++ trunk/configure	2009-02-23 14:11:10 UTC (rev 6640)
@@ -244,9 +244,9 @@
 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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-23 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 14:11 [Qemu-devel] [6640] Darwin: Check for x86_64 only on i386 malc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).