cbrtl-ieee: Work around test failure on IRIX 6.5.
authorBruno Haible <bruno@clisp.org>
Thu, 1 Mar 2012 03:54:18 +0000 (04:54 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Mar 2012 03:54:18 +0000 (04:54 +0100)
commit8aa4d66e12c2b2cec1ed9792868f14724af2828c
tree763934e3508ca0ffa624c3802bc90437f244c253
parent5135f0da23c120466f43e31e3ad045701fe2e91d
cbrtl-ieee: Work around test failure on IRIX 6.5.

* m4/cbrtl-ieee.m4: New file.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
test whether cbrtl works with a minus zero argument. Replace it if not.
* lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
* modules/math (Makefile.am): Substitute REPLACE_CBRTL.
* modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
(Depends-on): Update conditions.
* modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
* lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
* doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
ChangeLog
doc/posix-functions/cbrtl.texi
lib/cbrtl.c
lib/math.in.h
m4/cbrtl-ieee.m4 [new file with mode: 0644]
m4/cbrtl.m4
m4/math_h.m4
modules/cbrtl
modules/cbrtl-ieee
modules/math