Martin Schwenke has uploaded this change for review.

View Change

build: Improve POSIX ACL include file checking

Linux libacl has both sys/acl.h and acl/libacl.h, while FreeBSD has
only sys/acl.h. Check separately for both of these and use the
appropriate cache variable in tests to improve readability.

Includes related to FSAL_CEPH and USE_NFSACL3 already indirectly
depend on HAVE_ACL_LIBACL_H, so nothing needs to change there.

It might be possible to allow USE_NFSACL3 on FreeBSD, with just
sys/acl.h rather than acl/libacl.h, but consider solving that later.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Change-Id: Ia22beffab4cf77275eaa50410a3c05194c30272e
---
M src/CMakeLists.txt
1 file changed, 30 insertions(+), 9 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/51/536251/1

To view, visit change 536251. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ia22beffab4cf77275eaa50410a3c05194c30272e
Gerrit-Change-Number: 536251
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Schwenke <martin@meltin.net>
Gerrit-MessageType: newchange