changeset 15019:f31b7f55cb96

acosl: Move AC_LIBOBJ invocations to module description. * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here... * modules/acosl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:54:10 +0200
parents cdd6bc3177f7
children 37abb403b61a
files ChangeLog m4/acosl.m4 modules/acosl
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>
+
+	acosl: Move AC_LIBOBJ invocations to module description.
+	* m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
+	* modules/acosl (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	asinl: Respect rules for use of AC_LIBOBJ.
--- a/m4/acosl.m4
+++ b/m4/acosl.m4
@@ -1,4 +1,4 @@
-# acosl.m4 serial 3
+# acosl.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_ACOSL=0
     HAVE_ACOSL=0
-    AC_LIBOBJ([acosl])
+    dnl Find libraries needed to link lib/acosl.c.
     AC_REQUIRE([gl_FUNC_ASINL])
     AC_REQUIRE([gl_FUNC_SQRTL])
     dnl Append $ASINL_LIBM to ACOSL_LIBM, avoiding gratuitous duplicates.
--- a/modules/acosl
+++ b/modules/acosl
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_ACOSL
+if test $HAVE_ACOSL = 0; then
+  AC_LIBOBJ([acosl])
+fi
 gl_MATH_MODULE_INDICATOR([acosl])
 
 Makefile.am: