changeset 14999:96019ab39a93

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 03:06:27 +0200
parents 6670ce6a8984
children e36ba7ba51ce
files ChangeLog m4/ldexpl.m4 modules/ldexpl
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-20  Bruno Haible  <bruno@clisp.org>
+
+	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.
+
 2011-05-20  Bruno Haible  <bruno@clisp.org>
 
 	frexpl*: Respect rules for use of AC_LIBOBJ.
--- a/m4/ldexpl.m4
+++ b/m4/ldexpl.m4
@@ -1,4 +1,4 @@
-# ldexpl.m4 serial 10
+# ldexpl.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,
@@ -52,7 +52,7 @@
     fi
   fi
   if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
-    AC_LIBOBJ([ldexpl])
+    dnl Find libraries needed to link lib/ldexpl.c.
     LDEXPL_LIBM="$ISNANL_LIBM"
   fi
   AC_SUBST([LDEXPL_LIBM])
--- a/modules/ldexpl
+++ b/modules/ldexpl
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_LDEXPL
+if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
+  AC_LIBOBJ([ldexpl])
+fi
 gl_MATH_MODULE_INDICATOR([ldexpl])
 
 Makefile.am: