[ltt-dev] [PATCH 10/12] support compiling on unknown architectures

Mathieu Desnoyers compudj at krystal.dyndns.org
Wed Feb 17 22:22:41 EST 2010


* Paolo Bonzini (pbonzini at redhat.com) wrote:
> The new defaults mean that, for example, ia64 support comes for free.

Hurray! :)

Mathieu

> 
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
> ---
>  configure.ac |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 1ce19d0..871e600 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -54,11 +54,13 @@ case $host_cpu in
>  	*) ARCHTYPE="unknown";;
>  esac
>  
> -if test "$ARCHTYPE" = "unknown"; then
> -	AC_MSG_ERROR([Unable to detect the architecture.])
> +if test "$ARCHTYPE" != "unknown"; then
> +	UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
> +	ARCHSRC=urcu/arch_$ARCHTYPE.h
> +else
> +	UATOMICSRC=urcu/uatomic_defaults.h
> +	ARCHSRC=urcu/arch_defaults.h
>  fi
> -UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
> -ARCHSRC=urcu/arch_$ARCHTYPE.h
>  if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then
>  	APISRC=tests/api_gcc.h
>  else
> -- 
> 1.6.6
> 
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list