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 <tom.tsou@ettus.com>
This commit is contained in:
parent
577cd020c1
commit
6613331459
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue