summaryrefslogtreecommitdiff
path: root/modules/ceill
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-10 01:04:13 +0200
committerBruno Haible <bruno@clisp.org>2011-10-10 01:04:13 +0200
commit1ac9a623b07722e14367dac9284372881aae3934 (patch)
tree90f5656a486dc1796f170e32fb4d7d634d865153 /modules/ceill
parenta2d812ba0a63e309653f803b15dabc1e904effcb (diff)
downloadgnulib-1ac9a623b07722e14367dac9284372881aae3934.tar.gz
ceill: Simplify for platforms where 'long double' == 'double'.
* lib/ceill.c: Include <config.h>. (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/ceill (Depends-on): Add ceil. Update conditions.
Diffstat (limited to 'modules/ceill')
-rw-r--r--modules/ceill3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ceill b/modules/ceill
index 4ab7f38575..a5d860fc20 100644
--- a/modules/ceill
+++ b/modules/ceill
@@ -9,7 +9,8 @@ m4/ceill.m4
Depends-on:
math
extensions
-float [test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1]
+ceil [{ test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
+float [{ test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
configure.ac:
gl_FUNC_CEILL