summaryrefslogtreecommitdiffstats
path: root/src/external/libtevent.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/libtevent.m4')
-rw-r--r--src/external/libtevent.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/src/external/libtevent.m4 b/src/external/libtevent.m4
new file mode 100644
index 000000000..6a0e36af8
--- /dev/null
+++ b/src/external/libtevent.m4
@@ -0,0 +1,7 @@
+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"]) ],
+ [PKG_CHECK_MODULES(TEVENT, tevent)])