@@ -147,14 +147,9 @@ AC_CHECK_LIB([ssl], [SSL_CTX_new],
AC_DEFINE([HAVE_LIBSSL], [1],
[Define if you have libssl])],
[AC_MSG_ERROR([libssl not found.])])
-AC_CHECK_LIB([attr], [fgetxattr],
- [AC_SUBST([LIBATTR], ["-lattr"])
- AC_DEFINE([HAVE_LIBATTR], [1],
- [Define if you have libattr])],
- [AC_MSG_ERROR([libattr not found.])])
# Checks for header files.
-AC_CHECK_HEADERS([fcntl.h langinfo.h locale.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h syslog.h termios.h unistd.h wchar.h])
+AC_CHECK_HEADERS([fcntl.h langinfo.h locale.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h syslog.h termios.h unistd.h wchar.h attr/xattr.h])
AC_HEADER_STDBOOL
# Checks for typedefs, structures, and compiler characteristics.
Nothing in fedfs-utils uses libattr.so. The "*xattr" API lives in glibc. The check for libattr.so in configure.ac adds an extraneous package build dependency. configure.ac should look for the presence of the attr/xattr.h header instead, as that is what the fedfs-utils build requires. Fixes: f5c16606 (configure.ac: check for presence of libattr) Reported-by: Cristian RodrÃguez <crrodriguez@opensuse.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> --- configure.ac | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)