Hash :
3c7a0ee5
Author :
Date :
2012-03-11T22:14:04
log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10. * m4/log2f-ieee.m4: New file. * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test whether log2f works with a minus zero argument. Replace it if not. * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4. (Depends-on): Add log2-ieee. (configure.ac): Invoke gl_FUNC_LOG2F_IEEE. * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
# log2f-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 remainder.m4 and not inlined in the
dnl module description), so that gl_FUNC_LOG2F can test whether 'aclocal' has
dnl found uses of this macro.
AC_DEFUN([gl_FUNC_LOG2F_IEEE],
[
m4_divert_text([INIT_PREPARE], [gl_log2f_required=ieee])
AC_REQUIRE([gl_FUNC_LOG2F])
])