summaryrefslogtreecommitdiffstats
path: root/src/external/libtevent.m4
blob: f19f27bf2e70e71065a7d4d96b4b2714869bd039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
AC_SUBST(TEVENT_OBJ)
AC_SUBST(TEVENT_CFLAGS)
AC_SUBST(TEVENT_LIBS)

AC_CHECK_HEADER(tevent.h,
   [AC_CHECK_LIB(
       tevent,
       tevent_context_init,
       [TEVENT_LIBS="-ltevent -ltalloc"],
       [AC_MSG_ERROR([libtevent missing tevent_context_init])],
       [-ltalloc]) ],
   [PKG_CHECK_MODULES(TEVENT, tevent)],
   )