]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: CDB
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 12 Jul 2023 21:29:03 +0000 (23:29 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:29 +0000 (13:28 +0100)
meson/cdb/meson.build [new file with mode: 0644]

diff --git a/meson/cdb/meson.build b/meson/cdb/meson.build
new file mode 100644 (file)
index 0000000..c59f302
--- /dev/null
@@ -0,0 +1,16 @@
+# CDB
+# Outputs: deps_cdb
+
+deps_cdb = dependency('libcdb', required: false)
+
+if not deps_cdb.found()
+  if cxx.has_header('cdb.h', required: true)
+    if cxx.has_function('cdb_find', args: ['-lcdb'])
+      deps_cdb = declare_dependency(link_args: ['-lcdb'])
+    endif
+  endif
+endif
+
+conf.set10('HAVE_CDB', deps_cdb.found(), description: 'Whether we have CDB')
+conf.set10('CDB', deps_cdb.found(), description: 'Whether we have CDB')
+summary('CDB', deps_cdb.found(), bool_yn: true, section: 'Configuration')