public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Tidy [GLIBCXX_CHECK_GTHREADS]
@ 2008-09-04 19:02 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2008-09-04 19:02 UTC (permalink / raw)
  To: Gcc Patch List; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

Hi,

committed to mainline.

Paolo.

////////////////////

[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 165 bytes --]

2008-09-04  Paolo Carlini  <paolo.carlini@oracle.com>

 	* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
	POSIX threads.
	* configure: Regenerate.

[-- Attachment #3: patch_bpt --]
[-- Type: text/plain, Size: 924 bytes --]

Index: acinclude.m4
===================================================================
*** acinclude.m4	(revision 139992)
--- acinclude.m4	(working copy)
*************** AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
*** 2843,2852 ****
  
    AC_TRY_COMPILE([#include "gthr.h"],
      [
!      	#if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \
! 	     || _POSIX_TIMEOUTS <= 0)
! 	#error
! 	#endif
      ], [ac_has_gthreads=yes], [ac_has_gthreads=no])
  
    AC_MSG_RESULT([$ac_has_gthreads])
--- 2843,2857 ----
  
    AC_TRY_COMPILE([#include "gthr.h"],
      [
!       #ifndef __GTHREADS_CXX0X
!       #error
!       #endif
! 
!       // In case of POSIX threads check _POSIX_TIMEOUTS too.
!       #if (defined(_PTHREADS) \
!            && (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
!       #error
!       #endif
      ], [ac_has_gthreads=yes], [ac_has_gthreads=no])
  
    AC_MSG_RESULT([$ac_has_gthreads])

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-04 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 19:02 [v3] Tidy [GLIBCXX_CHECK_GTHREADS] Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).