From 122a26ac790c56a124397966293ddf110f768db8 Mon Sep 17 00:00:00 2001 From: Cameron Norman Date: Tue, 10 Oct 2017 23:18:22 -0700 Subject: Add AppArmor profile --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 14663e2..be0b51a 100644 --- a/configure.ac +++ b/configure.ac @@ -331,6 +331,21 @@ AS_IF([test -n "$with_systemduserunitdir" -a "x$with_systemduserunitdir" != xno] AM_CONDITIONAL([ENABLE_SYSTEMD], [test "x$enable_systemd" != xno]) +# Check for AppArmor +AC_MSG_CHECKING([whether to enable AppArmor profile]) +AC_ARG_ENABLE([apparmor], [AC_HELP_STRING([--enable-apparmor], + [enable AppArmor profile])], + [enable_apparmor=$enableval],[enable_apparmor=no]) +AS_IF([test "x$enable_apparmor" != xno], [ + AC_MSG_RESULT([yes]) + enable_apparmor=yes +], [ + AC_MSG_RESULT([no]) + enable_apparmor=no +]) +AM_CONDITIONAL([ENABLE_APPARMOR], [test "x$enable_apparmor" != xno]) + + # Checks for header files. AC_CHECK_HEADERS([locale.h stdint.h stdlib.h string.h unistd.h signal.h]) @@ -373,4 +388,5 @@ echo " GUI: ${enable_gui} Ubuntu icons: ${enable_ubuntu} systemd units: ${enable_systemd} ${systemduserunitdir} + AppArmor profile: ${enable_apparmor} " -- cgit v1.2.3-70-g09d2