diff options
author | Volker Lendecke <vl@samba.org> | 2012-11-06 16:17:22 +0100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-11-08 12:57:58 +1100 |
commit | 4c5852bf0fa17717a79264a0f604b920d8039fb7 (patch) | |
tree | 12b9f80a60689b9321265e755c0caa15e0891a6b /ctdb/lib | |
parent | 861d5304ac804020bc15fe1b8be3631c83d9810e (diff) | |
download | samba-4c5852bf0fa17717a79264a0f604b920d8039fb7.tar.gz samba-4c5852bf0fa17717a79264a0f604b920d8039fb7.tar.xz samba-4c5852bf0fa17717a79264a0f604b920d8039fb7.zip |
build: Fix the build with old system-installed tevent
We depend on the tracing callback mechanism in ctdb.
(This used to be ctdb commit 5f58c811127a89f162b6a41ddcd6e944801740a5)
Diffstat (limited to 'ctdb/lib')
-rw-r--r-- | ctdb/lib/tevent/libtevent.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ctdb/lib/tevent/libtevent.m4 b/ctdb/lib/tevent/libtevent.m4 index 409232a866c..2141af6717f 100644 --- a/ctdb/lib/tevent/libtevent.m4 +++ b/ctdb/lib/tevent/libtevent.m4 @@ -11,7 +11,10 @@ AC_SUBST(TEVENT_CFLAGS) if test x"$INCLUDED_TEVENT" != x"yes" ; then AC_CHECK_HEADERS(tevent.h) AC_CHECK_LIB(tevent, tevent_context_init, [ TEVENT_LIBS="-ltevent" ]) - if test x"$ac_cv_header_tevent_h" = x"no" -o x"$ac_cv_lib_tevent_tevent_context_init" = x"no" ; then + AC_CHECK_DECLS([TEVENT_TRACE_BEFORE_WAIT], [[#include <tevent.h>]]) + if test x"$ac_cv_header_tevent_h" = x"no" -o \ + x"$ac_cv_lib_tevent_tevent_context_init" = x"no" -o \ + x"$ac_cv_have_decl_TEVENT_TRACE_BEFORE_WAIT" = x"no" ; then INCLUDED_TEVENT=yes TEVENT_CFLAGS="" else |