X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flchmod.m4;h=7f76c56efd085a18b64b72d5cc481e26cfc8dd31;hb=9e83e486f6e0949ad5d3843011ae88c495681727;hp=06467a04b05726ffe731ccf8b04a47d5d50edda8;hpb=901bc47c9a8db854db97bb28780352748020c81d;p=gnulib.git diff --git a/m4/lchmod.m4 b/m4/lchmod.m4 index 06467a04b..7f76c56ef 100644 --- a/m4/lchmod.m4 +++ b/m4/lchmod.m4 @@ -1,6 +1,6 @@ -#serial 2 +#serial 3 -dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,5 +10,13 @@ dnl Provide a replacement for lchmod on hosts that lack it. AC_DEFUN([gl_FUNC_LCHMOD], [ + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + + dnl Persuade glibc to declare lchmod(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([lchmod]) + if test $ac_cv_func_lchmod = no; then + HAVE_LCHMOD=0 + fi ])