IUSE="ssl"
# The module will compile fine without apache[ldap], but Apache will
-# crash if you try to load the module before rebuilding Apache with LDAP
-# support (and enabling it!).
-DEPEND="net-nds/openldap
- www-servers/apache
- ssl? ( dev-libs/openssl )"
-RDEPEND="${DEPEND}
+# crash if you try to load ${PN} without mod_ldap loaded.
+COMMON_DEPEND="net-nds/openldap
+ ssl? ( dev-libs/openssl )"
+DEPEND="${COMMON_DEPEND}
+ www-servers/apache"
+RDEPEND="${COMMON_DEPEND}
www-servers/apache[ldap]"
APACHE2_MOD_CONF="47_${PN}"