X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fisinf.m4;h=145e37e669b39a8f23a5b1b62cb2b81c69ce7f43;hb=208e667b5f8c696e723da34171fbaa6f01246f3b;hp=6edf48697d366faf02a539d72efbf22fed3ea6a8;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/m4/isinf.m4 b/m4/isinf.m4 index 6edf48697..145e37e66 100644 --- a/m4/isinf.m4 +++ b/m4/isinf.m4 @@ -1,5 +1,5 @@ -# isinf.m4 serial 2 -dnl Copyright (C) 2007-2009 Free Software Foundation, Inc. +# isinf.m4 serial 5 +dnl Copyright (C) 2007-2011 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. @@ -11,7 +11,7 @@ AC_DEFUN([gl_ISINF], AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS([isinf], , , [#include ]) if test "$ac_cv_have_decl_isinf" = yes; then - gl_CHECK_MATH_LIB([ISINF_LIBM], [x = isinf (x);]) + gl_CHECK_MATH_LIB([ISINF_LIBM], [x = isinf (x) + isinf ((float) x);]) if test "$ISINF_LIBM" != missing; then dnl Test whether isinf() on 'long double' works. gl_ISINFL_WORKS @@ -24,10 +24,9 @@ AC_DEFUN([gl_ISINF], if test "$ac_cv_have_decl_isinf" != yes || test "$ISINF_LIBM" = missing; then REPLACE_ISINF=1 - AC_LIBOBJ([isinf]) + dnl No libraries are needed to link lib/isinf.c. ISINF_LIBM= fi - AC_SUBST([REPLACE_ISINF]) AC_SUBST([ISINF_LIBM]) ])