1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00
Files
coreutils/m4/chown.m4
2003-08-17 17:57:38 +00:00

25 lines
558 B
Plaintext

#serial 8
dnl From Jim Meyering.
dnl Determine whether chown accepts arguments of -1 for uid and gid.
dnl If it doesn't, arrange to use the replacement function.
dnl
AC_DEFUN([jm_FUNC_CHOWN],
[
AC_REQUIRE([AC_TYPE_UID_T])dnl
AC_REQUIRE([AC_FUNC_CHOWN])
if test $ac_cv_func_chown_works = no; then
AC_LIBOBJ(chown)
AC_DEFINE(chown, rpl_chown,
[Define to rpl_chown if the replacement function should be used.])
gl_PREREQ_CHOWN
fi
])
# Prerequisites of lib/chown.c.
AC_DEFUN([gl_PREREQ_CHOWN],
[
AC_CHECK_HEADERS_ONCE(unistd.h)
])