Debian Codegraph @

m4/lchmod.m4

raw
1 # lchmod.m4
2 # serial 11
3 dnl Copyright (C) 2005-2006, 2008-2026 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 dnl From Paul Eggert.
10 dnl Provide a replacement for lchmod on hosts that lack a working version.
11
12 AC_DEFUN([gl_FUNC_LCHMOD],
13 [
14 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
15
16 dnl Persuade glibc <sys/stat.h> to declare lchmod().
17 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
18
19 gl_CHECK_FUNCS_ANDROID([lchmod], [[#include <sys/stat.h>]])
20 if test "$ac_cv_func_lchmod" = no; then
21 HAVE_LCHMOD=0
22 fi
23 ])
24
25 # Prerequisites of lib/lchmod.c.
26 AC_DEFUN([gl_PREREQ_LCHMOD],
27 [
28 :
29 ])