6293
for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h alloca.h
6424
for ac_header in unistd.h utime.h grp.h sys/id.h memory.h alloca.h
6426
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6427
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6428
echo "$as_me:$LINENO: checking for $ac_header" >&5
6429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6430
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6431
echo $ECHO_N "(cached) $ECHO_C" >&6
6433
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6434
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436
# Is the header compilable?
6437
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6438
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6439
cat >conftest.$ac_ext <<_ACEOF
6442
cat confdefs.h >>conftest.$ac_ext
6443
cat >>conftest.$ac_ext <<_ACEOF
6444
/* end confdefs.h. */
6445
$ac_includes_default
6446
#include <$ac_header>
6448
rm -f conftest.$ac_objext
6449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450
(eval $ac_compile) 2>conftest.er1
6452
grep -v '^ *+' conftest.er1 >conftest.err
6454
cat conftest.err >&5
6455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456
(exit $ac_status); } &&
6457
{ ac_try='test -z "$ac_c_werror_flag"
6458
|| test ! -s conftest.err'
6459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463
(exit $ac_status); }; } &&
6464
{ ac_try='test -s conftest.$ac_objext'
6465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
(exit $ac_status); }; }; then
6470
ac_header_compiler=yes
6472
echo "$as_me: failed program was:" >&5
6473
sed 's/^/| /' conftest.$ac_ext >&5
6475
ac_header_compiler=no
6477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6479
echo "${ECHO_T}$ac_header_compiler" >&6
6481
# Is the header present?
6482
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6483
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6484
cat >conftest.$ac_ext <<_ACEOF
6487
cat confdefs.h >>conftest.$ac_ext
6488
cat >>conftest.$ac_ext <<_ACEOF
6489
/* end confdefs.h. */
6490
#include <$ac_header>
6492
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6495
grep -v '^ *+' conftest.er1 >conftest.err
6497
cat conftest.err >&5
6498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
(exit $ac_status); } >/dev/null; then
6500
if test -s conftest.err; then
6501
ac_cpp_err=$ac_c_preproc_warn_flag
6502
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6509
if test -z "$ac_cpp_err"; then
6510
ac_header_preproc=yes
6512
echo "$as_me: failed program was:" >&5
6513
sed 's/^/| /' conftest.$ac_ext >&5
6515
ac_header_preproc=no
6517
rm -f conftest.err conftest.$ac_ext
6518
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6519
echo "${ECHO_T}$ac_header_preproc" >&6
6521
# So? What about this header?
6522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6524
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6525
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6526
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6527
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6528
ac_header_preproc=yes
6531
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6532
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6533
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6534
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6535
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6536
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6537
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6538
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6539
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6540
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6541
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6542
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6545
## ------------------------------------------ ##
6546
## Report this to the AC_PACKAGE_NAME lists. ##
6547
## ------------------------------------------ ##
6550
sed "s/^/$as_me: WARNING: /" >&2
6553
echo "$as_me:$LINENO: checking for $ac_header" >&5
6554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556
echo $ECHO_N "(cached) $ECHO_C" >&6
6558
eval "$as_ac_Header=\$ac_header_preproc"
6560
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6565
cat >>confdefs.h <<_ACEOF
6566
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6575
for ac_header in limits.h float.h
6295
6577
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296
6578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040
for ac_header in sys/capability.h syscall.h sys/syscall.h
9042
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9043
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044
echo "$as_me:$LINENO: checking for $ac_header" >&5
9045
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047
echo $ECHO_N "(cached) $ECHO_C" >&6
9049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9050
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052
# Is the header compilable?
9053
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9054
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9055
cat >conftest.$ac_ext <<_ACEOF
9058
cat confdefs.h >>conftest.$ac_ext
9059
cat >>conftest.$ac_ext <<_ACEOF
9060
/* end confdefs.h. */
9061
$ac_includes_default
9062
#include <$ac_header>
9064
rm -f conftest.$ac_objext
9065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066
(eval $ac_compile) 2>conftest.er1
9068
grep -v '^ *+' conftest.er1 >conftest.err
9070
cat conftest.err >&5
9071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
(exit $ac_status); } &&
9073
{ ac_try='test -z "$ac_c_werror_flag"
9074
|| test ! -s conftest.err'
9075
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079
(exit $ac_status); }; } &&
9080
{ ac_try='test -s conftest.$ac_objext'
9081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085
(exit $ac_status); }; }; then
9086
ac_header_compiler=yes
9088
echo "$as_me: failed program was:" >&5
9089
sed 's/^/| /' conftest.$ac_ext >&5
9091
ac_header_compiler=no
9093
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9094
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095
echo "${ECHO_T}$ac_header_compiler" >&6
9097
# Is the header present?
9098
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9100
cat >conftest.$ac_ext <<_ACEOF
9103
cat confdefs.h >>conftest.$ac_ext
9104
cat >>conftest.$ac_ext <<_ACEOF
9105
/* end confdefs.h. */
9106
#include <$ac_header>
9108
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9111
grep -v '^ *+' conftest.er1 >conftest.err
9113
cat conftest.err >&5
9114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115
(exit $ac_status); } >/dev/null; then
9116
if test -s conftest.err; then
9117
ac_cpp_err=$ac_c_preproc_warn_flag
9118
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9125
if test -z "$ac_cpp_err"; then
9126
ac_header_preproc=yes
9128
echo "$as_me: failed program was:" >&5
9129
sed 's/^/| /' conftest.$ac_ext >&5
9131
ac_header_preproc=no
9133
rm -f conftest.err conftest.$ac_ext
9134
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135
echo "${ECHO_T}$ac_header_preproc" >&6
9137
# So? What about this header?
9138
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9140
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9143
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9144
ac_header_preproc=yes
9147
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9150
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9151
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9152
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9153
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9154
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9155
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9156
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9157
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9158
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161
## ------------------------------------------ ##
9162
## Report this to the AC_PACKAGE_NAME lists. ##
9163
## ------------------------------------------ ##
9166
sed "s/^/$as_me: WARNING: /" >&2
9169
echo "$as_me:$LINENO: checking for $ac_header" >&5
9170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172
echo $ECHO_N "(cached) $ECHO_C" >&6
9174
eval "$as_ac_Header=\$ac_header_preproc"
9176
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181
cat >>confdefs.h <<_ACEOF
9182
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196
for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h sys/proplist.h
9198
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200
echo "$as_me:$LINENO: checking for $ac_header" >&5
9201
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203
echo $ECHO_N "(cached) $ECHO_C" >&6
9205
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9208
# Is the header compilable?
9209
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9211
cat >conftest.$ac_ext <<_ACEOF
9214
cat confdefs.h >>conftest.$ac_ext
9215
cat >>conftest.$ac_ext <<_ACEOF
9216
/* end confdefs.h. */
9217
$ac_includes_default
9218
#include <$ac_header>
9220
rm -f conftest.$ac_objext
9221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222
(eval $ac_compile) 2>conftest.er1
9224
grep -v '^ *+' conftest.er1 >conftest.err
9226
cat conftest.err >&5
9227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228
(exit $ac_status); } &&
9229
{ ac_try='test -z "$ac_c_werror_flag"
9230
|| test ! -s conftest.err'
9231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235
(exit $ac_status); }; } &&
9236
{ ac_try='test -s conftest.$ac_objext'
9237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241
(exit $ac_status); }; }; then
9242
ac_header_compiler=yes
9244
echo "$as_me: failed program was:" >&5
9245
sed 's/^/| /' conftest.$ac_ext >&5
9247
ac_header_compiler=no
9249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251
echo "${ECHO_T}$ac_header_compiler" >&6
9253
# Is the header present?
9254
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9256
cat >conftest.$ac_ext <<_ACEOF
9259
cat confdefs.h >>conftest.$ac_ext
9260
cat >>conftest.$ac_ext <<_ACEOF
9261
/* end confdefs.h. */
9262
#include <$ac_header>
9264
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9265
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9267
grep -v '^ *+' conftest.er1 >conftest.err
9269
cat conftest.err >&5
9270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
(exit $ac_status); } >/dev/null; then
9272
if test -s conftest.err; then
9273
ac_cpp_err=$ac_c_preproc_warn_flag
9274
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9281
if test -z "$ac_cpp_err"; then
9282
ac_header_preproc=yes
9284
echo "$as_me: failed program was:" >&5
9285
sed 's/^/| /' conftest.$ac_ext >&5
9287
ac_header_preproc=no
9289
rm -f conftest.err conftest.$ac_ext
9290
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9291
echo "${ECHO_T}$ac_header_preproc" >&6
9293
# So? What about this header?
9294
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9296
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9297
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9298
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9299
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9300
ac_header_preproc=yes
9303
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9304
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9305
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9306
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9307
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9308
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9309
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9310
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9311
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9312
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9313
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9314
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9317
## ------------------------------------------ ##
9318
## Report this to the AC_PACKAGE_NAME lists. ##
9319
## ------------------------------------------ ##
9322
sed "s/^/$as_me: WARNING: /" >&2
9325
echo "$as_me:$LINENO: checking for $ac_header" >&5
9326
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9327
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9328
echo $ECHO_N "(cached) $ECHO_C" >&6
9330
eval "$as_ac_Header=\$ac_header_preproc"
9332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9333
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9336
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9337
cat >>confdefs.h <<_ACEOF
9338
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320
for ac_header in syscall.h sys/syscall.h
9322
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324
echo "$as_me:$LINENO: checking for $ac_header" >&5
9325
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327
echo $ECHO_N "(cached) $ECHO_C" >&6
9329
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9332
# Is the header compilable?
9333
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9335
cat >conftest.$ac_ext <<_ACEOF
9338
cat confdefs.h >>conftest.$ac_ext
9339
cat >>conftest.$ac_ext <<_ACEOF
9340
/* end confdefs.h. */
9341
$ac_includes_default
9342
#include <$ac_header>
9344
rm -f conftest.$ac_objext
9345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346
(eval $ac_compile) 2>conftest.er1
9348
grep -v '^ *+' conftest.er1 >conftest.err
9350
cat conftest.err >&5
9351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352
(exit $ac_status); } &&
9353
{ ac_try='test -z "$ac_c_werror_flag"
9354
|| test ! -s conftest.err'
9355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359
(exit $ac_status); }; } &&
9360
{ ac_try='test -s conftest.$ac_objext'
9361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365
(exit $ac_status); }; }; then
9366
ac_header_compiler=yes
9368
echo "$as_me: failed program was:" >&5
9369
sed 's/^/| /' conftest.$ac_ext >&5
9371
ac_header_compiler=no
9373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9374
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375
echo "${ECHO_T}$ac_header_compiler" >&6
9377
# Is the header present?
9378
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9380
cat >conftest.$ac_ext <<_ACEOF
9383
cat confdefs.h >>conftest.$ac_ext
9384
cat >>conftest.$ac_ext <<_ACEOF
9385
/* end confdefs.h. */
9386
#include <$ac_header>
9388
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9389
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9391
grep -v '^ *+' conftest.er1 >conftest.err
9393
cat conftest.err >&5
9394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395
(exit $ac_status); } >/dev/null; then
9396
if test -s conftest.err; then
9397
ac_cpp_err=$ac_c_preproc_warn_flag
9398
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9405
if test -z "$ac_cpp_err"; then
9406
ac_header_preproc=yes
9408
echo "$as_me: failed program was:" >&5
9409
sed 's/^/| /' conftest.$ac_ext >&5
9411
ac_header_preproc=no
9413
rm -f conftest.err conftest.$ac_ext
9414
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415
echo "${ECHO_T}$ac_header_preproc" >&6
9417
# So? What about this header?
9418
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9420
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424
ac_header_preproc=yes
9427
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9441
## ------------------------------------------ ##
9442
## Report this to the AC_PACKAGE_NAME lists. ##
9443
## ------------------------------------------ ##
9446
sed "s/^/$as_me: WARNING: /" >&2
9449
echo "$as_me:$LINENO: checking for $ac_header" >&5
9450
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9451
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452
echo $ECHO_N "(cached) $ECHO_C" >&6
9454
eval "$as_ac_Header=\$ac_header_preproc"
9456
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461
cat >>confdefs.h <<_ACEOF
9462
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476
for ac_header in sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
9478
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480
echo "$as_me:$LINENO: checking for $ac_header" >&5
9481
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9482
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483
echo $ECHO_N "(cached) $ECHO_C" >&6
9485
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9486
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9488
# Is the header compilable?
9489
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9490
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9491
cat >conftest.$ac_ext <<_ACEOF
9494
cat confdefs.h >>conftest.$ac_ext
9495
cat >>conftest.$ac_ext <<_ACEOF
9496
/* end confdefs.h. */
9497
$ac_includes_default
9498
#include <$ac_header>
9500
rm -f conftest.$ac_objext
9501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502
(eval $ac_compile) 2>conftest.er1
9504
grep -v '^ *+' conftest.er1 >conftest.err
9506
cat conftest.err >&5
9507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508
(exit $ac_status); } &&
9509
{ ac_try='test -z "$ac_c_werror_flag"
9510
|| test ! -s conftest.err'
9511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515
(exit $ac_status); }; } &&
9516
{ ac_try='test -s conftest.$ac_objext'
9517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521
(exit $ac_status); }; }; then
9522
ac_header_compiler=yes
9524
echo "$as_me: failed program was:" >&5
9525
sed 's/^/| /' conftest.$ac_ext >&5
9527
ac_header_compiler=no
9529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9530
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9531
echo "${ECHO_T}$ac_header_compiler" >&6
9533
# Is the header present?
9534
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9535
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9536
cat >conftest.$ac_ext <<_ACEOF
9539
cat confdefs.h >>conftest.$ac_ext
9540
cat >>conftest.$ac_ext <<_ACEOF
9541
/* end confdefs.h. */
9542
#include <$ac_header>
9544
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9545
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9547
grep -v '^ *+' conftest.er1 >conftest.err
9549
cat conftest.err >&5
9550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551
(exit $ac_status); } >/dev/null; then
9552
if test -s conftest.err; then
9553
ac_cpp_err=$ac_c_preproc_warn_flag
9554
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9561
if test -z "$ac_cpp_err"; then
9562
ac_header_preproc=yes
9564
echo "$as_me: failed program was:" >&5
9565
sed 's/^/| /' conftest.$ac_ext >&5
9567
ac_header_preproc=no
9569
rm -f conftest.err conftest.$ac_ext
9570
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9571
echo "${ECHO_T}$ac_header_preproc" >&6
9573
# So? What about this header?
9574
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9576
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9577
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9578
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9579
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9580
ac_header_preproc=yes
9583
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9584
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9585
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9586
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9587
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9588
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9589
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9590
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9591
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9592
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9593
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9594
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9597
## ------------------------------------------ ##
9598
## Report this to the AC_PACKAGE_NAME lists. ##
9599
## ------------------------------------------ ##
9602
sed "s/^/$as_me: WARNING: /" >&2
9605
echo "$as_me:$LINENO: checking for $ac_header" >&5
9606
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9607
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608
echo $ECHO_N "(cached) $ECHO_C" >&6
9610
eval "$as_ac_Header=\$ac_header_preproc"
9612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9616
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9617
cat >>confdefs.h <<_ACEOF
9618
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9627
for ac_header in sys/ea.h sys/proplist.h
9629
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9630
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631
echo "$as_me:$LINENO: checking for $ac_header" >&5
9632
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9633
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634
echo $ECHO_N "(cached) $ECHO_C" >&6
9636
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9639
# Is the header compilable?
9640
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9641
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9642
cat >conftest.$ac_ext <<_ACEOF
9645
cat confdefs.h >>conftest.$ac_ext
9646
cat >>conftest.$ac_ext <<_ACEOF
9647
/* end confdefs.h. */
9648
$ac_includes_default
9649
#include <$ac_header>
9651
rm -f conftest.$ac_objext
9652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653
(eval $ac_compile) 2>conftest.er1
9655
grep -v '^ *+' conftest.er1 >conftest.err
9657
cat conftest.err >&5
9658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659
(exit $ac_status); } &&
9660
{ ac_try='test -z "$ac_c_werror_flag"
9661
|| test ! -s conftest.err'
9662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
(exit $ac_status); }; } &&
9667
{ ac_try='test -s conftest.$ac_objext'
9668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
(exit $ac_status); }; }; then
9673
ac_header_compiler=yes
9675
echo "$as_me: failed program was:" >&5
9676
sed 's/^/| /' conftest.$ac_ext >&5
9678
ac_header_compiler=no
9680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9681
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682
echo "${ECHO_T}$ac_header_compiler" >&6
9684
# Is the header present?
9685
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9686
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9687
cat >conftest.$ac_ext <<_ACEOF
9690
cat confdefs.h >>conftest.$ac_ext
9691
cat >>conftest.$ac_ext <<_ACEOF
9692
/* end confdefs.h. */
9693
#include <$ac_header>
9695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9696
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9698
grep -v '^ *+' conftest.er1 >conftest.err
9700
cat conftest.err >&5
9701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702
(exit $ac_status); } >/dev/null; then
9703
if test -s conftest.err; then
9704
ac_cpp_err=$ac_c_preproc_warn_flag
9705
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9712
if test -z "$ac_cpp_err"; then
9713
ac_header_preproc=yes
9715
echo "$as_me: failed program was:" >&5
9716
sed 's/^/| /' conftest.$ac_ext >&5
9718
ac_header_preproc=no
9720
rm -f conftest.err conftest.$ac_ext
9721
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9722
echo "${ECHO_T}$ac_header_preproc" >&6
9724
# So? What about this header?
9725
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9727
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9728
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9729
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9730
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9731
ac_header_preproc=yes
9734
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9735
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9736
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9737
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9738
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9739
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9740
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9741
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9742
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9743
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9744
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9745
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9748
## ------------------------------------------ ##
9749
## Report this to the AC_PACKAGE_NAME lists. ##
9750
## ------------------------------------------ ##
9753
sed "s/^/$as_me: WARNING: /" >&2
9756
echo "$as_me:$LINENO: checking for $ac_header" >&5
9757
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9758
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9759
echo $ECHO_N "(cached) $ECHO_C" >&6
9761
eval "$as_ac_Header=\$ac_header_preproc"
9763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9767
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9768
cat >>confdefs.h <<_ACEOF
9769
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11115
echo "$as_me:$LINENO: checking for long long" >&5
11116
echo $ECHO_N "checking for long long... $ECHO_C" >&6
11117
if test "${ac_cv_type_long_long+set}" = set; then
11118
echo $ECHO_N "(cached) $ECHO_C" >&6
11120
cat >conftest.$ac_ext <<_ACEOF
11123
cat confdefs.h >>conftest.$ac_ext
11124
cat >>conftest.$ac_ext <<_ACEOF
11125
/* end confdefs.h. */
11126
$ac_includes_default
11130
if ((long long *) 0)
11132
if (sizeof (long long))
11138
rm -f conftest.$ac_objext
11139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140
(eval $ac_compile) 2>conftest.er1
11142
grep -v '^ *+' conftest.er1 >conftest.err
11144
cat conftest.err >&5
11145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146
(exit $ac_status); } &&
11147
{ ac_try='test -z "$ac_c_werror_flag"
11148
|| test ! -s conftest.err'
11149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150
(eval $ac_try) 2>&5
11152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153
(exit $ac_status); }; } &&
11154
{ ac_try='test -s conftest.$ac_objext'
11155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156
(eval $ac_try) 2>&5
11158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159
(exit $ac_status); }; }; then
11160
ac_cv_type_long_long=yes
11162
echo "$as_me: failed program was:" >&5
11163
sed 's/^/| /' conftest.$ac_ext >&5
11165
ac_cv_type_long_long=no
11167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11169
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11170
echo "${ECHO_T}$ac_cv_type_long_long" >&6
11172
echo "$as_me:$LINENO: checking size of long long" >&5
11173
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11174
if test "${ac_cv_sizeof_long_long+set}" = set; then
11175
echo $ECHO_N "(cached) $ECHO_C" >&6
11177
if test "$ac_cv_type_long_long" = yes; then
11178
# The cast to unsigned long works around a bug in the HP C Compiler
11179
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11180
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11181
# This bug is HP SR number 8606223364.
11182
if test "$cross_compiling" = yes; then
11183
# Depending upon the size, compute the lo and hi bounds.
11184
cat >conftest.$ac_ext <<_ACEOF
11187
cat confdefs.h >>conftest.$ac_ext
11188
cat >>conftest.$ac_ext <<_ACEOF
11189
/* end confdefs.h. */
11190
$ac_includes_default
11194
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11201
rm -f conftest.$ac_objext
11202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203
(eval $ac_compile) 2>conftest.er1
11205
grep -v '^ *+' conftest.er1 >conftest.err
11207
cat conftest.err >&5
11208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209
(exit $ac_status); } &&
11210
{ ac_try='test -z "$ac_c_werror_flag"
11211
|| test ! -s conftest.err'
11212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213
(eval $ac_try) 2>&5
11215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216
(exit $ac_status); }; } &&
11217
{ ac_try='test -s conftest.$ac_objext'
11218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219
(eval $ac_try) 2>&5
11221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222
(exit $ac_status); }; }; then
11225
cat >conftest.$ac_ext <<_ACEOF
11228
cat confdefs.h >>conftest.$ac_ext
11229
cat >>conftest.$ac_ext <<_ACEOF
11230
/* end confdefs.h. */
11231
$ac_includes_default
11235
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11242
rm -f conftest.$ac_objext
11243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244
(eval $ac_compile) 2>conftest.er1
11246
grep -v '^ *+' conftest.er1 >conftest.err
11248
cat conftest.err >&5
11249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250
(exit $ac_status); } &&
11251
{ ac_try='test -z "$ac_c_werror_flag"
11252
|| test ! -s conftest.err'
11253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254
(eval $ac_try) 2>&5
11256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257
(exit $ac_status); }; } &&
11258
{ ac_try='test -s conftest.$ac_objext'
11259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260
(eval $ac_try) 2>&5
11262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263
(exit $ac_status); }; }; then
11264
ac_hi=$ac_mid; break
11266
echo "$as_me: failed program was:" >&5
11267
sed 's/^/| /' conftest.$ac_ext >&5
11269
ac_lo=`expr $ac_mid + 1`
11270
if test $ac_lo -le $ac_mid; then
11274
ac_mid=`expr 2 '*' $ac_mid + 1`
11276
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11279
echo "$as_me: failed program was:" >&5
11280
sed 's/^/| /' conftest.$ac_ext >&5
11282
cat >conftest.$ac_ext <<_ACEOF
11285
cat confdefs.h >>conftest.$ac_ext
11286
cat >>conftest.$ac_ext <<_ACEOF
11287
/* end confdefs.h. */
11288
$ac_includes_default
11292
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11299
rm -f conftest.$ac_objext
11300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301
(eval $ac_compile) 2>conftest.er1
11303
grep -v '^ *+' conftest.er1 >conftest.err
11305
cat conftest.err >&5
11306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307
(exit $ac_status); } &&
11308
{ ac_try='test -z "$ac_c_werror_flag"
11309
|| test ! -s conftest.err'
11310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311
(eval $ac_try) 2>&5
11313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314
(exit $ac_status); }; } &&
11315
{ ac_try='test -s conftest.$ac_objext'
11316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317
(eval $ac_try) 2>&5
11319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320
(exit $ac_status); }; }; then
11323
cat >conftest.$ac_ext <<_ACEOF
11326
cat confdefs.h >>conftest.$ac_ext
11327
cat >>conftest.$ac_ext <<_ACEOF
11328
/* end confdefs.h. */
11329
$ac_includes_default
11333
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11340
rm -f conftest.$ac_objext
11341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342
(eval $ac_compile) 2>conftest.er1
11344
grep -v '^ *+' conftest.er1 >conftest.err
11346
cat conftest.err >&5
11347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348
(exit $ac_status); } &&
11349
{ ac_try='test -z "$ac_c_werror_flag"
11350
|| test ! -s conftest.err'
11351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352
(eval $ac_try) 2>&5
11354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355
(exit $ac_status); }; } &&
11356
{ ac_try='test -s conftest.$ac_objext'
11357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358
(eval $ac_try) 2>&5
11360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361
(exit $ac_status); }; }; then
11362
ac_lo=$ac_mid; break
11364
echo "$as_me: failed program was:" >&5
11365
sed 's/^/| /' conftest.$ac_ext >&5
11367
ac_hi=`expr '(' $ac_mid ')' - 1`
11368
if test $ac_mid -le $ac_hi; then
11372
ac_mid=`expr 2 '*' $ac_mid`
11374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11377
echo "$as_me: failed program was:" >&5
11378
sed 's/^/| /' conftest.$ac_ext >&5
11382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11385
# Binary search between lo and hi bounds.
11386
while test "x$ac_lo" != "x$ac_hi"; do
11387
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11388
cat >conftest.$ac_ext <<_ACEOF
11391
cat confdefs.h >>conftest.$ac_ext
11392
cat >>conftest.$ac_ext <<_ACEOF
11393
/* end confdefs.h. */
11394
$ac_includes_default
11398
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11405
rm -f conftest.$ac_objext
11406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407
(eval $ac_compile) 2>conftest.er1
11409
grep -v '^ *+' conftest.er1 >conftest.err
11411
cat conftest.err >&5
11412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413
(exit $ac_status); } &&
11414
{ ac_try='test -z "$ac_c_werror_flag"
11415
|| test ! -s conftest.err'
11416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417
(eval $ac_try) 2>&5
11419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420
(exit $ac_status); }; } &&
11421
{ ac_try='test -s conftest.$ac_objext'
11422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423
(eval $ac_try) 2>&5
11425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426
(exit $ac_status); }; }; then
11429
echo "$as_me: failed program was:" >&5
11430
sed 's/^/| /' conftest.$ac_ext >&5
11432
ac_lo=`expr '(' $ac_mid ')' + 1`
11434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437
?*) ac_cv_sizeof_long_long=$ac_lo;;
11438
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11439
See \`config.log' for more details." >&5
11440
echo "$as_me: error: cannot compute sizeof (long long), 77
11441
See \`config.log' for more details." >&2;}
11442
{ (exit 1); exit 1; }; } ;;
11445
if test "$cross_compiling" = yes; then
11446
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11447
See \`config.log' for more details." >&5
11448
echo "$as_me: error: cannot run test program while cross compiling
11449
See \`config.log' for more details." >&2;}
11450
{ (exit 1); exit 1; }; }
11452
cat >conftest.$ac_ext <<_ACEOF
11455
cat confdefs.h >>conftest.$ac_ext
11456
cat >>conftest.$ac_ext <<_ACEOF
11457
/* end confdefs.h. */
11458
$ac_includes_default
11459
long longval () { return (long) (sizeof (long long)); }
11460
unsigned long ulongval () { return (long) (sizeof (long long)); }
11462
#include <stdlib.h>
11467
FILE *f = fopen ("conftest.val", "w");
11470
if (((long) (sizeof (long long))) < 0)
11472
long i = longval ();
11473
if (i != ((long) (sizeof (long long))))
11475
fprintf (f, "%ld\n", i);
11479
unsigned long i = ulongval ();
11480
if (i != ((long) (sizeof (long long))))
11482
fprintf (f, "%lu\n", i);
11484
exit (ferror (f) || fclose (f) != 0);
11490
rm -f conftest$ac_exeext
11491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492
(eval $ac_link) 2>&5
11494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497
(eval $ac_try) 2>&5
11499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500
(exit $ac_status); }; }; then
11501
ac_cv_sizeof_long_long=`cat conftest.val`
11503
echo "$as_me: program exited with status $ac_status" >&5
11504
echo "$as_me: failed program was:" >&5
11505
sed 's/^/| /' conftest.$ac_ext >&5
11507
( exit $ac_status )
11508
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11509
See \`config.log' for more details." >&5
11510
echo "$as_me: error: cannot compute sizeof (long long), 77
11511
See \`config.log' for more details." >&2;}
11512
{ (exit 1); exit 1; }; }
11514
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519
ac_cv_sizeof_long_long=0
11522
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11523
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11524
cat >>confdefs.h <<_ACEOF
11525
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10683
11529
echo "$as_me:$LINENO: checking for short" >&5
10684
11530
echo $ECHO_N "checking for short... $ECHO_C" >&6
10685
11531
if test "${ac_cv_type_short+set}" = set; then
18203
for ac_func in mlock munlock mlockall munlockall
18205
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18206
echo "$as_me:$LINENO: checking for $ac_func" >&5
18207
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18208
if eval "test \"\${$as_ac_var+set}\" = set"; then
18209
echo $ECHO_N "(cached) $ECHO_C" >&6
18211
cat >conftest.$ac_ext <<_ACEOF
18214
cat confdefs.h >>conftest.$ac_ext
18215
cat >>conftest.$ac_ext <<_ACEOF
18216
/* end confdefs.h. */
18217
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18218
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18219
#define $ac_func innocuous_$ac_func
18221
/* System header to define __stub macros and hopefully few prototypes,
18222
which can conflict with char $ac_func (); below.
18223
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18224
<limits.h> exists even on freestanding compilers. */
18227
# include <limits.h>
18229
# include <assert.h>
18234
/* Override any gcc2 internal prototype to avoid an error. */
18239
/* We use char because int might match the return type of a gcc2
18240
builtin and then its argument prototype would still apply. */
18242
/* The GNU C library defines this for functions which it implements
18243
to always fail with ENOSYS. Some functions are actually named
18244
something starting with __ and the normal name is an alias. */
18245
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18248
char (*f) () = $ac_func;
18257
return f != $ac_func;
18262
rm -f conftest.$ac_objext conftest$ac_exeext
18263
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264
(eval $ac_link) 2>conftest.er1
18266
grep -v '^ *+' conftest.er1 >conftest.err
18268
cat conftest.err >&5
18269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270
(exit $ac_status); } &&
18271
{ ac_try='test -z "$ac_c_werror_flag"
18272
|| test ! -s conftest.err'
18273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274
(eval $ac_try) 2>&5
18276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277
(exit $ac_status); }; } &&
18278
{ ac_try='test -s conftest$ac_exeext'
18279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280
(eval $ac_try) 2>&5
18282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283
(exit $ac_status); }; }; then
18284
eval "$as_ac_var=yes"
18286
echo "$as_me: failed program was:" >&5
18287
sed 's/^/| /' conftest.$ac_ext >&5
18289
eval "$as_ac_var=no"
18291
rm -f conftest.err conftest.$ac_objext \
18292
conftest$ac_exeext conftest.$ac_ext
18294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18295
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18296
if test `eval echo '${'$as_ac_var'}'` = yes; then
18297
cat >>confdefs.h <<_ACEOF
18298
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18305
for ac_header in sys/mman.h
18307
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18309
echo "$as_me:$LINENO: checking for $ac_header" >&5
18310
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18311
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18312
echo $ECHO_N "(cached) $ECHO_C" >&6
18314
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18315
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18317
# Is the header compilable?
18318
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18319
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18320
cat >conftest.$ac_ext <<_ACEOF
18323
cat confdefs.h >>conftest.$ac_ext
18324
cat >>conftest.$ac_ext <<_ACEOF
18325
/* end confdefs.h. */
18326
$ac_includes_default
18327
#include <$ac_header>
18329
rm -f conftest.$ac_objext
18330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331
(eval $ac_compile) 2>conftest.er1
18333
grep -v '^ *+' conftest.er1 >conftest.err
18335
cat conftest.err >&5
18336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337
(exit $ac_status); } &&
18338
{ ac_try='test -z "$ac_c_werror_flag"
18339
|| test ! -s conftest.err'
18340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341
(eval $ac_try) 2>&5
18343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344
(exit $ac_status); }; } &&
18345
{ ac_try='test -s conftest.$ac_objext'
18346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347
(eval $ac_try) 2>&5
18349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350
(exit $ac_status); }; }; then
18351
ac_header_compiler=yes
18353
echo "$as_me: failed program was:" >&5
18354
sed 's/^/| /' conftest.$ac_ext >&5
18356
ac_header_compiler=no
18358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18360
echo "${ECHO_T}$ac_header_compiler" >&6
18362
# Is the header present?
18363
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18364
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18365
cat >conftest.$ac_ext <<_ACEOF
18368
cat confdefs.h >>conftest.$ac_ext
18369
cat >>conftest.$ac_ext <<_ACEOF
18370
/* end confdefs.h. */
18371
#include <$ac_header>
18373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18374
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18376
grep -v '^ *+' conftest.er1 >conftest.err
18378
cat conftest.err >&5
18379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380
(exit $ac_status); } >/dev/null; then
18381
if test -s conftest.err; then
18382
ac_cpp_err=$ac_c_preproc_warn_flag
18383
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18390
if test -z "$ac_cpp_err"; then
18391
ac_header_preproc=yes
18393
echo "$as_me: failed program was:" >&5
18394
sed 's/^/| /' conftest.$ac_ext >&5
18396
ac_header_preproc=no
18398
rm -f conftest.err conftest.$ac_ext
18399
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18400
echo "${ECHO_T}$ac_header_preproc" >&6
18402
# So? What about this header?
18403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18405
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18406
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18407
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18408
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18409
ac_header_preproc=yes
18412
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18414
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18415
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18416
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18417
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18418
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18419
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18420
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18421
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18422
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18423
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18426
## ------------------------------------------ ##
18427
## Report this to the AC_PACKAGE_NAME lists. ##
18428
## ------------------------------------------ ##
18431
sed "s/^/$as_me: WARNING: /" >&2
18434
echo "$as_me:$LINENO: checking for $ac_header" >&5
18435
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18436
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18437
echo $ECHO_N "(cached) $ECHO_C" >&6
18439
eval "$as_ac_Header=\$ac_header_preproc"
18441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18445
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18446
cat >>confdefs.h <<_ACEOF
18447
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17250
18454
# setbuffer, shmget, shm_open are needed for smbtorture
17255
for ac_func in setbuffer shmget shm_open backtrace_symbols
18458
for ac_func in setbuffer shmget shm_open
17257
18460
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17258
18461
echo "$as_me:$LINENO: checking for $ac_func" >&5
18890
# Note that all the libunwind symbols in the API are defined to internal
18891
# platform-specific version, so we must include libunwind.h before checking
18893
echo "$as_me:$LINENO: checking for libunwind" >&5
18894
echo $ECHO_N "checking for libunwind... $ECHO_C" >&6
18896
if test x"$UNAME_P" = xunknown ; then
18897
# This probably won't link without the platform-specific libunwind.
18898
LIBS="$LIBS -lunwind"
18900
# Add the platform-specific libunwind module. uname -p seems the most
18901
# plausible option and works for ia64, where libunwind is most useful.
18902
LIBS="$LIBS -lunwind -lunwind-$UNAME_P"
18905
cat >conftest.$ac_ext <<_ACEOF
18908
cat confdefs.h >>conftest.$ac_ext
18909
cat >>conftest.$ac_ext <<_ACEOF
18910
/* end confdefs.h. */
18912
#ifdef HAVE_LIBUNWIND_H
18913
#include <libunwind.h>
18920
unw_context_t ctx; unw_cursor_t cur;
18921
char buf[256]; unw_word_t off;
18922
unw_getcontext(&ctx); unw_init_local(&cur, &ctx);
18923
unw_get_proc_name(&cur, buf, sizeof(buf), &off);
18929
rm -f conftest.$ac_objext conftest$ac_exeext
18930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18931
(eval $ac_link) 2>conftest.er1
18933
grep -v '^ *+' conftest.er1 >conftest.err
18935
cat conftest.err >&5
18936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937
(exit $ac_status); } &&
18938
{ ac_try='test -z "$ac_c_werror_flag"
18939
|| test ! -s conftest.err'
18940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941
(eval $ac_try) 2>&5
18943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944
(exit $ac_status); }; } &&
18945
{ ac_try='test -s conftest$ac_exeext'
18946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947
(eval $ac_try) 2>&5
18949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950
(exit $ac_status); }; }; then
18952
echo "$as_me:$LINENO: result: yes" >&5
18953
echo "${ECHO_T}yes" >&6
18955
cat >>confdefs.h <<\_ACEOF
18956
#define HAVE_LIBUNWIND 1
18960
# If we have libunwind, test whether we also have libunwind-ptrace
18961
# which would let us unwind arbitrary processes.
18964
for ac_header in libunwind-ptrace.h
18966
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18967
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968
echo "$as_me:$LINENO: checking for $ac_header" >&5
18969
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18970
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971
echo $ECHO_N "(cached) $ECHO_C" >&6
18973
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18974
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18976
# Is the header compilable?
18977
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18978
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18979
cat >conftest.$ac_ext <<_ACEOF
18982
cat confdefs.h >>conftest.$ac_ext
18983
cat >>conftest.$ac_ext <<_ACEOF
18984
/* end confdefs.h. */
18985
$ac_includes_default
18986
#include <$ac_header>
18988
rm -f conftest.$ac_objext
18989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18990
(eval $ac_compile) 2>conftest.er1
18992
grep -v '^ *+' conftest.er1 >conftest.err
18994
cat conftest.err >&5
18995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996
(exit $ac_status); } &&
18997
{ ac_try='test -z "$ac_c_werror_flag"
18998
|| test ! -s conftest.err'
18999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000
(eval $ac_try) 2>&5
19002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003
(exit $ac_status); }; } &&
19004
{ ac_try='test -s conftest.$ac_objext'
19005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006
(eval $ac_try) 2>&5
19008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009
(exit $ac_status); }; }; then
19010
ac_header_compiler=yes
19012
echo "$as_me: failed program was:" >&5
19013
sed 's/^/| /' conftest.$ac_ext >&5
19015
ac_header_compiler=no
19017
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19018
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19019
echo "${ECHO_T}$ac_header_compiler" >&6
19021
# Is the header present?
19022
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19023
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19024
cat >conftest.$ac_ext <<_ACEOF
19027
cat confdefs.h >>conftest.$ac_ext
19028
cat >>conftest.$ac_ext <<_ACEOF
19029
/* end confdefs.h. */
19030
#include <$ac_header>
19032
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19033
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19035
grep -v '^ *+' conftest.er1 >conftest.err
19037
cat conftest.err >&5
19038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039
(exit $ac_status); } >/dev/null; then
19040
if test -s conftest.err; then
19041
ac_cpp_err=$ac_c_preproc_warn_flag
19042
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19049
if test -z "$ac_cpp_err"; then
19050
ac_header_preproc=yes
19052
echo "$as_me: failed program was:" >&5
19053
sed 's/^/| /' conftest.$ac_ext >&5
19055
ac_header_preproc=no
19057
rm -f conftest.err conftest.$ac_ext
19058
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19059
echo "${ECHO_T}$ac_header_preproc" >&6
19061
# So? What about this header?
19062
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19064
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19065
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19066
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19067
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19068
ac_header_preproc=yes
19071
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19072
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19073
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19074
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19075
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19076
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19077
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19078
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19079
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19080
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19081
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19082
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19085
## ------------------------------------------ ##
19086
## Report this to the AC_PACKAGE_NAME lists. ##
19087
## ------------------------------------------ ##
19090
sed "s/^/$as_me: WARNING: /" >&2
19093
echo "$as_me:$LINENO: checking for $ac_header" >&5
19094
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19095
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19096
echo $ECHO_N "(cached) $ECHO_C" >&6
19098
eval "$as_ac_Header=\$ac_header_preproc"
19100
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19101
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19104
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19105
cat >>confdefs.h <<_ACEOF
19106
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19113
echo "$as_me:$LINENO: checking for _UPT_create in -lunwind-ptrace" >&5
19114
echo $ECHO_N "checking for _UPT_create in -lunwind-ptrace... $ECHO_C" >&6
19115
if test "${ac_cv_lib_unwind_ptrace__UPT_create+set}" = set; then
19116
echo $ECHO_N "(cached) $ECHO_C" >&6
19118
ac_check_lib_save_LIBS=$LIBS
19119
LIBS="-lunwind-ptrace $LIBS"
19120
cat >conftest.$ac_ext <<_ACEOF
19123
cat confdefs.h >>conftest.$ac_ext
19124
cat >>conftest.$ac_ext <<_ACEOF
19125
/* end confdefs.h. */
19127
/* Override any gcc2 internal prototype to avoid an error. */
19131
/* We use char because int might match the return type of a gcc2
19132
builtin and then its argument prototype would still apply. */
19133
char _UPT_create ();
19142
rm -f conftest.$ac_objext conftest$ac_exeext
19143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144
(eval $ac_link) 2>conftest.er1
19146
grep -v '^ *+' conftest.er1 >conftest.err
19148
cat conftest.err >&5
19149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150
(exit $ac_status); } &&
19151
{ ac_try='test -z "$ac_c_werror_flag"
19152
|| test ! -s conftest.err'
19153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154
(eval $ac_try) 2>&5
19156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
(exit $ac_status); }; } &&
19158
{ ac_try='test -s conftest$ac_exeext'
19159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160
(eval $ac_try) 2>&5
19162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163
(exit $ac_status); }; }; then
19164
ac_cv_lib_unwind_ptrace__UPT_create=yes
19166
echo "$as_me: failed program was:" >&5
19167
sed 's/^/| /' conftest.$ac_ext >&5
19169
ac_cv_lib_unwind_ptrace__UPT_create=no
19171
rm -f conftest.err conftest.$ac_objext \
19172
conftest$ac_exeext conftest.$ac_ext
19173
LIBS=$ac_check_lib_save_LIBS
19175
echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_ptrace__UPT_create" >&5
19176
echo "${ECHO_T}$ac_cv_lib_unwind_ptrace__UPT_create" >&6
19177
if test $ac_cv_lib_unwind_ptrace__UPT_create = yes; then
19179
LIBUNWIND_PTRACE="-lunwind-ptrace";
19181
cat >>confdefs.h <<\_ACEOF
19182
#define HAVE_LIBUNWIND_PTRACE 1
19187
LIBUNWIND_PTRACE=""
19194
echo "$as_me: failed program was:" >&5
19195
sed 's/^/| /' conftest.$ac_ext >&5
19198
echo "$as_me:$LINENO: result: no" >&5
19199
echo "${ECHO_T}no" >&6
19203
rm -f conftest.err conftest.$ac_objext \
19204
conftest$ac_exeext conftest.$ac_ext
19206
# To use libunwind-ptrace, we also need to make some ptrace system calls.
19207
if test x"$LIBUNWIND_PTRACE" != x"" ; then
19209
for ac_header in sys/ptrace.h
19211
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19212
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19213
echo "$as_me:$LINENO: checking for $ac_header" >&5
19214
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19215
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216
echo $ECHO_N "(cached) $ECHO_C" >&6
19218
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19219
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19221
# Is the header compilable?
19222
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19223
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19224
cat >conftest.$ac_ext <<_ACEOF
19227
cat confdefs.h >>conftest.$ac_ext
19228
cat >>conftest.$ac_ext <<_ACEOF
19229
/* end confdefs.h. */
19230
$ac_includes_default
19231
#include <$ac_header>
19233
rm -f conftest.$ac_objext
19234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235
(eval $ac_compile) 2>conftest.er1
19237
grep -v '^ *+' conftest.er1 >conftest.err
19239
cat conftest.err >&5
19240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241
(exit $ac_status); } &&
19242
{ ac_try='test -z "$ac_c_werror_flag"
19243
|| test ! -s conftest.err'
19244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245
(eval $ac_try) 2>&5
19247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248
(exit $ac_status); }; } &&
19249
{ ac_try='test -s conftest.$ac_objext'
19250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251
(eval $ac_try) 2>&5
19253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254
(exit $ac_status); }; }; then
19255
ac_header_compiler=yes
19257
echo "$as_me: failed program was:" >&5
19258
sed 's/^/| /' conftest.$ac_ext >&5
19260
ac_header_compiler=no
19262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19263
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19264
echo "${ECHO_T}$ac_header_compiler" >&6
19266
# Is the header present?
19267
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19268
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19269
cat >conftest.$ac_ext <<_ACEOF
19272
cat confdefs.h >>conftest.$ac_ext
19273
cat >>conftest.$ac_ext <<_ACEOF
19274
/* end confdefs.h. */
19275
#include <$ac_header>
19277
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19278
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19280
grep -v '^ *+' conftest.er1 >conftest.err
19282
cat conftest.err >&5
19283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284
(exit $ac_status); } >/dev/null; then
19285
if test -s conftest.err; then
19286
ac_cpp_err=$ac_c_preproc_warn_flag
19287
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19294
if test -z "$ac_cpp_err"; then
19295
ac_header_preproc=yes
19297
echo "$as_me: failed program was:" >&5
19298
sed 's/^/| /' conftest.$ac_ext >&5
19300
ac_header_preproc=no
19302
rm -f conftest.err conftest.$ac_ext
19303
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19304
echo "${ECHO_T}$ac_header_preproc" >&6
19306
# So? What about this header?
19307
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19309
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19310
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19311
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19312
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19313
ac_header_preproc=yes
19316
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19317
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19318
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19319
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19320
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19321
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19322
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19323
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19324
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19325
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19326
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19327
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19330
## ------------------------------------------ ##
19331
## Report this to the AC_PACKAGE_NAME lists. ##
19332
## ------------------------------------------ ##
19335
sed "s/^/$as_me: WARNING: /" >&2
19338
echo "$as_me:$LINENO: checking for $ac_header" >&5
19339
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19340
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19341
echo $ECHO_N "(cached) $ECHO_C" >&6
19343
eval "$as_ac_Header=\$ac_header_preproc"
19345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19349
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19350
cat >>confdefs.h <<_ACEOF
19351
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19358
echo "$as_me:$LINENO: checking for the Linux ptrace(2) interface" >&5
19359
echo $ECHO_N "checking for the Linux ptrace(2) interface... $ECHO_C" >&6
19360
cat >conftest.$ac_ext <<_ACEOF
19363
cat confdefs.h >>conftest.$ac_ext
19364
cat >>conftest.$ac_ext <<_ACEOF
19365
/* end confdefs.h. */
19367
#if HAVE_SYS_TYPES_H
19368
#include <sys/types.h>
19370
#if HAVE_SYS_PTRACE_H
19371
#include <sys/ptrace.h>
19378
int main(int argc, const char ** argv)
19380
pid_t me = (pid_t)-1;
19381
ptrace(PTRACE_ATTACH, me, 0, 0);
19382
ptrace(PTRACE_DETACH, me, 0, 0);
19390
rm -f conftest.$ac_objext conftest$ac_exeext
19391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392
(eval $ac_link) 2>conftest.er1
19394
grep -v '^ *+' conftest.er1 >conftest.err
19396
cat conftest.err >&5
19397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398
(exit $ac_status); } &&
19399
{ ac_try='test -z "$ac_c_werror_flag"
19400
|| test ! -s conftest.err'
19401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402
(eval $ac_try) 2>&5
19404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405
(exit $ac_status); }; } &&
19406
{ ac_try='test -s conftest$ac_exeext'
19407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408
(eval $ac_try) 2>&5
19410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411
(exit $ac_status); }; }; then
19413
echo "$as_me:$LINENO: result: yes" >&5
19414
echo "${ECHO_T}yes" >&6
19416
cat >>confdefs.h <<\_ACEOF
19417
#define HAVE_LINUX_PTRACE 1
19422
echo "$as_me: failed program was:" >&5
19423
sed 's/^/| /' conftest.$ac_ext >&5
19426
echo "$as_me:$LINENO: result: no" >&5
19427
echo "${ECHO_T}no" >&6
19428
LIBUNWIND_PTRACE=""
19431
rm -f conftest.err conftest.$ac_objext \
19432
conftest$ac_exeext conftest.$ac_ext
17581
19437
# syscall() is needed for smbwrapper.
17583
19439
for ac_func in syscall
25151
for ac_func in getea fgetea lgetea listea flistea llistea
25153
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25154
echo "$as_me:$LINENO: checking for $ac_func" >&5
25155
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25156
if eval "test \"\${$as_ac_var+set}\" = set"; then
25157
echo $ECHO_N "(cached) $ECHO_C" >&6
25159
cat >conftest.$ac_ext <<_ACEOF
25162
cat confdefs.h >>conftest.$ac_ext
25163
cat >>conftest.$ac_ext <<_ACEOF
25164
/* end confdefs.h. */
25165
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25166
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25167
#define $ac_func innocuous_$ac_func
25169
/* System header to define __stub macros and hopefully few prototypes,
25170
which can conflict with char $ac_func (); below.
25171
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25172
<limits.h> exists even on freestanding compilers. */
25175
# include <limits.h>
25177
# include <assert.h>
25182
/* Override any gcc2 internal prototype to avoid an error. */
25187
/* We use char because int might match the return type of a gcc2
25188
builtin and then its argument prototype would still apply. */
25190
/* The GNU C library defines this for functions which it implements
25191
to always fail with ENOSYS. Some functions are actually named
25192
something starting with __ and the normal name is an alias. */
25193
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25196
char (*f) () = $ac_func;
25205
return f != $ac_func;
25210
rm -f conftest.$ac_objext conftest$ac_exeext
25211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25212
(eval $ac_link) 2>conftest.er1
25214
grep -v '^ *+' conftest.er1 >conftest.err
25216
cat conftest.err >&5
25217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218
(exit $ac_status); } &&
25219
{ ac_try='test -z "$ac_c_werror_flag"
25220
|| test ! -s conftest.err'
25221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222
(eval $ac_try) 2>&5
25224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225
(exit $ac_status); }; } &&
25226
{ ac_try='test -s conftest$ac_exeext'
25227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228
(eval $ac_try) 2>&5
25230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231
(exit $ac_status); }; }; then
25232
eval "$as_ac_var=yes"
25234
echo "$as_me: failed program was:" >&5
25235
sed 's/^/| /' conftest.$ac_ext >&5
25237
eval "$as_ac_var=no"
25239
rm -f conftest.err conftest.$ac_objext \
25240
conftest$ac_exeext conftest.$ac_ext
25242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25243
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25244
if test `eval echo '${'$as_ac_var'}'` = yes; then
25245
cat >>confdefs.h <<_ACEOF
25246
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25258
for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
25260
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25261
echo "$as_me:$LINENO: checking for $ac_func" >&5
25262
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25263
if eval "test \"\${$as_ac_var+set}\" = set"; then
25264
echo $ECHO_N "(cached) $ECHO_C" >&6
25266
cat >conftest.$ac_ext <<_ACEOF
25269
cat confdefs.h >>conftest.$ac_ext
25270
cat >>conftest.$ac_ext <<_ACEOF
25271
/* end confdefs.h. */
25272
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25273
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25274
#define $ac_func innocuous_$ac_func
25276
/* System header to define __stub macros and hopefully few prototypes,
25277
which can conflict with char $ac_func (); below.
25278
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25279
<limits.h> exists even on freestanding compilers. */
25282
# include <limits.h>
25284
# include <assert.h>
25289
/* Override any gcc2 internal prototype to avoid an error. */
25294
/* We use char because int might match the return type of a gcc2
25295
builtin and then its argument prototype would still apply. */
25297
/* The GNU C library defines this for functions which it implements
25298
to always fail with ENOSYS. Some functions are actually named
25299
something starting with __ and the normal name is an alias. */
25300
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25303
char (*f) () = $ac_func;
25312
return f != $ac_func;
25317
rm -f conftest.$ac_objext conftest$ac_exeext
25318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25319
(eval $ac_link) 2>conftest.er1
25321
grep -v '^ *+' conftest.er1 >conftest.err
25323
cat conftest.err >&5
25324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325
(exit $ac_status); } &&
25326
{ ac_try='test -z "$ac_c_werror_flag"
25327
|| test ! -s conftest.err'
25328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329
(eval $ac_try) 2>&5
25331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332
(exit $ac_status); }; } &&
25333
{ ac_try='test -s conftest$ac_exeext'
25334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335
(eval $ac_try) 2>&5
25337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338
(exit $ac_status); }; }; then
25339
eval "$as_ac_var=yes"
25341
echo "$as_me: failed program was:" >&5
25342
sed 's/^/| /' conftest.$ac_ext >&5
25344
eval "$as_ac_var=no"
25346
rm -f conftest.err conftest.$ac_objext \
25347
conftest$ac_exeext conftest.$ac_ext
25349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25350
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25351
if test `eval echo '${'$as_ac_var'}'` = yes; then
25352
cat >>confdefs.h <<_ACEOF
25353
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24844
25363
for ac_func in flistxattr removexattr lremovexattr fremovexattr
24846
25365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27825
if test x"$samba_cv_WITH_PROFILE" = x"yes"; then
27827
# On some systems (eg. Linux) librt can pull in libpthread. We
27828
# don't want this to happen because libpthreads changes signal delivery
27829
# semantics in ways we are not prepared for. This breaks Linux oplocks
27830
# which rely on signals.
27834
for ac_func in clock_gettime
27836
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27837
echo "$as_me:$LINENO: checking for $ac_func" >&5
27838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27839
if eval "test \"\${$as_ac_var+set}\" = set"; then
27840
echo $ECHO_N "(cached) $ECHO_C" >&6
27842
cat >conftest.$ac_ext <<_ACEOF
27845
cat confdefs.h >>conftest.$ac_ext
27846
cat >>conftest.$ac_ext <<_ACEOF
27847
/* end confdefs.h. */
27848
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27849
For example, HP-UX 11i <limits.h> declares gettimeofday. */
27850
#define $ac_func innocuous_$ac_func
27852
/* System header to define __stub macros and hopefully few prototypes,
27853
which can conflict with char $ac_func (); below.
27854
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27855
<limits.h> exists even on freestanding compilers. */
27858
# include <limits.h>
27860
# include <assert.h>
27865
/* Override any gcc2 internal prototype to avoid an error. */
27870
/* We use char because int might match the return type of a gcc2
27871
builtin and then its argument prototype would still apply. */
27873
/* The GNU C library defines this for functions which it implements
27874
to always fail with ENOSYS. Some functions are actually named
27875
something starting with __ and the normal name is an alias. */
27876
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27879
char (*f) () = $ac_func;
27888
return f != $ac_func;
27893
rm -f conftest.$ac_objext conftest$ac_exeext
27894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27895
(eval $ac_link) 2>conftest.er1
27897
grep -v '^ *+' conftest.er1 >conftest.err
27899
cat conftest.err >&5
27900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901
(exit $ac_status); } &&
27902
{ ac_try='test -z "$ac_c_werror_flag"
27903
|| test ! -s conftest.err'
27904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27905
(eval $ac_try) 2>&5
27907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908
(exit $ac_status); }; } &&
27909
{ ac_try='test -s conftest$ac_exeext'
27910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27911
(eval $ac_try) 2>&5
27913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914
(exit $ac_status); }; }; then
27915
eval "$as_ac_var=yes"
27917
echo "$as_me: failed program was:" >&5
27918
sed 's/^/| /' conftest.$ac_ext >&5
27920
eval "$as_ac_var=no"
27922
rm -f conftest.err conftest.$ac_objext \
27923
conftest$ac_exeext conftest.$ac_ext
27925
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27926
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27927
if test `eval echo '${'$as_ac_var'}'` = yes; then
27928
cat >>confdefs.h <<_ACEOF
27929
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27932
# clock_gettime was found in libc or existing $LIBS
27936
echo "$as_me:$LINENO: checking if libpthread is linked" >&5
27937
echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6
27938
cat >conftest.$ac_ext <<_ACEOF
27941
cat confdefs.h >>conftest.$ac_ext
27942
cat >>conftest.$ac_ext <<_ACEOF
27943
/* end confdefs.h. */
27948
return pthread_create(0, 0, 0, 0);
27953
rm -f conftest.$ac_objext conftest$ac_exeext
27954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955
(eval $ac_link) 2>conftest.er1
27957
grep -v '^ *+' conftest.er1 >conftest.err
27959
cat conftest.err >&5
27960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961
(exit $ac_status); } &&
27962
{ ac_try='test -z "$ac_c_werror_flag"
27963
|| test ! -s conftest.err'
27964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965
(eval $ac_try) 2>&5
27967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968
(exit $ac_status); }; } &&
27969
{ ac_try='test -s conftest$ac_exeext'
27970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971
(eval $ac_try) 2>&5
27973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974
(exit $ac_status); }; }; then
27976
echo "$as_me:$LINENO: result: yes" >&5
27977
echo "${ECHO_T}yes" >&6
27979
LIBS=`echo $LIBS | sed -es/-lrt//g`
27983
echo "$as_me: failed program was:" >&5
27984
sed 's/^/| /' conftest.$ac_ext >&5
27987
echo "$as_me:$LINENO: result: no" >&5
27988
echo "${ECHO_T}no" >&6
27991
cat >>confdefs.h <<\_ACEOF
27992
#define HAVE_CLOCK_GETTIME 1
27996
echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
27997
echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6
27998
cat >conftest.$ac_ext <<_ACEOF
28001
cat confdefs.h >>conftest.$ac_ext
28002
cat >>conftest.$ac_ext <<_ACEOF
28003
/* end confdefs.h. */
28005
#if TIME_WITH_SYS_TIME
28006
# include <sys/time.h>
28009
# if HAVE_SYS_TIME_H
28010
# include <sys/time.h>
28020
clockid_t clk = CLOCK_MONOTONIC;
28026
rm -f conftest.$ac_objext conftest$ac_exeext
28027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28028
(eval $ac_link) 2>conftest.er1
28030
grep -v '^ *+' conftest.er1 >conftest.err
28032
cat conftest.err >&5
28033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034
(exit $ac_status); } &&
28035
{ ac_try='test -z "$ac_c_werror_flag"
28036
|| test ! -s conftest.err'
28037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038
(eval $ac_try) 2>&5
28040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041
(exit $ac_status); }; } &&
28042
{ ac_try='test -s conftest$ac_exeext'
28043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044
(eval $ac_try) 2>&5
28046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047
(exit $ac_status); }; }; then
28049
echo "$as_me:$LINENO: result: yes" >&5
28050
echo "${ECHO_T}yes" >&6
28052
cat >>confdefs.h <<\_ACEOF
28053
#define HAVE_CLOCK_MONOTONIC 1
28058
echo "$as_me: failed program was:" >&5
28059
sed 's/^/| /' conftest.$ac_ext >&5
28062
echo "$as_me:$LINENO: result: no" >&5
28063
echo "${ECHO_T}no" >&6
28066
rm -f conftest.err conftest.$ac_objext \
28067
conftest$ac_exeext conftest.$ac_ext
28070
echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
28071
echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6
28072
cat >conftest.$ac_ext <<_ACEOF
28075
cat confdefs.h >>conftest.$ac_ext
28076
cat >>conftest.$ac_ext <<_ACEOF
28077
/* end confdefs.h. */
28079
#if TIME_WITH_SYS_TIME
28080
# include <sys/time.h>
28083
# if HAVE_SYS_TIME_H
28084
# include <sys/time.h>
28094
clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
28100
rm -f conftest.$ac_objext conftest$ac_exeext
28101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28102
(eval $ac_link) 2>conftest.er1
28104
grep -v '^ *+' conftest.er1 >conftest.err
28106
cat conftest.err >&5
28107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108
(exit $ac_status); } &&
28109
{ ac_try='test -z "$ac_c_werror_flag"
28110
|| test ! -s conftest.err'
28111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112
(eval $ac_try) 2>&5
28114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115
(exit $ac_status); }; } &&
28116
{ ac_try='test -s conftest$ac_exeext'
28117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118
(eval $ac_try) 2>&5
28120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121
(exit $ac_status); }; }; then
28123
echo "$as_me:$LINENO: result: yes" >&5
28124
echo "${ECHO_T}yes" >&6
28126
cat >>confdefs.h <<\_ACEOF
28127
#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
28132
echo "$as_me: failed program was:" >&5
28133
sed 's/^/| /' conftest.$ac_ext >&5
28136
echo "$as_me:$LINENO: result: no" >&5
28137
echo "${ECHO_T}no" >&6
28140
rm -f conftest.err conftest.$ac_objext \
28141
conftest$ac_exeext conftest.$ac_ext
28144
echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
28145
echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6
28146
cat >conftest.$ac_ext <<_ACEOF
28149
cat confdefs.h >>conftest.$ac_ext
28150
cat >>conftest.$ac_ext <<_ACEOF
28151
/* end confdefs.h. */
28153
#if TIME_WITH_SYS_TIME
28154
# include <sys/time.h>
28157
# if HAVE_SYS_TIME_H
28158
# include <sys/time.h>
28168
clockid_t clk = CLOCK_REALTIME;
28174
rm -f conftest.$ac_objext conftest$ac_exeext
28175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28176
(eval $ac_link) 2>conftest.er1
28178
grep -v '^ *+' conftest.er1 >conftest.err
28180
cat conftest.err >&5
28181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182
(exit $ac_status); } &&
28183
{ ac_try='test -z "$ac_c_werror_flag"
28184
|| test ! -s conftest.err'
28185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186
(eval $ac_try) 2>&5
28188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189
(exit $ac_status); }; } &&
28190
{ ac_try='test -s conftest$ac_exeext'
28191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192
(eval $ac_try) 2>&5
28194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195
(exit $ac_status); }; }; then
28197
echo "$as_me:$LINENO: result: yes" >&5
28198
echo "${ECHO_T}yes" >&6
28200
cat >>confdefs.h <<\_ACEOF
28201
#define HAVE_CLOCK_REALTIME 1
28206
echo "$as_me: failed program was:" >&5
28207
sed 's/^/| /' conftest.$ac_ext >&5
28210
echo "$as_me:$LINENO: result: no" >&5
28211
echo "${ECHO_T}no" >&6
28214
rm -f conftest.err conftest.$ac_objext \
28215
conftest$ac_exeext conftest.$ac_ext
28220
rm -f conftest.err conftest.$ac_objext \
28221
conftest$ac_exeext conftest.$ac_ext
28228
# clock_gettime was not found, try adding librt
28232
# clock_gettime was not found and we already had librt
28233
# nothing to do here by default
28238
# clock_gettime was not found, try adding librt
28239
echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
28240
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
28241
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
28242
echo $ECHO_N "(cached) $ECHO_C" >&6
28244
ac_check_lib_save_LIBS=$LIBS
28246
cat >conftest.$ac_ext <<_ACEOF
28249
cat confdefs.h >>conftest.$ac_ext
28250
cat >>conftest.$ac_ext <<_ACEOF
28251
/* end confdefs.h. */
28253
/* Override any gcc2 internal prototype to avoid an error. */
28257
/* We use char because int might match the return type of a gcc2
28258
builtin and then its argument prototype would still apply. */
28259
char clock_gettime ();
28268
rm -f conftest.$ac_objext conftest$ac_exeext
28269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270
(eval $ac_link) 2>conftest.er1
28272
grep -v '^ *+' conftest.er1 >conftest.err
28274
cat conftest.err >&5
28275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276
(exit $ac_status); } &&
28277
{ ac_try='test -z "$ac_c_werror_flag"
28278
|| test ! -s conftest.err'
28279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280
(eval $ac_try) 2>&5
28282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283
(exit $ac_status); }; } &&
28284
{ ac_try='test -s conftest$ac_exeext'
28285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286
(eval $ac_try) 2>&5
28288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289
(exit $ac_status); }; }; then
28290
ac_cv_lib_rt_clock_gettime=yes
28292
echo "$as_me: failed program was:" >&5
28293
sed 's/^/| /' conftest.$ac_ext >&5
28295
ac_cv_lib_rt_clock_gettime=no
28297
rm -f conftest.err conftest.$ac_objext \
28298
conftest$ac_exeext conftest.$ac_ext
28299
LIBS=$ac_check_lib_save_LIBS
28301
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
28302
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
28303
if test $ac_cv_lib_rt_clock_gettime = yes; then
28309
echo "$as_me:$LINENO: checking if libpthread is linked" >&5
28310
echo $ECHO_N "checking if libpthread is linked... $ECHO_C" >&6
28311
cat >conftest.$ac_ext <<_ACEOF
28314
cat confdefs.h >>conftest.$ac_ext
28315
cat >>conftest.$ac_ext <<_ACEOF
28316
/* end confdefs.h. */
28321
return pthread_create(0, 0, 0, 0);
28326
rm -f conftest.$ac_objext conftest$ac_exeext
28327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328
(eval $ac_link) 2>conftest.er1
28330
grep -v '^ *+' conftest.er1 >conftest.err
28332
cat conftest.err >&5
28333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334
(exit $ac_status); } &&
28335
{ ac_try='test -z "$ac_c_werror_flag"
28336
|| test ! -s conftest.err'
28337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338
(eval $ac_try) 2>&5
28340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341
(exit $ac_status); }; } &&
28342
{ ac_try='test -s conftest$ac_exeext'
28343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344
(eval $ac_try) 2>&5
28346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347
(exit $ac_status); }; }; then
28349
echo "$as_me:$LINENO: result: yes" >&5
28350
echo "${ECHO_T}yes" >&6
28352
LIBS=`echo $LIBS | sed -es/-lrt//g`
28356
echo "$as_me: failed program was:" >&5
28357
sed 's/^/| /' conftest.$ac_ext >&5
28360
echo "$as_me:$LINENO: result: no" >&5
28361
echo "${ECHO_T}no" >&6
28364
cat >>confdefs.h <<\_ACEOF
28365
#define HAVE_CLOCK_GETTIME 1
28369
echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
28370
echo $ECHO_N "checking for CLOCK_MONOTONIC... $ECHO_C" >&6
28371
cat >conftest.$ac_ext <<_ACEOF
28374
cat confdefs.h >>conftest.$ac_ext
28375
cat >>conftest.$ac_ext <<_ACEOF
28376
/* end confdefs.h. */
28378
#if TIME_WITH_SYS_TIME
28379
# include <sys/time.h>
28382
# if HAVE_SYS_TIME_H
28383
# include <sys/time.h>
28393
clockid_t clk = CLOCK_MONOTONIC;
28399
rm -f conftest.$ac_objext conftest$ac_exeext
28400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28401
(eval $ac_link) 2>conftest.er1
28403
grep -v '^ *+' conftest.er1 >conftest.err
28405
cat conftest.err >&5
28406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407
(exit $ac_status); } &&
28408
{ ac_try='test -z "$ac_c_werror_flag"
28409
|| test ! -s conftest.err'
28410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411
(eval $ac_try) 2>&5
28413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414
(exit $ac_status); }; } &&
28415
{ ac_try='test -s conftest$ac_exeext'
28416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417
(eval $ac_try) 2>&5
28419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420
(exit $ac_status); }; }; then
28422
echo "$as_me:$LINENO: result: yes" >&5
28423
echo "${ECHO_T}yes" >&6
28425
cat >>confdefs.h <<\_ACEOF
28426
#define HAVE_CLOCK_MONOTONIC 1
28431
echo "$as_me: failed program was:" >&5
28432
sed 's/^/| /' conftest.$ac_ext >&5
28435
echo "$as_me:$LINENO: result: no" >&5
28436
echo "${ECHO_T}no" >&6
28439
rm -f conftest.err conftest.$ac_objext \
28440
conftest$ac_exeext conftest.$ac_ext
28443
echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
28444
echo $ECHO_N "checking for CLOCK_PROCESS_CPUTIME_ID... $ECHO_C" >&6
28445
cat >conftest.$ac_ext <<_ACEOF
28448
cat confdefs.h >>conftest.$ac_ext
28449
cat >>conftest.$ac_ext <<_ACEOF
28450
/* end confdefs.h. */
28452
#if TIME_WITH_SYS_TIME
28453
# include <sys/time.h>
28456
# if HAVE_SYS_TIME_H
28457
# include <sys/time.h>
28467
clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
28473
rm -f conftest.$ac_objext conftest$ac_exeext
28474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28475
(eval $ac_link) 2>conftest.er1
28477
grep -v '^ *+' conftest.er1 >conftest.err
28479
cat conftest.err >&5
28480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481
(exit $ac_status); } &&
28482
{ ac_try='test -z "$ac_c_werror_flag"
28483
|| test ! -s conftest.err'
28484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485
(eval $ac_try) 2>&5
28487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488
(exit $ac_status); }; } &&
28489
{ ac_try='test -s conftest$ac_exeext'
28490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491
(eval $ac_try) 2>&5
28493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494
(exit $ac_status); }; }; then
28496
echo "$as_me:$LINENO: result: yes" >&5
28497
echo "${ECHO_T}yes" >&6
28499
cat >>confdefs.h <<\_ACEOF
28500
#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
28505
echo "$as_me: failed program was:" >&5
28506
sed 's/^/| /' conftest.$ac_ext >&5
28509
echo "$as_me:$LINENO: result: no" >&5
28510
echo "${ECHO_T}no" >&6
28513
rm -f conftest.err conftest.$ac_objext \
28514
conftest$ac_exeext conftest.$ac_ext
28517
echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
28518
echo $ECHO_N "checking for CLOCK_REALTIME... $ECHO_C" >&6
28519
cat >conftest.$ac_ext <<_ACEOF
28522
cat confdefs.h >>conftest.$ac_ext
28523
cat >>conftest.$ac_ext <<_ACEOF
28524
/* end confdefs.h. */
28526
#if TIME_WITH_SYS_TIME
28527
# include <sys/time.h>
28530
# if HAVE_SYS_TIME_H
28531
# include <sys/time.h>
28541
clockid_t clk = CLOCK_REALTIME;
28547
rm -f conftest.$ac_objext conftest$ac_exeext
28548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549
(eval $ac_link) 2>conftest.er1
28551
grep -v '^ *+' conftest.er1 >conftest.err
28553
cat conftest.err >&5
28554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555
(exit $ac_status); } &&
28556
{ ac_try='test -z "$ac_c_werror_flag"
28557
|| test ! -s conftest.err'
28558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559
(eval $ac_try) 2>&5
28561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562
(exit $ac_status); }; } &&
28563
{ ac_try='test -s conftest$ac_exeext'
28564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565
(eval $ac_try) 2>&5
28567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568
(exit $ac_status); }; }; then
28570
echo "$as_me:$LINENO: result: yes" >&5
28571
echo "${ECHO_T}yes" >&6
28573
cat >>confdefs.h <<\_ACEOF
28574
#define HAVE_CLOCK_REALTIME 1
28579
echo "$as_me: failed program was:" >&5
28580
sed 's/^/| /' conftest.$ac_ext >&5
28583
echo "$as_me:$LINENO: result: no" >&5
28584
echo "${ECHO_T}no" >&6
28587
rm -f conftest.err conftest.$ac_objext \
28588
conftest$ac_exeext conftest.$ac_ext
28593
rm -f conftest.err conftest.$ac_objext \
28594
conftest$ac_exeext conftest.$ac_ext
28602
# clock_gettime was not found in librt
28603
# nothing to do here by default
27171
28619
echo "$as_me:$LINENO: checking for va_copy" >&5
27172
28620
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27173
28621
if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
30521
#################################################
30522
# Check if FAM notifications are available. For FAM info, see
30523
# http://oss.sgi.com/projects/fam/
30524
# http://savannah.nongnu.org/projects/fam/
30527
for ac_header in fam.h
30529
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30530
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30531
echo "$as_me:$LINENO: checking for $ac_header" >&5
30532
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30533
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30534
echo $ECHO_N "(cached) $ECHO_C" >&6
30536
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30537
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30539
# Is the header compilable?
30540
echo "$as_me:$LINENO: checking $ac_header usability" >&5
30541
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30542
cat >conftest.$ac_ext <<_ACEOF
30545
cat confdefs.h >>conftest.$ac_ext
30546
cat >>conftest.$ac_ext <<_ACEOF
30547
/* end confdefs.h. */
30548
$ac_includes_default
30549
#include <$ac_header>
30551
rm -f conftest.$ac_objext
30552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30553
(eval $ac_compile) 2>conftest.er1
30555
grep -v '^ *+' conftest.er1 >conftest.err
30557
cat conftest.err >&5
30558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559
(exit $ac_status); } &&
30560
{ ac_try='test -z "$ac_c_werror_flag"
30561
|| test ! -s conftest.err'
30562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30563
(eval $ac_try) 2>&5
30565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566
(exit $ac_status); }; } &&
30567
{ ac_try='test -s conftest.$ac_objext'
30568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30569
(eval $ac_try) 2>&5
30571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572
(exit $ac_status); }; }; then
30573
ac_header_compiler=yes
30575
echo "$as_me: failed program was:" >&5
30576
sed 's/^/| /' conftest.$ac_ext >&5
30578
ac_header_compiler=no
30580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30581
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30582
echo "${ECHO_T}$ac_header_compiler" >&6
30584
# Is the header present?
30585
echo "$as_me:$LINENO: checking $ac_header presence" >&5
30586
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30587
cat >conftest.$ac_ext <<_ACEOF
30590
cat confdefs.h >>conftest.$ac_ext
30591
cat >>conftest.$ac_ext <<_ACEOF
30592
/* end confdefs.h. */
30593
#include <$ac_header>
30595
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30596
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30598
grep -v '^ *+' conftest.er1 >conftest.err
30600
cat conftest.err >&5
30601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602
(exit $ac_status); } >/dev/null; then
30603
if test -s conftest.err; then
30604
ac_cpp_err=$ac_c_preproc_warn_flag
30605
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30612
if test -z "$ac_cpp_err"; then
30613
ac_header_preproc=yes
30615
echo "$as_me: failed program was:" >&5
30616
sed 's/^/| /' conftest.$ac_ext >&5
30618
ac_header_preproc=no
30620
rm -f conftest.err conftest.$ac_ext
30621
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30622
echo "${ECHO_T}$ac_header_preproc" >&6
30624
# So? What about this header?
30625
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30627
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30628
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30629
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30630
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30631
ac_header_preproc=yes
30634
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30635
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30636
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30637
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30638
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30639
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30640
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30641
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30642
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30643
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30644
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30645
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30648
## ------------------------------------------ ##
30649
## Report this to the AC_PACKAGE_NAME lists. ##
30650
## ------------------------------------------ ##
30653
sed "s/^/$as_me: WARNING: /" >&2
30656
echo "$as_me:$LINENO: checking for $ac_header" >&5
30657
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30658
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30659
echo $ECHO_N "(cached) $ECHO_C" >&6
30661
eval "$as_ac_Header=\$ac_header_preproc"
30663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30667
if test `eval echo '${'$as_ac_Header'}'` = yes; then
30668
cat >>confdefs.h <<_ACEOF
30669
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30671
samba_cv_HAVE_FAM_H=yes
30673
samba_cv_HAVE_FAM_H=no
30678
if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
30679
# On IRIX, libfam requires libC, but other FAM implementations might not
30681
echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
30682
echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6
30683
if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then
30684
echo $ECHO_N "(cached) $ECHO_C" >&6
30686
ac_check_lib_save_LIBS=$LIBS
30688
cat >conftest.$ac_ext <<_ACEOF
30691
cat confdefs.h >>conftest.$ac_ext
30692
cat >>conftest.$ac_ext <<_ACEOF
30693
/* end confdefs.h. */
30695
/* Override any gcc2 internal prototype to avoid an error. */
30699
/* We use char because int might match the return type of a gcc2
30700
builtin and then its argument prototype would still apply. */
30710
rm -f conftest.$ac_objext conftest$ac_exeext
30711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30712
(eval $ac_link) 2>conftest.er1
30714
grep -v '^ *+' conftest.er1 >conftest.err
30716
cat conftest.err >&5
30717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718
(exit $ac_status); } &&
30719
{ ac_try='test -z "$ac_c_werror_flag"
30720
|| test ! -s conftest.err'
30721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722
(eval $ac_try) 2>&5
30724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725
(exit $ac_status); }; } &&
30726
{ ac_try='test -s conftest$ac_exeext'
30727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30728
(eval $ac_try) 2>&5
30730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731
(exit $ac_status); }; }; then
30732
ac_cv_lib_fam_FAMOpen2=yes
30734
echo "$as_me: failed program was:" >&5
30735
sed 's/^/| /' conftest.$ac_ext >&5
30737
ac_cv_lib_fam_FAMOpen2=no
30739
rm -f conftest.err conftest.$ac_objext \
30740
conftest$ac_exeext conftest.$ac_ext
30741
LIBS=$ac_check_lib_save_LIBS
30743
echo "$as_me:$LINENO: result: $ac_cv_lib_fam_FAMOpen2" >&5
30744
echo "${ECHO_T}$ac_cv_lib_fam_FAMOpen2" >&6
30745
if test $ac_cv_lib_fam_FAMOpen2 = yes; then
30746
samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam"
30748
samba_cv_HAVE_LIBFAM=no
30752
if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
30757
ac_check_lib_ext_save_LIBS=$LIBS
30758
LIBS="-lfam $samba_fam_xtra $LIBS"
30763
echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
30764
echo $ECHO_N "checking for FAMOpen2 in -lfam... $ECHO_C" >&6
30765
if test "${ac_cv_lib_ext_fam_FAMOpen2+set}" = set; then
30766
echo $ECHO_N "(cached) $ECHO_C" >&6
30768
cat >conftest.$ac_ext <<_ACEOF
30771
cat confdefs.h >>conftest.$ac_ext
30772
cat >>conftest.$ac_ext <<_ACEOF
30773
/* end confdefs.h. */
30775
/* Override any gcc2 internal prototype to avoid an error. */
30779
/* We use char because int might match the return type of a gcc2
30780
builtin and then its argument prototype would still apply. */
30790
rm -f conftest.$ac_objext conftest$ac_exeext
30791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30792
(eval $ac_link) 2>conftest.er1
30794
grep -v '^ *+' conftest.er1 >conftest.err
30796
cat conftest.err >&5
30797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798
(exit $ac_status); } &&
30799
{ ac_try='test -z "$ac_c_werror_flag"
30800
|| test ! -s conftest.err'
30801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802
(eval $ac_try) 2>&5
30804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805
(exit $ac_status); }; } &&
30806
{ ac_try='test -s conftest$ac_exeext'
30807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808
(eval $ac_try) 2>&5
30810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811
(exit $ac_status); }; }; then
30812
ac_cv_lib_ext_fam_FAMOpen2=yes;
30813
ac_cv_lib_ext_fam=yes
30815
echo "$as_me: failed program was:" >&5
30816
sed 's/^/| /' conftest.$ac_ext >&5
30818
ac_cv_lib_ext_fam_FAMOpen2=no;
30819
ac_cv_lib_ext_fam=no
30821
rm -f conftest.err conftest.$ac_objext \
30822
conftest$ac_exeext conftest.$ac_ext
30825
echo "$as_me:$LINENO: result: $ac_cv_lib_ext_fam_FAMOpen2" >&5
30826
echo "${ECHO_T}$ac_cv_lib_ext_fam_FAMOpen2" >&6
30827
if test $ac_cv_lib_ext_fam_FAMOpen2 = yes; then
30828
cat >>confdefs.h <<_ACEOF
30829
#define HAVE_FAMOPEN2 1
30834
LIBS=$ac_check_lib_ext_save_LIBS
30836
if test $ac_cv_lib_ext_fam = yes; then
30837
samba_cv_HAVE_LIBFAM=yes; samba_fam_libs="-lfam -lC"
30841
samba_cv_HAVE_LIBFAM=no
30844
unset samba_fam_xtra
30848
if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
30850
cat >>confdefs.h <<\_ACEOF
30851
#define HAVE_FAM_CHANGE_NOTIFY 1
30854
cat >conftest.$ac_ext <<_ACEOF
30857
cat confdefs.h >>conftest.$ac_ext
30858
cat >>conftest.$ac_ext <<_ACEOF
30859
/* end confdefs.h. */
30864
FAMCodes code = FAMChanged;
30869
rm -f conftest.$ac_objext
30870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30871
(eval $ac_compile) 2>conftest.er1
30873
grep -v '^ *+' conftest.er1 >conftest.err
30875
cat conftest.err >&5
30876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877
(exit $ac_status); } &&
30878
{ ac_try='test -z "$ac_c_werror_flag"
30879
|| test ! -s conftest.err'
30880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881
(eval $ac_try) 2>&5
30883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884
(exit $ac_status); }; } &&
30885
{ ac_try='test -s conftest.$ac_objext'
30886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887
(eval $ac_try) 2>&5
30889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890
(exit $ac_status); }; }; then
30892
cat >>confdefs.h <<\_ACEOF
30893
#define HAVE_FAM_H_FAMCODES_TYPEDEF 1
30897
echo "$as_me: failed program was:" >&5
30898
sed 's/^/| /' conftest.$ac_ext >&5
30901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30904
#################################################
30905
# Check for DMAPI interfaces in libdm/libjfsdm/libxsdm
30908
samba_dmapi_libs=""
30910
if test x"$samba_dmapi_libs" = x"" ; then
30911
echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldm" >&5
30912
echo $ECHO_N "checking for dm_get_eventlist in -ldm... $ECHO_C" >&6
30913
if test "${ac_cv_lib_dm_dm_get_eventlist+set}" = set; then
30914
echo $ECHO_N "(cached) $ECHO_C" >&6
30916
ac_check_lib_save_LIBS=$LIBS
30918
cat >conftest.$ac_ext <<_ACEOF
30921
cat confdefs.h >>conftest.$ac_ext
30922
cat >>conftest.$ac_ext <<_ACEOF
30923
/* end confdefs.h. */
30925
/* Override any gcc2 internal prototype to avoid an error. */
30929
/* We use char because int might match the return type of a gcc2
30930
builtin and then its argument prototype would still apply. */
30931
char dm_get_eventlist ();
30935
dm_get_eventlist ();
30940
rm -f conftest.$ac_objext conftest$ac_exeext
30941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30942
(eval $ac_link) 2>conftest.er1
30944
grep -v '^ *+' conftest.er1 >conftest.err
30946
cat conftest.err >&5
30947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948
(exit $ac_status); } &&
30949
{ ac_try='test -z "$ac_c_werror_flag"
30950
|| test ! -s conftest.err'
30951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952
(eval $ac_try) 2>&5
30954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955
(exit $ac_status); }; } &&
30956
{ ac_try='test -s conftest$ac_exeext'
30957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958
(eval $ac_try) 2>&5
30960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961
(exit $ac_status); }; }; then
30962
ac_cv_lib_dm_dm_get_eventlist=yes
30964
echo "$as_me: failed program was:" >&5
30965
sed 's/^/| /' conftest.$ac_ext >&5
30967
ac_cv_lib_dm_dm_get_eventlist=no
30969
rm -f conftest.err conftest.$ac_objext \
30970
conftest$ac_exeext conftest.$ac_ext
30971
LIBS=$ac_check_lib_save_LIBS
30973
echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_get_eventlist" >&5
30974
echo "${ECHO_T}$ac_cv_lib_dm_dm_get_eventlist" >&6
30975
if test $ac_cv_lib_dm_dm_get_eventlist = yes; then
30976
samba_dmapi_libs="-ldm"
30981
if test x"$samba_dmapi_libs" = x"" ; then
30982
echo "$as_me:$LINENO: checking for dm_get_eventlist in -ljfsdm" >&5
30983
echo $ECHO_N "checking for dm_get_eventlist in -ljfsdm... $ECHO_C" >&6
30984
if test "${ac_cv_lib_jfsdm_dm_get_eventlist+set}" = set; then
30985
echo $ECHO_N "(cached) $ECHO_C" >&6
30987
ac_check_lib_save_LIBS=$LIBS
30988
LIBS="-ljfsdm $LIBS"
30989
cat >conftest.$ac_ext <<_ACEOF
30992
cat confdefs.h >>conftest.$ac_ext
30993
cat >>conftest.$ac_ext <<_ACEOF
30994
/* end confdefs.h. */
30996
/* Override any gcc2 internal prototype to avoid an error. */
31000
/* We use char because int might match the return type of a gcc2
31001
builtin and then its argument prototype would still apply. */
31002
char dm_get_eventlist ();
31006
dm_get_eventlist ();
31011
rm -f conftest.$ac_objext conftest$ac_exeext
31012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31013
(eval $ac_link) 2>conftest.er1
31015
grep -v '^ *+' conftest.er1 >conftest.err
31017
cat conftest.err >&5
31018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019
(exit $ac_status); } &&
31020
{ ac_try='test -z "$ac_c_werror_flag"
31021
|| test ! -s conftest.err'
31022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023
(eval $ac_try) 2>&5
31025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026
(exit $ac_status); }; } &&
31027
{ ac_try='test -s conftest$ac_exeext'
31028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029
(eval $ac_try) 2>&5
31031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032
(exit $ac_status); }; }; then
31033
ac_cv_lib_jfsdm_dm_get_eventlist=yes
31035
echo "$as_me: failed program was:" >&5
31036
sed 's/^/| /' conftest.$ac_ext >&5
31038
ac_cv_lib_jfsdm_dm_get_eventlist=no
31040
rm -f conftest.err conftest.$ac_objext \
31041
conftest$ac_exeext conftest.$ac_ext
31042
LIBS=$ac_check_lib_save_LIBS
31044
echo "$as_me:$LINENO: result: $ac_cv_lib_jfsdm_dm_get_eventlist" >&5
31045
echo "${ECHO_T}$ac_cv_lib_jfsdm_dm_get_eventlist" >&6
31046
if test $ac_cv_lib_jfsdm_dm_get_eventlist = yes; then
31047
samba_dmapi_libs="-ljfsdm"
31052
if test x"$samba_dmapi_libs" = x"" ; then
31053
echo "$as_me:$LINENO: checking for dm_get_eventlist in -lxdsm" >&5
31054
echo $ECHO_N "checking for dm_get_eventlist in -lxdsm... $ECHO_C" >&6
31055
if test "${ac_cv_lib_xdsm_dm_get_eventlist+set}" = set; then
31056
echo $ECHO_N "(cached) $ECHO_C" >&6
31058
ac_check_lib_save_LIBS=$LIBS
31059
LIBS="-lxdsm $LIBS"
31060
cat >conftest.$ac_ext <<_ACEOF
31063
cat confdefs.h >>conftest.$ac_ext
31064
cat >>conftest.$ac_ext <<_ACEOF
31065
/* end confdefs.h. */
31067
/* Override any gcc2 internal prototype to avoid an error. */
31071
/* We use char because int might match the return type of a gcc2
31072
builtin and then its argument prototype would still apply. */
31073
char dm_get_eventlist ();
31077
dm_get_eventlist ();
31082
rm -f conftest.$ac_objext conftest$ac_exeext
31083
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31084
(eval $ac_link) 2>conftest.er1
31086
grep -v '^ *+' conftest.er1 >conftest.err
31088
cat conftest.err >&5
31089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090
(exit $ac_status); } &&
31091
{ ac_try='test -z "$ac_c_werror_flag"
31092
|| test ! -s conftest.err'
31093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31094
(eval $ac_try) 2>&5
31096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097
(exit $ac_status); }; } &&
31098
{ ac_try='test -s conftest$ac_exeext'
31099
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100
(eval $ac_try) 2>&5
31102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103
(exit $ac_status); }; }; then
31104
ac_cv_lib_xdsm_dm_get_eventlist=yes
31106
echo "$as_me: failed program was:" >&5
31107
sed 's/^/| /' conftest.$ac_ext >&5
31109
ac_cv_lib_xdsm_dm_get_eventlist=no
31111
rm -f conftest.err conftest.$ac_objext \
31112
conftest$ac_exeext conftest.$ac_ext
31113
LIBS=$ac_check_lib_save_LIBS
31115
echo "$as_me:$LINENO: result: $ac_cv_lib_xdsm_dm_get_eventlist" >&5
31116
echo "${ECHO_T}$ac_cv_lib_xdsm_dm_get_eventlist" >&6
31117
if test $ac_cv_lib_xdsm_dm_get_eventlist = yes; then
31118
samba_dmapi_libs="-lxdsm"
31123
# Only bother to test ehaders if we have a candidate DMAPI library
31124
if test x"$samba_dmapi_libs" != x"" ; then
31129
for ac_header in sys/dmi.h xfs/dmapi.h sys/jfsdmapi.h sys/dmapi.h
31131
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31132
if eval "test \"\${$as_ac_Header+set}\" = set"; then
31133
echo "$as_me:$LINENO: checking for $ac_header" >&5
31134
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
31136
echo $ECHO_N "(cached) $ECHO_C" >&6
31138
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31139
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31141
# Is the header compilable?
31142
echo "$as_me:$LINENO: checking $ac_header usability" >&5
31143
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31144
cat >conftest.$ac_ext <<_ACEOF
31147
cat confdefs.h >>conftest.$ac_ext
31148
cat >>conftest.$ac_ext <<_ACEOF
31149
/* end confdefs.h. */
31150
$ac_includes_default
31151
#include <$ac_header>
31153
rm -f conftest.$ac_objext
31154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31155
(eval $ac_compile) 2>conftest.er1
31157
grep -v '^ *+' conftest.er1 >conftest.err
31159
cat conftest.err >&5
31160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161
(exit $ac_status); } &&
31162
{ ac_try='test -z "$ac_c_werror_flag"
31163
|| test ! -s conftest.err'
31164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31165
(eval $ac_try) 2>&5
31167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168
(exit $ac_status); }; } &&
31169
{ ac_try='test -s conftest.$ac_objext'
31170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31171
(eval $ac_try) 2>&5
31173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174
(exit $ac_status); }; }; then
31175
ac_header_compiler=yes
31177
echo "$as_me: failed program was:" >&5
31178
sed 's/^/| /' conftest.$ac_ext >&5
31180
ac_header_compiler=no
31182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31183
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31184
echo "${ECHO_T}$ac_header_compiler" >&6
31186
# Is the header present?
31187
echo "$as_me:$LINENO: checking $ac_header presence" >&5
31188
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31189
cat >conftest.$ac_ext <<_ACEOF
31192
cat confdefs.h >>conftest.$ac_ext
31193
cat >>conftest.$ac_ext <<_ACEOF
31194
/* end confdefs.h. */
31195
#include <$ac_header>
31197
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31198
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31200
grep -v '^ *+' conftest.er1 >conftest.err
31202
cat conftest.err >&5
31203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204
(exit $ac_status); } >/dev/null; then
31205
if test -s conftest.err; then
31206
ac_cpp_err=$ac_c_preproc_warn_flag
31207
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31214
if test -z "$ac_cpp_err"; then
31215
ac_header_preproc=yes
31217
echo "$as_me: failed program was:" >&5
31218
sed 's/^/| /' conftest.$ac_ext >&5
31220
ac_header_preproc=no
31222
rm -f conftest.err conftest.$ac_ext
31223
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31224
echo "${ECHO_T}$ac_header_preproc" >&6
31226
# So? What about this header?
31227
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31229
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31230
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31231
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31232
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31233
ac_header_preproc=yes
31236
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31237
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31238
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31239
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31240
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31241
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31242
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31243
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31244
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31245
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31246
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31247
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31250
## ------------------------------------------ ##
31251
## Report this to the AC_PACKAGE_NAME lists. ##
31252
## ------------------------------------------ ##
31255
sed "s/^/$as_me: WARNING: /" >&2
31258
echo "$as_me:$LINENO: checking for $ac_header" >&5
31259
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31260
if eval "test \"\${$as_ac_Header+set}\" = set"; then
31261
echo $ECHO_N "(cached) $ECHO_C" >&6
31263
eval "$as_ac_Header=\$ac_header_preproc"
31265
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31266
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31269
if test `eval echo '${'$as_ac_Header'}'` = yes; then
31270
cat >>confdefs.h <<_ACEOF
31271
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31280
if test x"$samba_dmapi_libs" != x"" ; then
31281
samba_dmapi_save_LIBS="$LIBS"
31282
LIBS="$LIBS $samba_dmapi_libs"
31283
cat >conftest.$ac_ext <<_ACEOF
31286
cat confdefs.h >>conftest.$ac_ext
31287
cat >>conftest.$ac_ext <<_ACEOF
31288
/* end confdefs.h. */
31290
#include <time.h> /* needed by Tru64 */
31291
#include <sys/types.h> /* needed by AIX */
31292
#ifdef HAVE_XFS_DMAPI_H
31293
#include <xfs/dmapi.h>
31294
#elif defined(HAVE_SYS_DMI_H)
31295
#include <sys/dmi.h>
31296
#elif defined(HAVE_SYS_JFSDMAPI_H)
31297
#include <sys/jfsdmapi.h>
31298
#elif defined(HAVE_SYS_DMAPI_H)
31299
#include <sys/dmapi.h>
31306
/* This link test is designed to fail on IRI 6.4, but should
31307
* succeed on Linux, IRIX 6.5 and AIX.
31310
dm_eventset_t events;
31311
/* This doesn't take an argument on IRIX 6.4. */
31312
dm_init_service(&version);
31313
/* IRIX 6.4 expects events to be a pointer. */
31314
DMEV_ISSET(DM_EVENT_READ, events);
31320
rm -f conftest.$ac_objext conftest$ac_exeext
31321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31322
(eval $ac_link) 2>conftest.er1
31324
grep -v '^ *+' conftest.er1 >conftest.err
31326
cat conftest.err >&5
31327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328
(exit $ac_status); } &&
31329
{ ac_try='test -z "$ac_c_werror_flag"
31330
|| test ! -s conftest.err'
31331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332
(eval $ac_try) 2>&5
31334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335
(exit $ac_status); }; } &&
31336
{ ac_try='test -s conftest$ac_exeext'
31337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338
(eval $ac_try) 2>&5
31340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341
(exit $ac_status); }; }; then
31343
true # DMAPI link test succeeded
31346
echo "$as_me: failed program was:" >&5
31347
sed 's/^/| /' conftest.$ac_ext >&5
31350
# DMAPI link failure
31354
rm -f conftest.err conftest.$ac_objext \
31355
conftest$ac_exeext conftest.$ac_ext
31356
LIBS="$samba_dmapi_save_LIBS"
31359
if test x"$samba_dmapi_libs" = x"" ; then
31360
# DMAPI detection failure actions begin
31362
{ echo "$as_me:$LINENO: DMAPI support not present" >&5
31363
echo "$as_me: DMAPI support not present" >&6;}
31365
# DMAPI detection failure actions end
31367
# DMAPI detection success actions start
31370
cat >>confdefs.h <<\_ACEOF
31371
#define USE_DMAPI 1
31374
{ echo "$as_me:$LINENO: Found DMAPI support in $samba_dmapi_libs" >&5
31375
echo "$as_me: Found DMAPI support in $samba_dmapi_libs" >&6;}
31377
# DMAPI detection success actions end
29073
31382
echo "$as_me:$LINENO: checking for kernel share modes" >&5
29074
31383
echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
29075
31384
if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
29201
echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
29202
echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
29203
if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
29204
echo $ECHO_N "(cached) $ECHO_C" >&6
29207
if test "$cross_compiling" = yes; then
29208
samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
29210
cat >conftest.$ac_ext <<_ACEOF
29213
cat confdefs.h >>conftest.$ac_ext
29214
cat >>conftest.$ac_ext <<_ACEOF
29215
/* end confdefs.h. */
31508
#################################################
31509
# Check for POSIX capability support
31511
if test "${ac_cv_header_sys_capability_h+set}" = set; then
31512
echo "$as_me:$LINENO: checking for sys/capability.h" >&5
31513
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
31514
if test "${ac_cv_header_sys_capability_h+set}" = set; then
31515
echo $ECHO_N "(cached) $ECHO_C" >&6
31517
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
31518
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
31520
# Is the header compilable?
31521
echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
31522
echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6
31523
cat >conftest.$ac_ext <<_ACEOF
31526
cat confdefs.h >>conftest.$ac_ext
31527
cat >>conftest.$ac_ext <<_ACEOF
31528
/* end confdefs.h. */
31529
$ac_includes_default
31530
#include <sys/capability.h>
31532
rm -f conftest.$ac_objext
31533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31534
(eval $ac_compile) 2>conftest.er1
31536
grep -v '^ *+' conftest.er1 >conftest.err
31538
cat conftest.err >&5
31539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540
(exit $ac_status); } &&
31541
{ ac_try='test -z "$ac_c_werror_flag"
31542
|| test ! -s conftest.err'
31543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544
(eval $ac_try) 2>&5
31546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547
(exit $ac_status); }; } &&
31548
{ ac_try='test -s conftest.$ac_objext'
31549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31550
(eval $ac_try) 2>&5
31552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553
(exit $ac_status); }; }; then
31554
ac_header_compiler=yes
31556
echo "$as_me: failed program was:" >&5
31557
sed 's/^/| /' conftest.$ac_ext >&5
31559
ac_header_compiler=no
31561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31562
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31563
echo "${ECHO_T}$ac_header_compiler" >&6
31565
# Is the header present?
31566
echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
31567
echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6
31568
cat >conftest.$ac_ext <<_ACEOF
31571
cat confdefs.h >>conftest.$ac_ext
31572
cat >>conftest.$ac_ext <<_ACEOF
31573
/* end confdefs.h. */
31574
#include <sys/capability.h>
31576
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31577
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31579
grep -v '^ *+' conftest.er1 >conftest.err
31581
cat conftest.err >&5
31582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583
(exit $ac_status); } >/dev/null; then
31584
if test -s conftest.err; then
31585
ac_cpp_err=$ac_c_preproc_warn_flag
31586
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31593
if test -z "$ac_cpp_err"; then
31594
ac_header_preproc=yes
31596
echo "$as_me: failed program was:" >&5
31597
sed 's/^/| /' conftest.$ac_ext >&5
31599
ac_header_preproc=no
31601
rm -f conftest.err conftest.$ac_ext
31602
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31603
echo "${ECHO_T}$ac_header_preproc" >&6
31605
# So? What about this header?
31606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31608
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
31609
echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31610
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
31611
echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
31612
ac_header_preproc=yes
31615
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
31616
echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
31617
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
31618
echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
31619
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
31620
echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
31621
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
31622
echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
31623
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
31624
echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
31625
{ echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
31626
echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
31629
## ------------------------------------------ ##
31630
## Report this to the AC_PACKAGE_NAME lists. ##
31631
## ------------------------------------------ ##
31634
sed "s/^/$as_me: WARNING: /" >&2
31637
echo "$as_me:$LINENO: checking for sys/capability.h" >&5
31638
echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6
31639
if test "${ac_cv_header_sys_capability_h+set}" = set; then
31640
echo $ECHO_N "(cached) $ECHO_C" >&6
31642
ac_cv_header_sys_capability_h=$ac_header_preproc
31644
echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
31645
echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6
31648
if test $ac_cv_header_sys_capability_h = yes; then
31649
samba_cv_HAVE_SYS_CAPABILITY_H=yes;
31651
cat >>confdefs.h <<\_ACEOF
31652
#define HAVE_SYS_CAPABILITY_H 1
31659
if test x"$samba_cv_HAVE_SYS_CAPABILITY_H" = x"yes"; then
31664
for ac_func in cap_get_proc
31666
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31667
echo "$as_me:$LINENO: checking for $ac_func" >&5
31668
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31669
if eval "test \"\${$as_ac_var+set}\" = set"; then
31670
echo $ECHO_N "(cached) $ECHO_C" >&6
31672
cat >conftest.$ac_ext <<_ACEOF
31675
cat confdefs.h >>conftest.$ac_ext
31676
cat >>conftest.$ac_ext <<_ACEOF
31677
/* end confdefs.h. */
31678
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31679
For example, HP-UX 11i <limits.h> declares gettimeofday. */
31680
#define $ac_func innocuous_$ac_func
31682
/* System header to define __stub macros and hopefully few prototypes,
31683
which can conflict with char $ac_func (); below.
31684
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31685
<limits.h> exists even on freestanding compilers. */
31688
# include <limits.h>
31690
# include <assert.h>
31695
/* Override any gcc2 internal prototype to avoid an error. */
31700
/* We use char because int might match the return type of a gcc2
31701
builtin and then its argument prototype would still apply. */
31703
/* The GNU C library defines this for functions which it implements
31704
to always fail with ENOSYS. Some functions are actually named
31705
something starting with __ and the normal name is an alias. */
31706
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31709
char (*f) () = $ac_func;
31718
return f != $ac_func;
31723
rm -f conftest.$ac_objext conftest$ac_exeext
31724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31725
(eval $ac_link) 2>conftest.er1
31727
grep -v '^ *+' conftest.er1 >conftest.err
31729
cat conftest.err >&5
31730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731
(exit $ac_status); } &&
31732
{ ac_try='test -z "$ac_c_werror_flag"
31733
|| test ! -s conftest.err'
31734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31735
(eval $ac_try) 2>&5
31737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738
(exit $ac_status); }; } &&
31739
{ ac_try='test -s conftest$ac_exeext'
31740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741
(eval $ac_try) 2>&5
31743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744
(exit $ac_status); }; }; then
31745
eval "$as_ac_var=yes"
31747
echo "$as_me: failed program was:" >&5
31748
sed 's/^/| /' conftest.$ac_ext >&5
31750
eval "$as_ac_var=no"
31752
rm -f conftest.err conftest.$ac_objext \
31753
conftest$ac_exeext conftest.$ac_ext
31755
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31756
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31757
if test `eval echo '${'$as_ac_var'}'` = yes; then
31758
cat >>confdefs.h <<_ACEOF
31759
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31762
# cap_get_proc was found in libc or existing $LIBS
31765
cat >>confdefs.h <<\_ACEOF
31766
#define HAVE_CAP_GET_PROC 1
31773
# cap_get_proc was not found, try adding libcap
31777
# cap_get_proc was not found and we already had libcap
31778
# nothing to do here by default
31783
# cap_get_proc was not found, try adding libcap
31784
echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
31785
echo $ECHO_N "checking for cap_get_proc in -lcap... $ECHO_C" >&6
31786
if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
31787
echo $ECHO_N "(cached) $ECHO_C" >&6
31789
ac_check_lib_save_LIBS=$LIBS
31791
cat >conftest.$ac_ext <<_ACEOF
31794
cat confdefs.h >>conftest.$ac_ext
31795
cat >>conftest.$ac_ext <<_ACEOF
31796
/* end confdefs.h. */
31798
/* Override any gcc2 internal prototype to avoid an error. */
31802
/* We use char because int might match the return type of a gcc2
31803
builtin and then its argument prototype would still apply. */
31804
char cap_get_proc ();
31813
rm -f conftest.$ac_objext conftest$ac_exeext
31814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31815
(eval $ac_link) 2>conftest.er1
31817
grep -v '^ *+' conftest.er1 >conftest.err
31819
cat conftest.err >&5
31820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821
(exit $ac_status); } &&
31822
{ ac_try='test -z "$ac_c_werror_flag"
31823
|| test ! -s conftest.err'
31824
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825
(eval $ac_try) 2>&5
31827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828
(exit $ac_status); }; } &&
31829
{ ac_try='test -s conftest$ac_exeext'
31830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831
(eval $ac_try) 2>&5
31833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834
(exit $ac_status); }; }; then
31835
ac_cv_lib_cap_cap_get_proc=yes
31837
echo "$as_me: failed program was:" >&5
31838
sed 's/^/| /' conftest.$ac_ext >&5
31840
ac_cv_lib_cap_cap_get_proc=no
31842
rm -f conftest.err conftest.$ac_objext \
31843
conftest$ac_exeext conftest.$ac_ext
31844
LIBS=$ac_check_lib_save_LIBS
31846
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
31847
echo "${ECHO_T}$ac_cv_lib_cap_cap_get_proc" >&6
31848
if test $ac_cv_lib_cap_cap_get_proc = yes; then
31853
cat >>confdefs.h <<\_ACEOF
31854
#define HAVE_CAP_GET_PROC 1
31862
# cap_get_proc was not found in libcap
31863
# nothing to do here by default
31877
echo "$as_me:$LINENO: checking for POSIX capabilities" >&5
31878
echo $ECHO_N "checking for POSIX capabilities... $ECHO_C" >&6
31879
if test "${samba_cv_HAVE_POSIX_CAPABILITIES+set}" = set; then
31880
echo $ECHO_N "(cached) $ECHO_C" >&6
31883
if test "$cross_compiling" = yes; then
31884
samba_cv_HAVE_POSIX_CAPABILITIES=cross
31886
cat >conftest.$ac_ext <<_ACEOF
31889
cat confdefs.h >>conftest.$ac_ext
31890
cat >>conftest.$ac_ext <<_ACEOF
31891
/* end confdefs.h. */
29216
31893
#include <sys/types.h>
29217
31894
#include <sys/capability.h>
29220
if ((cap = cap_get_proc()) == NULL)
31897
cap_value_t vals[1];
31898
if (!(cap = cap_get_proc()))
29222
cap->cap_effective |= CAP_NETWORK_MGT;
29223
cap->cap_inheritable |= CAP_NETWORK_MGT;
31900
vals[0] = CAP_CHOWN;
31901
cap_set_flag(cap, CAP_INHERITABLE, 1, vals, CAP_CLEAR);
29224
31902
cap_set_proc(cap);
29229
31906
rm -f conftest$ac_exeext
29230
31907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29984
echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
32667
echo "$as_me:$LINENO: checking for broken readdir" >&5
32668
echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
32669
if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
32670
echo $ECHO_N "(cached) $ECHO_C" >&6
32673
if test "$cross_compiling" = yes; then
32674
samba_cv_HAVE_BROKEN_READDIR="assuming not"
32676
cat >conftest.$ac_ext <<_ACEOF
32679
cat confdefs.h >>conftest.$ac_ext
32680
cat >>conftest.$ac_ext <<_ACEOF
32681
/* end confdefs.h. */
32682
#include "${srcdir-.}/tests/os2_delete.c"
32684
rm -f conftest$ac_exeext
32685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32686
(eval $ac_link) 2>&5
32688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691
(eval $ac_try) 2>&5
32693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694
(exit $ac_status); }; }; then
32695
samba_cv_HAVE_BROKEN_READDIR=no
32697
echo "$as_me: program exited with status $ac_status" >&5
32698
echo "$as_me: failed program was:" >&5
32699
sed 's/^/| /' conftest.$ac_ext >&5
32701
( exit $ac_status )
32702
samba_cv_HAVE_BROKEN_READDIR=yes
32704
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32707
echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
32708
echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
32710
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
32711
echo "$as_me:$LINENO: checking for replacing readdir" >&5
32712
echo $ECHO_N "checking for replacing readdir... $ECHO_C" >&6
32713
if test "${samba_cv_REPLACE_READDIR+set}" = set; then
32714
echo $ECHO_N "(cached) $ECHO_C" >&6
32717
if test "$cross_compiling" = yes; then
32718
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32719
See \`config.log' for more details." >&5
32720
echo "$as_me: error: cannot run test program while cross compiling
32721
See \`config.log' for more details." >&2;}
32722
{ (exit 1); exit 1; }; }
32724
cat >conftest.$ac_ext <<_ACEOF
32727
cat confdefs.h >>conftest.$ac_ext
32728
cat >>conftest.$ac_ext <<_ACEOF
32729
/* end confdefs.h. */
32731
#include "${srcdir-.}/lib/repdir.c"
32732
#include "${srcdir-.}/tests/os2_delete.c"
32734
rm -f conftest$ac_exeext
32735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32736
(eval $ac_link) 2>&5
32738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32741
(eval $ac_try) 2>&5
32743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744
(exit $ac_status); }; }; then
32745
samba_cv_REPLACE_READDIR=yes
32747
echo "$as_me: program exited with status $ac_status" >&5
32748
echo "$as_me: failed program was:" >&5
32749
sed 's/^/| /' conftest.$ac_ext >&5
32751
( exit $ac_status )
32752
samba_cv_REPLACE_READDIR=no
32754
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32757
echo "$as_me:$LINENO: result: $samba_cv_REPLACE_READDIR" >&5
32758
echo "${ECHO_T}$samba_cv_REPLACE_READDIR" >&6
32761
if test x"$samba_cv_REPLACE_READDIR" = x"yes"; then
32763
cat >>confdefs.h <<\_ACEOF
32764
#define REPLACE_READDIR 1
32770
echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
29985
32771
echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
29986
32772
if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
29987
32773
echo $ECHO_N "(cached) $ECHO_C" >&6
29990
if test "$cross_compiling" = yes; then
29991
samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
29993
cat >conftest.$ac_ext <<_ACEOF
32776
cat >conftest.$ac_ext <<_ACEOF
29994
32777
/* confdefs.h. */
29996
32779
cat confdefs.h >>conftest.$ac_ext
29997
32780
cat >>conftest.$ac_ext <<_ACEOF
29998
32781
/* end confdefs.h. */
29999
32782
#include <unistd.h>
30000
main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
32786
return sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0;
30002
rm -f conftest$ac_exeext
32791
rm -f conftest.$ac_objext conftest$ac_exeext
30003
32792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30004
(eval $ac_link) 2>&5
30006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32793
(eval $ac_link) 2>conftest.er1
32795
grep -v '^ *+' conftest.er1 >conftest.err
32797
cat conftest.err >&5
32798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799
(exit $ac_status); } &&
32800
{ ac_try='test -z "$ac_c_werror_flag"
32801
|| test ! -s conftest.err'
32802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803
(eval $ac_try) 2>&5
32805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806
(exit $ac_status); }; } &&
32807
{ ac_try='test -s conftest$ac_exeext'
30008
32808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009
32809
(eval $ac_try) 2>&5
30011
32811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012
32812
(exit $ac_status); }; }; then
30013
samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
32813
samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
30015
echo "$as_me: program exited with status $ac_status" >&5
30016
echo "$as_me: failed program was:" >&5
32815
echo "$as_me: failed program was:" >&5
30017
32816
sed 's/^/| /' conftest.$ac_ext >&5
30019
( exit $ac_status )
30020
samba_cv_SYSCONF_SC_NGROUPS_MAX=no
30022
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32818
samba_cv_SYSCONF_SC_NGROUPS_MAX=no
32820
rm -f conftest.err conftest.$ac_objext \
32821
conftest$ac_exeext conftest.$ac_ext
30025
32824
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
30026
32825
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
30027
if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
32827
if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes" ; then
30029
32829
cat >>confdefs.h <<\_ACEOF
30030
32830
#define SYSCONF_SC_NGROUPS_MAX 1
30035
echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
32836
echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
30036
32837
echo $ECHO_N "checking for sysconf(_SC_NPROC_ONLN)... $ECHO_C" >&6
30037
32838
if test "${samba_cv_SYSCONF_SC_NPROC_ONLN+set}" = set; then
30038
32839
echo $ECHO_N "(cached) $ECHO_C" >&6
30041
if test "$cross_compiling" = yes; then
30042
samba_cv_SYSCONF_SC_NPROC_ONLN=cross
30044
cat >conftest.$ac_ext <<_ACEOF
32842
cat >conftest.$ac_ext <<_ACEOF
30045
32843
/* confdefs.h. */
30047
32845
cat confdefs.h >>conftest.$ac_ext
30048
32846
cat >>conftest.$ac_ext <<_ACEOF
30049
32847
/* end confdefs.h. */
30050
32848
#include <unistd.h>
30051
main() { exit(sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0); }
32852
return sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0;
30053
rm -f conftest$ac_exeext
32857
rm -f conftest.$ac_objext conftest$ac_exeext
30054
32858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055
(eval $ac_link) 2>&5
30057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32859
(eval $ac_link) 2>conftest.er1
32861
grep -v '^ *+' conftest.er1 >conftest.err
32863
cat conftest.err >&5
32864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865
(exit $ac_status); } &&
32866
{ ac_try='test -z "$ac_c_werror_flag"
32867
|| test ! -s conftest.err'
32868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869
(eval $ac_try) 2>&5
32871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872
(exit $ac_status); }; } &&
32873
{ ac_try='test -s conftest$ac_exeext'
30059
32874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060
32875
(eval $ac_try) 2>&5
30062
32877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063
32878
(exit $ac_status); }; }; then
30064
samba_cv_SYSCONF_SC_NPROC_ONLN=yes
32879
samba_cv_SYSCONF_SC_NPROC_ONLN=yes
30066
echo "$as_me: program exited with status $ac_status" >&5
30067
echo "$as_me: failed program was:" >&5
32881
echo "$as_me: failed program was:" >&5
30068
32882
sed 's/^/| /' conftest.$ac_ext >&5
30070
( exit $ac_status )
30071
samba_cv_SYSCONF_SC_NPROC_ONLN=no
30073
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32884
samba_cv_SYSCONF_SC_NPROC_ONLN=no
32886
rm -f conftest.err conftest.$ac_objext \
32887
conftest$ac_exeext conftest.$ac_ext
30076
32890
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROC_ONLN" >&5
30077
32891
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROC_ONLN" >&6
30078
if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes"; then
32893
if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes" ; then
30080
32895
cat >>confdefs.h <<\_ACEOF
30081
32896
#define SYSCONF_SC_NPROC_ONLN 1
32902
echo "$as_me:$LINENO: checking for sysconf(_SC_NPROCESSORS_ONLN)" >&5
32903
echo $ECHO_N "checking for sysconf(_SC_NPROCESSORS_ONLN)... $ECHO_C" >&6
32904
if test "${samba_cv_SYSCONF_SC_NPROCESSORS_ONLN+set}" = set; then
32905
echo $ECHO_N "(cached) $ECHO_C" >&6
32908
cat >conftest.$ac_ext <<_ACEOF
32911
cat confdefs.h >>conftest.$ac_ext
32912
cat >>conftest.$ac_ext <<_ACEOF
32913
/* end confdefs.h. */
32914
#include <unistd.h>
32918
return sysconf(_SC_NPROCESSORS_ONLN) == -1 ? 1 : 0;
32923
rm -f conftest.$ac_objext conftest$ac_exeext
32924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32925
(eval $ac_link) 2>conftest.er1
32927
grep -v '^ *+' conftest.er1 >conftest.err
32929
cat conftest.err >&5
32930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931
(exit $ac_status); } &&
32932
{ ac_try='test -z "$ac_c_werror_flag"
32933
|| test ! -s conftest.err'
32934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32935
(eval $ac_try) 2>&5
32937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938
(exit $ac_status); }; } &&
32939
{ ac_try='test -s conftest$ac_exeext'
32940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941
(eval $ac_try) 2>&5
32943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944
(exit $ac_status); }; }; then
32945
samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=yes
32947
echo "$as_me: failed program was:" >&5
32948
sed 's/^/| /' conftest.$ac_ext >&5
32950
samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
32952
rm -f conftest.err conftest.$ac_objext \
32953
conftest$ac_exeext conftest.$ac_ext
32956
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&5
32957
echo "${ECHO_T}$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&6
32959
if test x"$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" = x"yes" ; then
32961
cat >>confdefs.h <<\_ACEOF
32962
#define SYSCONF_SC_NPROCESSORS_ONLN 1
32968
echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
32969
echo $ECHO_N "checking for sysconf(_SC_PAGESIZE)... $ECHO_C" >&6
32970
if test "${samba_cv_SYSCONF_SC_PAGESIZE+set}" = set; then
32971
echo $ECHO_N "(cached) $ECHO_C" >&6
32974
cat >conftest.$ac_ext <<_ACEOF
32977
cat confdefs.h >>conftest.$ac_ext
32978
cat >>conftest.$ac_ext <<_ACEOF
32979
/* end confdefs.h. */
32980
#include <unistd.h>
32984
return sysconf(_SC_PAGESIZE) == -1 ? 1 : 0;
32989
rm -f conftest.$ac_objext conftest$ac_exeext
32990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32991
(eval $ac_link) 2>conftest.er1
32993
grep -v '^ *+' conftest.er1 >conftest.err
32995
cat conftest.err >&5
32996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997
(exit $ac_status); } &&
32998
{ ac_try='test -z "$ac_c_werror_flag"
32999
|| test ! -s conftest.err'
33000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001
(eval $ac_try) 2>&5
33003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004
(exit $ac_status); }; } &&
33005
{ ac_try='test -s conftest$ac_exeext'
33006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007
(eval $ac_try) 2>&5
33009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010
(exit $ac_status); }; }; then
33011
samba_cv_SYSCONF_SC_PAGESIZE=yes
33013
echo "$as_me: failed program was:" >&5
33014
sed 's/^/| /' conftest.$ac_ext >&5
33016
samba_cv_SYSCONF_SC_PAGESIZE=no
33018
rm -f conftest.err conftest.$ac_objext \
33019
conftest$ac_exeext conftest.$ac_ext
33022
echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_PAGESIZE" >&5
33023
echo "${ECHO_T}$samba_cv_SYSCONF_SC_PAGESIZE" >&6
33025
if test x"$samba_cv_SYSCONF_SC_PAGESIZE" = x"yes" ; then
33027
cat >>confdefs.h <<\_ACEOF
33028
#define SYSCONF_SC_PAGESIZE 1
30086
33034
echo "$as_me:$LINENO: checking for root" >&5
30087
33035
echo $ECHO_N "checking for root... $ECHO_C" >&6
40087
ac_check_func_ext_save_LIBS=$LIBS
40088
LIBS="$KRB5_LIBS $LIBS"
40089
echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_pac_request" >&5
40090
echo $ECHO_N "checking for krb5_get_init_creds_opt_set_pac_request... $ECHO_C" >&6
40091
if test "${ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request+set}" = set; then
40092
echo $ECHO_N "(cached) $ECHO_C" >&6
40094
cat >conftest.$ac_ext <<_ACEOF
40097
cat confdefs.h >>conftest.$ac_ext
40098
cat >>conftest.$ac_ext <<_ACEOF
40099
/* end confdefs.h. */
40100
/* Define krb5_get_init_creds_opt_set_pac_request to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_set_pac_request.
40101
For example, HP-UX 11i <limits.h> declares gettimeofday. */
40102
#define krb5_get_init_creds_opt_set_pac_request innocuous_krb5_get_init_creds_opt_set_pac_request
40104
/* System header to define __stub macros and hopefully few prototypes,
40105
which can conflict with char krb5_get_init_creds_opt_set_pac_request (); below.
40106
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40107
<limits.h> exists even on freestanding compilers. */
40110
# include <limits.h>
40112
# include <assert.h>
40115
#undef krb5_get_init_creds_opt_set_pac_request
40117
/* Override any gcc2 internal prototype to avoid an error. */
40122
/* We use char because int might match the return type of a gcc2
40123
builtin and then its argument prototype would still apply. */
40124
char krb5_get_init_creds_opt_set_pac_request ();
40125
/* The GNU C library defines this for functions which it implements
40126
to always fail with ENOSYS. Some functions are actually named
40127
something starting with __ and the normal name is an alias. */
40128
#if defined (__stub_krb5_get_init_creds_opt_set_pac_request) || defined (__stub___krb5_get_init_creds_opt_set_pac_request)
40131
char (*f) () = krb5_get_init_creds_opt_set_pac_request;
40140
return f != krb5_get_init_creds_opt_set_pac_request;
40145
rm -f conftest.$ac_objext conftest$ac_exeext
40146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40147
(eval $ac_link) 2>conftest.er1
40149
grep -v '^ *+' conftest.er1 >conftest.err
40151
cat conftest.err >&5
40152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153
(exit $ac_status); } &&
40154
{ ac_try='test -z "$ac_c_werror_flag"
40155
|| test ! -s conftest.err'
40156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157
(eval $ac_try) 2>&5
40159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160
(exit $ac_status); }; } &&
40161
{ ac_try='test -s conftest$ac_exeext'
40162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163
(eval $ac_try) 2>&5
40165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166
(exit $ac_status); }; }; then
40167
ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=yes
40169
echo "$as_me: failed program was:" >&5
40170
sed 's/^/| /' conftest.$ac_ext >&5
40172
ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=no
40174
rm -f conftest.err conftest.$ac_objext \
40175
conftest$ac_exeext conftest.$ac_ext
40177
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&5
40178
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&6
40179
LIBS=$ac_check_func_ext_save_LIBS
40180
if test $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request = yes; then
40181
cat >>confdefs.h <<_ACEOF
40182
#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PAC_REQUEST 1
40190
ac_check_func_ext_save_LIBS=$LIBS
40191
LIBS="$KRB5_LIBS $LIBS"
40192
echo "$as_me:$LINENO: checking for krb5_get_renewed_creds" >&5
40193
echo $ECHO_N "checking for krb5_get_renewed_creds... $ECHO_C" >&6
40194
if test "${ac_cv_func_ext_krb5_get_renewed_creds+set}" = set; then
40195
echo $ECHO_N "(cached) $ECHO_C" >&6
40197
cat >conftest.$ac_ext <<_ACEOF
40200
cat confdefs.h >>conftest.$ac_ext
40201
cat >>conftest.$ac_ext <<_ACEOF
40202
/* end confdefs.h. */
40203
/* Define krb5_get_renewed_creds to an innocuous variant, in case <limits.h> declares krb5_get_renewed_creds.
40204
For example, HP-UX 11i <limits.h> declares gettimeofday. */
40205
#define krb5_get_renewed_creds innocuous_krb5_get_renewed_creds
40207
/* System header to define __stub macros and hopefully few prototypes,
40208
which can conflict with char krb5_get_renewed_creds (); below.
40209
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40210
<limits.h> exists even on freestanding compilers. */
40213
# include <limits.h>
40215
# include <assert.h>
40218
#undef krb5_get_renewed_creds
40220
/* Override any gcc2 internal prototype to avoid an error. */
40225
/* We use char because int might match the return type of a gcc2
40226
builtin and then its argument prototype would still apply. */
40227
char krb5_get_renewed_creds ();
40228
/* The GNU C library defines this for functions which it implements
40229
to always fail with ENOSYS. Some functions are actually named
40230
something starting with __ and the normal name is an alias. */
40231
#if defined (__stub_krb5_get_renewed_creds) || defined (__stub___krb5_get_renewed_creds)
40234
char (*f) () = krb5_get_renewed_creds;
40243
return f != krb5_get_renewed_creds;
40248
rm -f conftest.$ac_objext conftest$ac_exeext
40249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40250
(eval $ac_link) 2>conftest.er1
40252
grep -v '^ *+' conftest.er1 >conftest.err
40254
cat conftest.err >&5
40255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256
(exit $ac_status); } &&
40257
{ ac_try='test -z "$ac_c_werror_flag"
40258
|| test ! -s conftest.err'
40259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40260
(eval $ac_try) 2>&5
40262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263
(exit $ac_status); }; } &&
40264
{ ac_try='test -s conftest$ac_exeext'
40265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40266
(eval $ac_try) 2>&5
40268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269
(exit $ac_status); }; }; then
40270
ac_cv_func_ext_krb5_get_renewed_creds=yes
40272
echo "$as_me: failed program was:" >&5
40273
sed 's/^/| /' conftest.$ac_ext >&5
40275
ac_cv_func_ext_krb5_get_renewed_creds=no
40277
rm -f conftest.err conftest.$ac_objext \
40278
conftest$ac_exeext conftest.$ac_ext
40280
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_renewed_creds" >&5
40281
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_renewed_creds" >&6
40282
LIBS=$ac_check_func_ext_save_LIBS
40283
if test $ac_cv_func_ext_krb5_get_renewed_creds = yes; then
40284
cat >>confdefs.h <<_ACEOF
40285
#define HAVE_KRB5_GET_RENEWED_CREDS 1
40293
ac_check_func_ext_save_LIBS=$LIBS
40294
LIBS="$KRB5_LIBS $LIBS"
40295
echo "$as_me:$LINENO: checking for krb5_get_kdc_cred" >&5
40296
echo $ECHO_N "checking for krb5_get_kdc_cred... $ECHO_C" >&6
40297
if test "${ac_cv_func_ext_krb5_get_kdc_cred+set}" = set; then
40298
echo $ECHO_N "(cached) $ECHO_C" >&6
40300
cat >conftest.$ac_ext <<_ACEOF
40303
cat confdefs.h >>conftest.$ac_ext
40304
cat >>conftest.$ac_ext <<_ACEOF
40305
/* end confdefs.h. */
40306
/* Define krb5_get_kdc_cred to an innocuous variant, in case <limits.h> declares krb5_get_kdc_cred.
40307
For example, HP-UX 11i <limits.h> declares gettimeofday. */
40308
#define krb5_get_kdc_cred innocuous_krb5_get_kdc_cred
40310
/* System header to define __stub macros and hopefully few prototypes,
40311
which can conflict with char krb5_get_kdc_cred (); below.
40312
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40313
<limits.h> exists even on freestanding compilers. */
40316
# include <limits.h>
40318
# include <assert.h>
40321
#undef krb5_get_kdc_cred
40323
/* Override any gcc2 internal prototype to avoid an error. */
40328
/* We use char because int might match the return type of a gcc2
40329
builtin and then its argument prototype would still apply. */
40330
char krb5_get_kdc_cred ();
40331
/* The GNU C library defines this for functions which it implements
40332
to always fail with ENOSYS. Some functions are actually named
40333
something starting with __ and the normal name is an alias. */
40334
#if defined (__stub_krb5_get_kdc_cred) || defined (__stub___krb5_get_kdc_cred)
40337
char (*f) () = krb5_get_kdc_cred;
40346
return f != krb5_get_kdc_cred;
40351
rm -f conftest.$ac_objext conftest$ac_exeext
40352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40353
(eval $ac_link) 2>conftest.er1
40355
grep -v '^ *+' conftest.er1 >conftest.err
40357
cat conftest.err >&5
40358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40359
(exit $ac_status); } &&
40360
{ ac_try='test -z "$ac_c_werror_flag"
40361
|| test ! -s conftest.err'
40362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363
(eval $ac_try) 2>&5
40365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366
(exit $ac_status); }; } &&
40367
{ ac_try='test -s conftest$ac_exeext'
40368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369
(eval $ac_try) 2>&5
40371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372
(exit $ac_status); }; }; then
40373
ac_cv_func_ext_krb5_get_kdc_cred=yes
40375
echo "$as_me: failed program was:" >&5
40376
sed 's/^/| /' conftest.$ac_ext >&5
40378
ac_cv_func_ext_krb5_get_kdc_cred=no
40380
rm -f conftest.err conftest.$ac_objext \
40381
conftest$ac_exeext conftest.$ac_ext
40383
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_kdc_cred" >&5
40384
echo "${ECHO_T}$ac_cv_func_ext_krb5_get_kdc_cred" >&6
40385
LIBS=$ac_check_func_ext_save_LIBS
40386
if test $ac_cv_func_ext_krb5_get_kdc_cred = yes; then
40387
cat >>confdefs.h <<_ACEOF
40388
#define HAVE_KRB5_GET_KDC_CRED 1
40396
ac_check_func_ext_save_LIBS=$LIBS
40397
LIBS="$KRB5_LIBS $LIBS"
40398
echo "$as_me:$LINENO: checking for krb5_free_error_contents" >&5
40399
echo $ECHO_N "checking for krb5_free_error_contents... $ECHO_C" >&6
40400
if test "${ac_cv_func_ext_krb5_free_error_contents+set}" = set; then
40401
echo $ECHO_N "(cached) $ECHO_C" >&6
40403
cat >conftest.$ac_ext <<_ACEOF
40406
cat confdefs.h >>conftest.$ac_ext
40407
cat >>conftest.$ac_ext <<_ACEOF
40408
/* end confdefs.h. */
40409
/* Define krb5_free_error_contents to an innocuous variant, in case <limits.h> declares krb5_free_error_contents.
40410
For example, HP-UX 11i <limits.h> declares gettimeofday. */
40411
#define krb5_free_error_contents innocuous_krb5_free_error_contents
40413
/* System header to define __stub macros and hopefully few prototypes,
40414
which can conflict with char krb5_free_error_contents (); below.
40415
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40416
<limits.h> exists even on freestanding compilers. */
40419
# include <limits.h>
40421
# include <assert.h>
40424
#undef krb5_free_error_contents
40426
/* Override any gcc2 internal prototype to avoid an error. */
40431
/* We use char because int might match the return type of a gcc2
40432
builtin and then its argument prototype would still apply. */
40433
char krb5_free_error_contents ();
40434
/* The GNU C library defines this for functions which it implements
40435
to always fail with ENOSYS. Some functions are actually named
40436
something starting with __ and the normal name is an alias. */
40437
#if defined (__stub_krb5_free_error_contents) || defined (__stub___krb5_free_error_contents)
40440
char (*f) () = krb5_free_error_contents;
40449
return f != krb5_free_error_contents;
40454
rm -f conftest.$ac_objext conftest$ac_exeext
40455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40456
(eval $ac_link) 2>conftest.er1
40458
grep -v '^ *+' conftest.er1 >conftest.err
40460
cat conftest.err >&5
40461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462
(exit $ac_status); } &&
40463
{ ac_try='test -z "$ac_c_werror_flag"
40464
|| test ! -s conftest.err'
40465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40466
(eval $ac_try) 2>&5
40468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469
(exit $ac_status); }; } &&
40470
{ ac_try='test -s conftest$ac_exeext'
40471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40472
(eval $ac_try) 2>&5
40474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475
(exit $ac_status); }; }; then
40476
ac_cv_func_ext_krb5_free_error_contents=yes
40478
echo "$as_me: failed program was:" >&5
40479
sed 's/^/| /' conftest.$ac_ext >&5
40481
ac_cv_func_ext_krb5_free_error_contents=no
40483
rm -f conftest.err conftest.$ac_objext \
40484
conftest$ac_exeext conftest.$ac_ext
40486
echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_error_contents" >&5
40487
echo "${ECHO_T}$ac_cv_func_ext_krb5_free_error_contents" >&6
40488
LIBS=$ac_check_func_ext_save_LIBS
40489
if test $ac_cv_func_ext_krb5_free_error_contents = yes; then
40490
cat >>confdefs.h <<_ACEOF
40491
#define HAVE_KRB5_FREE_ERROR_CONTENTS 1
37139
40497
LIBS="$KRB5_LIBS $LIBS"
37141
40499
echo "$as_me:$LINENO: checking whether krb5_verify_checksum takes 7 arguments" >&5
42098
echo "$as_me:$LINENO: checking for krb5_addresses type" >&5
42099
echo $ECHO_N "checking for krb5_addresses type... $ECHO_C" >&6
42100
if test "${samba_cv_HAVE_KRB5_ADDRESSES+set}" = set; then
42101
echo $ECHO_N "(cached) $ECHO_C" >&6
42104
cat >conftest.$ac_ext <<_ACEOF
42107
cat confdefs.h >>conftest.$ac_ext
42108
cat >>conftest.$ac_ext <<_ACEOF
42109
/* end confdefs.h. */
42114
krb5_addresses addr;
42119
rm -f conftest.$ac_objext
42120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42121
(eval $ac_compile) 2>conftest.er1
42123
grep -v '^ *+' conftest.er1 >conftest.err
42125
cat conftest.err >&5
42126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127
(exit $ac_status); } &&
42128
{ ac_try='test -z "$ac_c_werror_flag"
42129
|| test ! -s conftest.err'
42130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42131
(eval $ac_try) 2>&5
42133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134
(exit $ac_status); }; } &&
42135
{ ac_try='test -s conftest.$ac_objext'
42136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42137
(eval $ac_try) 2>&5
42139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140
(exit $ac_status); }; }; then
42141
samba_cv_HAVE_KRB5_ADDRESSES=yes
42143
echo "$as_me: failed program was:" >&5
42144
sed 's/^/| /' conftest.$ac_ext >&5
42146
samba_cv_HAVE_KRB5_ADDRESSES=no
42148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42150
echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ADDRESSES" >&5
42151
echo "${ECHO_T}$samba_cv_HAVE_KRB5_ADDRESSES" >&6
42153
if test x"$samba_cv_HAVE_KRB5_ADDRESSES" = x"yes"; then
42155
cat >>confdefs.h <<\_ACEOF
42156
#define HAVE_KRB5_ADDRESSES 1
38614
42161
LIBS="$ac_save_LIBS"
38617
########################################################
38618
# Compile experimental passdb backends?
38619
# (pdb_xml, pdb_mysql, pdb_pgsql)
38620
echo "$as_me:$LINENO: checking whether to build experimental passdb libraries" >&5
38621
echo $ECHO_N "checking whether to build experimental passdb libraries... $ECHO_C" >&6
38623
# Check whether --with-expsam or --without-expsam was given.
38624
if test "${with_expsam+set}" = set; then
38625
withval="$with_expsam"
38626
expsam_pdb_modules=`echo "$withval" | sed 's/,/ /g'`
38627
if test "z$expsam_pdb_modules" = "zyes"; then
38628
expsam_pdb_modules="xml mysql pgsql"
38630
echo "$as_me:$LINENO: result: $expsam_pdb_modules" >&5
38631
echo "${ECHO_T}$expsam_pdb_modules" >&6
38632
for i in $expsam_pdb_modules
38639
# Check whether --with-xml-prefix or --without-xml-prefix was given.
38640
if test "${with_xml_prefix+set}" = set; then
38641
withval="$with_xml_prefix"
38642
xml_config_prefix="$withval"
38644
xml_config_prefix=""
38647
# Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
38648
if test "${with_xml_exec_prefix+set}" = set; then
38649
withval="$with_xml_exec_prefix"
38650
xml_config_exec_prefix="$withval"
38652
xml_config_exec_prefix=""
38654
# Check whether --enable-xmltest or --disable-xmltest was given.
38655
if test "${enable_xmltest+set}" = set; then
38656
enableval="$enable_xmltest"
38662
if test x$xml_config_exec_prefix != x ; then
38663
xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
38664
if test x${XML2_CONFIG+set} != xset ; then
38665
XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
38668
if test x$xml_config_prefix != x ; then
38669
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
38670
if test x${XML2_CONFIG+set} != xset ; then
38671
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
38675
# Extract the first word of "xml2-config", so it can be a program name with args.
38676
set dummy xml2-config; ac_word=$2
38677
echo "$as_me:$LINENO: checking for $ac_word" >&5
38678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38679
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
42167
ac_check_lib_ext_save_LIBS=$LIBS
42168
LIBS="-lnscd $NSCD_LIBS $LIBS"
42173
echo "$as_me:$LINENO: checking for nscd_flush_cache in -lnscd" >&5
42174
echo $ECHO_N "checking for nscd_flush_cache in -lnscd... $ECHO_C" >&6
42175
if test "${ac_cv_lib_ext_nscd_nscd_flush_cache+set}" = set; then
38680
42176
echo $ECHO_N "(cached) $ECHO_C" >&6
38682
case $XML2_CONFIG in
38684
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
38687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38688
for as_dir in $PATH
38691
test -z "$as_dir" && as_dir=.
38692
for ac_exec_ext in '' $ac_executable_extensions; do
38693
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38694
ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38695
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38701
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
38705
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
38707
if test -n "$XML2_CONFIG"; then
38708
echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
38709
echo "${ECHO_T}$XML2_CONFIG" >&6
38711
echo "$as_me:$LINENO: result: no" >&5
38712
echo "${ECHO_T}no" >&6
38715
min_xml_version=2.0.0
38716
echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
38717
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
38719
if test "$XML2_CONFIG" = "no" ; then
38722
XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
38723
XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
38724
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
38725
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38726
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
38727
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38728
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
38729
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38730
if test "x$enable_xmltest" = "xyes" ; then
38731
ac_save_CFLAGS="$CFLAGS"
38732
ac_save_LIBS="$LIBS"
38733
CFLAGS="$CFLAGS $XML_CFLAGS"
38734
LIBS="$XML_LIBS $LIBS"
38736
if test "$cross_compiling" = yes; then
38737
echo $ac_n "cross compiling; assumed OK... $ac_c"
38739
42178
cat >conftest.$ac_ext <<_ACEOF
38740
42179
/* confdefs.h. */
38743
42182
cat >>conftest.$ac_ext <<_ACEOF
38744
42183
/* end confdefs.h. */
38746
#include <stdlib.h>
38748
#include <string.h>
38749
#include <libxml/xmlversion.h>
38754
int xml_major_version, xml_minor_version, xml_micro_version;
38755
int major, minor, micro;
38758
system("touch conf.xmltest");
38760
/* Capture xml2-config output via autoconf/configure variables */
38761
/* HP/UX 9 (%@#!) writes to sscanf strings */
38762
tmp_version = (char *)strdup("$min_xml_version");
38763
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
38764
printf("%s, bad version string from xml2-config\n", "$min_xml_version");
38769
/* Capture the version information from the header files */
38770
tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
38771
if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
38772
printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
38777
/* Compare xml2-config output to the libxml headers */
38778
if ((xml_major_version != $xml_config_major_version) ||
38779
(xml_minor_version != $xml_config_minor_version) ||
38780
(xml_micro_version != $xml_config_micro_version))
38782
printf("*** libxml header files (version %d.%d.%d) do not match\n",
38783
xml_major_version, xml_minor_version, xml_micro_version);
38784
printf("*** xml2-config (version %d.%d.%d)\n",
38785
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
38788
/* Compare the headers to the library to make sure we match */
38789
/* Less than ideal -- doesn't provide us with return value feedback,
38790
* only exits if there's a serious mismatch between header and library.
38792
LIBXML_TEST_VERSION;
38794
/* Test that the library is greater than our minimum version */
38795
if ((xml_major_version > major) ||
38796
((xml_major_version == major) && (xml_minor_version > minor)) ||
38797
((xml_major_version == major) && (xml_minor_version == minor) &&
38798
(xml_micro_version >= micro)))
38804
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
38805
xml_major_version, xml_minor_version, xml_micro_version);
38806
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
38807
major, minor, micro);
38808
printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
38810
printf("*** If you have already installed a sufficiently new version, this error\n");
38811
printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
38812
printf("*** being found. The easiest way to fix this is to remove the old version\n");
38813
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
38814
printf("*** correct copy of xml2-config. (In this case, you will have to\n");
38815
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38816
printf("*** so that the correct libraries are found at run-time))\n");
38822
rm -f conftest$ac_exeext
38823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38824
(eval $ac_link) 2>&5
38826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829
(eval $ac_try) 2>&5
38831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832
(exit $ac_status); }; }; then
38835
echo "$as_me: program exited with status $ac_status" >&5
38836
echo "$as_me: failed program was:" >&5
38837
sed 's/^/| /' conftest.$ac_ext >&5
38839
( exit $ac_status )
38842
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38844
CFLAGS="$ac_save_CFLAGS"
38845
LIBS="$ac_save_LIBS"
38849
if test "x$no_xml" = x ; then
38850
echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
38851
echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
38852
default_shared_modules="$default_shared_modules pdb_xml"
38854
echo "$as_me:$LINENO: result: no" >&5
38855
echo "${ECHO_T}no" >&6
38856
if test "$XML2_CONFIG" = "no" ; then
38857
echo "*** The xml2-config script installed by LIBXML could not be found"
38858
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
38859
echo "*** your path, or set the XML2_CONFIG environment variable to the"
38860
echo "*** full path to xml2-config."
38862
if test -f conf.xmltest ; then
38865
echo "*** Could not run libxml test program, checking why..."
38866
CFLAGS="$CFLAGS $XML_CFLAGS"
38867
LIBS="$LIBS $XML_LIBS"
38868
cat >conftest.$ac_ext <<_ACEOF
38871
cat confdefs.h >>conftest.$ac_ext
38872
cat >>conftest.$ac_ext <<_ACEOF
38873
/* end confdefs.h. */
38875
#include <libxml/xmlversion.h>
42185
/* Override any gcc2 internal prototype to avoid an error. */
42189
/* We use char because int might match the return type of a gcc2
42190
builtin and then its argument prototype would still apply. */
42191
char nscd_flush_cache ();
38881
LIBXML_TEST_VERSION; return 0;
42195
nscd_flush_cache ();
38906
42220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907
42221
(exit $ac_status); }; }; then
38908
echo "*** The test program compiled, but did not run. This usually means"
38909
echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
38910
echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
38911
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38912
echo "*** to the installed location Also, make sure you have run ldconfig if that"
38913
echo "*** is required on your system"
38915
echo "*** If you have an old version installed, it is best to remove it, although"
38916
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42222
ac_cv_lib_ext_nscd_nscd_flush_cache=yes;
42223
ac_cv_lib_ext_nscd=yes
38918
42225
echo "$as_me: failed program was:" >&5
38919
42226
sed 's/^/| /' conftest.$ac_ext >&5
38921
echo "*** The test program failed to compile or link. See the file config.log for the"
38922
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
38923
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
38924
echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
42228
ac_cv_lib_ext_nscd_nscd_flush_cache=no;
42229
ac_cv_lib_ext_nscd=no
38926
42231
rm -f conftest.err conftest.$ac_objext \
38927
42232
conftest$ac_exeext conftest.$ac_ext
38928
CFLAGS="$ac_save_CFLAGS"
38929
LIBS="$ac_save_LIBS"
38935
{ { echo "$as_me:$LINENO: error: Can't find XML libraries while XML support is requested" >&5
38936
echo "$as_me: error: Can't find XML libraries while XML support is requested" >&2;}
38937
{ (exit 1); exit 1; }; }
38943
CFLAGS="$CFLAGS $XML_CFLAGS"
38948
# Check whether --with-mysql-prefix or --without-mysql-prefix was given.
38949
if test "${with_mysql_prefix+set}" = set; then
38950
withval="$with_mysql_prefix"
38951
mysql_prefix="$withval"
38956
# Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
38957
if test "${with_mysql_exec_prefix+set}" = set; then
38958
withval="$with_mysql_exec_prefix"
38959
mysql_exec_prefix="$withval"
38961
mysql_exec_prefix=""
38964
if test x$mysql_exec_prefix != x ; then
38965
mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
38966
if test x${MYSQL_CONFIG+set} != xset ; then
38967
MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
38970
if test x$mysql_prefix != x ; then
38971
mysql_args="$mysql_args --prefix=$mysql_prefix"
38972
if test x${MYSQL_CONFIG+set} != xset ; then
38973
MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
38978
# Extract the first word of "mysql_config", so it can be a program name with args.
38979
set dummy mysql_config; ac_word=$2
38980
echo "$as_me:$LINENO: checking for $ac_word" >&5
38981
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38982
if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
38983
echo $ECHO_N "(cached) $ECHO_C" >&6
38985
case $MYSQL_CONFIG in
38987
ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
38990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38991
for as_dir in $PATH
38994
test -z "$as_dir" && as_dir=.
38995
for ac_exec_ext in '' $ac_executable_extensions; do
38996
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38997
ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38998
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39004
test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
39008
MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
39010
if test -n "$MYSQL_CONFIG"; then
39011
echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
39012
echo "${ECHO_T}$MYSQL_CONFIG" >&6
39014
echo "$as_me:$LINENO: result: no" >&5
39015
echo "${ECHO_T}no" >&6
39018
echo "$as_me:$LINENO: checking for MYSQL" >&5
39019
echo $ECHO_N "checking for MYSQL... $ECHO_C" >&6
39021
if test "$MYSQL_CONFIG" = "no" ; then
39024
echo "$as_me:$LINENO: result: no" >&5
39025
echo "${ECHO_T}no" >&6
39026
{ { echo "$as_me:$LINENO: error: Can't find MySQL libraries while MySQL support is requested" >&5
39027
echo "$as_me: error: Can't find MySQL libraries while MySQL support is requested" >&2;}
39028
{ (exit 1); exit 1; }; }
39030
MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
39031
MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
39032
echo "$as_me:$LINENO: result: yes" >&5
39033
echo "${ECHO_T}yes" >&6
39034
default_shared_modules="$default_shared_modules pdb_mysql"
39039
CFLAGS="$CFLAGS $MYSQL_CFLAGS"
39044
# Check whether --with-pgsql-prefix or --without-pgsql-prefix was given.
39045
if test "${with_pgsql_prefix+set}" = set; then
39046
withval="$with_pgsql_prefix"
39047
pgsql_prefix="$withval"
39052
# Check whether --with-pgsql-exec-prefix or --without-pgsql-exec-prefix was given.
39053
if test "${with_pgsql_exec_prefix+set}" = set; then
39054
withval="$with_pgsql_exec_prefix"
39055
pgsql_exec_prefix="$withval"
39057
pgsql_exec_prefix=""
39060
if test x$pgsql_exec_prefix != x ; then
39061
if test x${PGSQL_CONFIG+set} != xset ; then
39062
PGSQL_CONFIG=$pgsql_exec_prefix/bin/pg_config
39065
if test x$pgsql_prefix != x ; then
39066
if test x${PGSQL_CONFIG+set} != xset ; then
39067
PGSQL_CONFIG=$pgsql_prefix/bin/pg_config
39072
# Extract the first word of "pg_config", so it can be a program name with args.
39073
set dummy pg_config; ac_word=$2
39074
echo "$as_me:$LINENO: checking for $ac_word" >&5
39075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39076
if test "${ac_cv_path_PGSQL_CONFIG+set}" = set; then
39077
echo $ECHO_N "(cached) $ECHO_C" >&6
39079
case $PGSQL_CONFIG in
39081
ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
39084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39085
as_dummy="$PATH:/usr/lib/postgresql/bin"
39086
for as_dir in $as_dummy
39089
test -z "$as_dir" && as_dir=.
39090
for ac_exec_ext in '' $ac_executable_extensions; do
39091
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39092
ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39093
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39099
test -z "$ac_cv_path_PGSQL_CONFIG" && ac_cv_path_PGSQL_CONFIG="no"
39103
PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
39105
if test -n "$PGSQL_CONFIG"; then
39106
echo "$as_me:$LINENO: result: $PGSQL_CONFIG" >&5
39107
echo "${ECHO_T}$PGSQL_CONFIG" >&6
39109
echo "$as_me:$LINENO: result: no" >&5
39110
echo "${ECHO_T}no" >&6
39113
echo "$as_me:$LINENO: checking for PGSQL" >&5
39114
echo $ECHO_N "checking for PGSQL... $ECHO_C" >&6
39116
if test "$PGSQL_CONFIG" = "no" ; then
39119
echo "$as_me:$LINENO: result: no" >&5
39120
echo "${ECHO_T}no" >&6
39123
PGSQL_CFLAGS=-I`$PGSQL_CONFIG --includedir`
39124
PGSQL_LIBS="-lpq -L`$PGSQL_CONFIG --libdir`"
39125
echo "$as_me:$LINENO: result: yes" >&5
39126
echo "${ECHO_T}yes" >&6
39127
default_shared_modules="$default_shared_modules pdb_pgsql"
39132
CFLAGS="$CFLAGS $PGSQL_CFLAGS"
39137
echo "Unknown module name \"$i\"! Exiting..."
39143
echo "$as_me:$LINENO: result: no" >&5
39144
echo "${ECHO_T}no" >&6
42235
echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nscd_nscd_flush_cache" >&5
42236
echo "${ECHO_T}$ac_cv_lib_ext_nscd_nscd_flush_cache" >&6
42237
if test $ac_cv_lib_ext_nscd_nscd_flush_cache = yes; then
42238
cat >>confdefs.h <<_ACEOF
42239
#define HAVE_NSCD_FLUSH_CACHE 1
42244
LIBS=$ac_check_lib_ext_save_LIBS
42246
if test $ac_cv_lib_ext_nscd = yes; then
42247
cat >>confdefs.h <<_ACEOF
42248
#define HAVE_LIBNSCD 1
42251
case "$NSCD_LIBS" in
42255
NSCD_LIBS="-lnscd $NSCD_LIBS"
42262
PASSDB_LIBS="$PASSDB_LIBS $NSCD_LIBS"
39148
42264
#################################################
39149
42265
# check for automount support