Changed the last pthread_cond_init to pthread_attr_init.

1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in (have_threads): Changed the last pthread_cond_init
	to pthread_attr_init.

1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* testgthread.c (new_thread): As a joinable thread seems to be the
	default on posix, leave the explicit setting out, as it causes
	problems on some older platforms.
This commit is contained in:
Sebastian Wilhelmi
1998-12-18 09:20:52 +00:00
committed by Sebastian Wilhelmi
parent 8be41eae4d
commit ab4b645486
11 changed files with 50 additions and 5 deletions

View File

@@ -572,9 +572,6 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix; then
AC_CHECK_LIB(pthreads, pthread_attr_init, have_threads=posix)
fi
if test "x$have_threads" = xnone; then
# dont let us be fooled by a defined pthread_cond_init
# function in the standard c-lib, that doesn't have too mean,
# there is full thread support, it might be a weak symbol.
AC_CHECK_FUNC(pthread_attr_init, have_threads=posix)
fi
fi
@@ -609,7 +606,7 @@ case $have_threads in
G_THREAD_LIBS="-lpthreads")
fi
if test "x$G_THREAD_LIBS" = xerror; then
AC_CHECK_FUNC(pthread_cond_init, G_THREAD_LIBS="")
AC_CHECK_FUNC(pthread_attr_init, G_THREAD_LIBS="")
fi
;;
solaris)