[Spice-devel] [PATCH 1/7] spice-ppc: Adds powerppc compilation support

Erlon Cruz sombrafam at gmail.com
Tue Aug 7 11:43:08 PDT 2012


From: Erlon Cruz <erlon.cruz at br.flextronics.com>

Signed-off-by: Erlon R. Cruz <erlon.cruz at br.flextronics.com>
Signed-off-by: Fabiano Fidêncio <Fabiano.Fidêncio at fit-tecnologia.org.br>
Signed-off-by: Rafael F. Santos <Rafael.Santos at fit-tecnologia.org.br>

---
 configure.ac |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index bed0464..c26829f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@ AC_SUBST(SPICE_LT_VERSION)
 
 # Check for the CPU we are using
 #
-AC_MSG_CHECKING(for x86 or x86-64 platform)
+AC_MSG_CHECKING(for x86,x86-64 or powerpc64 platform)
 case $host_cpu in
   i386|i486|i586|i686|i786|k6|k7|arm|armv7)
 	variant=32
@@ -64,13 +64,19 @@ case $host_cpu in
   x86_64)
 	variant=64
 	;;
+  powerpc64)
+	variant=ppc64
+	AC_DEFINE_UNQUOTED([WORDS_BIGENDIAN], 1,
+	[Set on powerpc hosts])
+	;;
   *)
 	AC_MSG_RESULT(no)
-	echo Only x86 and x86-64 are supported
+	echo Only x86,x86-64 and powerpc64 are supported
 	exit 1
 esac
 AC_MSG_RESULT($variant bit)
 AM_CONDITIONAL([X86_64], [test "$variant" = 64])
+AM_CONDITIONAL([PPC64], [test "$variant" = ppc64])
 
 AC_MSG_CHECKING([for native Win32])
 case "$host" in
-- 
1.7.4.1



More information about the Spice-devel mailing list