Hi, On 11/22/2012 12:34 PM, Francis Tyers wrote: > I've applied this upstream too.
Please note that this is quite Debian specific, calling dpkg-architecture in the process (configure). When using upstream, maybe sth. like the attached patch? Tested on powerpcspe. Roland
--- lttoolbox-3.1.0/configure.ac.orig 2012-11-22 13:24:46.881014846 +0100 +++ lttoolbox-3.1.0/configure.ac 2012-11-22 14:15:59.133778331 +0100 @@ -58,8 +58,22 @@ if test x$ARCH = xppc then AC_MSG_RESULT([PowerPC]) - CFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CFLAGS" - CXXFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CXXFLAGS" + AC_COMPILE_IFELSE([ +#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)) +error "Need GCC >= 3.4 for sane altivec support" +#endif +#include <altivec.h> +int main () { + vector unsigned int v = vec_splat_u32 (1); + v = vec_sub (v, v); + return 0; +}], [ + CFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CFLAGS" + CXXFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CXXFLAGS" + ],[ + CFLAGS="-Wall -ansi -mpowerpc -fno-pic -fomit-frame-pointer $CFLAGS" + CXXFLAGS="-Wall -ansi -mpowerpc -fno-pic -fomit-frame-pointer $CXXFLAGS" + ]) else if test x$ARCH = xi686 then