log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Apr 2012 15:10:01 +0000 (17:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Apr 2012 15:10:01 +0000 (17:10 +0200)
commit826cf481e0ecd51490b450c6dfcca6bd16e613b3
tree0b6c92a34593ab2007ced2d5be55172471bc2528
parent8809bab2c5b28a6a735e0caff85cb883cd1e0ca7
log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.

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