X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=configure.in;h=4ca3d93bba1027e293182ed6df071345f19edd3b;hb=827ebbd9749294dd82ddad4e22033dcc0bbc2c05;hp=19578351645b52c4a116de2cf5323161bf4ea3e6;hpb=bae2f7c3ea591799eb6e07556042cd7c244d2d1c;p=ashd.git diff --git a/configure.in b/configure.in index 1957835..4ca3d93 100644 --- a/configure.in +++ b/configure.in @@ -1,14 +1,12 @@ AC_INIT(src/htparser.c) -AM_INIT_AUTOMAKE([ashd], [0.4]) +AM_INIT_AUTOMAKE([ashd], [0.7]) AM_CONFIG_HEADER(config.h) AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL -AC_PROG_RANLIB -dnl Add for libtool: -dnl AM_PROG_LIBTOOL +AM_PROG_LIBTOOL AC_HEADER_STDC @@ -22,6 +20,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=""