4 dnl A wrapper around AC_FUNC_GETGROUPS.
6 # Copyright (C) 1996-1997, 1999-2004, 2008-2009 Free Software Foundation, Inc.
8 # This file is free software; the Free Software Foundation
9 # gives unlimited permission to copy and/or distribute it,
10 # with or without modifications, as long as this notice is preserved.
12 AC_DEFUN([gl_FUNC_GETGROUPS],
14 AC_REQUIRE([AC_FUNC_GETGROUPS])
15 AC_REQUIRE([AC_TYPE_GETGROUPS])
16 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
17 if test "$ac_cv_func_getgroups" != yes; then
18 AC_LIBOBJ([getgroups])
20 elif test "$ac_cv_func_getgroups_works" != yes; then
21 AC_LIBOBJ([getgroups])
24 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"