From: Bruno Haible Date: Wed, 29 Feb 2012 12:20:37 +0000 (+0100) Subject: hypot: Prepare for hypotf module. X-Git-Tag: v0.1~1013 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fb88b295e090486496c869d44a7b47ee8cbc4071;p=gnulib.git hypot: Prepare for hypotf module. * m4/hypot.m4: New file. * modules/hypot (Files): Add m4/hypot.m4. (configure.ac): Invoke gl_FUNC_HYPOT. --- diff --git a/ChangeLog b/ChangeLog index 18647d66c7..7a727f1a8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-29 Bruno Haible + + hypot: Prepare for hypotf module. + * m4/hypot.m4: New file. + * modules/hypot (Files): Add m4/hypot.m4. + (configure.ac): Invoke gl_FUNC_HYPOT. + 2012-02-29 Bruno Haible hypot tests: More tests. diff --git a/m4/hypot.m4 b/m4/hypot.m4 new file mode 100644 index 0000000000..b8faf88932 --- /dev/null +++ b/m4/hypot.m4 @@ -0,0 +1,11 @@ +# hypot.m4 serial 1 +dnl Copyright (C) 2012 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_HYPOT], +[ + dnl Determine HYPOT_LIBM. + gl_COMMON_DOUBLE_MATHFUNC([hypot]) +]) diff --git a/modules/hypot b/modules/hypot index fc13752cec..de856ec512 100644 --- a/modules/hypot +++ b/modules/hypot @@ -2,12 +2,13 @@ Description: hypot() function: length of a vector in the plane. Files: +m4/hypot.m4 m4/mathfunc.m4 Depends-on: configure.ac: -gl_COMMON_DOUBLE_MATHFUNC([hypot]) +gl_FUNC_HYPOT Makefile.am: