From: Bruno Haible Date: Sat, 21 May 2011 01:02:56 +0000 (+0200) Subject: sqrtl: Respect rules for use of AC_LIBOBJ. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1db29caf822c7e7a41bd367779e52d9d8320ef;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index c558ca241d..6fdc9d41ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/m4/sqrtl.m4 b/m4/sqrtl.m4 index c64fc1919e..87ffc37193 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 d7f73cac92..df010051c3 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: