checking for ldap_init in -lldap_r... no^^^^^^^^^^^^^^^^^^^^^^^^^^^So do you have libldap_r in /opt/local/openldap/lib? Does it work correctly?
Yes, there is a libldap_r directory under /opt/local/openldap/lib. Not sure if it
works correctly or not. I just downloaded the openldap sdk and installed the libraries
and include files in /opt/local/openldap.
