Hash :
0d37a2e6
Author :
Date :
2012-03-09T23:55:13
log: Work around OSF/1 5.1 bug. * lib/math.in.h (log): New declaration. * lib/log.c: New file. * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro. (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG. * m4/math_h.m4 (gl_MATH_H): Test whether log is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG. * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG. * modules/log (Files): Add lib/log.c. (Depends-on): Add math. (configure.ac): If REPLACE_LOG is 1, compile an override. * tests/test-math-c++.cc: Check the declaration of log. * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
Description:
log() function: natural logarithmic function.
Files:
lib/log.c
m4/log.m4
m4/mathfunc.m4
Depends-on:
math
configure.ac:
gl_FUNC_LOG
if test $REPLACE_LOG = 1; then
AC_LIBOBJ([log])
fi
gl_MATH_MODULE_INDICATOR([log])
Makefile.am:
Include:
<math.h>
Link:
$(LOG_LIBM)
License:
LGPL
Maintainer:
Bruno Haible