From: Fred Morcos Date: Thu, 21 Mar 2024 10:21:48 +0000 (+0100) Subject: Meson: Fix when the LDAP module is disabled X-Git-Tag: rec-5.1.0-alpha1~80^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6e2a1a7562b01ae5c8a8023b6e537adcf26847d;p=thirdparty%2Fpdns.git Meson: Fix when the LDAP module is disabled --- diff --git a/meson/ldap/meson.build b/meson/ldap/meson.build index 220fa1ee73..bd659543d8 100644 --- a/meson/ldap/meson.build +++ b/meson/ldap/meson.build @@ -38,22 +38,22 @@ if get_option('module-ldap') != 'disabled' dep_krb5_internal, ], ) -endif - -summary('LDAP', dep_ldap_internal.found(), bool_yn: true, section: 'LDAP') -if dep_ldap_internal.found() - summary('LDAP Name', dep_ldap_internal.name(), section: 'LDAP') - summary('LDAP Version', dep_ldap_internal.version(), section: 'LDAP') -endif - -summary('LBER', dep_lber_internal.found(), bool_yn: true, section: 'LDAP') -if dep_lber_internal.found() - summary('LBER Name', dep_lber_internal.name(), section: 'LDAP') - summary('LBER Version', dep_lber_internal.version(), section: 'LDAP') -endif -summary('Krb5', dep_krb5_internal.found(), bool_yn: true, section: 'LDAP') -if dep_krb5_internal.found() - summary('Krb5 Name', dep_krb5_internal.name(), section: 'LDAP') - summary('Krb5 Version', dep_krb5_internal.version(), section: 'LDAP') + summary('LDAP', dep_ldap_internal.found(), bool_yn: true, section: 'LDAP') + if dep_ldap_internal.found() + summary('LDAP Name', dep_ldap_internal.name(), section: 'LDAP') + summary('LDAP Version', dep_ldap_internal.version(), section: 'LDAP') + endif + + summary('LBER', dep_lber_internal.found(), bool_yn: true, section: 'LDAP') + if dep_lber_internal.found() + summary('LBER Name', dep_lber_internal.name(), section: 'LDAP') + summary('LBER Version', dep_lber_internal.version(), section: 'LDAP') + endif + + summary('Krb5', dep_krb5_internal.found(), bool_yn: true, section: 'LDAP') + if dep_krb5_internal.found() + summary('Krb5 Name', dep_krb5_internal.name(), section: 'LDAP') + summary('Krb5 Version', dep_krb5_internal.version(), section: 'LDAP') + endif endif