build: fix build failure due to missing libxattr
authorJim Meyering <meyering@redhat.com>
Tue, 12 Jan 2010 06:58:44 +0000 (07:58 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 12 Jan 2010 07:06:47 +0000 (08:06 +0100)
commit6beca4248f572c2503657fb16341bd43cfa7d254
treecc5512cc589f4f53b6d5b6f18417726221c44ee0
parent37b8bfda56adc0c633b041948ef78e53b8ce1add
build: fix build failure due to missing libxattr

Configure is supposed to detect insufficient XATTR support.
However, if a system has the required headers, but no library,
the configure script would mistakenly enable USE_XATTR.
* m4/xattr.m4 (gl_FUNC_XATTR): If the attr_copy_file function
is not found, don't set USE_XATTR.
Nelson Beebe reported a link failure on RHEL 5.3.
Also, do not let the combination of --disable-xattr and
a stray LIB_XATTR environment setting perturb the build.
* NEWS (Build-related): Mention it.
NEWS
m4/xattr.m4