blob: 76e698a3564adf990414c0e9a10c1d07bc868777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
This patch is unnecessary for raptor-2.0.5 and above, only to be used with 2.0.4
http://bugs.gentoo.org/show_bug.cgi?id=377253#c12
--- a/configure.ac 2011-09-10 22:31:37.791042002 -0700
+++ b/configure.ac 2011-09-10 22:51:12.789352501 -0700
@@ -407,8 +407,12 @@
#ifdef HAVE_MATH_H
#include <math.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
]], [[
-double d = trunc(1.0F) + round(1.0F);
+double t = atof("0.000");
+return (int)(trunc(t) * round(t));
]])],
AC_MSG_RESULT(yes)
trunc_round_lib=libc,
@@ -421,8 +425,12 @@
#ifdef HAVE_MATH_H
#include <math.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
]], [[
-double d = trunc(1.0F) + round(1.0F);
+double t = atof("0.000");
+return (int)(trunc(t) * round(t));
]])],
AC_MSG_RESULT(yes)
need_libm=1
|