logl: Work around OSF/1 5.1 bug.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 01:48:48 +0000 (02:48 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 09:37:41 +0000 (10:37 +0100)
commit72983fb6b5bd6c7de54465eea29464bb9c0276cf
tree27e9d1be21bc38b6ce0ecf9535e5a07654630d60
parent7073cb033569232bd515271e99c5c7cba4ffbdf5
logl: Work around OSF/1 5.1 bug.

* lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
* lib/logl.c (logl): If logf exists, use it and provide just the
workaround.
* m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
(gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
* modules/math (Makefile.am): Substitute REPLACE_LOGL.
* modules/logl (configure.ac): Consider REPLACE_LOGL.
(Depends-on): Update conditions.
* doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
ChangeLog
doc/posix-functions/logl.texi
lib/logl.c
lib/math.in.h
m4/logl.m4
m4/math_h.m4
modules/logl
modules/math