log10f: Work around OSF/1 5.1 bug.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Apr 2012 12:29:37 +0000 (14:29 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Apr 2012 14:37:09 +0000 (16:37 +0200)
commitac05a13b444792260deaadfeb15f5c137ba9072b
tree8072d6ce2006718c8d06a15574dedf1469c4d5ac
parent54be6af60f46a82b2d9051cd939169cd288ed52c
log10f: Work around OSF/1 5.1 bug.

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