mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Repeat the misplaced header check for --with-threads=lwp.
Suggest --with-threads=posix when error is reported.
This commit is contained in:
parent
aa92024af0
commit
ef4ddc5ad7
2 changed files with 292 additions and 238 deletions
18
configure.in
18
configure.in
|
|
@ -813,6 +813,22 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
||||||
if test $ol_with_yielding_select = auto ; then
|
if test $ol_with_yielding_select = auto ; then
|
||||||
ol_with_yielding_select=yes
|
ol_with_yielding_select=yes
|
||||||
fi
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -960,7 +976,7 @@ typedef double pthread_t;
|
||||||
])
|
])
|
||||||
|
|
||||||
if test "$ol_cv_header_misplaced_pthreads" = yes ; then
|
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
|
fi
|
||||||
|
|
||||||
AC_DEFINE(NO_THREADS,1)
|
AC_DEFINE(NO_THREADS,1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue