diff options
author | Bruno Haible <bruno@clisp.org> | 2011-10-10 01:04:13 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-10 01:04:13 +0200 |
commit | 1ac9a623b07722e14367dac9284372881aae3934 (patch) | |
tree | 90f5656a486dc1796f170e32fb4d7d634d865153 /modules/ceill | |
parent | a2d812ba0a63e309653f803b15dabc1e904effcb (diff) | |
download | gnulib-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/ceill | 3 |
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 |