summaryrefslogtreecommitdiff
path: root/modules/rintl
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-10 01:08:51 +0200
committerBruno Haible <bruno@clisp.org>2011-10-10 01:08:51 +0200
commit11368c16b7faaff172abbfd8b25303389c7031e5 (patch)
treea4c9ca2f0920bf72f02cc1360fe228b7d724874e /modules/rintl
parenta25368f150046137109aa8cf58cb85dc6bc234b5 (diff)
downloadgnulib-11368c16b7faaff172abbfd8b25303389c7031e5.tar.gz
rintl: Simplify for platforms where 'long double' == 'double'.
* lib/rintl.c: Include <config.h>. (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/rintl (Depends-on): Add rint. Update conditions.
Diffstat (limited to 'modules/rintl')
-rw-r--r--modules/rintl1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rintl b/modules/rintl
index 80a0f528ae..dac26185f2 100644
--- a/modules/rintl
+++ b/modules/rintl
@@ -9,6 +9,7 @@ m4/mathfunc.m4
Depends-on:
math
+rint [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
configure.ac:
gl_FUNC_RINTL