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

Christophe Fergeau cfergeau at redhat.com
Wed Aug 8 02:02:03 PDT 2012


On Tue, Aug 07, 2012 at 03:43:08PM -0300, Erlon Cruz wrote:
> 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,

spice configure.ac is calling AC_C_BIGENDIAN which is supposed to set
WORDS_BIGENDIAN if needed, is it not working for some reason?

> +	[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])

The X86_64 conditional does not seem to be used, is one of your patches
using the PPC64 conditional?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120808/d9655dce/attachment.pgp>


More information about the Spice-devel mailing list