changeset 14986:07c4dd77a5dc

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.
author Bruno Haible <bruno@clisp.org>
date Mon, 09 May 2011 00:30:19 +0200
parents 48ead8d2c5c1
children 205da32df725
files ChangeLog m4/imaxdiv.m4 modules/imaxdiv
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>
+
+	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.
--- a/m4/imaxdiv.m4
+++ b/m4/imaxdiv.m4
@@ -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_CHECK_DECLS_ONCE([imaxdiv])
   if test "$ac_cv_have_decl_imaxdiv" != yes; then
     HAVE_DECL_IMAXDIV=0
-    AC_LIBOBJ([imaxdiv])
-    gl_PREREQ_IMAXDIV
   fi
 ])
 
--- a/modules/imaxdiv
+++ b/modules/imaxdiv
@@ -10,6 +10,10 @@
 
 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: