]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
configure: check for 'better' yasm that can build ISA-L
authorSage Weil <sage@redhat.com>
Thu, 31 Jul 2014 22:18:51 +0000 (15:18 -0700)
committerSage Weil <sage@redhat.com>
Thu, 31 Jul 2014 22:18:51 +0000 (15:18 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
configure.ac
src/erasure-code/Makefile.am

index 9506b427a3599275d5913e3592ab5438ed73db6c..41cf0d36c712d4122aa02905139f331625130ea8 100644 (file)
@@ -91,11 +91,21 @@ if yasm -f elf64 src/common/crc32c_intel_fast_asm.S -o /dev/null; then
       echo 'we are x86_64'
       AC_DEFINE([HAVE_GOOD_YASM_ELF64], [1], [we have a recent yasm and are x86_64])
       with_good_yasm=yes
+
+      if yasm -f elf64 -i src/ceph/src/ceph/src/erasure-code/isa/isa-l/include/ src/erasure-code/isa/isa-l/erasure_code/gf_vect_dot_prod_avx2.asm.s -o /dev/null 2> /dev/null ; then
+         echo 'yasm can also build the isa-l stuff'
+        with_better_yasm=yes
+      else
+         echo "yasm doesn't build the isa-l stuff"
+      fi
    fi
 else
    echo 'we do not have a modern/working yasm'
 fi
 AM_CONDITIONAL(WITH_GOOD_YASM_ELF64, test "$with_good_yasm" = "yes")
+AM_CONDITIONAL(WITH_BETTER_YASM_ELF64, test "$with_better_yasm" = "yes")
+
+# check for better yasm
 
 # Checks for compiler warning types
 
index 3edc7310d6b98caee0efddf46a518d2245fb691f..353620be905912c3e9c2acf63dbf69b57216e4db 100644 (file)
@@ -5,9 +5,9 @@ erasure_codelib_LTLIBRARIES =
 
 include erasure-code/jerasure/Makefile.am
 
-if WITH_GOOD_YASM_ELF64
+if WITH_BETTER_YASM_ELF64
 include erasure-code/isa/Makefile.am
-endif # WITH_GOOD_YASM_ELF64
+endif # WITH_BETTER_YASM_ELF64
 
 liberasure_code_la_SOURCES = \
        erasure-code/ErasureCodePlugin.cc