diff options
| author | Florian Westphal <fw@strlen.de> | 2006-09-16 15:00:09 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2006-09-16 15:00:09 +0000 |
| commit | 147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06 (patch) | |
| tree | 5120d7c0051065f9a08d346bedb0fa81e2f78c81 /configure.in | |
| parent | f6e729443e6f1ef72d5687828bfe2bb327d552ac (diff) | |
| download | ngircd-147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06.tar.gz ngircd-147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06.zip | |
add support for the poll() interface
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.in b/configure.in index ee45da37..2381916b 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ # (at your option) any later version. # Please read the file COPYING, README and AUTHORS for more information. # -# $Id: configure.in,v 1.121 2006/09/09 17:07:39 fw Exp $ +# $Id: configure.in,v 1.122 2006/09/16 15:00:09 fw Exp $ # # -- Initialisation -- @@ -200,6 +200,25 @@ fi x_io_backend=select +AC_ARG_WITH(poll, + [ --without-poll disable poll support (autodetected by default)], + [ if test "$withval" != "no"; then + if test "$withval" != "yes"; then + CFLAGS="-I$withval/include $CFLAGS" + CPPFLAGS="-I$withval/include $CPPFLAGS" + LDFLAGS="-L$withval/lib $LDFLAGS" + fi + AC_CHECK_FUNCS(poll, x_io_backend=poll, + AC_MSG_ERROR([Can't enable poll support!]) + ) + fi + ], + [ + AC_CHECK_FUNCS(poll, x_io_backend=poll) + ] +) + + AC_ARG_WITH(epoll, [ --without-epoll disable epoll support (autodetected by default)], [ if test "$withval" != "no"; then @@ -218,6 +237,7 @@ AC_ARG_WITH(epoll, ] ) + AC_ARG_WITH(kqueue, [ --without-kqueue disable kqueue support (autodetected by default)], [ if test "$withval" != "no"; then |