summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2008-06-06 22:33:21 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2008-06-06 22:33:21 (GMT)
commit711c9e954e6b0ff0fa415fc98e375d974ba847ca (patch)
tree983ebd4981c5786c1558031c096b6c285abf8996
parentec2fe78d47a938c61985f56611112ec8a85d09a3 (diff)
downloadcpython-711c9e954e6b0ff0fa415fc98e375d974ba847ca.zip
cpython-711c9e954e6b0ff0fa415fc98e375d974ba847ca.tar.gz
cpython-711c9e954e6b0ff0fa415fc98e375d974ba847ca.tar.bz2
Add long double check support to configure test.
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 2dea658..0066719 100644
--- a/configure.in
+++ b/configure.in
@@ -1321,6 +1321,17 @@ if test "$have_long_long" = yes ; then
AC_CHECK_SIZEOF(long long, 8)
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_long" = yes ; then
+AC_CHECK_SIZEOF(long double, 12)
+fi
+
AC_MSG_CHECKING(for _Bool support)
have_c99_bool=no
AC_TRY_COMPILE([], [_Bool x; x = (_Bool)0;], [