]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.in
Update NEWS and ChangeLog files
[ngircd-alex.git] / configure.in
index 92434ec7d044945f9a25914804cd0df289acade1..fb0877839383b7611adb7548d511938351327d79 100644 (file)
@@ -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\(\))
+               ])
        ]
 )
 
@@ -332,7 +340,7 @@ else
 fi
 
 if test "$x_io_backend" = "none"; then
-       AC_MSG_ERROR([No useabe IO API activated/found!?])
+       AC_MSG_ERROR([No useable IO API activated/found!?])
 fi
 
 # use SSL?