Rename some meson build options to match autoconf convention

This commit is contained in:
Lzu Tao
2018-12-01 23:18:59 +07:00
parent 9ac9cbc9de
commit 918e0d5c36
4 changed files with 28 additions and 27 deletions
+6 -6
View File
@@ -53,14 +53,14 @@ libzstd_sources = [join_paths(library_common_dir, 'entropy_common.c'),
join_paths(library_deprecated_dir, 'zbuff_compress.c'),
join_paths(library_deprecated_dir, 'zbuff_decompress.c')]
if legacy_support == '0'
legacy_support = 'false'
if with_legacy_support == '0'
with_legacy_support = 'false'
endif
if legacy_support != 'false'
if legacy_support == 'true'
legacy_support = '5'
if with_legacy_support != 'false'
if with_legacy_support == 'true'
with_legacy_support = '5'
endif
legacy_int = legacy_support.to_int()
legacy_int = with_legacy_support.to_int()
if legacy_int < 0 or legacy_int >= 8
legacy_int = 0
endif