view m4/log10f-ieee.m4 @ 16747:676471a1cb33

log10f-ieee: Work around test failure on NetBSD 5.1. * m4/log10f-ieee.m4: New file. * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present, test whether log10f works with a negative argument. Replace it if not. * lib/log10f.c (log10f): For negative arguments, return NaN. * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG10F_IEEE. * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
author Bruno Haible <bruno@clisp.org>
date Sun, 01 Apr 2012 17:56:33 +0200
parents
children e542fd46ad6f
line wrap: on
line source

# log10f-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_LOG10F can test whether 'aclocal' has
dnl found uses of this macro.

AC_DEFUN([gl_FUNC_LOG10F_IEEE],
[
  m4_divert_text([INIT_PREPARE], [gl_log10f_required=ieee])
  AC_REQUIRE([gl_FUNC_LOG10F])
])