solaris_module=no
AC_MSG_CHECKING([if we can build Solaris kernel module])
- if test -x /usr/ccs/bin/ld && test x$netatalk_cv_ddp_enabled = yes ; then
+ if test -x /usr/ccs/bin/ld && test x"$netatalk_cv_ddp_enabled" = x"yes" ; then
solaris_module=yes
fi
AC_MSG_RESULT([$solaris_module])
AC_MSG_RESULT([$OVERWRITE_CONFIG])
dnl --------------------- check for ACL support
-neta_cv_nfsv4acl="no"
AC_MSG_CHECKING([if NFSv4 ACL Support should be enabled])
AC_ARG_ENABLE(nfsv4acls,
- [ --enable-nfsv4acls enable NFSv4 ACL Support],[
+ [ --enable-nfsv4acls enable NFSv4 ACL Support (auto)],[
if test x"$enableval" = x"yes"; then
AC_MSG_RESULT([yes])
neta_cv_nfsv4acl="yes"
else
AC_MSG_RESULT([no])
+ neta_cv_nfsv4acl="no"
fi],[
- AC_MSG_RESULT([no])
+ AC_MSG_RESULT([auto])
+ neta_cv_nfsv4acl="yes"
]
)
+
+if test x"$this_os" != x"solaris" && test x"$neta_cv_nfsv4acl" = x"yes" ; then
+ AC_MSG_NOTICE([NFSv4 ACL Support only available on (Open)Solaris])
+ neta_cv_nfsv4acl="no"
+fi
+
if test x$neta_cv_nfsv4acl = xyes; then
AC_CHECK_HEADER([ldap.h],,[
AC_MSG_ERROR([ACL Support need the LDAP client headers not found.])