changeset 15898:ada42afa1b8f

tanh: Use a .m4 file. * m4/tanh.m4: New file. * modules/tanh (Files): Add it. (configure.ac): Just invoke gl_FUNC_TANH.
author Bruno Haible <bruno@clisp.org>
date Sun, 09 Oct 2011 00:49:50 +0200
parents fae3ef272b6e
children 31b76bf2f9e4
files ChangeLog m4/tanh.m4 modules/tanh
diffstat 3 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-08  Bruno Haible  <bruno@clisp.org>
+
+	tanh: Use a .m4 file.
+	* m4/tanh.m4: New file.
+	* modules/tanh (Files): Add it.
+	(configure.ac): Just invoke gl_FUNC_TANH.
+
 2011-10-08  Bruno Haible  <bruno@clisp.org>
 
 	Tests for module 'coshf'.
new file mode 100644
--- /dev/null
+++ b/m4/tanh.m4
@@ -0,0 +1,11 @@
+# tanh.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_TANH],
+[
+  dnl Determine TANH_LIBM.
+  gl_COMMON_DOUBLE_MATHFUNC([tanh])
+])
--- a/modules/tanh
+++ b/modules/tanh
@@ -2,12 +2,13 @@
 tanh() function: hyperbolic tangent function.
 
 Files:
+m4/tanh.m4
 m4/mathfunc.m4
 
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([tanh])
+gl_FUNC_TANH
 
 Makefile.am: