3 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 dnl Written by Jim Meyering
10 AC_DEFUN([gl_FUNC_GROUP_MEMBER],
12 AC_LIBSOURCES([group-member.c, group-member.h])
14 dnl Persuade glibc <unistd.h> to declare group_member().
15 AC_REQUIRE([AC_GNU_SOURCE])
17 dnl Do this replacement check manually because I want the hyphen
18 dnl (not the underscore) in the filename.
19 AC_CHECK_FUNC(group_member, , [
20 AC_LIBOBJ(group-member)
21 gl_PREREQ_GROUP_MEMBER
25 # Prerequisites of lib/group-member.c.
26 AC_DEFUN([gl_PREREQ_GROUP_MEMBER],
28 AC_REQUIRE([AC_FUNC_GETGROUPS])