When testing for availability of pthreads without special compiler options

or libraries also look for thread_detach. SGI has thread_create in libc
but complete pthread support only in -lpthread. Fixes #522393.

2.2.1 candidate.Killed by signal 2.
This commit is contained in:
Jack Jansen 2002-03-08 13:43:01 +00:00
parent 95f8495de8
commit 4f8d05495d
2 changed files with 367 additions and 363 deletions

728
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -465,6 +465,7 @@ int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
],
@ -497,6 +498,7 @@ int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
],