From 47791a0ed8720bd3bc74f559577b5021d5c9d866 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 2 Jul 2002 12:41:46 +0000 Subject: [PATCH] Improve checks for dce/posix threads to also do the right thing, if the 2002-07-02 Sebastian Wilhelmi * 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 in #77981. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ configure.in | 5 +++-- 8 files changed, 38 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index eee92753..2d137293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index eee92753..2d137293 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -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 + in #77981. + 2002-07-01 Anders Carlsson * configure.in: Up version to 2.1.0. diff --git a/configure.in b/configure.in index 71eb37fa..57069764 100644 --- a/configure.in +++ b/configure.in @@ -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_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_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" -- 2.34.1