X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Flogb.m4;h=7d57baf6a42a9a85f87aef4fd73ad25b936eb94c;hb=14c0eff67c28b3adafbb9a98424eec4a2714e0bb;hp=855d5ec2c7bc7a828825565a31921b7832bddac4;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/m4/logb.m4 b/m4/logb.m4 index 855d5ec2c..7d57baf6a 100644 --- a/m4/logb.m4 +++ b/m4/logb.m4 @@ -1,4 +1,4 @@ -# logb.m4 serial 2 +# logb.m4 serial 4 dnl Copyright (C) 2010-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, @@ -8,7 +8,7 @@ AC_DEFUN([gl_FUNC_LOGB], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) dnl Test whether logb() is declared. - AC_CHECK_DECLS([logb], , , [#include ]) + AC_CHECK_DECLS([logb], , , [[#include ]]) if test "$ac_cv_have_decl_logb" != yes; then HAVE_DECL_LOGB=0 fi @@ -20,7 +20,11 @@ AC_DEFUN([gl_FUNC_LOGB], # define __NO_MATH_INLINES 1 /* for glibc */ #endif #include - extern double logb (double x); + extern + #ifdef __cplusplus + "C" + #endif + double logb (double x); double x;]], [[x = logb(x);]])], [LOGB_LIBM=]) @@ -33,7 +37,11 @@ AC_DEFUN([gl_FUNC_LOGB], # define __NO_MATH_INLINES 1 /* for glibc */ #endif #include - extern double logb (double x); + extern + #ifdef __cplusplus + "C" + #endif + double logb (double x); double x;]], [[x = logb(x);]])], [LOGB_LIBM="-lm"])