diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-11-18 19:20:46 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-11-18 19:55:43 +0200 |
commit | b997c90f9e3a64186341c57c8f3f25c2246d0ebb (patch) | |
tree | 3d9ae62dd8bf3e37c85ea07efe9310ffe2bdc1be /configure.ac | |
parent | 643a8844a578ff146cfe746fe6091d29502b6c40 (diff) | |
download | tar-b997c90f9e3a64186341c57c8f3f25c2246d0ebb.tar.gz |
Prepare for implementing extended attribute support.
This patch adds *xattr() stubs in case extended attribute support is
not present and implements the *attrat() family of functions. Based
on the patch by Pavel Raiskup <pavel@raiskup.cz> for gnulib.
* acinclude.m4 (TAR_HEADERS_ATTR_XATTR_H): New defun.
* configure.ac: Call TAR_HEADERS_ATTR_XATTR_H
* lib/Makefile.am: Add xattr-at.[ch], distribute attr-xattr.in.h
[!TAR_COND_XATTR_H]: Build attr/xattr.h
* lib/attr-xattr.in.h: New file.
* lib/xattr-at.c: New file.
* lib/xattr-at.h: New file.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f2763bd7..77976be5 100644 --- a/configure.ac +++ b/configure.ac @@ -90,6 +90,8 @@ gl_INIT # paxutils modules tar_PAXUTILS +TAR_HEADERS_ATTR_XATTR_H + AC_CHECK_FUNCS_ONCE([fchmod fchown fsync lstat mkfifo readlink symlink]) AC_CHECK_DECLS([getgrgid],,, [#include <grp.h>]) AC_CHECK_DECLS([getpwuid],,, [#include <pwd.h>]) |