libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] [PATCH 4/7] ppc32: ppc64: test altivec support by


From: Tommi Rantala
Subject: Re: [Libunwind-devel] [PATCH 4/7] ppc32: ppc64: test altivec support by running the compiler.
Date: Wed, 5 Sep 2012 09:45:20 +0300

2012/9/4 Cody P Schafer <address@hidden>:
>  AC_MSG_CHECKING([if building with AltiVec])
> -use_altivec=`is_gcc_altivec`
> -AM_CONDITIONAL(USE_ALTIVEC, test x$use_altivec = xhas_altivec)
> -if test x$use_altivec = xhas_altivec; then
> +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
> +#ifndef __ALTIVEC__
> +# error choke
> +#endif
> +]])], [use_altivec=true],[use_altivec=false])

How about setting use_altivec to yes/no, the following could be then
something like:

AM_CONDITIONAL(USE_ALTIVEC, test x$use_altivec = xyes)
AC_MSG_RESULT([$use_altivec])

> +AM_CONDITIONAL(USE_ALTIVEC, $use_altivec)
> +if $use_altivec; then
>    AC_MSG_RESULT([yes])
>  else
>    AC_MSG_RESULT([no])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]