Commit 179acd06 authored by Christophe Massiot's avatar Christophe Massiot

Another fix for the altivec detection.

parent 1d728604
...@@ -3536,12 +3536,12 @@ else ...@@ -3536,12 +3536,12 @@ else
fi fi
rm -f conftest* rm -f conftest*
echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6 echo $ac_n "checking if \$CC groks Altivec code""... $ac_c" 1>&6
echo "configure:3541: checking if \$CC groks Altivec inline assembly" >&5 echo "configure:3541: checking if \$CC groks Altivec code" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3543 "configure" #line 3543 "configure"
#include "confdefs.h" #include "confdefs.h"
void quux(){void *p;asm("mtspr 256,%0"::"r"(-1));} void quux(){vec_mtvscr( (vector unsigned int)(0) );}
int main() { int main() {
; return 0; } ; return 0; }
......
...@@ -240,8 +240,8 @@ AC_TRY_COMPILE([void quux(){void *p;asm("xorps %%xmm1,%%xmm2"::"r"(p));}],, ...@@ -240,8 +240,8 @@ AC_TRY_COMPILE([void quux(){void *p;asm("xorps %%xmm1,%%xmm2"::"r"(p));}],,
ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}" ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
AC_MSG_CHECKING([if \$CC groks Altivec inline assembly]) AC_MSG_CHECKING([if \$CC groks Altivec code])
AC_TRY_COMPILE([void quux(){void *p;asm("mtspr 256,%0"::"r"(-1));}],, AC_TRY_COMPILE([void quux(){vec_mtvscr( (vector unsigned int)(0) );}],,
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
......
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