]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Update configure's probe for libldap to work with OpenLDAP 2.5.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Jul 2021 16:38:55 +0000 (12:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Jul 2021 16:38:55 +0000 (12:38 -0400)
commitcd5d3aefa6d04dd35f6e6b9b047f6f2c1a903ad9
tree4130d72ce1237a721593099979afaaacd6694057
parentf0271cb15465e7992b48a7d59583b11f61b64e88
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
configure
configure.in
src/include/pg_config.h.in