diff options
author | James Youngman <jay@gnu.org> | 2008-02-21 15:01:15 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-02-21 15:02:07 +0100 |
commit | 49f7ebaac45f4d20a70c83c8302444b64259c6d3 (patch) | |
tree | 5de5689987d61d6247f0683887b9ed830ed434d4 /gl/m4 | |
parent | bf9e98344df01e5a66cc9657bd975ef357773eb2 (diff) | |
download | coreutils-49f7ebaac45f4d20a70c83c8302444b64259c6d3.tar.xz |
id: use getgrouplist when possible
* gl/m4/mgetgroups.m4: Check for getgrouplist.
* gl/lib/mgetgroups.c (mgetgroups): Use getgrouplist, if available.
* TODO: Remove the item about switching to getgrouplist.
* NEWS: mention this
Diffstat (limited to 'gl/m4')
-rw-r--r-- | gl/m4/mgetgroups.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/m4/mgetgroups.m4 b/gl/m4/mgetgroups.m4 index 81835415f..da557311b 100644 --- a/gl/m4/mgetgroups.m4 +++ b/gl/m4/mgetgroups.m4 @@ -1,10 +1,11 @@ -#serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +#serial 2 +dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MGETGROUPS], [ + AC_CHECK_FUNCS(getgrouplist) AC_LIBOBJ([mgetgroups]) ]) |