Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
[gnulib.git] / m4 / group-member.m4
1 #serial 6
2
3 dnl Written by Jim Meyering
4
5 AC_DEFUN([gl_FUNC_GROUP_MEMBER],
6 [
7   dnl Persuade glibc <unistd.h> to declare group_member().
8   AC_REQUIRE([AC_GNU_SOURCE])
9
10   dnl Do this replacement check manually because I want the hyphen
11   dnl (not the underscore) in the filename.
12   AC_CHECK_FUNC(group_member, , [
13     AC_LIBOBJ(group-member)
14     gl_PREREQ_GROUP_MEMBER
15   ])
16 ])
17
18 # Prerequisites of lib/group-member.c.
19 AC_DEFUN([gl_PREREQ_GROUP_MEMBER],
20 [
21   AC_CHECK_HEADERS_ONCE(unistd.h)
22   AC_REQUIRE([AC_FUNC_GETGROUPS])
23 ])