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

ChangeLog
m4/getgroups.m4
modules/getgroups

index c2da13a..a35cfb4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       getgroups: Move AC_LIBOBJ invocations to module description.
+       * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
+       here...
+       * modules/getgroups (configure.ac): ... to here.
+
+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...
index 8a5547f..54dbe8e 100644 (file)
@@ -1,4 +1,4 @@
-# serial 15
+# serial 16
 
 dnl From Jim Meyering.
 dnl A wrapper around AC_FUNC_GETGROUPS.
@@ -15,11 +15,9 @@ AC_DEFUN([gl_FUNC_GETGROUPS],
   AC_REQUIRE([AC_TYPE_GETGROUPS])
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   if test "$ac_cv_func_getgroups" != yes; then
-    AC_LIBOBJ([getgroups])
     HAVE_GETGROUPS=0
   elif test "$ac_cv_func_getgroups_works.$ac_cv_type_getgroups" != yes.gid_t
   then
-    AC_LIBOBJ([getgroups])
     REPLACE_GETGROUPS=1
     AC_DEFINE([GETGROUPS_ZERO_BUG], [1], [Define this to 1 if
       getgroups(0,NULL) does not return the number of groups.])
@@ -35,7 +33,6 @@ AC_DEFUN([gl_FUNC_GETGROUPS],
         [gl_cv_func_getgroups_works=no],
         [gl_cv_func_getgroups_works="guessing no"])])
     if test "$gl_cv_func_getgroups_works" != yes; then
-      AC_LIBOBJ([getgroups])
       REPLACE_GETGROUPS=1
     fi
   fi
index 4903123..66ff12f 100644 (file)
@@ -12,6 +12,9 @@ stdint          [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1]
 
 configure.ac:
 gl_FUNC_GETGROUPS
+if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
+  AC_LIBOBJ([getgroups])
+fi
 gl_UNISTD_MODULE_INDICATOR([getgroups])
 
 Makefile.am: