From: Bart Van Assche Date: Mon, 12 May 2008 18:50:51 +0000 (+0000) Subject: Added configure test for Altivec. X-Git-Tag: svn/VALGRIND_3_4_0~587 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bdbf593f242f22375130b1fecaf1557565b97fd;p=thirdparty%2Fvalgrind.git Added configure test for Altivec. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8052 --- diff --git a/configure.in b/configure.in index cfc2d7585b..8bb4f4658e 100644 --- a/configure.in +++ b/configure.in @@ -729,6 +729,33 @@ CFLAGS=$safe_CFLAGS AM_CONDITIONAL([HAVE_OPENMP], [test x$ac_have_openmp = xyes]) +# does this compiler support -maltivec and does it have the include file +# ? + +AC_MSG_CHECKING([for Altivec]) + +safe_CFLAGS=$CFLAGS +CFLAGS="-maltivec" + +AC_TRY_COMPILE( +[ +#include +], [ + 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()])