From 3b2c86c8ed77b04cda05b7cbd8e73f6d01db1bed Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sun, 6 Dec 2009 16:38:06 +0000 Subject: removed every reference to BDB from configure.ac Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 343 (Placeholder bug for adding volgen into rpm, bdb makefile changes, etc) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=343 --- configure.ac | 69 ------------------------------------------------------------ 1 file changed, 69 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5615234ca0e..87de6be6f6d 100644 --- a/configure.ac +++ b/configure.ac @@ -284,74 +284,6 @@ AC_SUBST(IBVERBS_SUBDIR) # end IBVERBS section -# Berkely-DB section -# storage/bdb requires Berkeley-DB version 4.6.21 or higher -_GLFS_DB_VERSION_MAJOR=4 -_GLFS_DB_VERSION_MINOR=6 -_GLFS_DB_VERSION_PATCH=21 -AC_ARG_ENABLE([db], - AC_HELP_STRING([--disable-bdb], - [Do not build the Berkeley-DB translator])) - -if test "x$enable_bdb" != "xno"; then - AC_CHECK_HEADERS([db.h], - [HAVE_BDB="yes"], - [HAVE_BDB="no"]) - if test "x$HAVE_BDB" = "xyes"; then - AC_CHECK_LIB([db], - [db_create], - [HAVE_BDB="yes"], - [HAVE_BDB="no"]) - fi - - if test "x$HAVE_BDB" = "xyes"; then - AC_TRY_COMPILE([#include ], - #if (DB_VERSION_MAJOR < $_GLFS_DB_VERSION_MAJOR) ||\ - (DB_VERSION_MAJOR == $_GLFS_DB_VERSION_MAJOR && \ - DB_VERSION_MINOR < $_GLFS_DB_VERSION_MINOR) || \ - (DB_VERSION_MAJOR == $_GLFS_DB_VERSION_MAJOR && \ - DB_VERSION_MINOR == $_GLFS_DB_VERSION_MINOR && \ - DB_VERSION_PATCH < $_GLFS_DB_VERSION_PATCH) - #error "bdb older than required" - #endif - , - [HAVE_BDB_VERSION="yes"], - [HAVE_BDB_VERSION="no"]) - - dnl check for DB->stat having 4 arguments. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[DB *bdb; bdb->stat (NULL, NULL, NULL, 0);]])], - [HAVE_BDB_VERSION=yes], [HAVE_BDB_VERSION=no]) - - dnl check for DBC->c_get presence. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[DBC *cursor; cursor->get (NULL, NULL, NULL, 0);]])], - [HAVE_BDB_CURSOR_GET=yes], [HAVE_BDB_CURSOR_GET=no]) - - fi -fi - -if test "x$HAVE_BDB_CURSOR_GET" = "xyes" -a "x$HAVE_BDB_VERSION" = "xyes"; then - AC_DEFINE(HAVE_BDB_CURSOR_GET, 1, [Berkeley-DB version has cursor->get()]) -fi - -if test "x$enable_bdb" = "xyes" -a "x$HAVE_BDB" = "xno" -a "x$HAVE_BDB_VERSION" = "xno" -a "x$HAVE_BDB_CURSOR_GET" = "xno"; then - echo "Berkeley-DB requested but not found. glusterfs bdb feature requires db version 4.6.21 or higher" - exit 1 -fi - - -BUILD_BDB=no -if test "x$enable_bdb" != "xno" -a "x$HAVE_BDB" = "xyes"; then - BDB_SUBDIR=bdb - BUILD_BDB=yes -fi - - - -AC_SUBST(BDB_SUBDIR) -# end BDB section - dnl FreeBSD > 5 has execinfo as a Ported library for giving a workaround dnl solution to GCC backtrace functionality @@ -493,7 +425,6 @@ echo "===========================" echo "FUSE client : $BUILD_FUSE_CLIENT" echo "Infiniband verbs : $BUILD_IBVERBS" echo "epoll IO multiplex : $BUILD_EPOLL" -echo "Berkeley-DB : $BUILD_BDB" echo "libglusterfsclient : $BUILD_LIBGLUSTERFSCLIENT" echo "argp-standalone : $BUILD_ARGP_STANDALONE" echo "fusermount : $BUILD_FUSERMOUNT" -- cgit