]> git.sur5r.net Git - openldap/blobdiff - configure.in
Add avl_find2 returning the Avlnode, allowing its data to be reset directly
[openldap] / configure.in
index e9e9db0a4221d1315af4a7ab4b91da77c4dddaa5..2599a0884e62257c699f9ffdc45b673ca1872e6e 100644 (file)
@@ -886,6 +886,11 @@ dnl ----------------------------------------------------------------
 AC_CHECK_FUNCS( poll )
 AC_CHECK_HEADERS( poll.h )
 
+dnl ----------------------------------------------------------------
+AC_CHECK_FUNC(epoll_create, AC_DEFINE(HAVE_EPOLL,1,
+                       [define if you have epoll]))
+AC_CHECK_HEADERS( sys/epoll.h )
+
 dnl ----------------------------------------------------------------
 # strerror checks
 OL_STRERROR
@@ -2886,6 +2891,56 @@ else
        SLAPD_NO_STATIC=
 fi
 
+dnl Generate static backend header file
+BACKEND_HEADER=servers/slapd/backend.h
+cat > $BACKEND_HEADER << EOF
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2004 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* This file is automatically generated by configure; please do not edit.
+ */
+
+EOF
+
+for b in $SLAPD_STATIC_BACKENDS; do
+       bb=`echo "$b" | sed -e 's;back-;;'`
+       
+       cat >> $BACKEND_HEADER << EOF
+extern BI_init ${bb}_back_initialize;
+EOF
+done
+
+cat >> $BACKEND_HEADER << EOF
+
+static BackendInfo binfo[[]] = {
+EOF
+
+for b in $SLAPD_STATIC_BACKENDS; do
+       bb=`echo "$b" | sed -e 's;back-;;'`
+       
+       cat >> $BACKEND_HEADER << EOF
+       { "$bb", ${bb}_back_initialize },
+EOF
+done
+
+cat >> $BACKEND_HEADER << EOF
+       { NULL, NULL }
+};
+
+/* end of generated file */
+EOF
+dnl done generating static backend header file
+
 AC_SUBST(LIBSRCS)
 AC_SUBST(PLAT)
 AC_SUBST(WITH_SASL)