X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=configure.in;h=7b80a0d2fec3d7cb32c3c535020df5d1da76fc95;hp=fa8d55280b9ff2e47c65e5dca296d5f2d881165c;hb=16accb88e851c6d4333b536e1cf3c3f0c307c722;hpb=370d235f493d0e5ef9fc8de28c4e230f49beab8c diff --git a/configure.in b/configure.in index fa8d552..7b80a0d 100644 --- a/configure.in +++ b/configure.in @@ -22,6 +22,24 @@ fi AH_TEMPLATE(HAVE_VALGRIND, [define to include debugging support for Valgrind]) AC_CHECK_HEADER(valgrind/memcheck.h, [AC_DEFINE(HAVE_VALGRIND)], []) +AH_TEMPLATE(HAVE_EPOLL, [define to enable epoll support]) +AC_ARG_WITH(epoll, [ --with-epoll Enable epoll(2) support]) +HAS_EPOLL="" +if test "$with_epoll" = no; then HAS_EPOLL=no; fi +if test -z "$HAS_EPOLL"; then + AC_CHECK_LIB(c, epoll_ctl, [:], [HAS_EPOLL=no]) +fi +if test -z "$HAS_EPOLL"; then + AC_CHECK_HEADER(sys/epoll.h, [], [HAS_EPOLL=no]) +fi +if test "$HAS_EPOLL" != no; then HAS_EPOLL=yes; fi +if test "$with_epoll" = yes -a "$HAS_EPOLL" = no; then + AC_MSG_ERROR([*** cannot find epoll support on this system]) +fi +if test "$HAS_EPOLL" = yes; then + AC_DEFINE(HAVE_EPOLL) +fi + AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes]) AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support]) HAS_XATTR=""