summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/config.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-27 15:52:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:24 -0500
commit826a515ec063cf7b986ddfcfd47f2f7f09a12be5 (patch)
tree058c7fec0890237e558936ddc96f252193fc3306 /source4/lib/tdb/config.m4
parent3cd74a363402a88a78cc900fda1c03134a8e9945 (diff)
downloadsamba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.tar.gz
samba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.tar.bz2
samba-826a515ec063cf7b986ddfcfd47f2f7f09a12be5.zip
r2088: add tdbtorture tdbdump and tdbtest to the build
NOTE: tdbbackup and tdbtool seems to be broken... NOTE: I also added SMB_EXT_LIB(GDBM,...) because that is needed by tdbtest metze (This used to be commit e66630662d4203ccecbb20962e83dbf50a2c056f)
Diffstat (limited to 'source4/lib/tdb/config.m4')
-rw-r--r--source4/lib/tdb/config.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4
index 12d88ed6a8..d9b44b75a5 100644
--- a/source4/lib/tdb/config.m4
+++ b/source4/lib/tdb/config.m4
@@ -7,3 +7,28 @@ fi
SMB_LIBRARY_MK(libtdb,lib/tdb/config.mk)
+###############################
+# start SMB_EXT_LIB_GDBM
+# check for gdbm.h and -lgdbm
+AC_CHECK_HEADERS(gdbm.h)
+AC_CHECK_LIB_EXT(gdbm, GDBM_LIBS, gdbm_open)
+if test x"$ac_cv_header_gdbm_h" = x"yes" -a x"$ac_cv_lib_ext_gdbm_gdbm_open" = x"yes";then
+ SMB_EXT_LIB_ENABLE(GDBM,YES)
+fi
+SMB_EXT_LIB(GDBM, $GDBM_LIBS)
+# end SMB_EXT_LIB_GDBM
+###############################
+
+SMB_BINARY_ENABLE(tdbtest, NO)
+if test x"$SMB_EXT_LIB_ENABLE_GDBM" = x"YES"; then
+ SMB_BINARY_ENABLE(tdbtest, YES)
+fi
+SMB_BINARY_MK(tdbtest,lib/tdb/config.mk)
+
+SMB_BINARY_MK(tdbtorture,lib/tdb/config.mk)
+
+SMB_BINARY_MK(tdbdump,lib/tdb/config.mk)
+
+# these are broken
+#SMB_BINARY_MK(tdbtool,lib/tdb/config.mk)
+#SMB_BINARY_MK(tdbbackup,lib/tdb/config.mk)