hypotl-ieee: Work around test failure on OSF/1 and native Windows.
authorBruno Haible <bruno@clisp.org>
Wed, 29 Feb 2012 19:50:49 +0000 (20:50 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 29 Feb 2012 19:51:44 +0000 (20:51 +0100)
commit14ad442f598655b0dad323d32c22e8b27ad6fb5c
tree174d1eae7e692cd42c2146af3d25ce9887391bf9
parentb3f31eeaa29521c15f6d5523a50c3061faf4384b
hypotl-ieee: Work around test failure on OSF/1 and native Windows.

* m4/hypotl-ieee.m4: New file.
* m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
test whether hypotl works with mixed NaN and Infinity arguments.
Replace it if not.
* lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
* modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
* modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
(Depends-on): Update conditions.
* modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
(Depends-on): Add hypot-ieee.
(configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
* doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
ChangeLog
doc/posix-functions/hypotl.texi
lib/math.in.h
m4/hypotl-ieee.m4 [new file with mode: 0644]
m4/hypotl.m4
m4/math_h.m4
modules/hypotl
modules/hypotl-ieee
modules/math