From: Alexander Barton Date: Sun, 4 Dec 2011 23:19:32 +0000 (+0100) Subject: ./configure: Fix logic and quoting of poll() detection code X-Git-Tag: rel-19-rc1~114 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca;ds=sidebyside ./configure: Fix logic and quoting of poll() detection code This fixes commit 8e193df ... --- diff --git a/configure.in b/configure.in index f3dbd727..d2241f63 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\(\)) - ) + ]) ] )