From e8182741b56a182af57374b97ccc02510d39f929 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 5 Mar 2017 21:26:28 +0100 Subject: [PATCH] Less confusing autoconf checking messages --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6122496a..31b1c53e 100644 --- a/configure.ac +++ b/configure.ac @@ -301,9 +301,9 @@ dnl Checks for headers AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [ - AC_MSG_CHECKING(for MMX instructions set) oldcflags="$CFLAGS" AX_CHECK_COMPILE_FLAG([-mmmx], [CFLAGS="$CFLAGS -mmmx"]) + AC_MSG_CHECKING(for MMX instructions set) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #pragma GCC target("mmx") #include @@ -314,9 +314,9 @@ AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [ [AC_MSG_RESULT(no)]) CFLAGS="$oldcflags" - AC_MSG_CHECKING(for SSE2 instructions set) oldcflags="$CFLAGS" AX_CHECK_COMPILE_FLAG([-msse2], [CFLAGS="$CFLAGS -msse2"]) + AC_MSG_CHECKING(for SSE2 instructions set) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #pragma GCC target("sse2") #ifndef __SSE2__ @@ -324,7 +324,7 @@ AS_IF([test "x$EMSCRIPTEN" = "x" -a "$host_os" != "pnacl"], [ #endif #include ]], [[ __m128d x = _mm_setzero_pd(); - __m128i y = _mm_srli_epi64(_mm_setzero_si128(), 26); ]])], + __m128i z = _mm_srli_epi64(_mm_setzero_si128(), 26); ]])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_EMMINTRIN_H], [1], [sse2 is available]) AX_CHECK_COMPILE_FLAG([-msse2], [CFLAGS_SSE2="-msse2"])],