Look for setcap during configury

private/hcvcastro/forking
Tor Lillqvist 2015-04-23 16:00:43 +03:00
parent bf929d5618
commit 4d717182ad
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,6 @@ clean-cache:
# After building loolwsd, set its capabilities to allow chroot()
SETCAP: loolwsd
sudo /sbin/setcap cap_sys_chroot=ep loolwsd
sudo @SETCAP@ cap_sys_chroot=ep loolwsd
bin_PROGRAMS += SETCAP

View File

@ -14,6 +14,11 @@ AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PATH_PROG([SETCAP], setcap,[],[/bin:/usr/bin:/sbin:/usr/sbin])
AS_IF([test -z "$SETCAP"],
[AC_MSG_ERROR([The setcap command is needed. It might be in a package called libcap-progs.])])
# Declare options
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],