source: trunk/coreutils/m4/group-member.m4@ 2747

Last change on this file since 2747 was 2554, checked in by bird, 20 years ago

coretuils-5.94

File size: 809 bytes
Line 
1#serial 9
2
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.
7
8dnl Written by Jim Meyering
9
10AC_DEFUN([gl_FUNC_GROUP_MEMBER],
11[
12 AC_LIBSOURCES([group-member.c, group-member.h])
13
14 dnl Persuade glibc <unistd.h> to declare group_member().
15 AC_REQUIRE([AC_GNU_SOURCE])
16
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
22 ])
23])
24
25# Prerequisites of lib/group-member.c.
26AC_DEFUN([gl_PREREQ_GROUP_MEMBER],
27[
28 AC_REQUIRE([AC_FUNC_GETGROUPS])
29])
Note: See TracBrowser for help on using the repository browser.