mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
build-sys: refactor have_smack
detection
This commit is contained in:
parent
566c9f5ad5
commit
c0957da3f4
@ -669,10 +669,13 @@ AC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK
|
|||||||
[have_smack=auto])
|
[have_smack=auto])
|
||||||
|
|
||||||
if test "x${have_smack}" != xno; then
|
if test "x${have_smack}" != xno; then
|
||||||
|
AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
|
||||||
M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
|
M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
|
||||||
have_smack=yes
|
have_smack=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL([HAVE_SMACK], [test "x$have_smack" = "xyes"])
|
||||||
|
|
||||||
have_smack_run_label=no
|
have_smack_run_label=no
|
||||||
AC_ARG_WITH(smack-run-label,
|
AC_ARG_WITH(smack-run-label,
|
||||||
AS_HELP_STRING([--with-smack-run-label=STRING],
|
AS_HELP_STRING([--with-smack-run-label=STRING],
|
||||||
@ -690,12 +693,6 @@ AS_HELP_STRING([--with-smack-default-process-label=STRING],
|
|||||||
[AC_DEFINE_UNQUOTED(SMACK_DEFAULT_PROCESS_LABEL, ["$withval"], [Default SMACK label for executed processes])],
|
[AC_DEFINE_UNQUOTED(SMACK_DEFAULT_PROCESS_LABEL, ["$withval"], [Default SMACK label for executed processes])],
|
||||||
[])
|
[])
|
||||||
|
|
||||||
if test "x${have_smack}" = xyes ; then
|
|
||||||
AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_SMACK], [test "x$have_smack" = "xyes"])
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
AC_ARG_ENABLE([gcrypt],
|
AC_ARG_ENABLE([gcrypt],
|
||||||
AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
|
AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user