blob: f6c3f9143956e8df9abf57f97df99f82c539b52a (
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
35
|
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Fri, 24 Apr 2009 18:47:19 +0200
Subject: [PATCH] use AC_TYPE_LONG_DOUBLE to detect long double support
use the correct AC_TYPE_LONG_DOUBLE function rahter than hand crafted
test to detect long double support.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
configure.ac | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index c9cb9c802882..c89e4a601cf1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1890,16 +1890,8 @@ if test "$ac_cv_type_long_long_int" = "yes" ; then
AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.])
fi
-AC_MSG_CHECKING(for long double support)
-have_long_double=no
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]])],[
- AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.])
- have_long_double=yes
-],[])
-AC_MSG_RESULT($have_long_double)
-if test "$have_long_double" = yes ; then
-AC_CHECK_SIZEOF(long double, 12)
-fi
+AC_TYPE_LONG_DOUBLE
+AC_CHECK_SIZEOF(long double)
AC_MSG_CHECKING(for _Bool support)
have_c99_bool=no
|