1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[meson] find bzip2 in case of no .pc file

This commit is contained in:
Witold Filipczyk 2022-02-27 18:38:36 +01:00
parent c2182097a9
commit ec8c8debd4

View File

@ -255,7 +255,10 @@ if conf_data.get('CONFIG_X')
endif
if conf_data.get('CONFIG_BZIP2')
bz2deps = dependency('bzip2', static: st)
bz2deps = dependency('bzip2', static: st, required: false)
if not bz2deps.found()
bz2deps = compiler.find_library('bz2', static: st)
endif
deps += bz2deps
endif