round: Don't override undeclared system function on IRIX 6.5.
authorBruno Haible <bruno@clisp.org>
Thu, 8 Mar 2012 00:26:03 +0000 (01:26 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 8 Mar 2012 00:52:49 +0000 (01:52 +0100)
commitc0ea2abaac8565cdf5331b43e1608df1f43f415f
tree4d04635797b805cc3529ae524712f9fcb5c08fc6
parent0d9ccdd3faa9b6f2e89ecaffe9f27aa88cc01258
round: Don't override undeclared system function on IRIX 6.5.

* m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
argument.
* m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
also when it is not declared. Set HAVE_ROUND. For replacement code,
test HAVE_ROUND, not HAVE_DECL_ROUND.
* modules/round (configure.ac): For replacement code, test HAVE_ROUND,
not HAVE_DECL_ROUND.
(Depends-on): Update conditions.
* modules/round-ieee (Depends-on): Update conditions.
* doc/posix-functions/round.texi: Mention the IRIX problem.
ChangeLog
doc/posix-functions/round.texi
m4/check-math-lib.m4
m4/round.m4
modules/round
modules/round-ieee