configure: Added special check for broken linux/capi.h.
diff --git a/configure.ac b/configure.ac
index 1fd1100..7c3332f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -197,7 +197,6 @@
 	ldap.h \
 	libaudioio.h \
 	link.h \
-	linux/capi.h \
 	linux/cdrom.h \
 	linux/compiler.h \
 	linux/hdreg.h \
@@ -278,6 +277,9 @@
 )
 AC_HEADER_STAT()
 
+dnl Check for broken kernel header that doesn't define __user
+AC_CHECK_HEADERS([linux/capi.h],,,[#define __user])
+
 dnl **** Check for X11 ****
 
 if test "$have_x" = "yes"