From: David Goulet Date: Mon, 9 Jan 2012 23:11:23 +0000 (-0500) Subject: Fix autoconf futex check X-Git-Tag: v0.7.0~47 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=657e7f898de916a8b2bfa375ee2605f2776d825e Fix autoconf futex check The check was always returning true. Signed-off-by: David Goulet Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 46770c5..f18d95b 100644 --- a/configure.ac +++ b/configure.ac @@ -102,13 +102,12 @@ AS_IF([test "x$ARCHTYPE" = "xx86"],[ # Check if sys_futex() is available AC_MSG_CHECKING([for sys_futex()]) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #include - ]],[[ #ifndef __NR_futex #error "futexes not available" #endif - ]]) + ]) ],[ AC_MSG_RESULT([yes]) AC_DEFINE([CONFIG_RCU_HAVE_FUTEX], [1])