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/configure | |
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/configure')
-rwxr-xr-x | libstdc++-v3/configure | 13 |
1 files changed, 9 insertions, 4 deletions
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; |