+if test "$ol_enable_meta" != no ; then
+ if test "$ol_enable_ldap" = no ; then
+ AC_MSG_ERROR([need --enable-ldap to use --enable-meta])
+ fi
+ if test "$ol_enable_rewrite" = no ; then
+ AC_MSG_ERROR([need --enable-rewrite to use --enable-meta])
+ fi
+ AC_DEFINE(SLAPD_META,1,[define to support LDAP Metadirectory backend])
+ BUILD_SLAPD=yes
+ BUILD_META=yes
+ if test "$ol_with_meta_module" != static ; then
+ AC_DEFINE(SLAPD_META_DYNAMIC,1,
+ [define to support dynamic LDAP Metadirectory backend])
+ BUILD_META=mod
+ BUILD_META_DYNAMIC=shared
+ SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
+ fi
+fi
+
+if test "$ol_enable_monitor" != no ; then
+ AC_DEFINE(SLAPD_MONITOR,1,[define to support cn=Monitor backend])
+ BUILD_SLAPD=yes
+ BUILD_MONITOR=yes
+ if test "$ol_with_monitor_module" != static ; then
+ AC_DEFINE(SLAPD_MONITOR_DYNAMIC,1,
+ [define to support dynamic cn=Monitor backend])
+ BUILD_MONITOR=mod
+ BUILD_MONITOR_DYNAMIC=shared
+ SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
+ fi
+fi
+