]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
sysrepo: update meson.build
authorAles Mrazek <ales.mrazek@nic.cz>
Wed, 15 Jan 2020 12:00:59 +0000 (13:00 +0100)
committerAleš <ales.mrazek@nic.cz>
Mon, 20 Jul 2020 14:52:33 +0000 (16:52 +0200)
meson.build

index db50bc6c2ec956ce2efa0862dce7cadcb31f64b3..79d943d14fd5ef375fac8e991a3961769ac0eeec 100644 (file)
@@ -114,12 +114,12 @@ message('---------------------------')
 
 ### Sysrepo
 message('--- sysrepo dependencies ---')
-libsysrepo = dependency('libsysrepo', version: '>=1', required: false)
+libsysrepo = dependency('sysrepo', version: '>=1', required: false)
 libyang = dependency('libyang', version: '>=1', required: false)
-sysrepo_build = get_option('sysrepo')
-if (sysrepo_build == 'auto' or sysrepo_build == 'enabled') and libsysrepo.found() and libyang.found()
+sysrepo = get_option('sysrepo')
+if (sysrepo == 'auto' or sysrepo == 'enabled') and libsysrepo.found() and libyang.found()
   enable_sysrepo = true
-elif sysrepo_build == 'enabled' and not libsysrepo.found() and not libyang.found()
+elif sysrepo == 'enabled' and not libsysrepo.found() and not libyang.found()
   error('sysrepo=enabled requires libsysrepo and libyang')
 else
   enable_sysrepo = false
@@ -183,8 +183,8 @@ conf_data.set('SYSTEMD_VERSION',
   libsystemd.found() ? libsystemd.version().to_int() : -1)
 conf_data.set('NOVERBOSELOG', not verbose_log)
 conf_data.set('ENABLE_SENDMMSG', sendmmsg.to_int())
-conf_data.set('ENABLE_SYSREPO', enable_sysrepo.to_int())
 conf_data.set('ENABLE_CAP_NG', capng.found())
+conf_data.set('ENABLE_SYSREPO', enable_sysrepo)
 
 kresconfig = configure_file(
   output: 'kresconfig.h',