From 2716cc715540562ec4f46ef1eb41722e86ebb390 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Wed, 10 Nov 2021 19:02:09 +0300 Subject: [PATCH] Set --disable-setcap as default for !Linux platforms Signed-off-by: Gleb Popov <6yearold@gmail.com> Change-Id: I67e211a94870e46b19426c68d599e7048543a8f5 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4a9af3a96..e88d268a8 100644 --- a/configure.ac +++ b/configure.ac @@ -1175,10 +1175,10 @@ if test -n "$with_user_id"; then fi AC_DEFINE_UNQUOTED([COOL_USER_ID],["$COOL_USER_ID"],[The user-name which is allowed to run loolwsd and its tools]) -AM_CONDITIONAL([ENABLE_SETCAP], [test "$enable_setcap" != "no"]) +AM_CONDITIONAL([ENABLE_SETCAP], [test "$enable_setcap" != "no" -a `uname -s` = "Linux"]) ENABLE_SETCAP= -if test "$enable_setcap" != "no"; then +if test "$enable_setcap" != "no" -a `uname -s` = "Linux"; then ENABLE_SETCAP=true setcap_msg="setcap enabled" else