Let's relax the dependency on json-c, when the comman line option is set
to auto. It will just ignore the dependency if not found.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
if get_option('json-c').disabled()
json_c_dep = dependency('', required: false)
else
- json_c_dep = dependency('json-c', required: true, version: '>=0.13',
+ json_c_dep = dependency('json-c', required: get_option('json-c'), version: '>=0.13',
fallback : ['json-c', 'json_c_dep'])
if json_c_dep.version().version_compare('>=0.14')
conf.set('CONFIG_JSONC_14', true, description: 'Is json-c at least 0.14?')