and monitor GL state etc. and get it right sharing state with
evas without having to rely specifically on a new GL context.
+2011-12-07 Carsten Haitzler (The Rasterman)
+
+ * Fix build if gcc too old - if immintrin.h doesn't exist,
+ don't enable SSE3.
+
AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]),
[
if test "x$enableval" = "xyes" ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
- build_cpu_sse3="yes"
+ AC_CHECK_HEADER(immintrin.h,
+ [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
+ build_cpu_sse3="yes"
+ ],
+ [
+ AC_MSG_RESULT(no)
+ build_cpu_sse3="no"
+ ])
else
AC_MSG_RESULT(no)
build_cpu_sse3="no"
[
AC_MSG_RESULT($build_cpu_sse3)
if test "x$build_cpu_sse3" = "xyes" ; then
- AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
+ AC_CHECK_HEADER(immintrin.h,
+ [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
+ build_cpu_sse3="yes"
+ ],
+ [
+ AC_MSG_RESULT(no)
+ build_cpu_sse3="no"
+ ])
fi
]
)