|
From: <sv...@va...> - 2008-05-12 18:50:49
|
Author: bart Date: 2008-05-12 19:50:51 +0100 (Mon, 12 May 2008) New Revision: 8052 Log: Added configure test for Altivec. Modified: trunk/configure.in Modified: trunk/configure.in =================================================================== --- trunk/configure.in 2008-05-12 18:16:14 UTC (rev 8051) +++ trunk/configure.in 2008-05-12 18:50:51 UTC (rev 8052) @@ -729,6 +729,33 @@ AM_CONDITIONAL([HAVE_OPENMP], [test x$ac_have_openmp = xyes]) +# does this compiler support -maltivec and does it have the include file +# <altivec.h> ? + +AC_MSG_CHECKING([for Altivec]) + +safe_CFLAGS=$CFLAGS +CFLAGS="-maltivec" + +AC_TRY_COMPILE( +[ +#include <altivec.h> +], [ + vector unsigned int v; +], +[ +ac_have_altivec=yes +AC_MSG_RESULT([yes]) +], [ +ac_have_altivec=no +AC_MSG_RESULT([no]) +]) +CFLAGS=$safe_CFLAGS + +AM_CONDITIONAL([HAS_ALTIVEC], [test x$ac_have_altivec = xyes]) +AM_CONDITIONAL([HAVE_ALTIVEC_H], [test x$ac_have_altivec = xyes]) + + # Check for eventfd_t, eventfd() and eventfd_read() AC_MSG_CHECKING([for eventfd()]) |