From: DRC Date: Fri, 1 Sep 2017 14:01:00 +0000 (-0500) Subject: Build: Fix AltiVec detection on OS X Leopard X-Git-Tag: 1.5.3~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ded4dfac630c012c7985a5ed136c5f5eb3502ee;p=libjpeg-turbo Build: Fix AltiVec detection on OS X Leopard The ability to directly access elements of an AltiVec vector is apparently a more recent thing. --- diff --git a/acinclude.m4 b/acinclude.m4 index eb44007..113169f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -263,7 +263,9 @@ AC_DEFUN([AC_CHECK_ALTIVEC],[ #include int main(void) { __vector int vi = { 0, 0, 0, 0 }; - return vi[0]; + int i[4]; + vec_st(vi, 0, i); + return i[0]; }]])], ac_has_altivec=yes) CFLAGS="$ac_save_CFLAGS" if test "x$ac_has_altivec" = "xyes" ; then