Commit Diff


commit - 8fa92f0a24bb97a972ef82b8fa057d737c9f55b7
commit + ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca
blob - f3dbd7275cd4b437d0e98e59056db607bfa92d34
blob + d2241f63568eae12e45da619351d795942524e1f
--- configure.in
+++ configure.in
@@ -252,22 +252,21 @@ AC_ARG_WITH(poll,
 				CPPFLAGS="-I$withval/include $CPPFLAGS"
 				LDFLAGS="-L$withval/lib $LDFLAGS"
 			fi
-			AC_CHECK_FUNCS(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!])
+					AC_MSG_ERROR(
+					     [Can't enable poll IO support!])
 				)
-			)
+			], [
+				AC_MSG_ERROR([Can't enable poll IO support!])
+			])
 		fi
 	],
 	[
-		AC_CHECK_FUNCS(poll,
+		AC_CHECK_FUNCS(poll, [
 			AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
-		)
+		])
 	]
 )