From f5d4e1dd759e8619d053a2c8867067ff89c11a27 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 12 Jan 2023 10:04:43 +0100 Subject: [PATCH] configure.ac: Do not probe for With GCC 12, this header file cannot be included on its own. Doing so fails with #error, but also produces many warnings related to implicit ints and implicit function declarations. This is inconvenient for distributions who are trying to switch to newer C versions (without implicit ints/function declarations), and monitor builds for suspicious warnings related to obsolete C features. --- configure.ac | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 0d4d6dc98e..c3287036f8 100644 --- a/configure.ac +++ b/configure.ac @@ -738,7 +738,7 @@ CXXFLAGS="${save_cxxflags} ${sse3_flags}" AC_CHECK_HEADERS([intrin.h x86intrin.h pmmintrin.h xmmintrin.h emmintrin.h]) CXXFLAGS="${save_cxxflags} ${avx_flags}" CPPFLAGS="${save_cppflags} ${avx_flags}" -AC_CHECK_HEADERS([immintrin.h avxintrin.h]) +AC_CHECK_HEADERS([immintrin.h]) AC_CHECK_DECLS([_xgetbv, xgetbv, __xgetbv, cpuid, _cpuid, __cpuid], [],[],[[ @@ -748,9 +748,6 @@ AC_CHECK_DECLS([_xgetbv, xgetbv, __xgetbv, cpuid, _cpuid, __cpuid], #if HAVE_IMMINTRIN_H # include #endif -#if HAVE_AVXINTRIN_H -# include -#endif #if HAVE_X86INTRIN_H # include #endif