diff options
Diffstat (limited to 'm4/ceil.m4')
-rw-r--r-- | m4/ceil.m4 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/ceil.m4 b/m4/ceil.m4 index fd9ac4cb5..890517b49 100644 --- a/m4/ceil.m4 +++ b/m4/ceil.m4 @@ -1,4 +1,4 @@ -# ceil.m4 serial 8 +# ceil.m4 serial 9 dnl Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -15,6 +15,7 @@ AC_DEFUN([gl_FUNC_CEIL], fi m4_ifdef([gl_FUNC_CEIL_IEEE], [ if test $gl_ceil_required = ieee && test $REPLACE_CEIL = 0; then + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether ceil works according to ISO C 99 with IEC 60559], [gl_cv_func_ceil_ieee], [ @@ -44,7 +45,13 @@ int main (int argc, char *argv[]) ]])], [gl_cv_func_ceil_ieee=yes], [gl_cv_func_ceil_ieee=no], - [gl_cv_func_ceil_ieee="guessing no"]) + [case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_ceil_ieee="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_ceil_ieee="guessing no" ;; + esac + ]) LIBS="$save_LIBS" ]) case "$gl_cv_func_ceil_ieee" in |