summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2010-01-16 06:46:17 -0700
committerEric Blake <ebb9@byu.net>2010-01-19 06:41:57 -0700
commite489fd04d66000829f5458843970794eccacced8 (patch)
tree8256a51f15e44eddac820641016f5a94b323a153 /m4
parent31423c76e8e6885659141535a2a5fd9e3b4c503e (diff)
downloadcoreutils-e489fd04d66000829f5458843970794eccacced8.tar.xz
build: fix failure from bogus USE_XATTR definition
* m4/xattr.m4 (gl_FUNC_ADDR): Fix regression introduced in commit 6beca4248. * THANKS: Update. Reported by Adam Sampson.
Diffstat (limited to 'm4')
-rw-r--r--m4/xattr.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/xattr.m4 b/m4/xattr.m4
index bf7e8725f..80fddbd98 100644
--- a/m4/xattr.m4
+++ b/m4/xattr.m4
@@ -1,4 +1,5 @@
# xattr.m4 - check for Extended Attributes (Linux)
+# serial 3
# Copyright (C) 2003, 2008-2010 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -33,11 +34,11 @@ AC_DEFUN([gl_FUNC_XATTR],
use_xattr=yes
fi
fi
- AC_DEFINE_UNQUOTED([USE_XATTR], [$use_xattr],
- [Define if you want extended attribute support.])
if test $use_xattr = no; then
AC_MSG_WARN([libattr development library was not found or not usable.])
AC_MSG_WARN([AC_PACKAGE_NAME will be built without xattr support.])
fi
fi
+ AC_DEFINE_UNQUOTED([USE_XATTR], [`test $use_xattr != yes; echo $?`],
+ [Define if you want extended attribute support.])
])