configure.ac: manually check immintrin.h with AC_COMPILE_IFELSE().
AC_CHECK_HEADER() emits warnings when configuring for non-x86, because the preprocessor check is OK but the compile check is not: configure: WARNING: immintrin.h: present but cannot be compiled configure: WARNING: immintrin.h: check for missing prerequisite headers? configure: WARNING: immintrin.h: see the Autoconf documentation configure: WARNING: immintrin.h: section "Present But Cannot Be Compiled" configure: WARNING: immintrin.h: proceeding with the compiler's result
This commit is contained in:
1 parent
ca383599b5
commit
2143534a1c
2 files changed
+21
-9
No files matched your search
+4
-4
@@ -729,9 +729,10 @@ if test x$enable_assembly = xyes; then
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADER(immintrin.h,
|
||||
have_immintrin_h_hdr=yes,
|
||||
have_immintrin_h_hdr=no)
|
||||
AC_MSG_CHECKING(for immintrin.h)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <immintrin.h>]])],
|
||||
[have_immintrin_h_hdr=yes],[have_immintrin_h_hdr=no])
|
||||
AC_MSG_RESULT($have_immintrin_h_hdr)
|
||||
if test x$have_immintrin_h_hdr = xyes; then
|
||||
AC_DEFINE(HAVE_IMMINTRIN_H, 1, [ ])
|
||||
fi
|
||||
@@ -4520,7 +4521,6 @@ if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
|
||||
SUMMARY="${SUMMARY}configure script with:\n"
|
||||
SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
|
||||
fi
|
||||
|
||||
if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
|
||||
SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
|
||||
SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
|
||||
|
||||
Reference in new issue
Block a user