Make drd/drd_pthread_intercepts.c compile again on Linux systems without usable <linux/futex.h> header

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12035 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index eaaf21b..334e3f4 100644
--- a/configure.in
+++ b/configure.in
@@ -1629,6 +1629,22 @@
         sys/types.h      \
         ])
 
+# Verify whether the <linux/futex.h> header is usable.
+AC_MSG_CHECKING([if <linux/futex.h> is usable])
+
+AC_TRY_COMPILE([
+#include <linux/futex.h>
+], [
+  return FUTEX_WAIT;
+],
+[
+AC_DEFINE([HAVE_USABLE_LINUX_FUTEX_H], 1,
+          [Define to 1 if you have a usable <linux/futex.h> header file.])
+AC_MSG_RESULT([yes])
+], [
+AC_MSG_RESULT([no])
+])
+
 #----------------------------------------------------------------------------
 # Checks for typedefs, structures, and compiler characteristics.
 #----------------------------------------------------------------------------