# HG changeset patch # User Bruno Haible # Date 1317856872 -7200 # Node ID 46afe93343fd7145481782d40d2ffb5097044d1a # Parent 37c2860f77a34973c40709da526c52a86f60509b modf: Use a .m4 file. * m4/modf.m4: New file. * modules/modf (Files): Add it. (configure.ac): Just invoke gl_FUNC_MODF. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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'. diff --git a/m4/modf.m4 b/m4/modf.m4 new file mode 100644 --- /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 --- a/modules/modf +++ b/modules/modf @@ -2,12 +2,13 @@ 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: