configure.in
changeset 1047 ffaaf7ecf685
parent 1035 974ba6ae0fa3
child 1062 3e637850c02b
     1.1 --- a/configure.in	Sun Apr 17 10:16:30 2005 +0000
     1.2 +++ b/configure.in	Sun Apr 17 10:19:22 2005 +0000
     1.3 @@ -1839,17 +1839,18 @@
     1.4  {
     1.5      AC_MSG_CHECKING(for GCC Altivec instruction support)
     1.6      have_gcc_altivec=no
     1.7 +    save_CFLAGS="${CFLAGS}"
     1.8 +    CFLAGS="${CFLAGS} -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS -faltivec"
     1.9      AC_TRY_COMPILE([
    1.10 +    vector unsigned int vzero() {
    1.11 +        return vec_splat_u32(0);
    1.12 +    }
    1.13      ],[
    1.14 -        asm volatile ("mtspr 256, %0\n\t"
    1.15 -                      "vand %%v0, %%v0, %%v0"
    1.16 -                      :
    1.17 -                      : "r" (-1));
    1.18      ],[
    1.19      have_gcc_altivec=yes
    1.20      ])
    1.21 -    if test x$have_gcc_altivec = xyes; then
    1.22 -        CFLAGS="$CFLAGS -DGCC_ALTIVEC"
    1.23 +    if test x$have_gcc_altivec = xno; then
    1.24 +        CFLAGS="${save_CFLAGS}"
    1.25      fi
    1.26      AC_MSG_RESULT($have_gcc_altivec)
    1.27  }
    1.28 @@ -2564,6 +2565,7 @@
    1.29          CheckMacGL
    1.30          CheckPTHREAD
    1.31          CheckSIGACTION
    1.32 +        CheckAltivec
    1.33          # If either the audio or CD driver is used, add the AudioUnit framework
    1.34          if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
    1.35              SYSTEM_LIBS="$SYSTEM_LIBS -framework AudioToolbox -framework AudioUnit"