How to compile OpenLDAP libraries with SSL (OpenSSL) support?

Please provide me with instructions to build on Linux and Windows.

Thanks and regards. 
--
Ashwin kumar
(http://ashwinkumar.me)