Replaced test for FILE::_lock by a more direct test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8670 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 7eb76ae..0ad5821 100644
--- a/configure.in
+++ b/configure.in
@@ -708,6 +708,26 @@
])
+# Check whether FILE has a member called _lock and whether it's a pointer.
+
+AC_MSG_CHECKING([for FILE::_lock])
+
+AC_TRY_COMPILE(
+[
+ #include <stdio.h>
+], [
+ void *p;
+ p = stdout->_lock;
+ return 0;
+], [
+AC_MSG_RESULT([yes])
+AC_DEFINE([HAVE_LIBC_FILE_LOCK], 1,
+ [Define to 1 if FILE has a member called _lock.])
+], [
+AC_MSG_RESULT([no])
+])
+
+
# Check whether pthread_mutex_t has a member called __m_kind.
AC_MSG_CHECKING([for pthread_mutex_t::__m_kind])
@@ -1261,7 +1281,6 @@
AC_CHECK_HEADERS([ \
endian.h \
mqueue.h \
- bits/libc-lock.h \
sys/endian.h \
sys/epoll.h \
sys/eventfd.h \