Skip to content
Snippets Groups Projects
Unverified Commit bf5b17d8 authored by teor's avatar teor
Browse files

configure: Fix variable name typos

The "if-present" clause of AC_ARG_ENABLE() sets enable_{lzma,zstd},
so we don't need to set it. The "if-not-present" clause needs to set
enable_{lzma,zstd}, rather than just {lzma,zstd}.

The rest of the script only ever checks for enable_{lzma,zstd} = no,
so these changes do not actually change the behaviour of configure.

Fixes bug 32401.
parent 9ca25f3a
No related branches found
No related tags found
No related merge requests found
......@@ -1080,10 +1080,10 @@ dnl Where we do we find lzma?
AC_ARG_ENABLE(lzma,
AS_HELP_STRING(--enable-lzma, [enable support for the LZMA compression scheme.]),
[case "${enableval}" in
"yes") lzma=true ;;
"no") lzma=false ;;
"yes") ;;
"no") ;;
* ) AC_MSG_ERROR(bad value for --enable-lzma) ;;
esac], [lzma=auto])
esac], [enable_lzma=auto])
if test "x$enable_lzma" = "xno"; then
have_lzma=no;
......@@ -1112,10 +1112,10 @@ dnl Where we do we find zstd?
AC_ARG_ENABLE(zstd,
AS_HELP_STRING(--enable-zstd, [enable support for the Zstandard compression scheme.]),
[case "${enableval}" in
"yes") zstd=true ;;
"no") zstd=false ;;
"yes") ;;
"no") ;;
* ) AC_MSG_ERROR(bad value for --enable-zstd) ;;
esac], [zstd=auto])
esac], [enable_zstd=auto])
if test "x$enable_zstd" = "xno"; then
have_zstd=no;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment