.if ${PHP_MODNAME} == "ldap"
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
.if defined(WITH_SASL)
CONFIGURE_ARGS+=--with-ldap-sasl
WANT_OPENLDAP_SASL= yes
.endif
USE_OPENLDAP= yes