view modules/lchown @ 15023:9acfed062e5f

lchown: Move AC_LIBOBJ invocations to module description. * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here... * modules/lchown (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 12:59:37 +0200
parents efab6978105e
children
line wrap: on
line source

Description:
lchown() function: change ownership of a file, without following symlinks.

Files:
lib/lchown.c
m4/lchown.m4

Depends-on:
unistd
chown           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
errno           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
lstat           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
stdbool         [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
sys_stat        [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]

configure.ac:
gl_FUNC_LCHOWN
if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
  AC_LIBOBJ([lchown])
fi
gl_UNISTD_MODULE_INDICATOR([lchown])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Jim Meyering, Eric Blake