Test for misplaced pthread_t in sys/types.h.

Once we have private types for threads, this check can be removed.
This commit is contained in:
Kurt Zeilenga 1999-01-18 23:47:10 +00:00
parent 01a759971e
commit aa92024af0
2 changed files with 262 additions and 208 deletions

454
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -947,6 +947,22 @@ if test $ol_link_threads = no ; then
ol_with_threads=no
fi
AC_CACHE_CHECK([for misplaced posix thread in headers],
[ol_cv_header_misplaced_pthreads], [
AC_TRY_COMPILE([
#include <sys/types.h>
typedef double pthread_t;
], [
pthread_t thread = 0.0;
],
[ol_cv_header_misplaced_pthreads=no],
[ol_cv_header_misplaced_pthreads=yes])
])
if test "$ol_cv_header_misplaced_pthreads" = yes ; then
AC_MSG_ERROR([pthread types are misplaced.]);
fi
AC_DEFINE(NO_THREADS,1)
LTHREAD_LIBS=""
fi