Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
[gnulib.git] / m4 / chown.m4
1 #serial 9
2
3 dnl From Jim Meyering.
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.
6 dnl
7
8 AC_DEFUN([gl_FUNC_CHOWN],
9 [
10   AC_REQUIRE([AC_TYPE_UID_T])dnl
11   AC_REQUIRE([AC_FUNC_CHOWN])
12   if test $ac_cv_func_chown_works = no; then
13     AC_LIBOBJ(chown)
14     AC_DEFINE(chown, rpl_chown,
15       [Define to rpl_chown if the replacement function should be used.])
16     gl_PREREQ_CHOWN
17   fi
18 ])
19
20 # Prerequisites of lib/chown.c.
21 AC_DEFUN([gl_PREREQ_CHOWN],
22 [
23   AC_CHECK_HEADERS_ONCE(unistd.h)
24 ])