]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Not only check for poll(), make sure poll.h exists as well
authorAlexander Barton <alex@barton.de>
Fri, 25 Nov 2011 20:56:33 +0000 (21:56 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 25 Nov 2011 20:56:33 +0000 (21:56 +0100)
This fixes building ngIRCd on Debian GNU/Linux 1.3 "Bo" :-)

configure.in

index 92434ec7d044945f9a25914804cd0df289acade1..f3dbd7275cd4b437d0e98e59056db607bfa92d34 100644 (file)
@@ -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\(\))
+               )
        ]
 )