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

ChangeLog
m4/imaxdiv.m4
modules/imaxdiv

index 5a92ad9..7d9b838 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       imaxdiv: Move AC_LIBOBJ invocations to module description.
+       * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
+       invocations from here...
+       * modules/imaxdiv (configure.ac): ... to here.
+
+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...
index 4939912..57ceaa8 100644 (file)
@@ -1,4 +1,4 @@
-# imaxdiv.m4 serial 2
+# imaxdiv.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_IMAXDIV],
   AC_CHECK_DECLS_ONCE([imaxdiv])
   if test "$ac_cv_have_decl_imaxdiv" != yes; then
     HAVE_DECL_IMAXDIV=0
-    AC_LIBOBJ([imaxdiv])
-    gl_PREREQ_IMAXDIV
   fi
 ])
 
index 7589024..2ad32eb 100644 (file)
@@ -10,6 +10,10 @@ inttypes-incomplete
 
 configure.ac:
 gl_FUNC_IMAXDIV
+if test $HAVE_DECL_IMAXDIV = 0; then
+  AC_LIBOBJ([imaxdiv])
+  gl_PREREQ_IMAXDIV
+fi
 gl_INTTYPES_MODULE_INDICATOR([imaxdiv])
 
 Makefile.am: