comparison configure.in @ 1047:ffaaf7ecf685

Altivec-optimized blitters! Vast majority of this work is compliments of Bob Ippolito. http://www.devolution.com/pipermail/sdl/2005-February/067466.html and many other posts.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 17 Apr 2005 10:19:22 +0000
parents 974ba6ae0fa3
children 3e637850c02b
comparison
equal deleted inserted replaced
1046:f09d5edfc7a3 1047:ffaaf7ecf685
1837 dnl Check for altivec instruction support using gas syntax 1837 dnl Check for altivec instruction support using gas syntax
1838 CheckAltivec() 1838 CheckAltivec()
1839 { 1839 {
1840 AC_MSG_CHECKING(for GCC Altivec instruction support) 1840 AC_MSG_CHECKING(for GCC Altivec instruction support)
1841 have_gcc_altivec=no 1841 have_gcc_altivec=no
1842 save_CFLAGS="${CFLAGS}"
1843 CFLAGS="${CFLAGS} -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS -faltivec"
1842 AC_TRY_COMPILE([ 1844 AC_TRY_COMPILE([
1845 vector unsigned int vzero() {
1846 return vec_splat_u32(0);
1847 }
1843 ],[ 1848 ],[
1844 asm volatile ("mtspr 256, %0\n\t"
1845 "vand %%v0, %%v0, %%v0"
1846 :
1847 : "r" (-1));
1848 ],[ 1849 ],[
1849 have_gcc_altivec=yes 1850 have_gcc_altivec=yes
1850 ]) 1851 ])
1851 if test x$have_gcc_altivec = xyes; then 1852 if test x$have_gcc_altivec = xno; then
1852 CFLAGS="$CFLAGS -DGCC_ALTIVEC" 1853 CFLAGS="${save_CFLAGS}"
1853 fi 1854 fi
1854 AC_MSG_RESULT($have_gcc_altivec) 1855 AC_MSG_RESULT($have_gcc_altivec)
1855 } 1856 }
1856 1857
1857 case "$target" in 1858 case "$target" in
2562 CheckDiskAudio 2563 CheckDiskAudio
2563 CheckQUARTZ 2564 CheckQUARTZ
2564 CheckMacGL 2565 CheckMacGL
2565 CheckPTHREAD 2566 CheckPTHREAD
2566 CheckSIGACTION 2567 CheckSIGACTION
2568 CheckAltivec
2567 # If either the audio or CD driver is used, add the AudioUnit framework 2569 # If either the audio or CD driver is used, add the AudioUnit framework
2568 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 2570 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
2569 SYSTEM_LIBS="$SYSTEM_LIBS -framework AudioToolbox -framework AudioUnit" 2571 SYSTEM_LIBS="$SYSTEM_LIBS -framework AudioToolbox -framework AudioUnit"
2570 fi 2572 fi
2571 # Set up files for the audio library 2573 # Set up files for the audio library