This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Tidy [GLIBCXX_CHECK_GTHREADS]


Hi,

committed to mainline.

Paolo.

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

 	* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
	POSIX threads.
	* configure: Regenerate.
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])

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]