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

ChangeLog
m4/sinl.m4
modules/sinl

index 63e429b..c04f36f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       sinl: Move AC_LIBOBJ invocations to module description.
+       * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
+       * modules/sinl (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        logl: Move AC_LIBOBJ invocations to module description.
        * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
        * modules/logl (configure.ac): ... to here.
index c70ac77..5666cab 100644 (file)
@@ -1,4 +1,4 @@
-# sinl.m4 serial 3
+# sinl.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,9 +55,7 @@ AC_DEFUN([gl_FUNC_SINL],
   else
     HAVE_DECL_SINL=0
     HAVE_SINL=0
-    AC_LIBOBJ([sinl])
-    AC_LIBOBJ([sincosl])
-    AC_LIBOBJ([trigl])
+    dnl Find libraries needed to link lib/sinl.c, lib/sincosl.c, lib/trigl.c.
     AC_REQUIRE([gl_FUNC_ISNANL])
     AC_REQUIRE([gl_FUNC_FLOOR])
     AC_REQUIRE([gl_FUNC_FLOORL])
index 7f2007a..187f949 100644 (file)
@@ -18,6 +18,11 @@ floorl          [test $HAVE_SINL = 0]
 
 configure.ac:
 gl_FUNC_SINL
+if test $HAVE_SINL = 0; then
+  AC_LIBOBJ([sinl])
+  AC_LIBOBJ([sincosl])
+  AC_LIBOBJ([trigl])
+fi
 gl_MATH_MODULE_INDICATOR([sinl])
 
 Makefile.am: