diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-04 18:57:42 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-04 18:57:42 +0000 |
commit | a4290503e56ed1a53e90bccc4a6518b89b7c1e7a (patch) | |
tree | 3aac41be77f40178a5f8f3e853bd9f63c27a4c33 /libstdc++-v3 | |
parent | 7e03a244eca2c4055b26cff33ebb3f304ba4ad23 (diff) | |
download | ppe42-gcc-a4290503e56ed1a53e90bccc4a6518b89b7c1e7a.tar.gz ppe42-gcc-a4290503e56ed1a53e90bccc4a6518b89b7c1e7a.zip |
2008-09-04 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
POSIX threads.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 13 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 13 |
3 files changed, 24 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fa5059e25e8..05ea4bda4a8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2008-09-04 Paolo Carlini <paolo.carlini@oracle.com> + + * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of + POSIX threads. + * configure: Regenerate. + 2008-09-04 Chris Fairles <chris.fairles@gmail.com> * include/std/mutex (once_flag): Construct __gthread_once_t in a diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index aba378693df..b334657042d 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -2843,10 +2843,15 @@ AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [ AC_TRY_COMPILE([#include "gthr.h"], [ - #if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \ - || _POSIX_TIMEOUTS <= 0) - #error - #endif + #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]) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index b1470c7cf78..a6223e7a40d 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -21610,10 +21610,15 @@ int main () { - #if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \ - || _POSIX_TIMEOUTS <= 0) - #error - #endif + #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 ; return 0; |