X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.in;h=d2241f63568eae12e45da619351d795942524e1f;hb=fea2194fc066af6f3b47fd94a93359dbd7aab8ff;hp=92434ec7d044945f9a25914804cd0df289acade1;hpb=13d9e0c5a7e03559a2b5bf405b526098b15bd0e6;p=ngircd-alex.git diff --git a/configure.in b/configure.in index 92434ec7..d2241f63 100644 --- a/configure.in +++ b/configure.in @@ -252,13 +252,21 @@ AC_ARG_WITH(poll, CPPFLAGS="-I$withval/include $CPPFLAGS" LDFLAGS="-L$withval/lib $LDFLAGS" fi - AC_CHECK_FUNCS(poll, x_io_backend=poll\(\), + 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\(\)) + ]) ] )