From e8b58a0f7e4b3ceb67460e953fe443a6ddd52675 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Oct 2011 01:21:12 +0200 Subject: [PATCH] modf: Use a .m4 file. * m4/modf.m4: New file. * modules/modf (Files): Add it. (configure.ac): Just invoke gl_FUNC_MODF. --- ChangeLog | 7 +++++++ m4/modf.m4 | 11 +++++++++++ modules/modf | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 m4/modf.m4 diff --git a/ChangeLog b/ChangeLog index 76607bb98..eacc3ff75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-10-05 Bruno Haible + modf: Use a .m4 file. + * m4/modf.m4: New file. + * modules/modf (Files): Add it. + (configure.ac): Just invoke gl_FUNC_MODF. + +2011-10-05 Bruno Haible + Tests for module 'fmodf'. * modules/fmodf-tests: New file. * tests/test-fmodf.c: New file. diff --git a/m4/modf.m4 b/m4/modf.m4 new file mode 100644 index 000000000..03ee50b27 --- /dev/null +++ b/m4/modf.m4 @@ -0,0 +1,11 @@ +# modf.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_MODF], +[ + dnl Determine MODF_LIBM. + gl_MATHFUNC([modf], [double], [(double, double *)]) +]) diff --git a/modules/modf b/modules/modf index 0c5e4677d..c0dffeb76 100644 --- a/modules/modf +++ b/modules/modf @@ -2,12 +2,13 @@ Description: modf() function: get signed integer and fractional parts. Files: +m4/modf.m4 m4/mathfunc.m4 Depends-on: configure.ac: -gl_MATHFUNC([modf], [double], [(double, double *)]) +gl_FUNC_MODF Makefile.am: -- 2.11.0