changeset 14997:00d1faea7e94

frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description. * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ invocation from here... * modules/frexp (configure.ac): ... to here. * modules/frexp-nolibm (configure.ac): ... and here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 02:49:55 +0200
parents 369a2b1bfba1
children 6670ce6a8984
files ChangeLog m4/frexp.m4 modules/frexp modules/frexp-nolibm
diffstat 4 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-20  Bruno Haible  <bruno@clisp.org>
+
+	frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
+	* m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
+	invocation from here...
+	* modules/frexp (configure.ac): ... to here.
+	* modules/frexp-nolibm (configure.ac): ... and here.
+
 2011-05-20  Bruno Haible  <bruno@clisp.org>
 
 	isnan: Respect rules for use of AC_LIBOBJ.
--- a/m4/frexp.m4
+++ b/m4/frexp.m4
@@ -1,4 +1,4 @@
-# frexp.m4 serial 10
+# frexp.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,
@@ -44,8 +44,6 @@
   if test $gl_func_frexp = yes; then
     AC_DEFINE([HAVE_FREXP], [1],
       [Define if the frexp() function is available and works.])
-  else
-    AC_LIBOBJ([frexp])
   fi
   AC_SUBST([FREXP_LIBM])
 ])
@@ -68,8 +66,6 @@
   if test $gl_func_frexp_no_libm = yes; then
     AC_DEFINE([HAVE_FREXP_IN_LIBC], [1],
       [Define if the frexp() function is available in libc.])
-  else
-    AC_LIBOBJ([frexp])
   fi
 ])
 
--- a/modules/frexp
+++ b/modules/frexp
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_FREXP
+if test $gl_func_frexp != yes; then
+  AC_LIBOBJ([frexp])
+fi
 gl_MATH_MODULE_INDICATOR([frexp])
 
 Makefile.am:
--- a/modules/frexp-nolibm
+++ b/modules/frexp-nolibm
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_FREXP_NO_LIBM
+if test $gl_func_frexp_no_libm != yes; then
+  AC_LIBOBJ([frexp])
+fi
 gl_MATH_MODULE_INDICATOR([frexp])
 
 Makefile.am: