From 36954ef27338aa91c18245771af924f7a92a0db4 Mon Sep 17 00:00:00 2001 From: paolo Date: Wed, 3 Sep 2008 22:50:59 +0000 Subject: [PATCH] 2008-09-03 Paolo Carlini * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Fix typo in last commit, check _POSIX_TIMEOUTS, not _POSIX_TIMERS. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139963 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/acinclude.m4 | 3 ++- libstdc++-v3/configure | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a13ea73..c2cf925 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2008-09-03 Paolo Carlini + * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Fix typo in last commit, + check _POSIX_TIMEOUTS, not _POSIX_TIMERS. + * configure: Regenerate. + +2008-09-03 Paolo Carlini + * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check _POSIX_TIMERS too. * configure: Regenerate. diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index dac327a..aba3786 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2843,7 +2843,8 @@ AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [ AC_TRY_COMPILE([#include "gthr.h"], [ - #if (!defined(__GTHREADS_CXX0X) || _POSIX_TIMERS <= 0) + #if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \ + || _POSIX_TIMEOUTS <= 0) #error #endif ], [ac_has_gthreads=yes], [ac_has_gthreads=no]) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index f8263f5..b1470c7 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -21610,7 +21610,8 @@ int main () { - #if (!defined(__GTHREADS_CXX0X) || _POSIX_TIMERS <= 0) + #if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \ + || _POSIX_TIMEOUTS <= 0) #error #endif -- 2.7.4