mirror of https://github.com/BOINC/boinc.git
configure.ac: Do not probe for <avxintrin.h>
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.
This commit is contained in:
parent
5f4723db47
commit
f5d4e1dd75
|
@ -738,7 +738,7 @@ CXXFLAGS="${save_cxxflags} ${sse3_flags}"
|
||||||
AC_CHECK_HEADERS([intrin.h x86intrin.h pmmintrin.h xmmintrin.h emmintrin.h])
|
AC_CHECK_HEADERS([intrin.h x86intrin.h pmmintrin.h xmmintrin.h emmintrin.h])
|
||||||
CXXFLAGS="${save_cxxflags} ${avx_flags}"
|
CXXFLAGS="${save_cxxflags} ${avx_flags}"
|
||||||
CPPFLAGS="${save_cppflags} ${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],
|
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
|
#if HAVE_IMMINTRIN_H
|
||||||
# include <immintrin.h>
|
# include <immintrin.h>
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_AVXINTRIN_H
|
|
||||||
# include <avxintrin.h>
|
|
||||||
#endif
|
|
||||||
#if HAVE_X86INTRIN_H
|
#if HAVE_X86INTRIN_H
|
||||||
# include <x86intrin.h>
|
# include <x86intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue