acl: warn if ACL support is not detected
[gnulib.git] / m4 / acl.m4
index 5340e2e..784f4ea 100644 (file)
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -116,6 +116,9 @@ int type = ACL_TYPE_EXTENDED;]],
     fi
     if test "x$enable_acl$use_acl" = "xyes0"; then
       AC_MSG_ERROR([ACLs enabled but support not detected])
+    elif test "x$enable_acl$use_acl" = "xauto0"; then
+      AC_MSG_WARN([libacl development library was not found or not usable.])
+      AC_MSG_WARN([AC_PACKAGE_NAME will be built without ACL support.])
     fi
   fi
   AC_SUBST([LIB_ACL])