Fix autoconf futex check
authorDavid Goulet <dgoulet@efficios.com>
Mon, 9 Jan 2012 23:11:23 +0000 (18:11 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 9 Jan 2012 23:11:23 +0000 (18:11 -0500)
The check was always returning true.

Signed-off-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index 46770c5d3adfa23b99955dccd29a0c9e4fbc8ad8..f18d95b7fa5ce4d7db8eced08e9d71af5bbf812f 100644 (file)
@@ -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 <sys/syscall.h>
-       ]],[[
                #ifndef __NR_futex
                #error "futexes not available"
                #endif
-       ]])
+       ])
 ],[
        AC_MSG_RESULT([yes])
        AC_DEFINE([CONFIG_RCU_HAVE_FUTEX], [1])
This page took 0.025555 seconds and 4 git commands to generate.