File: configure-flt.m4

package info (click to toggle)
scorched3d 44%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 112,612 kB
  • sloc: cpp: 135,987; xml: 36,739; makefile: 4,714; sh: 3,172; ansic: 1,407; perl: 541; java: 209; python: 188; sql: 159
file content (19 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl Floating point math
AC_MSG_CHECKING(for floating point math support)
have_fp=yes
AC_TRY_COMPILE([
	#include <math.h>
	],[
	float a = sinf(0.1f);
	],[
	have_fp=yes
	],[
	have_fp=no
])
AC_MSG_RESULT($have_fp)

if test x$have_fp != xyes; then
	CFLAGS="$CPPFLAGS -DNO_FLOAT_MATH"
	CPPFLAGS="$CPPFLAGS -DNO_FLOAT_MATH"
	CXXFLAGS="$CXXFLAGS -DNO_FLOAT_MATH"
fi