Hash :
bb091331
Author :
Date :
2011-10-08T22:32:31
New module 'log10f'. * lib/math.in.h (log10f): New declaration. * lib/log10f.c: New file. * m4/log10f.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F. * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F. * modules/log10f: New file. * tests/test-math-c++.cc: Check the declaration of log10f. * doc/posix-functions/log10f.texi: Mention the new module.
# log10f.m4 serial 1
dnl Copyright (C) 2011 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.
AC_DEFUN([gl_FUNC_LOG10F],
[
AC_REQUIRE([gl_MATH_H_DEFAULTS])
AC_REQUIRE([gl_FUNC_LOG10])
dnl Test whether log10f() exists. Assume that log10f(), if it exists, is
dnl defined in the same library as log10().
save_LIBS="$LIBS"
LIBS="$LIBS $LOG10_LIBM"
AC_CHECK_FUNCS([log10f])
LIBS="$save_LIBS"
if test $ac_cv_func_log10f = yes; then
LOG10F_LIBM="$LOG10_LIBM"
else
HAVE_LOG10F=0
LOG10F_LIBM="$LOG10_LIBM"
fi
AC_SUBST([LOG10F_LIBM])
])