diff --git a/configure.ac b/configure.ac index 5698cdf5..a578e5b8 100644 --- a/configure.ac +++ b/configure.ac @@ -1054,15 +1054,7 @@ AC_MSG_CHECKING([if ARM64 CRC32 instruction is usable]) AS_IF([test "x$enable_arm64_crc32" = xno], [ AC_MSG_RESULT([no, --disable-arm64-crc32 was used]) ], [ - # Set -Werror here because some versions of Clang (14 and older) - # do not report the unsupported __attribute__((__target__("+crc"))) - # or __crc32d() as an error, only as a warning. This does not need - # to be done with CMake because tests will attempt to link and the - # error will be reported then. - OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + AC_LINK_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -1082,8 +1074,6 @@ int main(void) enable_arm64_crc32=no ]) AC_MSG_RESULT([$enable_arm64_crc32]) - - CFLAGS="$OLD_CFLAGS" ]) # Check for ARM64 CRC32 instruction runtime detection.