From fa8a5f069fc45858a803cb05d967edd40d5aef38 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 12 Sep 2009 20:55:09 +0200 Subject: fixed AX_EXT macro to support non-x86 platforms --- acinclude.m4 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index ef47c978..2fc21e91 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -130,14 +130,18 @@ AC_DEFUN([AX_EXT], ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3` edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4` - - AC_CACHE_CHECK([whether sse2 is supported], [ax_have_sse2_ext], - [ + if test "x$edx" = "xunknown"; then ax_have_sse2_ext=no - if test "$((0x$edx>>26&0x01))" = 1; then - ax_have_sse2_ext=yes - fi - ]) + + else + AC_CACHE_CHECK([whether sse2 is supported], [ax_have_sse2_ext], + [ + ax_have_sse2_ext=no + if test "$((0x$edx>>26&0x01))" = 1; then + ax_have_sse2_ext=yes + fi + ]) + fi if test "$ax_have_sse2_ext" = yes; then AC_DEFINE(HAVE_SSE2, , [Support SSE2 (Streaming SIMD Extensions 2) instructions]) -- cgit v1.2.3