Build: Disable xzdec, lzmadec, and lzmainfo when they cannot be built.
They all need decoder support and if that isn't available, there's no point trying to build them.
This commit is contained in:
parent
8ea49606cf
commit
a322f70ad9
|
@ -416,18 +416,21 @@ AM_CONDITIONAL([COND_XZ], [test x$enable_xz != xno])
|
||||||
AC_ARG_ENABLE([xzdec], [AS_HELP_STRING([--disable-xzdec],
|
AC_ARG_ENABLE([xzdec], [AS_HELP_STRING([--disable-xzdec],
|
||||||
[do not build xzdec])],
|
[do not build xzdec])],
|
||||||
[], [enable_xzdec=yes])
|
[], [enable_xzdec=yes])
|
||||||
|
test "x$enable_decoders" = xno && enable_xzdec=no
|
||||||
AM_CONDITIONAL([COND_XZDEC], [test x$enable_xzdec != xno])
|
AM_CONDITIONAL([COND_XZDEC], [test x$enable_xzdec != xno])
|
||||||
|
|
||||||
AC_ARG_ENABLE([lzmadec], [AS_HELP_STRING([--disable-lzmadec],
|
AC_ARG_ENABLE([lzmadec], [AS_HELP_STRING([--disable-lzmadec],
|
||||||
[do not build lzmadec
|
[do not build lzmadec
|
||||||
(it exists primarily for LZMA Utils compatibility)])],
|
(it exists primarily for LZMA Utils compatibility)])],
|
||||||
[], [enable_lzmadec=yes])
|
[], [enable_lzmadec=yes])
|
||||||
|
test "x$enable_decoder_lzma1" = xno && enable_lzmadec=no
|
||||||
AM_CONDITIONAL([COND_LZMADEC], [test x$enable_lzmadec != xno])
|
AM_CONDITIONAL([COND_LZMADEC], [test x$enable_lzmadec != xno])
|
||||||
|
|
||||||
AC_ARG_ENABLE([lzmainfo], [AS_HELP_STRING([--disable-lzmainfo],
|
AC_ARG_ENABLE([lzmainfo], [AS_HELP_STRING([--disable-lzmainfo],
|
||||||
[do not build lzmainfo
|
[do not build lzmainfo
|
||||||
(it exists primarily for LZMA Utils compatibility)])],
|
(it exists primarily for LZMA Utils compatibility)])],
|
||||||
[], [enable_lzmainfo=yes])
|
[], [enable_lzmainfo=yes])
|
||||||
|
test "x$enable_decoder_lzma1" = xno && enable_lzmainfo=no
|
||||||
AM_CONDITIONAL([COND_LZMAINFO], [test x$enable_lzmainfo != xno])
|
AM_CONDITIONAL([COND_LZMAINFO], [test x$enable_lzmainfo != xno])
|
||||||
|
|
||||||
AC_ARG_ENABLE([lzma-links], [AS_HELP_STRING([--disable-lzma-links],
|
AC_ARG_ENABLE([lzma-links], [AS_HELP_STRING([--disable-lzma-links],
|
||||||
|
|
Loading…
Reference in New Issue