repo: ngircd
action: commit
revision: 
path_from: 
revision_from: ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca
Author: Alexander Barton 
Date:   Mon Dec 5 00:19:32 2011 +0100

    ./configure: Fix logic and quoting of poll() detection code

    This fixes commit 8e193df ...

diff --git a/configure.in b/configure.in
index f3dbd7275cd4b437d0e98e59056db607bfa92d34..
index ..d2241f63568eae12e45da619351d795942524e1f 100644
--- a/configure.in
+++ b/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!])
+					     [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\(\))
-		)
+		])
 	]
 )

-----END OF PAGE-----