diff --git a/configure.ac b/configure.ac index 6e5673ef50c4ff8e13a2af34e48dd0a44789f1fe..8f6bbce09e4589e255fa84ace34bac12258e4797 100644 --- a/configure.ac +++ b/configure.ac @@ -135,8 +135,8 @@ fi if $avx -o $avx2 -o $sse41; then case "${host_os}" in *darwin* | *-macos10*) - if test -z "$CLANG"; then - # When using AVX, AVX2, or SSE4.1: + if test g++ = "$CXX"; then + # When using AVX, AVX2, or SSE4.1 with g++: # Must tell AS to use clang integrated assembler, # instead of the GNU based system assembler. CXXFLAGS="$CXXFLAGS -Wa,-q"