Check for immintrin.h before using it in SDL_cpuinfo.h

This commit is contained in:
Sam Lantinga committed 2017-12-11 12:00:12 -08:00
1 parent 1b16618b13
commit f1ec8a5f4c
6 files changed
+46 -5

No files matched your search

+7
View File
@@ -670,6 +670,13 @@ AC_HELP_STRING([--enable-sse3], [use SSE3 assembly routines [[default=maybe]]]),
fi
fi
AC_CHECK_HEADER(immintrin.h,
have_immintrin_h_hdr=yes,
have_immintrin_h_hdr=no)
if test x$have_immintrin_h_hdr = xyes; then
AC_DEFINE(HAVE_IMMINTRIN_H, 1, [ ])
fi
AC_ARG_ENABLE(altivec,
AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),
, enable_altivec=yes)