mirror of https://github.com/encounter/SDL.git
configure.in: Check for sse3 too when setting -mfpmath=387.
This commit is contained in:
parent
1da3a33773
commit
36cb05a8f8
|
@ -1524,7 +1524,7 @@ Optional Features:
|
||||||
--enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
|
--enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
|
||||||
--enable-assembly Enable assembly routines [[default=yes]]
|
--enable-assembly Enable assembly routines [[default=yes]]
|
||||||
--enable-ssemath Allow GCC to use SSE floating point math
|
--enable-ssemath Allow GCC to use SSE floating point math
|
||||||
[[default=no]]
|
[[default=maybe]]
|
||||||
--enable-mmx use MMX assembly routines [[default=yes]]
|
--enable-mmx use MMX assembly routines [[default=yes]]
|
||||||
--enable-3dnow use 3DNow! assembly routines [[default=yes]]
|
--enable-3dnow use 3DNow! assembly routines [[default=yes]]
|
||||||
--enable-sse use SSE assembly routines [[default=yes]]
|
--enable-sse use SSE assembly routines [[default=yes]]
|
||||||
|
@ -17083,7 +17083,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_ssemath = xno; then
|
if test x$enable_ssemath = xno; then
|
||||||
if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
|
if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -479,10 +479,10 @@ if test x$enable_assembly = xyes; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_ARG_ENABLE(ssemath,
|
AC_ARG_ENABLE(ssemath,
|
||||||
AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]),
|
AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=maybe]]]),
|
||||||
, enable_ssemath=$default_ssemath)
|
, enable_ssemath=$default_ssemath)
|
||||||
if test x$enable_ssemath = xno; then
|
if test x$enable_ssemath = xno; then
|
||||||
if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
|
if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
|
||||||
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
|
EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue