summaryrefslogtreecommitdiff
path: root/m4/floorf-ieee.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-21 05:04:13 +0100
committerBruno Haible <bruno@clisp.org>2010-12-21 17:30:27 +0100
commit1d7de2b4c343cfb0eb4d1171acf0877630e32151 (patch)
tree6391eb2cf13db8a2836cb6e8235fcce172c0ac43 /m4/floorf-ieee.m4
parentd896f0b2b2a00b53abc0a4e9786f03c5a60a8b9f (diff)
downloadgnulib-1d7de2b4c343cfb0eb4d1171acf0877630e32151.tar.gz
New module 'floorf-ieee'.
* modules/floorf-ieee: New file. * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used, test whether floorf works according to ISO C 99 with IEC 60559. * m4/floorf-ieee.m4: New file. * modules/floorf-ieee-tests: New file. * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c. * tests/test-floorf1.c (main): Remove signbit tests. * modules/floorf-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/floorf.texi: Mention the new module.
Diffstat (limited to 'm4/floorf-ieee.m4')
-rw-r--r--m4/floorf-ieee.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/floorf-ieee.m4 b/m4/floorf-ieee.m4
new file mode 100644
index 0000000000..c09ac797fd
--- /dev/null
+++ b/m4/floorf-ieee.m4
@@ -0,0 +1,15 @@
+# floorf-ieee.m4 serial 1
+dnl Copyright (C) 2010 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl This macro is in a separate file (not in floorf.m4 and not inlined in the
+dnl module description), so that gl_FUNC_FLOORF can test whether 'aclocal' has
+dnl found uses of this macro.
+
+AC_DEFUN([gl_FUNC_FLOORF_IEEE],
+[
+ m4_divert_text([INIT_PREPARE], [gl_floorf_required=ieee])
+ AC_REQUIRE([gl_FUNC_FLOORF])
+])