From 9f7d5e3afdd29f66215d6817b63835054516ff05 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Wed, 28 Sep 2016 22:29:06 +0300 Subject: [PATCH] added configure option to disable x86 SSE detection --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 240df9dd..b86131d0 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,11 @@ AC_ARG_WITH( , [with_user="nobody"] ) +AC_ARG_ENABLE([x86-sse], + AS_HELP_STRING([--enable-x86-sse=yes|no], [enable SSE/SS2 optimizations on x86 [default=yes]]), + , + [enable_x86_sse="yes"] +) ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])]) LIBS="${PTHREAD_LIBS} ${LIBS}" @@ -93,7 +98,7 @@ AS_CASE([$host_cpu], [i?86], [SSE_CANDIDATE="yes"] ) AC_SUBST([SSE_CANDIDATE]) -if test "${SSE_CANDIDATE}" = "yes"; then +if test "${SSE_CANDIDATE}" = "yes" -a "${enable_x86_sse}" = "yes"; then opt="-msse2 -mfpmath=sse" AX_CHECK_COMPILE_FLAG($opt, [CFLAGS="$CFLAGS $opt"], []) fi -- 2.39.2