if meson is new enough.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
conf.set('HAVE_CRYPTSETUP', lib_cryptsetup.found() ? 1 : false)
if not get_option('cryptsetup').disabled() and get_option('cryptsetup-dlopen').enabled()
- lib_dl = cc.find_library(
- 'libdl',
- required : true)
+ if meson.version().version_compare('>= 0.62.0')
+ lib_dl = dependency('dl')
+ else
+ lib_dl = cc.find_library('dl')
+ endif
conf.set('CRYPTSETUP_VIA_DLOPEN', 1)
summary('cryptsetup support (dlopen)',
'enabled',