diff options
author | Bruno Haible <bruno@clisp.org> | 2012-02-29 13:20:37 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-02-29 13:20:37 +0100 |
commit | fb88b295e090486496c869d44a7b47ee8cbc4071 (patch) | |
tree | 1a3601a4aefc56487773fdd144890d32a1c75de2 | |
parent | 260aec2c20bc33e0a8117efe9435939caded3747 (diff) | |
download | gnulib-fb88b295e090486496c869d44a7b47ee8cbc4071.tar.gz |
hypot: Prepare for hypotf module.
* m4/hypot.m4: New file.
* modules/hypot (Files): Add m4/hypot.m4.
(configure.ac): Invoke gl_FUNC_HYPOT.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | m4/hypot.m4 | 11 | ||||
-rw-r--r-- | modules/hypot | 3 |
3 files changed, 20 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2012-02-29 Bruno Haible <bruno@clisp.org> + 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 <bruno@clisp.org> + hypot tests: More tests. * tests/test-hypot.c: Include <float.h>. (main): Add tests about overflow and underflow. 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: |