ldexpl: Respect rules for use of AC_LIBOBJ.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 01:06:27 +0000 (03:06 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:16 +0000 (00:06 +0200)
* m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
* modules/ldexpl (configure.ac): ... to here.

ChangeLog
m4/ldexpl.m4
modules/ldexpl

index 85d6656..c558ca2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
        invocation from here...
index 37dc230..2f4cf4b 100644 (file)
@@ -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 @@ AC_DEFUN([gl_FUNC_LDEXPL],
     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])
index 517a40a..b6d3117 100644 (file)
@@ -12,6 +12,9 @@ fpucw           [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no]
 
 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: