fmod-ieee: Work around test failures on OSF/1, mingw.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Feb 2012 11:28:29 +0000 (12:28 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 27 Feb 2012 12:06:17 +0000 (13:06 +0100)
commit31bd9abc724408136434f6a6182c19323aba6b9e
tree7c4988675c20a33ecb58bca1bc6e199bdc88619d
parent9e83e486f6e0949ad5d3843011ae88c495681727
fmod-ieee: Work around test failures on OSF/1, mingw.

* m4/fmod-ieee.m4: New file.
* m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
whether fmod works with zero arguments. Replace it if not.
* lib/math.in.h (fmod): New declaration.
* lib/fmod.c: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
* modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
* modules/fmod (Files): Add lib/fmod.c.
(Depends-on): Add math, isinf, trunc, fma.
(configure.ac): Arrange to compile lib/fmod.c if needed.
* modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_FMOD_IEEE.
* tests/test-math-c++.cc: Check the declaration of fmod.
* doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
ChangeLog
doc/posix-functions/fmod.texi
lib/fmod.c [new file with mode: 0644]
lib/math.in.h
m4/fmod-ieee.m4 [new file with mode: 0644]
m4/fmod.m4
m4/math_h.m4
modules/fmod
modules/fmod-ieee
modules/math
tests/test-math-c++.cc