mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Build: Define HAVE_MICROLZMA when it is configured.
This commit is contained in:
parent
eea78216d2
commit
adaacafde6
2 changed files with 11 additions and 2 deletions
|
@ -819,6 +819,10 @@ if(MICROLZMA_DECODER)
|
||||||
target_sources(liblzma PRIVATE src/liblzma/common/microlzma_decoder.c)
|
target_sources(liblzma PRIVATE src/liblzma/common/microlzma_decoder.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (MICROLZMA_ENCODER OR MICROLZMA_DECODER)
|
||||||
|
add_compile_definitions(HAVE_MICROLZMA)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# lzip (.lz) format support #
|
# lzip (.lz) format support #
|
||||||
|
|
|
@ -304,8 +304,13 @@ AC_ARG_ENABLE([microlzma], AS_HELP_STRING([--disable-microlzma],
|
||||||
for example, erofs-utils.]),
|
for example, erofs-utils.]),
|
||||||
[], [enable_microlzma=yes])
|
[], [enable_microlzma=yes])
|
||||||
case $enable_microlzma in
|
case $enable_microlzma in
|
||||||
yes | no)
|
yes)
|
||||||
AC_MSG_RESULT([$enable_microlzma])
|
AC_DEFINE([HAVE_MICROLZMA], [1],
|
||||||
|
[Define to 1 if MicroLZMA support is enabled.])
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT([])
|
AC_MSG_RESULT([])
|
||||||
|
|
Loading…
Reference in a new issue