logf-ieee: Work around test failure on NetBSD 5.1.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 15:05:56 +0000 (16:05 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 15:08:06 +0000 (16:08 +0100)
commit14a3c6e4da8e6c5e65d0bba54cd42a91fd582603
tree3d28190eac440afcf939c2a961676058d19c846c
parent204f9216c0518251439234fe17bd2f7798156aa3
logf-ieee: Work around test failure on NetBSD 5.1.

* m4/logf-ieee.m4: New file.
* m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
whether logf works with a negative argument. Replace it if not.
* lib/logf.c (logf): For negative arguments, return NaN.
* modules/logf-ieee (Files): Add m4/logf-ieee.m4.
(configure.ac): Invoke gl_FUNC_LOGF_IEEE.
* doc/posix-functions/logf.texi: Mention the logf-ieee module.
ChangeLog
doc/posix-functions/logf.texi
lib/logf.c
m4/logf-ieee.m4 [new file with mode: 0644]
m4/logf.m4
modules/logf-ieee