]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: GSS-TSIG
authorFred Morcos <fred.morcos@open-xchange.com>
Fri, 7 Jul 2023 10:28:09 +0000 (12:28 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:28 +0000 (13:28 +0100)
meson.build
meson/gss-tsig/meson.build [new file with mode: 0644]
meson_options.txt

index 3ba5f5cce5eedc37ec89c8a76ed993ab4dd90636..7754586615491be6635e64839a86ec02cfe4924e 100644 (file)
@@ -52,6 +52,7 @@ subdir('meson/from-git')        # From Git
 subdir('meson/dlopen')          # dlopen
 subdir('meson/verbose-logging') # Verbose Logging
 subdir('meson/pkcs11')          # PKCS11
+subdir('meson/gss-tsig')        # GSS-TSIG
 
 # Find or generate pdns/dnslabeltext.cc
 if not ragel.found() and not fs.exists('pdns/dnslabeltext.cc')
diff --git a/meson/gss-tsig/meson.build b/meson/gss-tsig/meson.build
new file mode 100644 (file)
index 0000000..238ea53
--- /dev/null
@@ -0,0 +1,15 @@
+# GSS-TSIG
+# Inputs: conf deps
+
+opt_gss_tsig = get_option('gss-tsig')
+conf.set10('GSS_TSIG', opt_gss_tsig, description: 'Whether to enable GSS-TSIG support')
+
+dep_krb5 = dependency('krb5', required: opt_gss_tsig)
+dep_krb5_gssapi = dependency('krb5-gssapi', required: opt_gss_tsig)
+conf.set10('ENABLE_GSS_TSIG', dep_krb5.found() and dep_krb5_gssapi.found(), description: 'Whether we have GSS-TSIG support')
+
+deps += dep_krb5
+deps += dep_krb5_gssapi
+
+value = dep_krb5.found() and dep_krb5_gssapi.found() ? 'With krb5 ' + dep_krb5.version() + ' and krb5-gssapi ' + dep_krb5_gssapi.version() : false
+summary('GSS-TSIG', value, bool_yn: opt_gss_tsig, section: 'Configuration')
index c0706472e8dd9cc80133bea89c96745769dc6d81..77be25de0ff04d2d0376eb169659a9437d25c8de 100644 (file)
@@ -16,3 +16,4 @@ option('fuzz-targets', type: 'boolean', value: false, description: 'Enable fuzzi
 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)')