From ff1db29caf822c7e7a41bd367779e52d9d8320ef Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 03:02:56 +0200 Subject: [PATCH] sqrtl: Respect rules for use of AC_LIBOBJ. * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here... * modules/sqrtl (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/sqrtl.m4 | 4 ++-- modules/sqrtl | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c558ca241..6fdc9d41e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-20 Bruno Haible + sqrtl: Respect rules for use of AC_LIBOBJ. + * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here... + * modules/sqrtl (configure.ac): ... to here. + +2011-05-20 Bruno Haible + ldexpl: Respect rules for use of AC_LIBOBJ. * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here... * modules/ldexpl (configure.ac): ... to here. diff --git a/m4/sqrtl.m4 b/m4/sqrtl.m4 index c64fc1919..87ffc3719 100644 --- a/m4/sqrtl.m4 +++ b/m4/sqrtl.m4 @@ -1,4 +1,4 @@ -# sqrtl.m4 serial 3 +# sqrtl.m4 serial 4 dnl Copyright (C) 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, @@ -55,7 +55,7 @@ AC_DEFUN([gl_FUNC_SQRTL], else HAVE_DECL_SQRTL=0 HAVE_SQRTL=0 - AC_LIBOBJ([sqrtl]) + dnl Find libraries needed to link lib/sqrtl.c. AC_REQUIRE([gl_FUNC_ISNANL]) AC_REQUIRE([gl_FUNC_FREXPL]) AC_REQUIRE([gl_FUNC_LDEXPL]) diff --git a/modules/sqrtl b/modules/sqrtl index d7f73cac9..df010051c 100644 --- a/modules/sqrtl +++ b/modules/sqrtl @@ -16,6 +16,9 @@ sqrt [test $HAVE_SQRTL = 0] configure.ac: gl_FUNC_SQRTL +if test $HAVE_SQRTL = 0; then + AC_LIBOBJ([sqrtl]) +fi gl_MATH_MODULE_INDICATOR([sqrtl]) Makefile.am: -- 2.11.0