Repeat the misplaced header check for --with-threads=lwp.

Suggest --with-threads=posix when error is reported.
This commit is contained in:
Kurt Zeilenga 1999-01-19 00:33:12 +00:00
parent aa92024af0
commit ef4ddc5ad7
2 changed files with 292 additions and 238 deletions

512
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -813,6 +813,22 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
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, use --with-threads=posix]);
fi
fi
fi
@ -960,7 +976,7 @@ typedef double pthread_t;
])
if test "$ol_cv_header_misplaced_pthreads" = yes ; then
AC_MSG_ERROR([pthread types are misplaced.]);
AC_MSG_ERROR([pthread types are misplaced, use --with-threads=posix]);
fi
AC_DEFINE(NO_THREADS,1)