ps: making the libselinux support configurable
Previously the libselinux support was present in the sources, but disabled with a preprocessor condition (#if 0). From now the libselinux support can be enabled with the --enable-libselinux switch available in the configuration script. That way is more flexible than local patches modifying the condition value from 0 to 1.
This commit is contained in:
@@ -111,6 +111,14 @@ if test "$enable_watch8bit" = "yes"; then
|
||||
AC_DEFINE([WITH_WATCH8BIT], [1], [Enable 8 bit clean watch])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([libselinux],
|
||||
AS_HELP_STRING([--enable-libselinux], [enable libselinux]),
|
||||
[enable_libselinux=$enableval],
|
||||
[enable_libselinux="no"])
|
||||
if test "$enable_libselinux" = "yes"; then
|
||||
AC_DEFINE([ENABLE_LIBSELINUX], [1], [Enable libselinux])
|
||||
fi
|
||||
|
||||
# Optional packages - AC_ARG_WITH
|
||||
AC_ARG_WITH([ncurses],
|
||||
AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]),
|
||||
|
||||
Reference in New Issue
Block a user