From 37567e965cc8cd3c73f22bc21453ce311f78fe72 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 21 May 2011 10:58:45 +0200
Subject: [PATCH] ceil: Move AC_LIBOBJ invocations to module description.

* m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
* modules/ceil (configure.ac): ... to here.
---
 ChangeLog    | 6 ++++++
 m4/ceil.m4   | 4 ++--
 modules/ceil | 3 +++
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2438f9db93..89befe0f8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	ceil: Move AC_LIBOBJ invocations to module description.
+	* m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
+	* modules/ceil (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	ceilf: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/ceil.m4 b/m4/ceil.m4
index 21d04b468c..157407745b 100644
--- a/m4/ceil.m4
+++ b/m4/ceil.m4
@@ -1,4 +1,4 @@
-# ceil.m4 serial 5
+# ceil.m4 serial 6
 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,
@@ -48,7 +48,7 @@ int main()
     fi
   ])
   if test $REPLACE_CEIL = 1; then
-    AC_LIBOBJ([ceil])
+    dnl No libraries are needed to link lib/ceil.c.
     CEIL_LIBM=
   fi
   AC_SUBST([CEIL_LIBM])
diff --git a/modules/ceil b/modules/ceil
index 1a3a5de496..05ee345d39 100644
--- a/modules/ceil
+++ b/modules/ceil
@@ -11,6 +11,9 @@ float           [test $REPLACE_CEIL = 1]
 
 configure.ac:
 gl_FUNC_CEIL
+if test $REPLACE_CEIL = 1; then
+  AC_LIBOBJ([ceil])
+fi
 gl_MATH_MODULE_INDICATOR([ceil])
 
 Makefile.am:
-- 
2.30.2