From: Bruno Haible Date: Sat, 8 Oct 2011 21:57:27 +0000 (+0200) Subject: atan2: Use a .m4 file. X-Git-Tag: v0.1~1637 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=63dd3e85d427aba822aa3297ed97abc13b14c06a;p=gnulib.git atan2: Use a .m4 file. * m4/atan2.m4: New file. * modules/atan2 (Files): Add it. (configure.ac): Just invoke gl_FUNC_ATAN2. --- diff --git a/ChangeLog b/ChangeLog index 111b126eb..4f1fdbdaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-10-08 Bruno Haible + atan2: Use a .m4 file. + * m4/atan2.m4: New file. + * modules/atan2 (Files): Add it. + (configure.ac): Just invoke gl_FUNC_ATAN2. + +2011-10-08 Bruno Haible + Tests for module 'atanf'. * modules/atanf-tests: New file. * tests/test-atanf.c: New file. diff --git a/m4/atan2.m4 b/m4/atan2.m4 new file mode 100644 index 000000000..acd9f33c9 --- /dev/null +++ b/m4/atan2.m4 @@ -0,0 +1,11 @@ +# atan2.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_ATAN2], +[ + dnl Determine ATAN2_LIBM. + gl_COMMON_DOUBLE_MATHFUNC([atan2]) +]) diff --git a/modules/atan2 b/modules/atan2 index 877cc6bd2..9b4bf56d7 100644 --- a/modules/atan2 +++ b/modules/atan2 @@ -2,12 +2,13 @@ Description: atan2() function: angle of a point in the plane. Files: +m4/atan2.m4 m4/mathfunc.m4 Depends-on: configure.ac: -gl_COMMON_DOUBLE_MATHFUNC([atan2]) +gl_FUNC_ATAN2 Makefile.am: