Setup for 3.2.2dev.
[rsync.git] / configure.ac
index cc6769ab5f3a6416477a2ca013c248f3ecc094b4..bf04e99df519ced1d6e82657a91f3f76d70df559 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT([rsync],[3.2.1dev],[http://rsync.samba.org/bugzilla.html])
+AC_INIT([rsync],[3.2.2dev],[https://rsync.samba.org/bugtracking.html])
 
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR([byteorder.h])
@@ -217,7 +217,8 @@ __attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
 __attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
 typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
 typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
-inline void more_testing(char* buf, int len)
+__attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
+__attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
 {
     int i;
     for (i = 0; i < (len-32); i+=32) {
@@ -249,6 +250,11 @@ if test x"$SIMD" != x""; then
     SIMD='$(SIMD_'"$SIMD)"
     # We only use c++ for its target attribute dispatching, disable unneeded bulky features
     CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
+    # Apple often has "g++" as a symlink for clang. Try to find out the truth.
+    CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
+    case "$CXX_VERSION" in
+    *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
+    esac
 else
     AC_MSG_RESULT(no)
 fi