changeset 15018:cdd6bc3177f7

asinl: Respect rules for use of AC_LIBOBJ. * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here... * modules/asinl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:52:29 +0200
parents 87dac772c52e
children f31b7f55cb96
files ChangeLog m4/asinl.m4 modules/asinl
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	asinl: Respect rules for use of AC_LIBOBJ.
+	* m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
+	* modules/asinl (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	tanl: Move AC_LIBOBJ invocations to module description.
--- a/m4/asinl.m4
+++ b/m4/asinl.m4
@@ -1,4 +1,4 @@
-# asinl.m4 serial 3
+# asinl.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,7 +55,7 @@
   else
     HAVE_DECL_ASINL=0
     HAVE_ASINL=0
-    AC_LIBOBJ([asinl])
+    dnl Find libraries needed to link lib/asinl.c.
     AC_REQUIRE([gl_FUNC_SQRTL])
     dnl Append $SQRTL_LIBM to ASINL_LIBM, avoiding gratuitous duplicates.
     case " $ASINL_LIBM " in
--- a/modules/asinl
+++ b/modules/asinl
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_ASINL
+if test $HAVE_ASINL = 0; then
+  AC_LIBOBJ([asinl])
+fi
 gl_MATH_MODULE_INDICATOR([asinl])
 
 Makefile.am: