From 8e6c63aee3db1973d825c084ddc706ae677c09a8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 10:49:32 +0200 Subject: [PATCH] floorf: Move AC_LIBOBJ invocations to module description. * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here... * modules/floorf (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/floorf.m4 | 4 ++-- modules/floorf | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6fdc9d41ee..c30c059576 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-21 Bruno Haible + + floorf: Move AC_LIBOBJ invocations to module description. + * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here... + * modules/floorf (configure.ac): ... to here. + 2011-05-20 Bruno Haible sqrtl: Respect rules for use of AC_LIBOBJ. diff --git a/m4/floorf.m4 b/m4/floorf.m4 index ac49a829df..d426569c18 100644 --- a/m4/floorf.m4 +++ b/m4/floorf.m4 @@ -1,4 +1,4 @@ -# floorf.m4 serial 8 +# floorf.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 @@ int main() HAVE_DECL_FLOORF=0 fi if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then - AC_LIBOBJ([floorf]) + dnl No libraries are needed to link lib/floorf.c. FLOORF_LIBM= fi AC_SUBST([FLOORF_LIBM]) diff --git a/modules/floorf b/modules/floorf index 1f9d9da595..7357649e77 100644 --- a/modules/floorf +++ b/modules/floorf @@ -13,6 +13,9 @@ float [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1] configure.ac: gl_FUNC_FLOORF +if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then + AC_LIBOBJ([floorf]) +fi gl_MATH_MODULE_INDICATOR([floorf]) Makefile.am: -- 2.30.2