+--- mozilla/mail/configure.in.orig 2010-06-23 19:43:07.000000000 +0200
++++ mozilla/mail/configure.in 2010-07-06 11:14:54.350499449 +0200
+@@ -59,7 +59,12 @@
+ MOZ_LDAP_XPCOM=,
+ MOZ_LDAP_XPCOM=1)
+
+-if test "$MOZ_LDAP_XPCOM"; then
++if test "$MOZ_LDAP_DIR" ; then
++ LDAP_CFLAGS=$(pkg-config --cflags mozldap)
++ LDAP_LIBS=$(pkg-config --libs mozldap)
++ LDAP_COMPONENT=mozldap
++ LDAP_MODULE="MODULE(nsLDAPProtocolModule)"
++elif test "$MOZ_LDAP_XPCOM"; then
+ LDAP_CFLAGS='-I${DIST}/public/ldap'
+ if test "$OS_ARCH" = "WINNT"; then
+ if test -n "$GNU_CC"; then
+@@ -118,7 +130,7 @@