tanl: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 09:47:40 +0000 (11:47 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:21 +0000 (00:06 +0200)
* m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
* modules/tanl (configure.ac): ... to here.

ChangeLog
m4/tanl.m4
modules/tanl

index f8fc42c..6f2017c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       tanl: Move AC_LIBOBJ invocations to module description.
+       * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
+       * modules/tanl (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        cosl: Move AC_LIBOBJ invocations to module description.
        * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
        * modules/cosl (configure.ac): ... to here.
index e9603c1..5f3f73e 100644 (file)
@@ -1,4 +1,4 @@
-# tanl.m4 serial 3
+# tanl.m4 serial 4
 dnl Copyright (C) 2010-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,
@@ -55,8 +55,7 @@ AC_DEFUN([gl_FUNC_TANL],
   else
     HAVE_DECL_TANL=0
     HAVE_TANL=0
-    AC_LIBOBJ([tanl])
-    AC_LIBOBJ([trigl])
+    dnl Find libraries needed to link lib/tanl.c, lib/trigl.c.
     AC_REQUIRE([gl_FUNC_ISNANL])
     AC_REQUIRE([gl_FUNC_FLOOR])
     AC_REQUIRE([gl_FUNC_FLOORL])
index 7840dc1..ce1f20d 100644 (file)
@@ -17,6 +17,10 @@ floorl          [test $HAVE_TANL = 0]
 
 configure.ac:
 gl_FUNC_TANL
+if test $HAVE_TANL = 0; then
+  AC_LIBOBJ([tanl])
+  AC_LIBOBJ([trigl])
+fi
 gl_MATH_MODULE_INDICATOR([tanl])
 
 Makefile.am: