From: Wayne Davison Date: Wed, 23 Sep 2020 00:19:45 +0000 (-0700) Subject: Change from $build_cpu to $host_cpu as edo1 suggested. X-Git-Tag: v3.2.4pre1~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7eb59a9152a2ace7bc7858e9915c671b3ab54344;p=thirdparty%2Frsync.git Change from $build_cpu to $host_cpu as edo1 suggested. --- diff --git a/configure.ac b/configure.ac index 109546a6..e8c06f42 100644 --- a/configure.ac +++ b/configure.ac @@ -211,7 +211,7 @@ CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'` if test x"$enable_simd" != x"no"; then # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required - if test x"$build_cpu" = x"x86_64"; then + if test x"$host_cpu" = x"x86_64"; then AC_LANG(C++) AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include #include @@ -283,8 +283,8 @@ AC_ARG_ENABLE(asm, AS_HELP_STRING([--disable-asm],[disable ASM optimizations])) if test x"$enable_asm" != x"no"; then - if test x"$build_cpu" = x"x86_64"; then - ASM="$build_cpu" + if test x"$host_cpu" = x"x86_64"; then + ASM="$host_cpu" elif test x"$enable_asm" = x"yes"; then AC_MSG_RESULT(unavailable) AC_MSG_ERROR(The ASM optimizations are currently x86_64 only.