Build: Add configure option --disable-microlzma.
MicroLZMA was made for EROFS and used by erofs-utils. It might be used by something else in the future but those wanting a smaller build for specific situations can now disable this rarely-needed feature.
This commit is contained in:
parent
054ccd6d14
commit
59c4d6e139
22
configure.ac
22
configure.ac
|
@ -294,6 +294,28 @@ else
|
|||
fi
|
||||
|
||||
|
||||
#############
|
||||
# MicroLZMA #
|
||||
#############
|
||||
|
||||
AC_MSG_CHECKING([if MicroLZMA support should be built])
|
||||
AC_ARG_ENABLE([microlzma], AS_HELP_STRING([--disable-microlzma],
|
||||
[Do not build MicroLZMA encoder and decoder.
|
||||
It is needed by specific applications only,
|
||||
for example, erofs-utils.]),
|
||||
[], [enable_microlzma=yes])
|
||||
case $enable_microlzma in
|
||||
yes | no)
|
||||
AC_MSG_RESULT([$enable_microlzma])
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT([])
|
||||
AC_MSG_ERROR([--enable-microlzma accepts only `yes' or `no'.])
|
||||
;;
|
||||
esac
|
||||
AM_CONDITIONAL(COND_MICROLZMA, test "x$enable_microlzma" = xyes)
|
||||
|
||||
|
||||
###########################
|
||||
# Assembler optimizations #
|
||||
###########################
|
||||
|
|
Loading…
Reference in New Issue