Re: LibreOffice driver 1: Building libpq with Mozilla LDAP instead of OpenLDAP - Mailing list pgsql-hackers

From Lionel Elie Mamane
Subject Re: LibreOffice driver 1: Building libpq with Mozilla LDAP instead of OpenLDAP
Date
Msg-id 20111216083531.GA32490@capsaicin.mamane.lu
Whole thread Raw
In response to LibreOffice driver 1: Building libpq with Mozilla LDAP instead of OpenLDAP  (Lionel Elie Mamane <lionel@mamane.lu>)
List pgsql-hackers
On Tue, Dec 13, 2011 at 11:45:28AM +0100, Magnus Hagander wrote:
> On Tue, Dec 13, 2011 at 11:15, Lionel Elie Mamane <lionel@mamane.lu> wrote:

>> LibreOffice can be configured at build-time to use Mozilla LDAP or
>> OpenLDAP. We patched postgresql's configure.in to build libpq with
>> Mozilla LDAP when requested to do so.

>> I'd also be happy to extract from our patch the parts that are
>> relevant for integration in postgresql proper, and massage them into
>> the right modularity / form. Are you interested?

> Please do.

The patch is attached. I got everybody that touched the patch in the
LibreOffice git repo to agree to the PostgreSQL license for the patch.

The changes to tools/msvc are untested since I don't personally have a
Microsoft Windows build environment and LibreOffice uses
src/interfaces/lipq/win32.mak to build libpq.

The patch introduces a preprocessor macro USE_MICROSOFT_LDAP to enable
the Microsoft LDAP part to replace the previously used "#ifdef WIN32",
since one can also use Mozilla LDAP on MS Windows. I found that
cleaner than putting everywhere "#if defined(WIN32) && ! defined(USE_MOZLDAP)".

Except for that, the only change is to the config/build system proper,
to recognise and use the Mozilla LDAP library.

--
Lionel

Attachment

pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: [PATCH] Caching for stable expressions with constant arguments v3
Next
From: Lionel Elie Mamane
Date:
Subject: Re: LibreOffice driver 1: Building libpq with Mozilla LDAP instead of OpenLDAP