summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-06-11 18:16:34 +0200
committerMichael Adam <obnox@samba.org>2014-06-16 15:49:14 +0200
commit4106cf2eb969da179720067c86728441442cde59 (patch)
tree0f36fcec046391523ee64ed4469bd1d5fdb13c08
parent26ab17fa01ff89b3a67efad403561f404a3848a4 (diff)
downloadsamba-4106cf2eb969da179720067c86728441442cde59.tar.gz
samba-4106cf2eb969da179720067c86728441442cde59.tar.xz
samba-4106cf2eb969da179720067c86728441442cde59.zip
ctdb:build: fix building with external libtdb
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
-rw-r--r--ctdb/lib/tdb/libtdb.m414
1 files changed, 7 insertions, 7 deletions
diff --git a/ctdb/lib/tdb/libtdb.m4 b/ctdb/lib/tdb/libtdb.m4
index 6503bf15f44..86efc7d32c8 100644
--- a/ctdb/lib/tdb/libtdb.m4
+++ b/ctdb/lib/tdb/libtdb.m4
@@ -10,13 +10,13 @@ AC_SUBST(TDB_CFLAGS)
if test x"$INCLUDED_TDB" != x"yes" ; then
AC_CHECK_HEADERS(tdb.h)
- AC_CHECK_LIB(tdb, tdb_transaction_write_lock_mark, [ TDB_LIBS="-ltdb" ])
- if test x"$ac_cv_header_tdb_h" = x"no" -o x"$ac_cv_lib_tdb_tdb_transaction_write_lock_mark" = x"no" ; then
- INCLUDED_TDB=yes
- TDB_CFLAGS=""
- else
- INCLUDED_TDB=no
- fi
+ AC_CHECK_LIB(tdb, tdb_transaction_write_lock_mark,
+ [ TDB_LIBS="-ltdb"
+ TDB_CFLAGS=""
+ INCLUDED_TDB=no ],
+ [ TDB_LIBS=""
+ TDB_CFLAGS=""
+ INCLUDED_TDB=yes])
fi
AC_MSG_CHECKING(whether to use included tdb)