1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb:build: fix building with external libtdb

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Michael Adam 2014-06-11 18:16:34 +02:00
parent 26ab17fa01
commit 4106cf2eb9

View File

@ -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)