From 82be3c7a98c3e607ab82ab7380fc15624c7bcba2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 8 May 2011 11:46:22 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/getgroups.m4 | 5 +---- modules/getgroups | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2da13a60..a35cfb48d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-08 Bruno Haible + 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 + getdtablesize: Move AC_LIBOBJ invocations to module description. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ invocation from here... diff --git a/m4/getgroups.m4 b/m4/getgroups.m4 index 8a5547f43..54dbe8e93 100644 --- a/m4/getgroups.m4 +++ b/m4/getgroups.m4 @@ -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 diff --git a/modules/getgroups b/modules/getgroups index 4903123eb..66ff12f2a 100644 --- a/modules/getgroups +++ b/modules/getgroups @@ -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: -- 2.11.0