summary('Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
endif
-# Sqlite3
-opt_sqlite3 = get_option('sqlite3')
-# TODO Use Sqlite3
-
# Swagger
if not fs.exists('pdns/api-swagger.json') and not python_have_venv
error('Python3 and/or its venv module is not available and ' +
--- /dev/null
+# SQLite3
+# Outputs: deps_sqlite3
+
+deps_sqlite3 = dependency('sqlite3', required: true)
+
+conf.set10('HAVE_SQLITE3', deps_sqlite3.found(), description: 'Whether we have Sqlite3')
+conf.set10('SQLITE3', deps_sqlite3.found(), description: 'Whether we have Sqlite3')
+summary('SQLite3', deps_sqlite3.found(), bool_yn: true, section: 'Configuration')
+summary('SQLite3 Version', deps_sqlite3.version(), section: 'Configuration')
option('backend-unit-tests', type: 'boolean', value: false, description: 'Enable building backend unit tests')
option('reproducible', type: 'boolean', value: false, description: 'Create reproducible builds. Use this only if you are a distribution maintainer and need reproducible builds. If you compile PowerDNS yourself, leave this disabled, as it might make debugging harder')
option('fuzz-targets', type: 'boolean', value: false, description: 'Enable fuzzing targets')
-option('sqlite3', type: 'boolean', value: false, description: 'Include the sqlite3 driver')
option('verbose-logging', type: 'boolean', value: false, description: 'Enable verbose logging')
option('pkcs11', type: 'boolean', value: false, description: 'Enable PKCS11 support (experimental)')
option('gss-tsig', type: 'boolean', value: false, description: 'Enable GSS-TSIG support (experimental)')
option('module-godbc-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable godbc backend')
option('module-gpgsql', type: 'boolean', value: false, description: 'Build the gpgsql backend')
option('module-gpgsql-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable gpgsql backend')
+option('module-gsqlite3', type: 'boolean', value: false, description: 'Build the gsqlite3 backend')
+option('module-gsqlite3-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable gsqlite3 backend')