changeset 14985:48ead8d2c5c1

imaxabs: Move AC_LIBOBJ invocations to module description. * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS invocations from here... * modules/imaxabs (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Mon, 09 May 2011 00:28:38 +0200
parents 2a2292579cf1
children 07c4dd77a5dc
files ChangeLog m4/imaxabs.m4 modules/imaxabs
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	imaxabs: Move AC_LIBOBJ invocations to module description.
+	* m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
+	invocations from here...
+	* modules/imaxabs (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	getaddrinfo: Move AC_LIBOBJ invocations to module description.
--- a/m4/imaxabs.m4
+++ b/m4/imaxabs.m4
@@ -1,4 +1,4 @@
-# imaxabs.m4 serial 2
+# imaxabs.m4 serial 3
 dnl Copyright (C) 2006, 2009-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,
@@ -10,8 +10,6 @@
   AC_CHECK_DECLS_ONCE([imaxabs])
   if test "$ac_cv_have_decl_imaxabs" != yes; then
     HAVE_DECL_IMAXABS=0
-    AC_LIBOBJ([imaxabs])
-    gl_PREREQ_IMAXABS
   fi
 ])
 
--- a/modules/imaxabs
+++ b/modules/imaxabs
@@ -10,6 +10,10 @@
 
 configure.ac:
 gl_FUNC_IMAXABS
+if test $HAVE_DECL_IMAXABS = 0; then
+  AC_LIBOBJ([imaxabs])
+  gl_PREREQ_IMAXABS
+fi
 gl_INTTYPES_MODULE_INDICATOR([imaxabs])
 
 Makefile.am: