Hash :
81018344
Author :
Date :
2012-03-10T12:26:57
log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11. * m4/log-ieee.m4: New file. * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether log works with a negative argument. Replace it if not. * lib/log.c (log): For negative arguments, return NaN. * modules/log-ieee (Files): Add m4/log-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG_IEEE. * doc/posix-functions/log.texi: Mention the log-ieee module.
# log-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_LOG can test whether 'aclocal' has
dnl found uses of this macro.
AC_DEFUN([gl_FUNC_LOG_IEEE],
[
m4_divert_text([INIT_PREPARE], [gl_log_required=ieee])
AC_REQUIRE([gl_FUNC_LOG])
])