]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commitdiff
Adding option to disable SSE support in configure
authorKevin Greenan <kmg@box.com>
Mon, 9 Jun 2014 18:37:29 +0000 (11:37 -0700)
committerKevin Greenan <kmg@box.com>
Mon, 9 Jun 2014 18:37:29 +0000 (11:37 -0700)
configure.ac

index 4e91dc7cb84c665c6687c9d4e8c1196decdc739a..32b7250dfa76d974503fbcb8e0990627c8f69701 100644 (file)
@@ -36,6 +36,14 @@ AC_TYPE_UINT32_T
 AC_TYPE_UINT64_T
 AX_EXT
 
+AC_ARG_ENABLE([sse],
+              AS_HELP_STRING([--disable-sse], [Build without SSE optimizations]),
+              [if   test "x$enableval" = "xno" ; then
+                SIMD_FLAGS=""
+                echo "DISABLED SSE!!!"
+              fi]
+)
+
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([bzero getcwd gettimeofday mkdir strchr strdup strrchr])