From: Stefan Neis Date: Fri, 10 Jun 2005 09:17:34 +0000 (+0000) Subject: Removed some code for detecting no longer needed pthread functionality, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/219577d0a545fe9562beb3e2c8791a4f96349be7 Removed some code for detecting no longer needed pthread functionality, Added code to detect pthread_attr_setstacksize. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index be93c20cab..253a5e1b7e 100644 --- a/configure.in +++ b/configure.in @@ -4509,26 +4509,8 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then AC_DEFINE(HAVE_PTHREAD_CANCEL), AC_MSG_WARN([wxThread::Kill() will not work properly])) - dnl we don't use pthread_cleanup_push/pop() any more in the code, but I - dnl the code here for now in case we need it again soon; otherwise it - dnl should be removed in a couple of months (VZ in Sep 2003) - dnl - dnl AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push, - dnl [ - dnl AC_TRY_COMPILE([#include ], - dnl [ - dnl pthread_cleanup_push(NULL, NULL); - dnl pthread_cleanup_pop(0); - dnl ], [ - dnl wx_cv_func_pthread_cleanup_push=yes - dnl ], [ - dnl wx_cv_func_pthread_cleanup_push=no - dnl ]) - dnl ]) - dnl - dnl if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then - dnl AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS) - dnl fi + AC_CHECK_FUNC(pthread_attr_setstacksize, + AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACKSIZE)) dnl mutexattr_t initialization is done in quite different ways on different dnl platforms, so check for a few things: