From a4c436136b4aaa0259add12435af3bbec862e5f7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 11:31:07 +0200 Subject: [PATCH] trunc: Move AC_LIBOBJ invocations to module description. * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here... * modules/trunc (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/trunc.m4 | 4 ++-- modules/trunc | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7fa93b919..b5a4a8bcd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-21 Bruno Haible + + trunc: Move AC_LIBOBJ invocations to module description. + * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here... + * modules/trunc (configure.ac): ... to here. + 2011-05-21 Bruno Haible truncf: Move AC_LIBOBJ invocations to module description. diff --git a/m4/trunc.m4 b/m4/trunc.m4 index e1069115ca..953f5b1316 100644 --- a/m4/trunc.m4 +++ b/m4/trunc.m4 @@ -1,4 +1,4 @@ -# trunc.m4 serial 5 +# trunc.m4 serial 6 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_TRUNC=0 fi if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then - AC_LIBOBJ([trunc]) + dnl No libraries are needed to link lib/trunc.c. TRUNC_LIBM= fi AC_SUBST([TRUNC_LIBM]) diff --git a/modules/trunc b/modules/trunc index 71863a54a6..34f33391e0 100644 --- a/modules/trunc +++ b/modules/trunc @@ -12,6 +12,9 @@ float [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1] configure.ac: gl_FUNC_TRUNC +if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then + AC_LIBOBJ([trunc]) +fi gl_MATH_MODULE_INDICATOR([trunc]) Makefile.am: -- 2.30.2