log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 11:26:57 +0000 (12:26 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 15:08:03 +0000 (16:08 +0100)
commit810183441d657ca09f906ee4d916ac55a1b6127f
tree68ec2eae42c51bcb14d34fa45fce8ef1edd65794
parent370a139a641c5f9c659e44ee1554893f7d87e20f
log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.

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