Improve checks for dce/posix threads to also do the right thing, if the

2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Improve checks for dce/posix threads to also do
	the right thing, if the thread functions are not declared in the
	pthread.h. Idea from Miroslaw Dobrzanski-Neumann
	<mne@mosaic-ag.com> in #77981.
This commit is contained in:
Sebastian Wilhelmi 2002-07-02 12:41:46 +00:00 committed by Sebastian Wilhelmi
parent b826ae8db4
commit 47791a0ed8
8 changed files with 38 additions and 2 deletions

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -2,6 +2,11 @@
* configure.in: Set binary age to 0 to make it compile.
* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.
2002-07-01 Anders Carlsson <andersca@gnu.org>
* configure.in: Up version to 2.1.0.

View File

@ -1187,12 +1187,13 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
if test "x$have_threads" = xno; then
AC_TRY_COMPILE([#include <pthread.h>],
[pthread_attr_t attr; pthread_attr_init(&attr);],
[pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;],
have_threads=posix)
fi
if test "x$have_threads" = xno; then
AC_TRY_COMPILE([#include <pthread.h>],
[pthread_attr_t attr; pthread_attr_create(&attr);],
[pthread_mutex_t m;
pthread_mutex_init (&m, pthread_mutexattr_default);],
have_threads=dce)
fi
CPPFLAGS="$glib_save_CPPFLAGS"