summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGravatar waker <waker@titty.(none)>2009-09-12 20:55:09 +0200
committerGravatar waker <waker@titty.(none)>2009-09-12 20:55:09 +0200
commitfa8a5f069fc45858a803cb05d967edd40d5aef38 (patch)
tree3170476778f2ba2a505ee4d6e23c53139c795547 /acinclude.m4
parentedff4244bbe3d8d9ce55b89d231784743b17e7fd (diff)
fixed AX_EXT macro to support non-x86 platforms
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m418
1 files 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])