From: Mattias Ellert Date: Fri, 28 Feb 2025 12:04:30 +0000 (+0100) Subject: ITS#10314 Only install the slapi-plugin.h header if building slapi library X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06cd30fb72af9b2aa901a93153a76859840b55bc;p=thirdparty%2Fopenldap.git ITS#10314 Only install the slapi-plugin.h header if building slapi library --- diff --git a/include/Makefile.in b/include/Makefile.in index 10d5c309a5..6f75462c6f 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -15,16 +15,21 @@ all-local: ldap_config.h FORCE +BUILD_SLAPI = @BUILD_SLAPI@ + install-local: FORCE -$(MKDIR) $(DESTDIR)$(includedir) for header in $(srcdir)/lber.h lber_types.h \ $(srcdir)/ldap.h $(srcdir)/ldap_cdefs.h \ $(srcdir)/ldap_schema.h $(srcdir)/ldap_utf8.h \ - $(srcdir)/slapi-plugin.h ldap_features.h \ + ldap_features.h \ $(srcdir)/ldif.h $(srcdir)/openldap.h ; \ do \ $(INSTALL) $(INSTALLFLAGS) -m 644 $$header $(DESTDIR)$(includedir); \ done + if test "$(BUILD_SLAPI)" = "yes"; then \ + $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/slapi-plugin.h $(DESTDIR)$(includedir); \ + fi clean-local: FORCE $(RM) ldap_config.h