changeset 15004:44bb55821215

ceilf: Move AC_LIBOBJ invocations to module description. * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here... * modules/ceilf (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 10:56:23 +0200
parents e9d6250b22fe
children 182d0b65605e
files ChangeLog m4/ceilf.m4 modules/ceilf
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>
+
+	ceilf: Move AC_LIBOBJ invocations to module description.
+	* m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
+	* modules/ceilf (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	floorl: Respect rules for use of AC_LIBOBJ.
--- a/m4/ceilf.m4
+++ b/m4/ceilf.m4
@@ -1,4 +1,4 @@
-# ceilf.m4 serial 8
+# ceilf.m4 serial 9
 dnl Copyright (C) 2007, 2009-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,
@@ -58,7 +58,7 @@
     HAVE_DECL_CEILF=0
   fi
   if test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1; then
-    AC_LIBOBJ([ceilf])
+    dnl No libraries are needed to link lib/ceilf.c.
     CEILF_LIBM=
   fi
   AC_SUBST([CEILF_LIBM])
--- a/modules/ceilf
+++ b/modules/ceilf
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_CEILF
+if test $HAVE_DECL_CEILF = 0 || test $REPLACE_CEILF = 1; then
+  AC_LIBOBJ([ceilf])
+fi
 gl_MATH_MODULE_INDICATOR([ceilf])
 
 Makefile.am: