git-svn-id: https://scorched3d.svn.sourceforge.net/svnroot/scorched3d/trunk/scorched...
[scorched3d/parasti.git] / configure-flt.m4
blobb9939b9d1b992235ca23770bbf828bdf6f74e737
1 dnl Floating point math
2 AC_MSG_CHECKING(for floating point math support)
3 have_fp=yes
4 AC_TRY_COMPILE([
5         #include <math.h>
6         ],[
7         float a = sinf(0.1f);
8         ],[
9         have_fp=yes
10         ],[
11         have_fp=no
13 AC_MSG_RESULT($have_fp)
15 if test x$have_fp != xyes; then
16         CFLAGS="$CPPFLAGS -DNO_FLOAT_MATH"
17         CPPFLAGS="$CPPFLAGS -DNO_FLOAT_MATH"
18         CXXFLAGS="$CXXFLAGS -DNO_FLOAT_MATH"