commit 9d348d00d9eda2aede0ea9052bcc34cd070d3b5a from: Alexander Barton date: Fri Nov 25 20:56:33 2011 UTC Not only check for poll(), make sure poll.h exists as well This fixes building ngIRCd on Debian GNU/Linux 1.3 "Bo" :-) commit - 9e48f3f8f8c312ee20caef70cfb377a0d89260bb commit + 9d348d00d9eda2aede0ea9052bcc34cd070d3b5a blob - 92434ec7d044945f9a25914804cd0df289acade1 blob + f3dbd7275cd4b437d0e98e59056db607bfa92d34 --- configure.in +++ configure.in @@ -252,13 +252,22 @@ AC_ARG_WITH(poll, 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 IO support!]) + AC_CHECK_FUNCS(poll, + AC_CHECK_HEADERS(poll.h, + x_io_backend=poll\(\), + AC_MSG_ERROR( + [Can't enable poll IO support!]) + , + AC_MSG_ERROR( + [Can't enable poll IO support!]) + ) ) fi ], [ - AC_CHECK_FUNCS(poll, x_io_backend=poll\(\)) + AC_CHECK_FUNCS(poll, + AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\)) + ) ] )