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

Mathieu Desnoyers compudj at krystal.dyndns.org
Mon Mar 1 14:05:10 EST 2010


* Paolo Bonzini (pbonzini at redhat.com) wrote:
> The new defaults mean that, for example, ia64 support comes for free.
> 
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
> Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.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

merging, edit: defaults -> generic.

Thanks,

Mathieu

>  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
Operating System Efficiency Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list