X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fremainderl.m4;h=db5ef3aaceeda3b94fb313cfa422b90ed659797a;hb=53a617f5e118ec5642daa3da45fcef0bf5593b12;hp=b40464a836de38f5bec4be544f21b437e8a25e3e;hpb=77d42cc5aacc731bd4068de41ee73c716b6dd01c;p=gnulib.git diff --git a/m4/remainderl.m4 b/m4/remainderl.m4 index b40464a83..db5ef3aac 100644 --- a/m4/remainderl.m4 +++ b/m4/remainderl.m4 @@ -1,5 +1,5 @@ -# remainderl.m4 serial 6 -dnl Copyright (C) 2012 Free Software Foundation, Inc. +# remainderl.m4 serial 7 +dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -59,6 +59,7 @@ AC_DEFUN([gl_FUNC_REMAINDERL], m4_ifdef([gl_FUNC_REMAINDERL_IEEE], [ if test $gl_remainderl_required = ieee && test $REPLACE_REMAINDERL = 0; then + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether remainderl works according to ISO C 99 with IEC 60559], [gl_cv_func_remainderl_ieee], [ @@ -98,7 +99,13 @@ int main (int argc, char *argv[]) ]])], [gl_cv_func_remainderl_ieee=yes], [gl_cv_func_remainderl_ieee=no], - [gl_cv_func_remainderl_ieee="guessing no"]) + [case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_remainderl_ieee="guessing yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_remainderl_ieee="guessing no" ;; + esac + ]) LIBS="$save_LIBS" ]) case "$gl_cv_func_remainderl_ieee" in