From 181e39ab350fae479c96e345262d7b6a53082923 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 11 Mar 2012 20:50:08 +0100 Subject: New module 'log2l'. * lib/math.in.h (log2l): New declaration. * lib/log2l.c: New file. * m4/log2l.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L, REPLACE_LOG2L. * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L, REPLACE_LOG2L. * modules/log2l: New file. * tests/test-math-c++.cc: Check the declaration of log2l. * doc/posix-functions/log2l.texi: Mention the new module and the IRIX and OSF/1 problems. --- modules/log2l | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 modules/log2l (limited to 'modules/log2l') diff --git a/modules/log2l b/modules/log2l new file mode 100644 index 0000000000..848f6d4f04 --- /dev/null +++ b/modules/log2l @@ -0,0 +1,35 @@ +Description: +log2() function: base 2 logarithm. + +Files: +lib/log2l.c +m4/log2l.m4 + +Depends-on: +math +extensions +log2 [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] +isnanl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] +frexpl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] +logl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] + +configure.ac: +gl_FUNC_LOG2L +if test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; then + AC_LIBOBJ([log2l]) +fi +gl_MATH_MODULE_INDICATOR([log2l]) + +Makefile.am: + +Include: + + +Link: +$(LOG2L_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible -- cgit v1.2.1