Changeset 4531
- Timestamp:
- 02/08/07 00:16:17 (2 years ago)
- Files:
-
- libwired/trunk/configure (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/configure
r4518 r4531 1376 1376 1377 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1378 1390 # Get host 1379 1391 ac_aux_dir= … … 4963 4975 if test -n "$enable_pthreads"; then 4964 4976 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4977 case $host in 4978 *-solaris*) 4979 4980 cat >>confdefs.h <<\_ACEOF 4981 #define _POSIX_PTHREAD_SEMANTICS 4982 _ACEOF 4983 4984 ;; 4985 esac 4976 4986 4977 4987 … … 5125 5135 5126 5136 5127 if test "$_wi_pthreads_found" != yes ; then5128 OLD_LIBS="$LIBS"5129 LIBS=" $LIBS"5130 5131 if test "$cross_compiling" = yes; then5132 5133 cat >conftest.$ac_ext <<_ACEOF5137 if test "$_wi_pthreads_found" != yes ; then 5138 OLD_LIBS="$LIBS" 5139 LIBS=" $LIBS" 5140 5141 if test "$cross_compiling" = yes; then 5142 5143 cat >conftest.$ac_ext <<_ACEOF 5134 5144 /* confdefs.h. */ 5135 5145 _ACEOF … … 5138 5148 /* end confdefs.h. */ 5139 5149 5140 #include <pthread.h>5141 #include <errno.h>5142 5143 void * thread(void *arg) {5144 return NULL;5145 }5150 #include <pthread.h> 5151 #include <errno.h> 5152 5153 void * thread(void *arg) { 5154 return NULL; 5155 } 5146 5156 5147 5157 int … … 5149 5159 { 5150 5160 5151 pthread_t tid;5152 5153 if(pthread_create(&tid, 0, thread, NULL) < 0)5154 return errno;5155 5156 return 0;5161 pthread_t tid; 5162 5163 if(pthread_create(&tid, 0, thread, NULL) < 0) 5164 return errno; 5165 5166 return 0; 5157 5167 5158 5168 ; … … 5183 5193 (exit $ac_status); }; }; then 5184 5194 5185 _wi_pthreads_test=yes5195 _wi_pthreads_test=yes 5186 5196 5187 5197 else … … 5190 5200 5191 5201 5192 _wi_pthreads_test=no5202 _wi_pthreads_test=no 5193 5203 5194 5204 fi … … 5205 5215 5206 5216 5207 #include <pthread.h>5208 #include <errno.h>5209 5210 void * thread(void *arg) {5211 return NULL;5212 }5213 5214 5215 int main(void) {5216 5217 pthread_t tid;5218 5219 if(pthread_create(&tid, 0, thread, NULL) < 0)5220 return errno;5221 5222 return 0;5223 5224 }5217 #include <pthread.h> 5218 #include <errno.h> 5219 5220 void * thread(void *arg) { 5221 return NULL; 5222 } 5223 5224 5225 int main(void) { 5226 5227 pthread_t tid; 5228 5229 if(pthread_create(&tid, 0, thread, NULL) < 0) 5230 return errno; 5231 5232 return 0; 5233 5234 } 5225 5235 5226 5236 _ACEOF … … 5237 5247 (exit $ac_status); }; }; then 5238 5248 5239 _wi_pthreads_test=yes5249 _wi_pthreads_test=yes 5240 5250 5241 5251 else … … 5246 5256 ( exit $ac_status ) 5247 5257 5248 _wi_pthreads_test=no5258 _wi_pthreads_test=no 5249 5259 5250 5260 fi … … 5252 5262 fi 5253 5263 5254 LIBS="$OLD_LIBS" 5255 5256 if test "$_wi_pthreads_test" = yes ; then 5257 _wi_pthreads_found=yes 5258 _wi_pthreads_libs="" 5259 fi 5264 LIBS="$OLD_LIBS" 5265 5266 if test "$_wi_pthreads_test" = yes ; then 5267 _wi_pthreads_found=yes 5268 _wi_pthreads_libs="" 5260 5269 fi 5261 5262 5263 if test "$_wi_pthreads_found" != yes ; then 5264 OLD_LIBS="$LIBS" 5265 LIBS=" $LIBS" 5266 5267 if test "$cross_compiling" = yes; then 5268 5269 cat >conftest.$ac_ext <<_ACEOF 5270 fi 5271 5272 5273 if test "$_wi_pthreads_found" != yes ; then 5274 OLD_LIBS="$LIBS" 5275 LIBS="-pthread $LIBS" 5276 5277 if test "$cross_compiling" = yes; then 5278 5279 cat >conftest.$ac_ext <<_ACEOF 5270 5280 /* confdefs.h. */ 5271 5281 _ACEOF … … 5274 5284 /* end confdefs.h. */ 5275 5285 5276 #include <pthread.h>5277 #include <errno.h>5278 5279 void * thread(void *arg) {5280 return NULL;5281 }5286 #include <pthread.h> 5287 #include <errno.h> 5288 5289 void * thread(void *arg) { 5290 return NULL; 5291 } 5282 5292 5283 5293 int … … 5285 5295 { 5286 5296 5287 pthread_t tid;5288 5289 if(pthread_create(&tid, 0, thread, NULL) < 0)5290 return errno;5291 5292 return 0;5297 pthread_t tid; 5298 5299 if(pthread_create(&tid, 0, thread, NULL) < 0) 5300 return errno; 5301 5302 return 0; 5293 5303 5294 5304 ; … … 5319 5329 (exit $ac_status); }; }; then 5320 5330 5321 _wi_pthreads_test=yes5331 _wi_pthreads_test=yes 5322 5332 5323 5333 else … … 5326 5336 5327 5337 5328 _wi_pthreads_test=no5338 _wi_pthreads_test=no 5329 5339 5330 5340 fi … … 5341 5351 5342 5352 5343 #include <pthread.h>5344 #include <errno.h>5345 5346 void * thread(void *arg) {5347 return NULL;5348 }5349 5350 5351 int main(void) {5352 5353 pthread_t tid;5354 5355 if(pthread_create(&tid, 0, thread, NULL) < 0)5356 return errno;5357 5358 return 0;5359 5360 }5353 #include <pthread.h> 5354 #include <errno.h> 5355 5356 void * thread(void *arg) { 5357 return NULL; 5358 } 5359 5360 5361 int main(void) { 5362 5363 pthread_t tid; 5364 5365 if(pthread_create(&tid, 0, thread, NULL) < 0) 5366 return errno; 5367 5368 return 0; 5369 5370 } 5361 5371 5362 5372 _ACEOF … … 5373 5383 (exit $ac_status); }; }; then 5374 5384 5375 _wi_pthreads_test=yes5385 _wi_pthreads_test=yes 5376 5386 5377 5387 else … … 5382 5392 ( exit $ac_status ) 5383 5393 5384 _wi_pthreads_test=no5394 _wi_pthreads_test=no 5385 5395 5386 5396 fi … … 5388 5398 fi 5389 5399 5390 LIBS="$OLD_LIBS" 5391 5392 if test "$_wi_pthreads_test" = yes ; then 5393 _wi_pthreads_found=yes 5394 _wi_pthreads_libs="" 5395 fi 5400 LIBS="$OLD_LIBS" 5401 5402 if test "$_wi_pthreads_test" = yes ; then 5403 _wi_pthreads_found=yes 5404 _wi_pthreads_libs="-pthread" 5396 5405 fi 5397 5398 5399 if test "$_wi_pthreads_found" != yes ; then 5400 OLD_LIBS="$LIBS" 5401 LIBS=" $LIBS" 5402 5403 if test "$cross_compiling" = yes; then 5404 5405 cat >conftest.$ac_ext <<_ACEOF 5406 fi 5407 5408 5409 if test "$_wi_pthreads_found" != yes ; then 5410 OLD_LIBS="$LIBS" 5411 LIBS="-lpthread $LIBS" 5412 5413 if test "$cross_compiling" = yes; then 5414 5415 cat >conftest.$ac_ext <<_ACEOF 5406 5416 /* confdefs.h. */ 5407 5417 _ACEOF … … 5410 5420 /* end confdefs.h. */ 5411 5421 5412 #include <pthread.h>5413 #include <errno.h>5414 5415 void * thread(void *arg) {5416 return NULL;5417 }5422 #include <pthread.h> 5423 #include <errno.h> 5424 5425 void * thread(void *arg) { 5426 return NULL; 5427 } 5418 5428 5419 5429 int … … 5421 5431 { 5422 5432 5423 pthread_t tid;5424 5425 if(pthread_create(&tid, 0, thread, NULL) < 0)5426 return errno;5427 5428 return 0;5433 pthread_t tid; 5434 5435 if(pthread_create(&tid, 0, thread, NULL) < 0) 5436 return errno; 5437 5438 return 0; 5429 5439 5430 5440 ; … … 5455 5465 (exit $ac_status); }; }; then 5456 5466 5457 _wi_pthreads_test=yes5467 _wi_pthreads_test=yes 5458 5468 5459 5469 else … … 5462 5472 5463 5473 5464 _wi_pthreads_test=no5474 _wi_pthreads_test=no 5465 5475 5466 5476 fi … … 5477 5487 5478 5488 5479 #include <pthread.h>5480 #include <errno.h>5481 5482 void * thread(void *arg) {5483 return NULL;5484 }5485 5486 5487 int main(void) {5488 5489 pthread_t tid;5490 5491 if(pthread_create(&tid, 0, thread, NULL) < 0)5492 return errno;5493 5494 return 0;5495 5496 }5489 #include <pthread.h> 5490 #include <errno.h> 5491 5492 void * thread(void *arg) { 5493 return NULL; 5494 } 5495 5496 5497 int main(void) { 5498 5499 pthread_t tid; 5500 5501 if(pthread_create(&tid, 0, thread, NULL) < 0) 5502 return errno; 5503 5504 return 0; 5505 5506 } 5497 5507 5498 5508 _ACEOF … … 5509 5519 (exit $ac_status); }; }; then 5510 5520 5511 _wi_pthreads_test=yes5521 _wi_pthreads_test=yes 5512 5522 5513 5523 else … … 5518 5528 ( exit $ac_status ) 5519 5529 5520 _wi_pthreads_test=no5530 _wi_pthreads_test=no 5521 5531 5522 5532 fi … … 5524 5534 fi 5525 5535 5526 LIBS="$OLD_LIBS" 5527 5528 if test "$_wi_pthreads_test" = yes ; then 5529 _wi_pthreads_found=yes 5530 _wi_pthreads_libs="" 5531 fi 5536 LIBS="$OLD_LIBS" 5537 5538 if test "$_wi_pthreads_test" = yes ; then 5539 _wi_pthreads_found=yes 5540 _wi_pthreads_libs="-lpthread" 5532 5541 fi 5542 fi 5533 5543 5534 5544
