From 6613331459351489436d9f91129a47750a46020f Mon Sep 17 00:00:00 2001 From: Tom Tsou Date: Mon, 18 May 2015 16:26:33 -0700 Subject: build: Provide option for disabling SSE autodetection Setup '--with-sse' option to check system capabilities by default, but allow disabling by the user. Selective SSE build options can be controlled by the user by defining specific HAVE_SSE options. Signed-off-by: Tom Tsou --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b2fe1e9..0a64dee 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,11 @@ AC_ARG_WITH(neon-vfpv4, [ [enable ARM NEON FMA support]) ]) +AC_ARG_WITH(sse, [ + AS_HELP_STRING([--with-sse], + [enable x86 SSE support (default)]) +]) + AS_IF([test "x$with_neon" = "xyes"], [ AC_DEFINE(HAVE_NEON, 1, Support ARM NEON) ]) @@ -101,7 +106,9 @@ AS_IF([test "x$with_singledb" = "xyes"], [ ]) # Find and define supported SIMD extensions -AX_EXT +AS_IF([test "x$with_sse" != "xno"], [ + AX_EXT +]) AM_CONDITIONAL(USRP1, [test "x$with_usrp1" = "xyes"]) AM_CONDITIONAL(ARCH_ARM, [test "x$with_neon" = "xyes" || test "x$with_neon_vfpv4" = "xyes"]) -- cgit v1.2.3