From 50702ea69043823a9496a94354dce2c62b00936c Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 6 Dec 2008 12:34:37 +0000 Subject: [PATCH] add --disable-posix-acl configure option --- configure.ac | 8 ++++++++ include/ntfs-3g/security.h | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c3fc5afd..58b96ffa 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,13 @@ AC_ARG_ENABLE( [enable_mtab="yes"] ) +AC_ARG_ENABLE( + [posix-acl], + [AS_HELP_STRING([--disable-posix-acl],[disable POSIX ACL support])], + , + [enable_posix_acl="yes"] +) + AC_ARG_ENABLE( [device-default-io-ops], [AS_HELP_STRING([--disable-device-default-io-ops],[install default IO ops])], @@ -309,6 +316,7 @@ test "${enable_device_default_io_ops}" = "no" && AC_DEFINE( ) test "${enable_mtab}" = "no" && AC_DEFINE([IGNORE_MTAB], [1], [Don't update /etc/mtab]) +test "${enable_posix_acl}" = "yes" && AC_DEFINE([POSIXACLS], [1], [POSIX ACL support]) test "${enable_really_static}" = "yes" && enable_library="no" test "${enable_library}" = "no" && enable_ldconfig="no" diff --git a/include/ntfs-3g/security.h b/include/ntfs-3g/security.h index c927c0f5..fe31d57a 100644 --- a/include/ntfs-3g/security.h +++ b/include/ntfs-3g/security.h @@ -30,8 +30,6 @@ #include "inode.h" #include "dir.h" -#define POSIXACLS 1 - #if __BYTE_ORDER == __LITTLE_ENDIAN #define const_cpu_to_be16(x) ((((x) & 255L) << 8) + (((x) >> 8) & 255L)) #define const_cpu_to_be32(x) ((((x) & 255L) << 24) + (((x) & 0xff00L) << 8) \