aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-12-20 22:43:44 +0800
committerJia Tan <jiat0218@gmail.com>2023-12-20 22:43:44 +0800
commit5feb09266fd2928ec0a4dcb98c1dc7f053111316 (patch)
treed4ef60fc79b59d14cfcbae1d3e1788fa2a16edac
parentxzdec: Add sandbox support for Pledge, Capsicum, and Landlock. (diff)
downloadxz-5feb09266fd2928ec0a4dcb98c1dc7f053111316.tar.xz
Build: Allow sandbox to be configured for just xzdec.
If xz is disabled, then xzdec can still use the sandbox.
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index cdd72a9f..a4ef57a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -523,15 +523,15 @@ AC_ARG_ENABLE([sandbox], [AS_HELP_STRING([--enable-sandbox=METHOD],
The default is 'auto' which enables sandboxing if
a supported sandboxing method is found.])],
[], [enable_sandbox=auto])
-case $enable_xz-$enable_sandbox in
- no-*)
+case $enable_xzdec-$enable_xz-$enable_sandbox in
+ no-no-*)
enable_sandbox=no
- AC_MSG_RESULT([no, --disable-xz was used])
+ AC_MSG_RESULT([no, --disable-xz and --disable-xzdec was used])
;;
- *-auto)
+ *-*-auto)
AC_MSG_RESULT([maybe (autodetect)])
;;
- *-no | *-capsicum | *-pledge | *-landlock)
+ *-*-no | *-*-capsicum | *-*-pledge | *-*-landlock)
AC_MSG_RESULT([$enable_sandbox])
;;
*)