summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ConfigureChecks.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index d50e00b..de74220 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -51,6 +51,21 @@ endif( )
if( WITH_ACL )
pkg_search_module( ACL libacl )
if( NOT ACL_FOUND )
+ find_file( HAVE_ACL_H "sys/acl.h" )
+ if( HAVE_ACL_H )
+ find_library( HAVE_ACL_LIB NAMES acl )
+ if( HAVE_ACL_LIB )
+ set( ACL_LIBRARIES "${HAVE_ACL_LIB}" CACHE INTERNAL "Extended ACL library" FORCE )
+ endif( )
+ tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${ACL_LIBRARIES}" )
+ check_symbol_exists( acl_free "${HAVE_ACL_H}" HAVE_ACL )
+ tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ if( HAVE_ACL )
+ set( ACL_FOUND 1 CACHE INTERNAL "Posix ACL found" FORCE )
+ endif()
+ endif()
+ endif( )
+ if( NOT ACL_FOUND )
tde_message_fatal( "ACL support was requested, but not found on your system" )
endif( )
set( HAVE_POSIX_ACL 1 )