From 95f750e9469f9d882d5466374a95f16ecbf6167a Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Thu, 23 Sep 2010 13:53:37 +0200 Subject: [PATCH] Added extra check for Solaris xattr support so we don't get false positives on other os-es (AIX) etc. --- bacula/autoconf/configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index c68ecad6ad..a2064b8ce4 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2710,8 +2710,11 @@ if test x$support_xattr = xyes -o x$support_xattr = xauto; then dnl dnl If we failed to find *BSD support and the Linux or OSX implementation of xattr try the Solaris xattr implementation + dnl when we are running on an Solaris OS (checked by running uname -s) we don't just check the openat function as + dnl the posix openat, fstatat, unlinkat etc. are also available on other os-es but don't indicate xattr support is + dnl available. dnl - if test $have_xattr = no; then + if test $have_xattr = no -a `uname -s` = SunOS; then AC_CHECK_HEADER(sys/attr.h, [ AC_DEFINE(HAVE_SYS_ATTR_H,1,[Defines if your system have the sys/attr.h header file])] , ) AC_CHECK_HEADER(sys/nvpair.h, [ AC_DEFINE(HAVE_SYS_NVPAIR_H,1,[Defines if your system have the sys/nvpair.h header file])] , ) AC_CHECK_HEADER(attr.h, [ AC_DEFINE(HAVE_ATTR_H,1,[Defines if your system have the attr.h header file])] , ) -- 2.39.5