hypotl-ieee: Work around test failure on OSF/1 and native Windows.
[gnulib.git] / m4 / hypotl-ieee.m4
diff --git a/m4/hypotl-ieee.m4 b/m4/hypotl-ieee.m4
new file mode 100644 (file)
index 0000000..c84bd45
--- /dev/null
@@ -0,0 +1,15 @@
+# hypotl-ieee.m4 serial 1
+dnl Copyright (C) 2012 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 hypotl.m4 and not inlined in the
+dnl module description), so that gl_FUNC_HYPOTL can test whether 'aclocal' has
+dnl found uses of this macro.
+
+AC_DEFUN([gl_FUNC_HYPOTL_IEEE],
+[
+  m4_divert_text([INIT_PREPARE], [gl_hypotl_required=ieee])
+  AC_REQUIRE([gl_FUNC_HYPOTL])
+])