dnl Checks for libraries.
+AC_CHECK_LIB(event, event_init,
+ [], [AC_MSG_ERROR(libevent is required)])
+
dnl Checks for header files.
dnl We do this in multiple stages, because unlike Linux all the other operating systems really suck and don't include their own dependencies.