1[PATCH] fix altivec.h detection 2 3Patch from Gentoo: 4 5http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch?revision=1.1&view=markup 6 7Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> 8--- a/configure.ac.bak 2010-05-25 17:12:14.756245990 +0000 9+++ b/configure.ac 2010-05-25 17:11:51.629581723 +0000 10@@ -79,11 +79,10 @@ 11 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" 12 AC_MSG_CHECKING([if <altivec.h> is needed]) 13 AC_TRY_COMPILE([], 14- [typedef vector int t; 15- vec_ld(0, (unsigned char *)0);], 16+ [vector int t; t = vec_add(t,t);], 17 [have_altivec=yes; AC_MSG_RESULT(no)], 18 [AC_TRY_COMPILE([#include <altivec.h>], 19- [typedef vector int t; vec_ld(0, (unsigned char *)0);], 20+ [vector int t; t = vec_add(t,t);], 21 [AC_DEFINE([HAVE_ALTIVEC_H],, 22 [Define to 1 if you have the <altivec.h> header.]) 23 have_altivec=yes; AC_MSG_RESULT(yes)], 24