roundf: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 09:23:03 +0000 (11:23 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:19 +0000 (00:06 +0200)
* m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
* modules/roundf (configure.ac): ... to here.

ChangeLog
m4/roundf.m4
modules/roundf

index 82ce8d8..678be92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       roundf: Move AC_LIBOBJ invocations to module description.
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
+       * modules/roundf (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        truncl: Move AC_LIBOBJ invocations to module description.
        * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
        * modules/truncl (configure.ac): ... to here.
index a2a1464..0ff9646 100644 (file)
@@ -1,4 +1,4 @@
-# roundf.m4 serial 10
+# roundf.m4 serial 11
 dnl Copyright (C) 2007-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,
@@ -89,7 +89,7 @@ int main()
     HAVE_DECL_ROUNDF=0
   fi
   if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
-    AC_LIBOBJ([roundf])
+    dnl Find libraries needed to link lib/roundf.c.
     AC_CHECK_DECLS([ceilf, floorf], , , [#include <math.h>])
     if test "$ac_cv_have_decl_floorf" = yes \
        && test "$ac_cv_have_decl_ceilf" = yes; then
index d9c283e..86d758b 100644 (file)
@@ -16,6 +16,9 @@ float           [test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1]
 
 configure.ac:
 gl_FUNC_ROUNDF
+if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
+  AC_LIBOBJ([roundf])
+fi
 gl_MATH_MODULE_INDICATOR([roundf])
 
 Makefile.am: