diff m4/math_h.m4 @ 15869:7fb8367bf966

New module 'powf'. * lib/math.in.h (powf): New declaration. * lib/powf.c: New file. * m4/powf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF. * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF. * modules/powf: New file. * tests/test-math-c++.cc: Check the declaration of powf. * doc/posix-functions/powf.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sat, 08 Oct 2011 22:45:54 +0200
parents 215da3b412e0
children 83e1d08997e4
line wrap: on
line diff
--- a/m4/math_h.m4
+++ b/m4/math_h.m4
@@ -1,4 +1,4 @@
-# math_h.m4 serial 35
+# math_h.m4 serial 36
 dnl Copyright (C) 2007-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,
@@ -41,7 +41,7 @@
   gl_WARN_ON_USE_PREPARE([[#include <math.h>]],
     [acosl asinl atanl ceilf ceill cosl expf expl fabsf floorf floorl fmodf
      frexpf frexpl
-     ldexpf ldexpl logb logf logl log10f modff
+     ldexpf ldexpl logb logf logl log10f modff powf
      round roundf roundl sinl sqrtf sqrtl
      tanl trunc truncf truncl])
 ])
@@ -87,6 +87,7 @@
   GNULIB_LOGL=0;     AC_SUBST([GNULIB_LOGL])
   GNULIB_LOG10F=0;   AC_SUBST([GNULIB_LOG10F])
   GNULIB_MODFF=0;    AC_SUBST([GNULIB_MODFF])
+  GNULIB_POWF=0;     AC_SUBST([GNULIB_POWF])
   GNULIB_ROUND=0;    AC_SUBST([GNULIB_ROUND])
   GNULIB_ROUNDF=0;   AC_SUBST([GNULIB_ROUNDF])
   GNULIB_ROUNDL=0;   AC_SUBST([GNULIB_ROUNDL])
@@ -116,6 +117,7 @@
   HAVE_LOGL=1;                 AC_SUBST([HAVE_LOGL])
   HAVE_LOG10F=1;               AC_SUBST([HAVE_LOG10F])
   HAVE_MODFF=1;                AC_SUBST([HAVE_MODFF])
+  HAVE_POWF=1;                 AC_SUBST([HAVE_POWF])
   HAVE_SINL=1;                 AC_SUBST([HAVE_SINL])
   HAVE_SQRTF=1;                AC_SUBST([HAVE_SQRTF])
   HAVE_SQRTL=1;                AC_SUBST([HAVE_SQRTL])