--- libaitsched/configure.in 2014/01/21 16:03:38 1.31.2.2 +++ libaitsched/configure.in 2014/04/27 16:22:58 1.34.2.1 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.31.2.2 2014/01/21 16:03:38 misho Exp $ +# $Id: configure.in,v 1.34.2.1 2014/04/27 16:22:58 misho Exp $ # -AC_INIT(libaitsched, 4.7, misho@elwix.org) +AC_INIT(libaitsched, 5.2, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitsched.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -37,7 +37,7 @@ AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([clock_gettime memset strerror timer_create timer_settime]) +AC_CHECK_FUNCS([clock_gettime memset strerror timer_create timer_settime timer_delete]) DEBUG=no AC_MSG_CHECKING(Debug Build) @@ -68,6 +68,20 @@ AC_ARG_ENABLE(aio, ;; esac ],) AC_MSG_RESULT($AIO) + +KQSUP=yes +AC_MSG_CHECKING(kqueue support) +AC_ARG_ENABLE(kqueue, + [ --disable-kqueue Disable kqueue support ], + [ KQSUP=$enableval + case "$enableval" in + no) + AC_DEFINE(KQ_DISABLE,, [Disable kqueue support]) + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($KQSUP) KQ_EVENTS=24 AC_MSG_CHECKING(How many kqueue events can scheduling at one time)