build: Fix for tevent autoconf check
authorSumit Bose <sbose@redhat.com>
Mon, 25 Mar 2013 11:28:31 +0000 (12:28 +0100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 27 Mar 2013 01:20:17 +0000 (12:20 +1100)
The list of include files is the 4th argument of AC_CHECK_DECLS.

(This used to be ctdb commit 85b777196289646ca37e06ebbf1f7a684d0aabc5)

ctdb/lib/tevent/libtevent.m4

index 2141af6717f74b40bb167802685886c455fad0ee..fc06a9db53f4ee9c905b3657ed5c34390d13163f 100644 (file)
@@ -11,7 +11,7 @@ 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" ])
-    AC_CHECK_DECLS([TEVENT_TRACE_BEFORE_WAIT], [[#include <tevent.h>]])
+    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