pgsql: Update configure's probe for libldap to work with OpenLDAP 2.5. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Update configure's probe for libldap to work with OpenLDAP 2.5.
Date
Msg-id E1m1tX6-0000HU-Nw@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Update configure's probe for libldap to work with OpenLDAP 2.5.

The separate libldap_r is gone and libldap itself is now always
thread-safe.  Unfortunately there seems no easy way to tell by
inspection whether libldap is thread-safe, so we have to take
it on faith that libldap is thread-safe if there's no libldap_r.
That should be okay, as it appears that libldap_r was a standard
part of the installation going back at least 20 years.

Report and patch by Adrian Ho.  Back-patch to all supported
branches, since people might try to build any of them with
a newer OpenLDAP.

Discussion: https://postgr.es/m/17083-a19190d9591946a7@postgresql.org

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/55cccdfdf1ee63fd8e818c2aa885f4d357773adc

Modified Files
--------------
configure                  | 89 +++++++++++++++++++++++++++-------------------
configure.in               | 20 ++++++-----
src/include/pg_config.h.in |  3 --
src/tools/msvc/Solution.pm |  1 -
4 files changed, 64 insertions(+), 49 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Reject cases where a query in WITH rewrites to just NOTIFY.
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid creating a RESULT RTE that's marked LATERAL.