dnl $OpenLDAP$
dnl
-dnl Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
-dnl COPYING RESTRICTIONS APPLY, See COPYRIGHT file
+dnl Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
+dnl All rights reserved.
+dnl
+dnl Redistribution and use in source and binary forms, with or without
+dnl modification, are permitted only as authorized by the OpenLDAP
+dnl Public License. A copy of this license is available at
+dnl http://www.OpenLDAP.org/license.html or in file LICENSE in the
+dnl top-level directory of the distribution.
dnl
dnl OpenLDAP Autoconf Macros
dnl
main()
{
int rc;
- u_int32_t flags = DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL |
+ u_int32_t flags = DB_CREATE |
#ifdef DB_PRIVATE
DB_PRIVATE |
-#endif
-#ifdef DB_MPOOL_PRIVATE
- DB_MPOOL_PRIVATE |
#endif
DB_THREAD;
rc = db_env_create( &env, 0 );
- if( rc ) {
- printf("BerkeleyDB: %s\n", db_strerror(rc) );
- return rc;
- }
-
-#if 0
-#ifdef DB_CDB_ALLDB
- rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
+ flags |= DB_INIT_MPOOL;
+#ifdef DB_MPOOL_PRIVATE
+ flags |= DB_MPOOL_PRIVATE;
+#endif
if( rc ) {
printf("BerkeleyDB: %s\n", db_strerror(rc) );
return rc;
}
-#endif
-#endif
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
rc = env->open( env, NULL, flags, 0 );