4 dnl Determine whether chown accepts arguments of -1 for uid and gid.
5 dnl If it doesn't, arrange to use the replacement function.
8 AC_DEFUN([jm_FUNC_CHOWN],
10 AC_REQUIRE([AC_TYPE_UID_T])dnl
11 AC_REQUIRE([AC_FUNC_CHOWN])
12 if test $ac_cv_func_chown_works = no; then
14 AC_DEFINE(chown, rpl_chown,
15 [Define to rpl_chown if the replacement function should be used.])
20 # Prerequisites of lib/chown.c.
21 AC_DEFUN([gl_PREREQ_CHOWN],
23 AC_CHECK_HEADERS_ONCE(unistd.h)