From: Bruno Haible <bruno@clisp.org>
Date: Sat, 21 May 2011 09:29:32 +0000 (+0200)
Subject: truncf: Move AC_LIBOBJ invocations to module description.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d47ca399ea9ea4986d9166434bdbd77ed8ed8e9;p=pspp

truncf: Move AC_LIBOBJ invocations to module description.

* m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
* modules/truncf (configure.ac): ... to here.
---

diff --git a/ChangeLog b/ChangeLog
index 7d8e7f48af..a7fa93b919 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	truncf: Move AC_LIBOBJ invocations to module description.
+	* m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
+	* modules/truncf (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	ceill: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/truncf.m4 b/m4/truncf.m4
index f917de584a..3920fcd469 100644
--- a/m4/truncf.m4
+++ b/m4/truncf.m4
@@ -1,4 +1,4 @@
-# truncf.m4 serial 4
+# truncf.m4 serial 5
 dnl Copyright (C) 2007, 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,
@@ -79,7 +79,7 @@ int main()
     HAVE_DECL_TRUNCF=0
   fi
   if test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1; then
-    AC_LIBOBJ([truncf])
+    dnl No libraries are needed to link lib/truncf.c.
     TRUNCF_LIBM=
   fi
   AC_SUBST([TRUNCF_LIBM])
diff --git a/modules/truncf b/modules/truncf
index 15e35e8acf..0727d0bce1 100644
--- a/modules/truncf
+++ b/modules/truncf
@@ -13,6 +13,9 @@ float           [test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1]
 
 configure.ac:
 gl_FUNC_TRUNCF
+if test $HAVE_DECL_TRUNCF = 0 || test $REPLACE_TRUNCF = 1; then
+  AC_LIBOBJ([truncf])
+fi
 gl_MATH_MODULE_INDICATOR([truncf])
 
 Makefile.am: