From: Fred Morcos Date: Wed, 12 Jul 2023 20:56:17 +0000 (+0200) Subject: Meson: LDAP X-Git-Tag: rec-5.1.0-alpha1~80^2~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f84c8782a54303e5ea9bd347028ea3b83be676f;p=thirdparty%2Fpdns.git Meson: LDAP --- diff --git a/meson.build b/meson.build index e20b7e77c3..c29c480164 100644 --- a/meson.build +++ b/meson.build @@ -119,6 +119,7 @@ all_modules = [ ['godbc', 'odbc'], ['gpgsql', 'pgsql'], ['gsqlite3', 'sqlite3'], + ['ldap', 'ldap'], ] selected_modules = [] foreach module: all_modules diff --git a/meson/ldap/meson.build b/meson/ldap/meson.build new file mode 100644 index 0000000000..b309bd4df8 --- /dev/null +++ b/meson/ldap/meson.build @@ -0,0 +1,9 @@ +# LDAP +# Outputs: deps_ldap + +deps_ldap = [dependency('ldap', required: true)] +deps_ldap += dependency('lber', required: true) +deps_ldap += dependency('krb5', required: true) + +conf.set10('LDAP', true, description: 'Enable LDAP') +summary('LDAP', 'With libldap ' + deps_ldap[0].version() + ', liblber ' + deps_ldap[1].version() + ' and krb5 ' + deps_ldap[2].version(), bool_yn: true, section: 'Configuration') diff --git a/meson_options.txt b/meson_options.txt index 0fc09e26c9..c380705989 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -25,3 +25,5 @@ option('module-gpgsql', type: 'boolean', value: false, description: 'Build the g 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') +option('module-ldap', type: 'boolean', value: false, description: 'Build the LDAP backend') +option('module-ldap-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable LDAP backend')