imaxabs: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 22:28:38 +0000 (00:28 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:11 +0000 (00:06 +0200)
* m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
invocations from here...
* modules/imaxabs (configure.ac): ... to here.

ChangeLog
m4/imaxabs.m4
modules/imaxabs

index efeb4c4..5a92ad9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
        AC_LIBOBJ invocations from here...
index 2450353..58e5ac8 100644 (file)
@@ -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_DEFUN([gl_FUNC_IMAXABS],
   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
 ])
 
index 8da390f..58a229e 100644 (file)
@@ -10,6 +10,10 @@ inttypes-incomplete
 
 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: