>From d8d516c46527eb5a30bda9ceb10720bef41e46db Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 26 Jul 2020 12:07:32 +0200 Subject: [PATCH 2/2] ceill: Change configure message. * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..." instead of "checking whether ceill() breaks with small values...". --- ChangeLog | 6 ++++++ m4/ceill.m4 | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87b873b..ed6127b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2020-07-26 Bruno Haible + ceill: Change configure message. + * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..." + instead of "checking whether ceill() breaks with small values...". + +2020-07-26 Bruno Haible + iconv: Change configure message. * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible with its POSIX signature..." instead of "checking for iconv diff --git a/m4/ceill.m4 b/m4/ceill.m4 index 1add841..78de5a0 100644 --- a/m4/ceill.m4 +++ b/m4/ceill.m4 @@ -1,4 +1,4 @@ -# ceill.m4 serial 20 +# ceill.m4 serial 21 dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -74,31 +74,31 @@ int main (int argc, char *argv[]) HAVE_DECL_CEILL=0 fi dnl On OpenBSD5.6 the system's native ceill() is buggy: - dnl it returns '0' for small values. Test for this anomaly. + dnl it returns '0' for small values. Test against this anomaly. if test $REPLACE_CEILL = 0 ; then - AC_CACHE_CHECK([whether ceill() breaks with small values], - [gl_cv_func_ceill_buggy], - [ - save_LIBS="$LIBS" - LIBS="$CEILL_LIBM" - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[#include + AC_CACHE_CHECK([whether ceill() works], + [gl_cv_func_ceill_works], + [save_LIBS="$LIBS" + LIBS="$CEILL_LIBM" + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include long double d = 0.3L;]], - [[return (!(ceill (d) == 1)); ]])], - [gl_cv_func_ceill_buggy=no], [gl_cv_func_ceill_buggy=yes], - [case "$host_os" in - openbsd*) gl_cv_func_ceill_buggy="guessing yes" ;; - # Guess no on native Windows. - mingw*) gl_cv_func_ceill_buggy="guessing no" ;; - *) gl_cv_func_ceill_buggy="guessing no" ;; - esac - ]) - LIBS="$save_LIBS" - ]) - case "$gl_cv_func_ceill_buggy" in - *yes) - REPLACE_CEILL=1 ;; + [[return (!(ceill (d) == 1)); ]])], + [gl_cv_func_ceill_works=yes], + [gl_cv_func_ceill_works=no], + [case "$host_os" in + openbsd*) gl_cv_func_ceill_works="guessing no" ;; + # Guess yes on native Windows. + mingw*) gl_cv_func_ceill_works="guessing yes" ;; + *) gl_cv_func_ceill_works="guessing yes" ;; + esac + ]) + LIBS="$save_LIBS" + ]) + case "$gl_cv_func_ceill_works" in + *yes) ;; + *) REPLACE_CEILL=1 ;; esac fi if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then -- 2.7.4