getdtablesize: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 09:43:03 +0000 (11:43 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:04 +0000 (00:06 +0200)
* m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
invocation from here...
* modules/getdtablesize (configure.ac): ... to here.

ChangeLog
m4/getdtablesize.m4
modules/getdtablesize

index 8c14b0a..c2da13a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       getdtablesize: Move AC_LIBOBJ invocations to module description.
+       * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
+       invocation from here...
+       * modules/getdtablesize (configure.ac): ... to here.
+
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
        getdomainname: Move AC_LIBOBJ invocations to module description.
        * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
        gl_PREREQ_GETDOMAINNAME invocations from here...
index 55bda5a..40a598b 100644 (file)
@@ -1,4 +1,4 @@
-# getdtablesize.m4 serial 1
+# getdtablesize.m4 serial 2
 dnl Copyright (C) 2008-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,6 +10,5 @@ AC_DEFUN([gl_FUNC_GETDTABLESIZE],
   AC_CHECK_FUNCS_ONCE([getdtablesize])
   if test $ac_cv_func_getdtablesize != yes; then
     HAVE_GETDTABLESIZE=0
-    AC_LIBOBJ([getdtablesize])
   fi
 ])
index 808238c..3b195c0 100644 (file)
@@ -10,6 +10,9 @@ unistd
 
 configure.ac:
 gl_FUNC_GETDTABLESIZE
+if test $HAVE_GETDTABLESIZE = 0; then
+  AC_LIBOBJ([getdtablesize])
+fi
 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
 
 Makefile.am: