Commit 882aa544 authored by Sam Hocevar's avatar Sam Hocevar
Browse files

* configure.ac: on OS X ppc, prefer -maltivec to -faltivec if possible.

parent f4994b21
...@@ -1125,19 +1125,19 @@ CPPFLAGS="${CPPFLAGS_save}" ...@@ -1125,19 +1125,19 @@ CPPFLAGS="${CPPFLAGS_save}"
AC_CACHE_CHECK([if \$CC groks AltiVec C extensions], AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
[ac_cv_c_altivec], [ac_cv_c_altivec],
[# Darwin test [# Linux/PPC test (no flags)
CFLAGS="${CFLAGS_save} -faltivec" CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -maltivec -mabi=altivec"
AC_TRY_COMPILE([], AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif],
[vec_ld(0, (unsigned char *)0);], [vec_ld(0, (unsigned char *)0);],
[ac_cv_c_altivec="-faltivec"], [ac_cv_c_altivec=""
[# Linux/PPC test (no flags) ac_cv_c_altivec_abi="-maltivec -mabi=altivec"],
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -maltivec -mabi=altivec" [# Darwin test
AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H CFLAGS="${CFLAGS_save} -faltivec"
#include <altivec.h> AC_TRY_COMPILE([],
#endif],
[vec_ld(0, (unsigned char *)0);], [vec_ld(0, (unsigned char *)0);],
[ac_cv_c_altivec="" [ac_cv_c_altivec="-faltivec"],
ac_cv_c_altivec_abi="-maltivec -mabi=altivec"],
[# Linux/PPC test (old GCC versions) [# Linux/PPC test (old GCC versions)
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -fvec" CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -fvec"
AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment