Displaying 1 result from an estimated 1 matches for "ac_cv_search_log1p".
2003 Aug 25
0
(PR#3979) Re: Re: R 1.7.x and inaccurate log1p() on OpenBSD
...0; I only rarely have access to
such systems.
AH_TEMPLATE(HAVE_BROKEN_LOG1P, [Define if log1p() is broken.])
AH_TEMPLATE(HAVE_LOG1P, [Define if log1p() is available.])
...
AC_SEARCH_LIBS(log1p, [m], AC_DEFINE(HAVE_LOG1P))
...
dnl Check for broken log1p() implementations
if test "$ac_cv_search_log1p" = "none required"
then
AC_MSG_CHECKING(for apparently-accurate log1p())
AC_TRY_RUN(
[
#include <stdio.h>
#include <math.h>
int
main(void)
{
int k;
double d;
double x;
/* log(1+x) = x - (1/2)x^2 + (1/3)x^3 - (1/4)x^4 ... */
/* = x for x s...