diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 8ae95cbd6d6..ab33f7784a6 100644 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -34,20 +34,16 @@ def configure(conf): Logs.warn("NOTE: Some AD DC parts of selftest will fail") conf.env.REQUIRE_LMDB = False - else: - if Options.options.without_ad_dc: - conf.env.REQUIRE_LMDB = False - else: - if Options.options.without_ldb_lmdb: - if not Options.options.without_ad_dc and \ - conf.CONFIG_GET('ENABLE_SELFTEST'): - raise Errors.WafError('--without-ldb-lmdb conflicts ' - 'with --enable-selftest while ' - 'building the AD DC') + elif Options.options.without_ldb_lmdb: + if not Options.options.without_ad_dc and \ + conf.CONFIG_GET('ENABLE_SELFTEST'): + raise Errors.WafError('--without-ldb-lmdb conflicts ' + 'with --enable-selftest while ' + 'building the AD DC') - conf.env.REQUIRE_LMDB = False - else: - conf.env.REQUIRE_LMDB = True + conf.env.REQUIRE_LMDB = False + else: + conf.env.REQUIRE_LMDB = True # if lmdb support is enabled then we require lmdb # is present, build the mdb back end and enable lmdb support in