4976
if test x$THREADS != xnone; then
4986
if test x$THREADS = xposix; then
4996
if test x$darwin_threads = xtrue; then
4997
DARWIN_THREADS_TRUE=
4998
DARWIN_THREADS_FALSE='#'
5000
DARWIN_THREADS_TRUE='#'
5001
DARWIN_THREADS_FALSE=
5006
if test x$win32_threads = xtrue; then
5008
WIN32_THREADS_FALSE='#'
5010
WIN32_THREADS_TRUE='#'
5011
WIN32_THREADS_FALSE=
4921
5015
case "$host" in
4922
5016
powerpc-*-darwin*)
4923
5017
powerpc_darwin=true
4928
if test x$powerpc_darwin = xtrue; then
4929
POWERPC_DARWIN_TRUE=
4930
POWERPC_DARWIN_FALSE='#'
4932
POWERPC_DARWIN_TRUE='#'
4933
POWERPC_DARWIN_FALSE=
5021
# Darwin needs a few extra special tests to deal with variation in the
5026
{ echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5027
echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
5028
if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5029
echo $ECHO_N "(cached) $ECHO_C" >&6
5031
cat >conftest.$ac_ext <<_ACEOF
5034
cat confdefs.h >>conftest.$ac_ext
5035
cat >>conftest.$ac_ext <<_ACEOF
5036
/* end confdefs.h. */
5037
#include <mach/thread_status.h>
5042
static ppc_thread_state_t ac_aggr;
5049
rm -f conftest.$ac_objext
5050
if { (ac_try="$ac_compile"
5052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053
*) ac_try_echo=$ac_try;;
5055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056
(eval "$ac_compile") 2>conftest.er1
5058
grep -v '^ *+' conftest.er1 >conftest.err
5060
cat conftest.err >&5
5061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
(exit $ac_status); } && {
5063
test -z "$ac_c_werror_flag" ||
5064
test ! -s conftest.err
5065
} && test -s conftest.$ac_objext; then
5066
ac_cv_member_ppc_thread_state_t_r0=yes
5068
echo "$as_me: failed program was:" >&5
5069
sed 's/^/| /' conftest.$ac_ext >&5
5071
cat >conftest.$ac_ext <<_ACEOF
5074
cat confdefs.h >>conftest.$ac_ext
5075
cat >>conftest.$ac_ext <<_ACEOF
5076
/* end confdefs.h. */
5077
#include <mach/thread_status.h>
5082
static ppc_thread_state_t ac_aggr;
5083
if (sizeof ac_aggr.r0)
5089
rm -f conftest.$ac_objext
5090
if { (ac_try="$ac_compile"
5092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093
*) ac_try_echo=$ac_try;;
5095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096
(eval "$ac_compile") 2>conftest.er1
5098
grep -v '^ *+' conftest.er1 >conftest.err
5100
cat conftest.err >&5
5101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102
(exit $ac_status); } && {
5103
test -z "$ac_c_werror_flag" ||
5104
test ! -s conftest.err
5105
} && test -s conftest.$ac_objext; then
5106
ac_cv_member_ppc_thread_state_t_r0=yes
5108
echo "$as_me: failed program was:" >&5
5109
sed 's/^/| /' conftest.$ac_ext >&5
5111
ac_cv_member_ppc_thread_state_t_r0=no
5114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119
{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5120
echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5121
if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
5123
cat >>confdefs.h <<\_ACEOF
5124
#define HAS_PPC_THREAD_STATE_R0 1
5129
{ echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5130
echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
5131
if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5132
echo $ECHO_N "(cached) $ECHO_C" >&6
5134
cat >conftest.$ac_ext <<_ACEOF
5137
cat confdefs.h >>conftest.$ac_ext
5138
cat >>conftest.$ac_ext <<_ACEOF
5139
/* end confdefs.h. */
5140
#include <mach/thread_status.h>
5145
static ppc_thread_state_t ac_aggr;
5152
rm -f conftest.$ac_objext
5153
if { (ac_try="$ac_compile"
5155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156
*) ac_try_echo=$ac_try;;
5158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159
(eval "$ac_compile") 2>conftest.er1
5161
grep -v '^ *+' conftest.er1 >conftest.err
5163
cat conftest.err >&5
5164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
(exit $ac_status); } && {
5166
test -z "$ac_c_werror_flag" ||
5167
test ! -s conftest.err
5168
} && test -s conftest.$ac_objext; then
5169
ac_cv_member_ppc_thread_state_t___r0=yes
5171
echo "$as_me: failed program was:" >&5
5172
sed 's/^/| /' conftest.$ac_ext >&5
5174
cat >conftest.$ac_ext <<_ACEOF
5177
cat confdefs.h >>conftest.$ac_ext
5178
cat >>conftest.$ac_ext <<_ACEOF
5179
/* end confdefs.h. */
5180
#include <mach/thread_status.h>
5185
static ppc_thread_state_t ac_aggr;
5186
if (sizeof ac_aggr.__r0)
5192
rm -f conftest.$ac_objext
5193
if { (ac_try="$ac_compile"
5195
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196
*) ac_try_echo=$ac_try;;
5198
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199
(eval "$ac_compile") 2>conftest.er1
5201
grep -v '^ *+' conftest.er1 >conftest.err
5203
cat conftest.err >&5
5204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205
(exit $ac_status); } && {
5206
test -z "$ac_c_werror_flag" ||
5207
test ! -s conftest.err
5208
} && test -s conftest.$ac_objext; then
5209
ac_cv_member_ppc_thread_state_t___r0=yes
5211
echo "$as_me: failed program was:" >&5
5212
sed 's/^/| /' conftest.$ac_ext >&5
5214
ac_cv_member_ppc_thread_state_t___r0=no
5217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5223
echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5224
if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
5226
cat >>confdefs.h <<\_ACEOF
5227
#define HAS_PPC_THREAD_STATE___R0 1
5232
{ echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5233
echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
5234
if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5235
echo $ECHO_N "(cached) $ECHO_C" >&6
5237
cat >conftest.$ac_ext <<_ACEOF
5240
cat confdefs.h >>conftest.$ac_ext
5241
cat >>conftest.$ac_ext <<_ACEOF
5242
/* end confdefs.h. */
5243
#include <mach/thread_status.h>
5248
static ppc_thread_state64_t ac_aggr;
5255
rm -f conftest.$ac_objext
5256
if { (ac_try="$ac_compile"
5258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259
*) ac_try_echo=$ac_try;;
5261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262
(eval "$ac_compile") 2>conftest.er1
5264
grep -v '^ *+' conftest.er1 >conftest.err
5266
cat conftest.err >&5
5267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268
(exit $ac_status); } && {
5269
test -z "$ac_c_werror_flag" ||
5270
test ! -s conftest.err
5271
} && test -s conftest.$ac_objext; then
5272
ac_cv_member_ppc_thread_state64_t_r0=yes
5274
echo "$as_me: failed program was:" >&5
5275
sed 's/^/| /' conftest.$ac_ext >&5
5277
cat >conftest.$ac_ext <<_ACEOF
5280
cat confdefs.h >>conftest.$ac_ext
5281
cat >>conftest.$ac_ext <<_ACEOF
5282
/* end confdefs.h. */
5283
#include <mach/thread_status.h>
5288
static ppc_thread_state64_t ac_aggr;
5289
if (sizeof ac_aggr.r0)
5295
rm -f conftest.$ac_objext
5296
if { (ac_try="$ac_compile"
5298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299
*) ac_try_echo=$ac_try;;
5301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302
(eval "$ac_compile") 2>conftest.er1
5304
grep -v '^ *+' conftest.er1 >conftest.err
5306
cat conftest.err >&5
5307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308
(exit $ac_status); } && {
5309
test -z "$ac_c_werror_flag" ||
5310
test ! -s conftest.err
5311
} && test -s conftest.$ac_objext; then
5312
ac_cv_member_ppc_thread_state64_t_r0=yes
5314
echo "$as_me: failed program was:" >&5
5315
sed 's/^/| /' conftest.$ac_ext >&5
5317
ac_cv_member_ppc_thread_state64_t_r0=no
5320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325
{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5326
echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5327
if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
5329
cat >>confdefs.h <<\_ACEOF
5330
#define HAS_PPC_THREAD_STATE64_R0 1
5335
{ echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5336
echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
5337
if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5338
echo $ECHO_N "(cached) $ECHO_C" >&6
5340
cat >conftest.$ac_ext <<_ACEOF
5343
cat confdefs.h >>conftest.$ac_ext
5344
cat >>conftest.$ac_ext <<_ACEOF
5345
/* end confdefs.h. */
5346
#include <mach/thread_status.h>
5351
static ppc_thread_state64_t ac_aggr;
5358
rm -f conftest.$ac_objext
5359
if { (ac_try="$ac_compile"
5361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362
*) ac_try_echo=$ac_try;;
5364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365
(eval "$ac_compile") 2>conftest.er1
5367
grep -v '^ *+' conftest.er1 >conftest.err
5369
cat conftest.err >&5
5370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
(exit $ac_status); } && {
5372
test -z "$ac_c_werror_flag" ||
5373
test ! -s conftest.err
5374
} && test -s conftest.$ac_objext; then
5375
ac_cv_member_ppc_thread_state64_t___r0=yes
5377
echo "$as_me: failed program was:" >&5
5378
sed 's/^/| /' conftest.$ac_ext >&5
5380
cat >conftest.$ac_ext <<_ACEOF
5383
cat confdefs.h >>conftest.$ac_ext
5384
cat >>conftest.$ac_ext <<_ACEOF
5385
/* end confdefs.h. */
5386
#include <mach/thread_status.h>
5391
static ppc_thread_state64_t ac_aggr;
5392
if (sizeof ac_aggr.__r0)
5398
rm -f conftest.$ac_objext
5399
if { (ac_try="$ac_compile"
5401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402
*) ac_try_echo=$ac_try;;
5404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405
(eval "$ac_compile") 2>conftest.er1
5407
grep -v '^ *+' conftest.er1 >conftest.err
5409
cat conftest.err >&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); } && {
5412
test -z "$ac_c_werror_flag" ||
5413
test ! -s conftest.err
5414
} && test -s conftest.$ac_objext; then
5415
ac_cv_member_ppc_thread_state64_t___r0=yes
5417
echo "$as_me: failed program was:" >&5
5418
sed 's/^/| /' conftest.$ac_ext >&5
5420
ac_cv_member_ppc_thread_state64_t___r0=no
5423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428
{ echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5429
echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5430
if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
5432
cat >>confdefs.h <<\_ACEOF
5433
#define HAS_PPC_THREAD_STATE64___R0 1
5440
{ echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5441
echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
5442
if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5443
echo $ECHO_N "(cached) $ECHO_C" >&6
5445
cat >conftest.$ac_ext <<_ACEOF
5448
cat confdefs.h >>conftest.$ac_ext
5449
cat >>conftest.$ac_ext <<_ACEOF
5450
/* end confdefs.h. */
5451
#include <sys/cdefs.h>
5452
#include <mach/thread_status.h>
5457
static x86_thread_state32_t ac_aggr;
5464
rm -f conftest.$ac_objext
5465
if { (ac_try="$ac_compile"
5467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468
*) ac_try_echo=$ac_try;;
5470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471
(eval "$ac_compile") 2>conftest.er1
5473
grep -v '^ *+' conftest.er1 >conftest.err
5475
cat conftest.err >&5
5476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477
(exit $ac_status); } && {
5478
test -z "$ac_c_werror_flag" ||
5479
test ! -s conftest.err
5480
} && test -s conftest.$ac_objext; then
5481
ac_cv_member_x86_thread_state32_t_eax=yes
5483
echo "$as_me: failed program was:" >&5
5484
sed 's/^/| /' conftest.$ac_ext >&5
5486
cat >conftest.$ac_ext <<_ACEOF
5489
cat confdefs.h >>conftest.$ac_ext
5490
cat >>conftest.$ac_ext <<_ACEOF
5491
/* end confdefs.h. */
5492
#include <sys/cdefs.h>
5493
#include <mach/thread_status.h>
5498
static x86_thread_state32_t ac_aggr;
5499
if (sizeof ac_aggr.eax)
5505
rm -f conftest.$ac_objext
5506
if { (ac_try="$ac_compile"
5508
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509
*) ac_try_echo=$ac_try;;
5511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512
(eval "$ac_compile") 2>conftest.er1
5514
grep -v '^ *+' conftest.er1 >conftest.err
5516
cat conftest.err >&5
5517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518
(exit $ac_status); } && {
5519
test -z "$ac_c_werror_flag" ||
5520
test ! -s conftest.err
5521
} && test -s conftest.$ac_objext; then
5522
ac_cv_member_x86_thread_state32_t_eax=yes
5524
echo "$as_me: failed program was:" >&5
5525
sed 's/^/| /' conftest.$ac_ext >&5
5527
ac_cv_member_x86_thread_state32_t_eax=no
5530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535
{ echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5536
echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5537
if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
5539
cat >>confdefs.h <<\_ACEOF
5540
#define HAS_X86_THREAD_STATE32_EAX 1
5545
{ echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5546
echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
5547
if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5548
echo $ECHO_N "(cached) $ECHO_C" >&6
5550
cat >conftest.$ac_ext <<_ACEOF
5553
cat confdefs.h >>conftest.$ac_ext
5554
cat >>conftest.$ac_ext <<_ACEOF
5555
/* end confdefs.h. */
5556
#include <sys/cdefs.h>
5557
#include <mach/thread_status.h>
5562
static x86_thread_state32_t ac_aggr;
5569
rm -f conftest.$ac_objext
5570
if { (ac_try="$ac_compile"
5572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573
*) ac_try_echo=$ac_try;;
5575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576
(eval "$ac_compile") 2>conftest.er1
5578
grep -v '^ *+' conftest.er1 >conftest.err
5580
cat conftest.err >&5
5581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582
(exit $ac_status); } && {
5583
test -z "$ac_c_werror_flag" ||
5584
test ! -s conftest.err
5585
} && test -s conftest.$ac_objext; then
5586
ac_cv_member_x86_thread_state32_t___eax=yes
5588
echo "$as_me: failed program was:" >&5
5589
sed 's/^/| /' conftest.$ac_ext >&5
5591
cat >conftest.$ac_ext <<_ACEOF
5594
cat confdefs.h >>conftest.$ac_ext
5595
cat >>conftest.$ac_ext <<_ACEOF
5596
/* end confdefs.h. */
5597
#include <sys/cdefs.h>
5598
#include <mach/thread_status.h>
5603
static x86_thread_state32_t ac_aggr;
5604
if (sizeof ac_aggr.__eax)
5610
rm -f conftest.$ac_objext
5611
if { (ac_try="$ac_compile"
5613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614
*) ac_try_echo=$ac_try;;
5616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617
(eval "$ac_compile") 2>conftest.er1
5619
grep -v '^ *+' conftest.er1 >conftest.err
5621
cat conftest.err >&5
5622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623
(exit $ac_status); } && {
5624
test -z "$ac_c_werror_flag" ||
5625
test ! -s conftest.err
5626
} && test -s conftest.$ac_objext; then
5627
ac_cv_member_x86_thread_state32_t___eax=yes
5629
echo "$as_me: failed program was:" >&5
5630
sed 's/^/| /' conftest.$ac_ext >&5
5632
ac_cv_member_x86_thread_state32_t___eax=no
5635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640
{ echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5641
echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5642
if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
5644
cat >>confdefs.h <<\_ACEOF
5645
#define HAS_X86_THREAD_STATE32___EAX 1
5652
{ echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5653
echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
5654
if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5655
echo $ECHO_N "(cached) $ECHO_C" >&6
5657
cat >conftest.$ac_ext <<_ACEOF
5660
cat confdefs.h >>conftest.$ac_ext
5661
cat >>conftest.$ac_ext <<_ACEOF
5662
/* end confdefs.h. */
5663
#include <sys/cdefs.h>
5664
#include <mach/thread_status.h>
5669
static x86_thread_state64_t ac_aggr;
5676
rm -f conftest.$ac_objext
5677
if { (ac_try="$ac_compile"
5679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680
*) ac_try_echo=$ac_try;;
5682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683
(eval "$ac_compile") 2>conftest.er1
5685
grep -v '^ *+' conftest.er1 >conftest.err
5687
cat conftest.err >&5
5688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689
(exit $ac_status); } && {
5690
test -z "$ac_c_werror_flag" ||
5691
test ! -s conftest.err
5692
} && test -s conftest.$ac_objext; then
5693
ac_cv_member_x86_thread_state64_t_rax=yes
5695
echo "$as_me: failed program was:" >&5
5696
sed 's/^/| /' conftest.$ac_ext >&5
5698
cat >conftest.$ac_ext <<_ACEOF
5701
cat confdefs.h >>conftest.$ac_ext
5702
cat >>conftest.$ac_ext <<_ACEOF
5703
/* end confdefs.h. */
5704
#include <sys/cdefs.h>
5705
#include <mach/thread_status.h>
5710
static x86_thread_state64_t ac_aggr;
5711
if (sizeof ac_aggr.rax)
5717
rm -f conftest.$ac_objext
5718
if { (ac_try="$ac_compile"
5720
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721
*) ac_try_echo=$ac_try;;
5723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724
(eval "$ac_compile") 2>conftest.er1
5726
grep -v '^ *+' conftest.er1 >conftest.err
5728
cat conftest.err >&5
5729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
(exit $ac_status); } && {
5731
test -z "$ac_c_werror_flag" ||
5732
test ! -s conftest.err
5733
} && test -s conftest.$ac_objext; then
5734
ac_cv_member_x86_thread_state64_t_rax=yes
5736
echo "$as_me: failed program was:" >&5
5737
sed 's/^/| /' conftest.$ac_ext >&5
5739
ac_cv_member_x86_thread_state64_t_rax=no
5742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747
{ echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
5748
echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
5749
if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
5751
cat >>confdefs.h <<\_ACEOF
5752
#define HAS_X86_THREAD_STATE64_RAX 1
5757
{ echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
5758
echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
5759
if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
5760
echo $ECHO_N "(cached) $ECHO_C" >&6
5762
cat >conftest.$ac_ext <<_ACEOF
5765
cat confdefs.h >>conftest.$ac_ext
5766
cat >>conftest.$ac_ext <<_ACEOF
5767
/* end confdefs.h. */
5768
#include <sys/cdefs.h>
5769
#include <mach/thread_status.h>
5774
static x86_thread_state64_t ac_aggr;
5781
rm -f conftest.$ac_objext
5782
if { (ac_try="$ac_compile"
5784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785
*) ac_try_echo=$ac_try;;
5787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788
(eval "$ac_compile") 2>conftest.er1
5790
grep -v '^ *+' conftest.er1 >conftest.err
5792
cat conftest.err >&5
5793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
(exit $ac_status); } && {
5795
test -z "$ac_c_werror_flag" ||
5796
test ! -s conftest.err
5797
} && test -s conftest.$ac_objext; then
5798
ac_cv_member_x86_thread_state64_t___rax=yes
5800
echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5803
cat >conftest.$ac_ext <<_ACEOF
5806
cat confdefs.h >>conftest.$ac_ext
5807
cat >>conftest.$ac_ext <<_ACEOF
5808
/* end confdefs.h. */
5809
#include <sys/cdefs.h>
5810
#include <mach/thread_status.h>
5815
static x86_thread_state64_t ac_aggr;
5816
if (sizeof ac_aggr.__rax)
5822
rm -f conftest.$ac_objext
5823
if { (ac_try="$ac_compile"
5825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826
*) ac_try_echo=$ac_try;;
5828
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829
(eval "$ac_compile") 2>conftest.er1
5831
grep -v '^ *+' conftest.er1 >conftest.err
5833
cat conftest.err >&5
5834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835
(exit $ac_status); } && {
5836
test -z "$ac_c_werror_flag" ||
5837
test ! -s conftest.err
5838
} && test -s conftest.$ac_objext; then
5839
ac_cv_member_x86_thread_state64_t___rax=yes
5841
echo "$as_me: failed program was:" >&5
5842
sed 's/^/| /' conftest.$ac_ext >&5
5844
ac_cv_member_x86_thread_state64_t___rax=no
5847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852
{ echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
5853
echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
5854
if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
5856
cat >>confdefs.h <<\_ACEOF
5857
#define HAS_X86_THREAD_STATE64___RAX 1
4937
5866
{ echo "$as_me:$LINENO: checking for xlc" >&5
4938
5867
echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
4940
5868
cat >conftest.$ac_ext <<_ACEOF
4941
5869
/* confdefs.h. */
21186
ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile"
21777
atomic_ops_libs=-latomic_ops
21778
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21779
{ echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21780
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21781
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21782
echo $ECHO_N "(cached) $ECHO_C" >&6
21784
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21785
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21787
# Is the header compilable?
21788
{ echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
21789
echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
21790
cat >conftest.$ac_ext <<_ACEOF
21793
cat confdefs.h >>conftest.$ac_ext
21794
cat >>conftest.$ac_ext <<_ACEOF
21795
/* end confdefs.h. */
21796
$ac_includes_default
21797
#include <atomic_ops.h>
21799
rm -f conftest.$ac_objext
21800
if { (ac_try="$ac_compile"
21801
case "(($ac_try" in
21802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803
*) ac_try_echo=$ac_try;;
21805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806
(eval "$ac_compile") 2>conftest.er1
21808
grep -v '^ *+' conftest.er1 >conftest.err
21810
cat conftest.err >&5
21811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812
(exit $ac_status); } && {
21813
test -z "$ac_c_werror_flag" ||
21814
test ! -s conftest.err
21815
} && test -s conftest.$ac_objext; then
21816
ac_header_compiler=yes
21818
echo "$as_me: failed program was:" >&5
21819
sed 's/^/| /' conftest.$ac_ext >&5
21821
ac_header_compiler=no
21824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826
echo "${ECHO_T}$ac_header_compiler" >&6; }
21828
# Is the header present?
21829
{ echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
21830
echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
21831
cat >conftest.$ac_ext <<_ACEOF
21834
cat confdefs.h >>conftest.$ac_ext
21835
cat >>conftest.$ac_ext <<_ACEOF
21836
/* end confdefs.h. */
21837
#include <atomic_ops.h>
21839
if { (ac_try="$ac_cpp conftest.$ac_ext"
21840
case "(($ac_try" in
21841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842
*) ac_try_echo=$ac_try;;
21844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21847
grep -v '^ *+' conftest.er1 >conftest.err
21849
cat conftest.err >&5
21850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851
(exit $ac_status); } >/dev/null && {
21852
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853
test ! -s conftest.err
21855
ac_header_preproc=yes
21857
echo "$as_me: failed program was:" >&5
21858
sed 's/^/| /' conftest.$ac_ext >&5
21860
ac_header_preproc=no
21863
rm -f conftest.err conftest.$ac_ext
21864
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21865
echo "${ECHO_T}$ac_header_preproc" >&6; }
21867
# So? What about this header?
21868
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21870
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
21871
echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21872
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
21873
echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
21874
ac_header_preproc=yes
21877
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
21878
echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
21879
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
21880
echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
21881
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
21882
echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
21883
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
21884
echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
21885
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
21886
echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
21887
{ echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
21888
echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
21890
## -------------------------------- ##
21891
## Report this to Hans.Boehm@hp.com ##
21892
## -------------------------------- ##
21894
) | sed "s/^/$as_me: WARNING: /" >&2
21897
{ echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21898
echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21899
if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21900
echo $ECHO_N "(cached) $ECHO_C" >&6
21902
ac_cv_header_atomic_ops_h=$ac_header_preproc
21904
{ echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21905
echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21908
if test $ac_cv_header_atomic_ops_h = yes; then
21909
{ echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5
21910
echo "$as_me: Using pre-installed libatomic_ops" >&6;}
21913
for candidate in ${srcdir}/libatomic_ops*; do
21920
if test -e "$candidate"; then
21921
ao_dir="$candidate"
21926
if test -z "$ao_dir"; then
21927
{ { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5
21928
echo "$as_me: error: Missig libatomic_ops." >&2;}
21929
{ (exit 1); exit 1; }; }
21931
ao_version="${ao_dir#*libatomic_ops-}"
21932
{ echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5
21933
echo "$as_me: Using internal version of libatomic_ops" >&6;}
21935
test -e libatomic_ops \
21936
|| ln -s ${ao_dir} libatomic_ops
21937
subdirs="$subdirs libatomic_ops"
21940
test -e atomic_ops.c \
21941
|| ln -s libatomic_ops/src/atomic_ops.c \
21944
test -e atomic_ops_sysdeps.S \
21945
|| ln -s libatomic_ops/src/atomic_ops_sysdeps.S \
21946
atomic_ops_sysdeps.S
21948
GC_CFLAGS="${GC_CFLAGS} -I libatomic_ops/src"
21949
maybe_libatomic_ops="libatomic_ops"
21957
if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then
21958
USE_INTERNAL_LIBATOMIC_OPS_TRUE=
21959
USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
21961
USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
21962
USE_INTERNAL_LIBATOMIC_OPS_FALSE=
21967
if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then
21968
NEED_ATOMIC_OPS_ASM_TRUE=
21969
NEED_ATOMIC_OPS_ASM_FALSE='#'
21971
NEED_ATOMIC_OPS_ASM_TRUE='#'
21972
NEED_ATOMIC_OPS_ASM_FALSE=
21978
ac_config_files="$ac_config_files Makefile bdw-gc.pc"
21188
21981
ac_config_commands="$ac_config_commands default"
21190
21984
cat >confcache <<\_ACEOF
21191
21985
# This file is a shell script that caches the results of configure
21192
21986
# tests run on this system so they can be shared between configure
22515
23383
$ac_cs_success || { (exit 1); exit 1; }
23387
# CONFIG_SUBDIRS section.
23389
if test "$no_recursion" != yes; then
23391
# Remove --cache-file and --srcdir arguments so they do not pile up.
23392
ac_sub_configure_args=
23394
eval "set x $ac_configure_args"
23398
if test -n "$ac_prev"; then
23403
-cache-file | --cache-file | --cache-fil | --cache-fi \
23404
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23405
ac_prev=cache_file ;;
23406
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23407
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23410
--config-cache | -C)
23412
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23414
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23416
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23418
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23422
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23424
ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23428
# Always prepend --prefix to ensure using the same prefix
23429
# in subdir configurations.
23430
ac_arg="--prefix=$prefix"
23432
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23434
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23437
if test "$silent" = yes; then
23438
ac_sub_configure_args="--silent $ac_sub_configure_args"
23442
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23444
# Do not complain, so a configure script can configure whichever
23445
# parts of a large source tree are present.
23446
test -d "$srcdir/$ac_dir" || continue
23448
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23449
echo "$as_me:$LINENO: $ac_msg" >&5
23453
-*) as_dir=./$as_dir;;
23455
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23459
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23460
*) as_qdir=$as_dir;;
23462
as_dirs="'$as_qdir' $as_dirs"
23463
as_dir=`$as_dirname -- "$as_dir" ||
23464
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23465
X"$as_dir" : 'X\(//\)[^/]' \| \
23466
X"$as_dir" : 'X\(//\)$' \| \
23467
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23469
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23473
/^X\(\/\/\)[^/].*/{
23486
test -d "$as_dir" && break
23488
test -z "$as_dirs" || eval "mkdir $as_dirs"
23489
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23490
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23491
{ (exit 1); exit 1; }; }; }
23495
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23497
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23498
# A ".." for each directory in $ac_dir_suffix.
23499
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23500
case $ac_top_builddir_sub in
23501
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23502
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23505
ac_abs_top_builddir=$ac_pwd
23506
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23507
# for backward compatibility:
23508
ac_top_builddir=$ac_top_build_prefix
23511
.) # We are building in place.
23513
ac_top_srcdir=$ac_top_builddir_sub
23514
ac_abs_top_srcdir=$ac_pwd ;;
23515
[\\/]* | ?:[\\/]* ) # Absolute name.
23516
ac_srcdir=$srcdir$ac_dir_suffix;
23517
ac_top_srcdir=$srcdir
23518
ac_abs_top_srcdir=$srcdir ;;
23519
*) # Relative name.
23520
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23521
ac_top_srcdir=$ac_top_build_prefix$srcdir
23522
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23524
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23529
# Check for guested configure; otherwise get Cygnus style configure.
23530
if test -f "$ac_srcdir/configure.gnu"; then
23531
ac_sub_configure=$ac_srcdir/configure.gnu
23532
elif test -f "$ac_srcdir/configure"; then
23533
ac_sub_configure=$ac_srcdir/configure
23534
elif test -f "$ac_srcdir/configure.in"; then
23535
# This should be Cygnus configure.
23536
ac_sub_configure=$ac_aux_dir/configure
23538
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23539
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23543
# The recursion is here.
23544
if test -n "$ac_sub_configure"; then
23545
# Make the cache file name correct relative to the subdirectory.
23546
case $cache_file in
23547
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23548
*) # Relative name.
23549
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23552
{ echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23553
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23554
# The eval makes quoting arguments work.
23555
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23556
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23557
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23558
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23559
{ (exit 1); exit 1; }; }