I've found that ltp didn't compile on Debian because of old kernel  headers, which contain taskstats struct without some of the needed fields. This autoconf test detects it and disables the code that would otherwise break. Signed-off-by: Jiri Palecek <jpalecek@web.de>.
diff --git a/configure.ac b/configure.ac
index c534c97..9fc1696 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,5 +20,6 @@
 LTP_CHECK_SYSCALL_SIGNALFD
 LTP_CHECK_SELINUX
 LTP_CHECK_CRYPTO
+LTP_CHECK_TASKSTATS
 
 AC_OUTPUT