]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: If ARM64 feature detection func is found, stop looking for others
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Apr 2024 19:21:51 +0000 (22:21 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 10 Apr 2024 20:12:23 +0000 (23:12 +0300)
This can speed up configure a tiny bit.

Fixes: c5f6d79cc9515a7f22d7ea4860c6cc394b295732
configure.ac

index b6f9f8b7a93c9a8dcd4665553060b1df681aa0a4..b8b52c9e5d1bb202fcb17b3490f5d1d4a659e801 100644 (file)
@@ -1091,7 +1091,7 @@ uint32_t my_crc(uint32_t a, uint64_t b)
 # The C code is responsible for checking defined(__APPLE__) before using
 # sysctlbyname("hw.optional.armv8_crc32", ...).
 AS_IF([test "x$enable_arm64_crc32" = xyes], [
-       AC_CHECK_FUNCS([getauxval elf_aux_info sysctlbyname])
+       AC_CHECK_FUNCS([getauxval elf_aux_info sysctlbyname], [break])
 ])