blob: ced5ad87c5efe4a4c9f8167a8fd2291a9a25e13c (
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
36
37
38
39
|
From e8684e66c22ce7463c86fb2c6b48451988769721 Mon Sep 17 00:00:00 2001
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.in | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/configure.in b/configure.in
index 9c5818a..aac9bd2 100644
--- a/configure.in
+++ b/configure.in
@@ -1364,16 +1364,8 @@ if test "$ac_cv_type_long_long" = "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_TRY_COMPILE([], [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
--
1.5.6.3
|