It looks to me like it couldn't find any matching library.
I had a problem like this with OpenLDAP 2.2.15 under Solaris, but it hasn't shown up so far in 2.2.17. Usually it found the library correctly running configure a second time under Solaris.
--Quanah
I tried using 2.2.17, still the same error ;-/