From a3950b0d4237539d2e163b28b6a2197f92790ba0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 10 Oct 2011 23:35:54 +0200 Subject: ldexpl: Simplify for platforms where 'long double' == 'double'. * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative implementation. * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/ldexpl (Depends-on): Add ldexp. Update conditions. --- modules/ldexpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/ldexpl') diff --git a/modules/ldexpl b/modules/ldexpl index b6d3117343..35e52ab0ce 100644 --- a/modules/ldexpl +++ b/modules/ldexpl @@ -7,8 +7,9 @@ m4/ldexpl.m4 Depends-on: math -isnanl [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no] -fpucw [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no] +ldexp [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] +isnanl [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] +fpucw [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] configure.ac: gl_FUNC_LDEXPL -- cgit v1.2.1