~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/events/config.m4

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Parent
  • Date: 2008-04-26 15:21:27 UTC
  • Revision ID: james.westby@ubuntu.com-20080426152127-58mv5ojv5q362ise
Tags: upstream-1.0.34+git200804242206
ImportĀ upstreamĀ versionĀ 1.0.34+git200804242206

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# check for EPOLL and native Linux AIO interface
 
2
SMB_ENABLE(EVENTS_EPOLL, NO)
 
3
SMB_ENABLE(EVENTS_AIO, NO)
 
4
AC_CHECK_HEADERS(sys/epoll.h)
 
5
AC_CHECK_FUNCS(epoll_create)
 
6
if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes";then
 
7
        SMB_ENABLE(EVENTS_EPOLL,YES)
 
8
        AC_DEFINE(HAVE_EVENTS_EPOLL, 1, [Whether epoll is available])
 
9
 
 
10
        # check for native Linux AIO interface
 
11
        AC_CHECK_HEADERS(libaio.h)
 
12
        AC_CHECK_LIB_EXT(aio, AIO_LIBS, io_getevents)
 
13
        if test x"$ac_cv_header_libaio_h" = x"yes" -a x"$ac_cv_lib_ext_aio_io_getevents" = x"yes";then
 
14
                SMB_ENABLE(EVENTS_AIO,YES)
 
15
                AC_DEFINE(HAVE_LINUX_AIO, 1, [Whether Linux AIO is available])
 
16
        fi
 
17
fi
 
18
SMB_EXT_LIB(LIBAIO_LINUX, $AIO_LIBS)