6753
cat >>confdefs.h <<\_ACEOF
6754
#define ETHR_INIT_MUTEX_IN_CHILD_AT_FORK 1
6760
7510
saved_cppflags=$CPPFLAGS
7511
CPPFLAGS="$CPPFLAGS $THR_DEFS"
7514
if test "${ac_cv_header_pthread_h+set}" = set; then
7515
echo "$as_me:$LINENO: checking for pthread.h" >&5
7516
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
7517
if test "${ac_cv_header_pthread_h+set}" = set; then
7518
echo $ECHO_N "(cached) $ECHO_C" >&6
7520
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7521
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
7523
# Is the header compilable?
7524
echo "$as_me:$LINENO: checking pthread.h usability" >&5
7525
echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
7526
cat >conftest.$ac_ext <<_ACEOF
7529
cat confdefs.h >>conftest.$ac_ext
7530
cat >>conftest.$ac_ext <<_ACEOF
7531
/* end confdefs.h. */
7532
$ac_includes_default
7533
#include <pthread.h>
7535
rm -f conftest.$ac_objext
7536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537
(eval $ac_compile) 2>conftest.er1
7539
grep -v '^ *+' conftest.er1 >conftest.err
7541
cat conftest.err >&5
7542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543
(exit $ac_status); } &&
7544
{ ac_try='test -z "$ac_c_werror_flag"
7545
|| test ! -s conftest.err'
7546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550
(exit $ac_status); }; } &&
7551
{ ac_try='test -s conftest.$ac_objext'
7552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556
(exit $ac_status); }; }; then
7557
ac_header_compiler=yes
7559
echo "$as_me: failed program was:" >&5
7560
sed 's/^/| /' conftest.$ac_ext >&5
7562
ac_header_compiler=no
7564
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7565
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7566
echo "${ECHO_T}$ac_header_compiler" >&6
7568
# Is the header present?
7569
echo "$as_me:$LINENO: checking pthread.h presence" >&5
7570
echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
7571
cat >conftest.$ac_ext <<_ACEOF
7574
cat confdefs.h >>conftest.$ac_ext
7575
cat >>conftest.$ac_ext <<_ACEOF
7576
/* end confdefs.h. */
7577
#include <pthread.h>
7579
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7580
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582
grep -v '^ *+' conftest.er1 >conftest.err
7584
cat conftest.err >&5
7585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586
(exit $ac_status); } >/dev/null; then
7587
if test -s conftest.err; then
7588
ac_cpp_err=$ac_c_preproc_warn_flag
7589
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7596
if test -z "$ac_cpp_err"; then
7597
ac_header_preproc=yes
7599
echo "$as_me: failed program was:" >&5
7600
sed 's/^/| /' conftest.$ac_ext >&5
7602
ac_header_preproc=no
7604
rm -f conftest.err conftest.$ac_ext
7605
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7606
echo "${ECHO_T}$ac_header_preproc" >&6
7608
# So? What about this header?
7609
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7611
{ echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7612
echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7613
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7614
echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7615
ac_header_preproc=yes
7618
{ echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7619
echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7620
{ echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
7621
echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
7622
{ echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7623
echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7624
{ echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
7625
echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
7626
{ echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7627
echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7628
{ echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7629
echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7632
## ------------------------------------------ ##
7633
## Report this to the AC_PACKAGE_NAME lists. ##
7634
## ------------------------------------------ ##
7637
sed "s/^/$as_me: WARNING: /" >&2
7640
echo "$as_me:$LINENO: checking for pthread.h" >&5
7641
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
7642
if test "${ac_cv_header_pthread_h+set}" = set; then
7643
echo $ECHO_N "(cached) $ECHO_C" >&6
7645
ac_cv_header_pthread_h=$ac_header_preproc
7647
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7648
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
7651
if test $ac_cv_header_pthread_h = yes; then
7653
cat >>confdefs.h <<\_ACEOF
7654
#define HAVE_PTHREAD_H 1
7661
if test "${ac_cv_header_pthread_mit_pthread_h+set}" = set; then
7662
echo "$as_me:$LINENO: checking for pthread/mit/pthread.h" >&5
7663
echo $ECHO_N "checking for pthread/mit/pthread.h... $ECHO_C" >&6
7664
if test "${ac_cv_header_pthread_mit_pthread_h+set}" = set; then
7665
echo $ECHO_N "(cached) $ECHO_C" >&6
7667
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_mit_pthread_h" >&5
7668
echo "${ECHO_T}$ac_cv_header_pthread_mit_pthread_h" >&6
7670
# Is the header compilable?
7671
echo "$as_me:$LINENO: checking pthread/mit/pthread.h usability" >&5
7672
echo $ECHO_N "checking pthread/mit/pthread.h usability... $ECHO_C" >&6
7673
cat >conftest.$ac_ext <<_ACEOF
7676
cat confdefs.h >>conftest.$ac_ext
7677
cat >>conftest.$ac_ext <<_ACEOF
7678
/* end confdefs.h. */
7679
$ac_includes_default
7680
#include <pthread/mit/pthread.h>
7682
rm -f conftest.$ac_objext
7683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684
(eval $ac_compile) 2>conftest.er1
7686
grep -v '^ *+' conftest.er1 >conftest.err
7688
cat conftest.err >&5
7689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690
(exit $ac_status); } &&
7691
{ ac_try='test -z "$ac_c_werror_flag"
7692
|| test ! -s conftest.err'
7693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697
(exit $ac_status); }; } &&
7698
{ ac_try='test -s conftest.$ac_objext'
7699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703
(exit $ac_status); }; }; then
7704
ac_header_compiler=yes
7706
echo "$as_me: failed program was:" >&5
7707
sed 's/^/| /' conftest.$ac_ext >&5
7709
ac_header_compiler=no
7711
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7713
echo "${ECHO_T}$ac_header_compiler" >&6
7715
# Is the header present?
7716
echo "$as_me:$LINENO: checking pthread/mit/pthread.h presence" >&5
7717
echo $ECHO_N "checking pthread/mit/pthread.h presence... $ECHO_C" >&6
7718
cat >conftest.$ac_ext <<_ACEOF
7721
cat confdefs.h >>conftest.$ac_ext
7722
cat >>conftest.$ac_ext <<_ACEOF
7723
/* end confdefs.h. */
7724
#include <pthread/mit/pthread.h>
7726
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7729
grep -v '^ *+' conftest.er1 >conftest.err
7731
cat conftest.err >&5
7732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733
(exit $ac_status); } >/dev/null; then
7734
if test -s conftest.err; then
7735
ac_cpp_err=$ac_c_preproc_warn_flag
7736
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7743
if test -z "$ac_cpp_err"; then
7744
ac_header_preproc=yes
7746
echo "$as_me: failed program was:" >&5
7747
sed 's/^/| /' conftest.$ac_ext >&5
7749
ac_header_preproc=no
7751
rm -f conftest.err conftest.$ac_ext
7752
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7753
echo "${ECHO_T}$ac_header_preproc" >&6
7755
# So? What about this header?
7756
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7758
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7759
echo "$as_me: WARNING: pthread/mit/pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7760
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: proceeding with the compiler's result" >&5
7761
echo "$as_me: WARNING: pthread/mit/pthread.h: proceeding with the compiler's result" >&2;}
7762
ac_header_preproc=yes
7765
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: present but cannot be compiled" >&5
7766
echo "$as_me: WARNING: pthread/mit/pthread.h: present but cannot be compiled" >&2;}
7767
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: check for missing prerequisite headers?" >&5
7768
echo "$as_me: WARNING: pthread/mit/pthread.h: check for missing prerequisite headers?" >&2;}
7769
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: see the Autoconf documentation" >&5
7770
echo "$as_me: WARNING: pthread/mit/pthread.h: see the Autoconf documentation" >&2;}
7771
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: section \"Present But Cannot Be Compiled\"" >&5
7772
echo "$as_me: WARNING: pthread/mit/pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
7773
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: proceeding with the preprocessor's result" >&5
7774
echo "$as_me: WARNING: pthread/mit/pthread.h: proceeding with the preprocessor's result" >&2;}
7775
{ echo "$as_me:$LINENO: WARNING: pthread/mit/pthread.h: in the future, the compiler will take precedence" >&5
7776
echo "$as_me: WARNING: pthread/mit/pthread.h: in the future, the compiler will take precedence" >&2;}
7779
## ------------------------------------------ ##
7780
## Report this to the AC_PACKAGE_NAME lists. ##
7781
## ------------------------------------------ ##
7784
sed "s/^/$as_me: WARNING: /" >&2
7787
echo "$as_me:$LINENO: checking for pthread/mit/pthread.h" >&5
7788
echo $ECHO_N "checking for pthread/mit/pthread.h... $ECHO_C" >&6
7789
if test "${ac_cv_header_pthread_mit_pthread_h+set}" = set; then
7790
echo $ECHO_N "(cached) $ECHO_C" >&6
7792
ac_cv_header_pthread_mit_pthread_h=$ac_header_preproc
7794
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_mit_pthread_h" >&5
7795
echo "${ECHO_T}$ac_cv_header_pthread_mit_pthread_h" >&6
7798
if test $ac_cv_header_pthread_mit_pthread_h = yes; then
7801
cat >>confdefs.h <<\_ACEOF
7802
#define HAVE_MIT_PTHREAD_H 1
7809
CPPFLAGS=$saved_cppflags
7817
ERTS_INTERNAL_X_LIBS=
7819
echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
7820
echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
7821
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
7822
echo $ECHO_N "(cached) $ECHO_C" >&6
7824
ac_check_lib_save_LIBS=$LIBS
7825
LIBS="-lkstat $LIBS"
7826
cat >conftest.$ac_ext <<_ACEOF
7829
cat confdefs.h >>conftest.$ac_ext
7830
cat >>conftest.$ac_ext <<_ACEOF
7831
/* end confdefs.h. */
7833
/* Override any gcc2 internal prototype to avoid an error. */
7837
/* We use char because int might match the return type of a gcc2
7838
builtin and then its argument prototype would still apply. */
7848
rm -f conftest.$ac_objext conftest$ac_exeext
7849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850
(eval $ac_link) 2>conftest.er1
7852
grep -v '^ *+' conftest.er1 >conftest.err
7854
cat conftest.err >&5
7855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856
(exit $ac_status); } &&
7857
{ ac_try='test -z "$ac_c_werror_flag"
7858
|| test ! -s conftest.err'
7859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863
(exit $ac_status); }; } &&
7864
{ ac_try='test -s conftest$ac_exeext'
7865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869
(exit $ac_status); }; }; then
7870
ac_cv_lib_kstat_kstat_open=yes
7872
echo "$as_me: failed program was:" >&5
7873
sed 's/^/| /' conftest.$ac_ext >&5
7875
ac_cv_lib_kstat_kstat_open=no
7877
rm -f conftest.err conftest.$ac_objext \
7878
conftest$ac_exeext conftest.$ac_ext
7879
LIBS=$ac_check_lib_save_LIBS
7881
echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
7882
echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
7883
if test $ac_cv_lib_kstat_kstat_open = yes; then
7885
cat >>confdefs.h <<\_ACEOF
7886
#define HAVE_KSTAT 1
7889
ERTS_INTERNAL_X_LIBS="$ERTS_INTERNAL_X_LIBS -lkstat"
7897
ethr_have_native_atomics=no
7898
ethr_have_native_spinlock=no
7899
ETHR_THR_LIB_BASE="$THR_LIB_NAME"
7900
ETHR_THR_LIB_BASE_TYPE="$THR_LIB_TYPE"
7901
ETHR_DEFS="$THR_DEFS"
7902
ETHR_X_LIBS="$THR_LIBS $ERTS_INTERNAL_X_LIBS"
7906
ethr_modified_default_stack_size=
7908
ethr_lib_name=ethread
7910
case "$THR_LIB_NAME" in
7913
ETHR_THR_LIB_BASE_DIR=win
7914
# * _WIN32_WINNT >= 0x0400 is needed for
7915
# TryEnterCriticalSection
7916
# * _WIN32_WINNT >= 0x0403 is needed for
7917
# InitializeCriticalSectionAndSpinCount
7918
# The ethread lib will refuse to build if _WIN32_WINNT < 0x0403.
7920
# -D_WIN32_WINNT should have been defined in $CPPFLAGS; fetch it
7921
# and save it in ETHR_DEFS.
7922
found_win32_winnt=no
7923
for cppflag in $CPPFLAGS; do
7926
ETHR_DEFS="$ETHR_DEFS $cppflag"
7929
ETHR_DEFS="$ETHR_DEFS $cppflag"
7930
found_win32_winnt=yes
7936
if test $found_win32_winnt = no; then
7937
{ { echo "$as_me:$LINENO: error: -D_WIN32_WINNT missing in CPPFLAGS" >&5
7938
echo "$as_me: error: -D_WIN32_WINNT missing in CPPFLAGS" >&2;}
7939
{ (exit 1); exit 1; }; }
7943
cat >>confdefs.h <<\_ACEOF
7944
#define ETHR_WIN32_THREADS 1
7949
echo "$as_me:$LINENO: checking for _InterlockedCompareExchange64()" >&5
7950
echo $ECHO_N "checking for _InterlockedCompareExchange64()... $ECHO_C" >&6
7951
cat >conftest.$ac_ext <<_ACEOF
7954
cat confdefs.h >>conftest.$ac_ext
7955
cat >>conftest.$ac_ext <<_ACEOF
7956
/* end confdefs.h. */
7958
#define WIN32_LEAN_AND_MEAN
7959
#include <windows.h>
7965
volatile __int64 *var;
7966
_InterlockedCompareExchange64(var, (__int64) 1, (__int64) 0);
7973
rm -f conftest.$ac_objext conftest$ac_exeext
7974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975
(eval $ac_link) 2>conftest.er1
7977
grep -v '^ *+' conftest.er1 >conftest.err
7979
cat conftest.err >&5
7980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981
(exit $ac_status); } &&
7982
{ ac_try='test -z "$ac_c_werror_flag"
7983
|| test ! -s conftest.err'
7984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988
(exit $ac_status); }; } &&
7989
{ ac_try='test -s conftest$ac_exeext'
7990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994
(exit $ac_status); }; }; then
7997
echo "$as_me: failed program was:" >&5
7998
sed 's/^/| /' conftest.$ac_ext >&5
8001
rm -f conftest.err conftest.$ac_objext \
8002
conftest$ac_exeext conftest.$ac_ext
8003
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8004
echo "${ECHO_T}$have_ilckd" >&6
8005
test $have_ilckd = yes &&
8006
cat >>confdefs.h <<\_ACEOF
8007
#define ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE64 1
8011
echo "$as_me:$LINENO: checking for void *" >&5
8012
echo $ECHO_N "checking for void *... $ECHO_C" >&6
8013
if test "${ac_cv_type_void_p+set}" = set; then
8014
echo $ECHO_N "(cached) $ECHO_C" >&6
8016
cat >conftest.$ac_ext <<_ACEOF
8019
cat confdefs.h >>conftest.$ac_ext
8020
cat >>conftest.$ac_ext <<_ACEOF
8021
/* end confdefs.h. */
8022
$ac_includes_default
8028
if (sizeof (void *))
8034
rm -f conftest.$ac_objext
8035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036
(eval $ac_compile) 2>conftest.er1
8038
grep -v '^ *+' conftest.er1 >conftest.err
8040
cat conftest.err >&5
8041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042
(exit $ac_status); } &&
8043
{ ac_try='test -z "$ac_c_werror_flag"
8044
|| test ! -s conftest.err'
8045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049
(exit $ac_status); }; } &&
8050
{ ac_try='test -s conftest.$ac_objext'
8051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055
(exit $ac_status); }; }; then
8056
ac_cv_type_void_p=yes
8058
echo "$as_me: failed program was:" >&5
8059
sed 's/^/| /' conftest.$ac_ext >&5
8061
ac_cv_type_void_p=no
8063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8065
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8066
echo "${ECHO_T}$ac_cv_type_void_p" >&6
8068
echo "$as_me:$LINENO: checking size of void *" >&5
8069
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
8070
if test "${ac_cv_sizeof_void_p+set}" = set; then
8071
echo $ECHO_N "(cached) $ECHO_C" >&6
8073
if test "$ac_cv_type_void_p" = yes; then
8074
# The cast to unsigned long works around a bug in the HP C Compiler
8075
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8076
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8077
# This bug is HP SR number 8606223364.
8078
if test "$cross_compiling" = yes; then
8079
# Depending upon the size, compute the lo and hi bounds.
8080
cat >conftest.$ac_ext <<_ACEOF
8083
cat confdefs.h >>conftest.$ac_ext
8084
cat >>conftest.$ac_ext <<_ACEOF
8085
/* end confdefs.h. */
8086
$ac_includes_default
8090
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
8097
rm -f conftest.$ac_objext
8098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099
(eval $ac_compile) 2>conftest.er1
8101
grep -v '^ *+' conftest.er1 >conftest.err
8103
cat conftest.err >&5
8104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105
(exit $ac_status); } &&
8106
{ ac_try='test -z "$ac_c_werror_flag"
8107
|| test ! -s conftest.err'
8108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
(exit $ac_status); }; } &&
8113
{ ac_try='test -s conftest.$ac_objext'
8114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118
(exit $ac_status); }; }; then
8121
cat >conftest.$ac_ext <<_ACEOF
8124
cat confdefs.h >>conftest.$ac_ext
8125
cat >>conftest.$ac_ext <<_ACEOF
8126
/* end confdefs.h. */
8127
$ac_includes_default
8131
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8138
rm -f conftest.$ac_objext
8139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140
(eval $ac_compile) 2>conftest.er1
8142
grep -v '^ *+' conftest.er1 >conftest.err
8144
cat conftest.err >&5
8145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146
(exit $ac_status); } &&
8147
{ ac_try='test -z "$ac_c_werror_flag"
8148
|| test ! -s conftest.err'
8149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153
(exit $ac_status); }; } &&
8154
{ ac_try='test -s conftest.$ac_objext'
8155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159
(exit $ac_status); }; }; then
8160
ac_hi=$ac_mid; break
8162
echo "$as_me: failed program was:" >&5
8163
sed 's/^/| /' conftest.$ac_ext >&5
8165
ac_lo=`expr $ac_mid + 1`
8166
if test $ac_lo -le $ac_mid; then
8170
ac_mid=`expr 2 '*' $ac_mid + 1`
8172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8175
echo "$as_me: failed program was:" >&5
8176
sed 's/^/| /' conftest.$ac_ext >&5
8178
cat >conftest.$ac_ext <<_ACEOF
8181
cat confdefs.h >>conftest.$ac_ext
8182
cat >>conftest.$ac_ext <<_ACEOF
8183
/* end confdefs.h. */
8184
$ac_includes_default
8188
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
8195
rm -f conftest.$ac_objext
8196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8197
(eval $ac_compile) 2>conftest.er1
8199
grep -v '^ *+' conftest.er1 >conftest.err
8201
cat conftest.err >&5
8202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203
(exit $ac_status); } &&
8204
{ ac_try='test -z "$ac_c_werror_flag"
8205
|| test ! -s conftest.err'
8206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210
(exit $ac_status); }; } &&
8211
{ ac_try='test -s conftest.$ac_objext'
8212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
(exit $ac_status); }; }; then
8219
cat >conftest.$ac_ext <<_ACEOF
8222
cat confdefs.h >>conftest.$ac_ext
8223
cat >>conftest.$ac_ext <<_ACEOF
8224
/* end confdefs.h. */
8225
$ac_includes_default
8229
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
8236
rm -f conftest.$ac_objext
8237
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238
(eval $ac_compile) 2>conftest.er1
8240
grep -v '^ *+' conftest.er1 >conftest.err
8242
cat conftest.err >&5
8243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244
(exit $ac_status); } &&
8245
{ ac_try='test -z "$ac_c_werror_flag"
8246
|| test ! -s conftest.err'
8247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251
(exit $ac_status); }; } &&
8252
{ ac_try='test -s conftest.$ac_objext'
8253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257
(exit $ac_status); }; }; then
8258
ac_lo=$ac_mid; break
8260
echo "$as_me: failed program was:" >&5
8261
sed 's/^/| /' conftest.$ac_ext >&5
8263
ac_hi=`expr '(' $ac_mid ')' - 1`
8264
if test $ac_mid -le $ac_hi; then
8268
ac_mid=`expr 2 '*' $ac_mid`
8270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8273
echo "$as_me: failed program was:" >&5
8274
sed 's/^/| /' conftest.$ac_ext >&5
8278
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8281
# Binary search between lo and hi bounds.
8282
while test "x$ac_lo" != "x$ac_hi"; do
8283
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8284
cat >conftest.$ac_ext <<_ACEOF
8287
cat confdefs.h >>conftest.$ac_ext
8288
cat >>conftest.$ac_ext <<_ACEOF
8289
/* end confdefs.h. */
8290
$ac_includes_default
8294
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8301
rm -f conftest.$ac_objext
8302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303
(eval $ac_compile) 2>conftest.er1
8305
grep -v '^ *+' conftest.er1 >conftest.err
8307
cat conftest.err >&5
8308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309
(exit $ac_status); } &&
8310
{ ac_try='test -z "$ac_c_werror_flag"
8311
|| test ! -s conftest.err'
8312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316
(exit $ac_status); }; } &&
8317
{ ac_try='test -s conftest.$ac_objext'
8318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322
(exit $ac_status); }; }; then
8325
echo "$as_me: failed program was:" >&5
8326
sed 's/^/| /' conftest.$ac_ext >&5
8328
ac_lo=`expr '(' $ac_mid ')' + 1`
8330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8333
?*) ac_cv_sizeof_void_p=$ac_lo;;
8334
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8335
See \`config.log' for more details." >&5
8336
echo "$as_me: error: cannot compute sizeof (void *), 77
8337
See \`config.log' for more details." >&2;}
8338
{ (exit 1); exit 1; }; } ;;
8341
if test "$cross_compiling" = yes; then
8342
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8343
See \`config.log' for more details." >&5
8344
echo "$as_me: error: cannot run test program while cross compiling
8345
See \`config.log' for more details." >&2;}
8346
{ (exit 1); exit 1; }; }
8348
cat >conftest.$ac_ext <<_ACEOF
8351
cat confdefs.h >>conftest.$ac_ext
8352
cat >>conftest.$ac_ext <<_ACEOF
8353
/* end confdefs.h. */
8354
$ac_includes_default
8355
long longval () { return (long) (sizeof (void *)); }
8356
unsigned long ulongval () { return (long) (sizeof (void *)); }
8363
FILE *f = fopen ("conftest.val", "w");
8366
if (((long) (sizeof (void *))) < 0)
8368
long i = longval ();
8369
if (i != ((long) (sizeof (void *))))
8371
fprintf (f, "%ld\n", i);
8375
unsigned long i = ulongval ();
8376
if (i != ((long) (sizeof (void *))))
8378
fprintf (f, "%lu\n", i);
8380
exit (ferror (f) || fclose (f) != 0);
8386
rm -f conftest$ac_exeext
8387
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388
(eval $ac_link) 2>&5
8390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396
(exit $ac_status); }; }; then
8397
ac_cv_sizeof_void_p=`cat conftest.val`
8399
echo "$as_me: program exited with status $ac_status" >&5
8400
echo "$as_me: failed program was:" >&5
8401
sed 's/^/| /' conftest.$ac_ext >&5
8404
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8405
See \`config.log' for more details." >&5
8406
echo "$as_me: error: cannot compute sizeof (void *), 77
8407
See \`config.log' for more details." >&2;}
8408
{ (exit 1); exit 1; }; }
8410
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8415
ac_cv_sizeof_void_p=0
8418
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8419
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
8420
cat >>confdefs.h <<_ACEOF
8421
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8425
case "$ac_cv_sizeof_void_p-$have_ilckd" in
8427
ethr_have_native_atomics=no
8428
ethr_have_native_spinlock=no;;
8430
ethr_have_native_atomics=yes
8431
ethr_have_native_spinlock=yes;;
8435
echo "$as_me:$LINENO: checking for _InterlockedDecrement64()" >&5
8436
echo $ECHO_N "checking for _InterlockedDecrement64()... $ECHO_C" >&6
8437
cat >conftest.$ac_ext <<_ACEOF
8440
cat confdefs.h >>conftest.$ac_ext
8441
cat >>conftest.$ac_ext <<_ACEOF
8442
/* end confdefs.h. */
8444
#define WIN32_LEAN_AND_MEAN
8445
#include <windows.h>
8451
volatile __int64 *var;
8452
_InterlockedDecrement64(var);
8459
rm -f conftest.$ac_objext conftest$ac_exeext
8460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461
(eval $ac_link) 2>conftest.er1
8463
grep -v '^ *+' conftest.er1 >conftest.err
8465
cat conftest.err >&5
8466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467
(exit $ac_status); } &&
8468
{ ac_try='test -z "$ac_c_werror_flag"
8469
|| test ! -s conftest.err'
8470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474
(exit $ac_status); }; } &&
8475
{ ac_try='test -s conftest$ac_exeext'
8476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
(exit $ac_status); }; }; then
8483
echo "$as_me: failed program was:" >&5
8484
sed 's/^/| /' conftest.$ac_ext >&5
8487
rm -f conftest.err conftest.$ac_objext \
8488
conftest$ac_exeext conftest.$ac_ext
8489
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8490
echo "${ECHO_T}$have_ilckd" >&6
8491
test $have_ilckd = yes &&
8492
cat >>confdefs.h <<\_ACEOF
8493
#define ETHR_HAVE__INTERLOCKEDDECREMENT64 1
8498
echo "$as_me:$LINENO: checking for _InterlockedIncrement64()" >&5
8499
echo $ECHO_N "checking for _InterlockedIncrement64()... $ECHO_C" >&6
8500
cat >conftest.$ac_ext <<_ACEOF
8503
cat confdefs.h >>conftest.$ac_ext
8504
cat >>conftest.$ac_ext <<_ACEOF
8505
/* end confdefs.h. */
8507
#define WIN32_LEAN_AND_MEAN
8508
#include <windows.h>
8514
volatile __int64 *var;
8515
_InterlockedIncrement64(var);
8522
rm -f conftest.$ac_objext conftest$ac_exeext
8523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524
(eval $ac_link) 2>conftest.er1
8526
grep -v '^ *+' conftest.er1 >conftest.err
8528
cat conftest.err >&5
8529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530
(exit $ac_status); } &&
8531
{ ac_try='test -z "$ac_c_werror_flag"
8532
|| test ! -s conftest.err'
8533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537
(exit $ac_status); }; } &&
8538
{ ac_try='test -s conftest$ac_exeext'
8539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543
(exit $ac_status); }; }; then
8546
echo "$as_me: failed program was:" >&5
8547
sed 's/^/| /' conftest.$ac_ext >&5
8550
rm -f conftest.err conftest.$ac_objext \
8551
conftest$ac_exeext conftest.$ac_ext
8552
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8553
echo "${ECHO_T}$have_ilckd" >&6
8554
test $have_ilckd = yes &&
8555
cat >>confdefs.h <<\_ACEOF
8556
#define ETHR_HAVE__INTERLOCKEDINCREMENT64 1
8561
echo "$as_me:$LINENO: checking for _InterlockedExchangeAdd64()" >&5
8562
echo $ECHO_N "checking for _InterlockedExchangeAdd64()... $ECHO_C" >&6
8563
cat >conftest.$ac_ext <<_ACEOF
8566
cat confdefs.h >>conftest.$ac_ext
8567
cat >>conftest.$ac_ext <<_ACEOF
8568
/* end confdefs.h. */
8570
#define WIN32_LEAN_AND_MEAN
8571
#include <windows.h>
8577
volatile __int64 *var;
8578
_InterlockedExchangeAdd64(var, (__int64) 1);
8585
rm -f conftest.$ac_objext conftest$ac_exeext
8586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587
(eval $ac_link) 2>conftest.er1
8589
grep -v '^ *+' conftest.er1 >conftest.err
8591
cat conftest.err >&5
8592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
(exit $ac_status); } &&
8594
{ ac_try='test -z "$ac_c_werror_flag"
8595
|| test ! -s conftest.err'
8596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600
(exit $ac_status); }; } &&
8601
{ ac_try='test -s conftest$ac_exeext'
8602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606
(exit $ac_status); }; }; then
8609
echo "$as_me: failed program was:" >&5
8610
sed 's/^/| /' conftest.$ac_ext >&5
8613
rm -f conftest.err conftest.$ac_objext \
8614
conftest$ac_exeext conftest.$ac_ext
8615
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8616
echo "${ECHO_T}$have_ilckd" >&6
8617
test $have_ilckd = yes &&
8618
cat >>confdefs.h <<\_ACEOF
8619
#define ETHR_HAVE__INTERLOCKEDEXCHANGEADD64 1
8624
echo "$as_me:$LINENO: checking for _InterlockedExchange64()" >&5
8625
echo $ECHO_N "checking for _InterlockedExchange64()... $ECHO_C" >&6
8626
cat >conftest.$ac_ext <<_ACEOF
8629
cat confdefs.h >>conftest.$ac_ext
8630
cat >>conftest.$ac_ext <<_ACEOF
8631
/* end confdefs.h. */
8633
#define WIN32_LEAN_AND_MEAN
8634
#include <windows.h>
8640
volatile __int64 *var;
8641
_InterlockedExchange64(var, (__int64) 1);
8648
rm -f conftest.$ac_objext conftest$ac_exeext
8649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650
(eval $ac_link) 2>conftest.er1
8652
grep -v '^ *+' conftest.er1 >conftest.err
8654
cat conftest.err >&5
8655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
(exit $ac_status); } &&
8657
{ ac_try='test -z "$ac_c_werror_flag"
8658
|| test ! -s conftest.err'
8659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663
(exit $ac_status); }; } &&
8664
{ ac_try='test -s conftest$ac_exeext'
8665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669
(exit $ac_status); }; }; then
8672
echo "$as_me: failed program was:" >&5
8673
sed 's/^/| /' conftest.$ac_ext >&5
8676
rm -f conftest.err conftest.$ac_objext \
8677
conftest$ac_exeext conftest.$ac_ext
8678
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8679
echo "${ECHO_T}$have_ilckd" >&6
8680
test $have_ilckd = yes &&
8681
cat >>confdefs.h <<\_ACEOF
8682
#define ETHR_HAVE__INTERLOCKEDEXCHANGE64 1
8687
echo "$as_me:$LINENO: checking for _InterlockedAnd64()" >&5
8688
echo $ECHO_N "checking for _InterlockedAnd64()... $ECHO_C" >&6
8689
cat >conftest.$ac_ext <<_ACEOF
8692
cat confdefs.h >>conftest.$ac_ext
8693
cat >>conftest.$ac_ext <<_ACEOF
8694
/* end confdefs.h. */
8696
#define WIN32_LEAN_AND_MEAN
8697
#include <windows.h>
8703
volatile __int64 *var;
8704
_InterlockedAnd64(var, (__int64) 1);
8711
rm -f conftest.$ac_objext conftest$ac_exeext
8712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713
(eval $ac_link) 2>conftest.er1
8715
grep -v '^ *+' conftest.er1 >conftest.err
8717
cat conftest.err >&5
8718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719
(exit $ac_status); } &&
8720
{ ac_try='test -z "$ac_c_werror_flag"
8721
|| test ! -s conftest.err'
8722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726
(exit $ac_status); }; } &&
8727
{ ac_try='test -s conftest$ac_exeext'
8728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732
(exit $ac_status); }; }; then
8735
echo "$as_me: failed program was:" >&5
8736
sed 's/^/| /' conftest.$ac_ext >&5
8739
rm -f conftest.err conftest.$ac_objext \
8740
conftest$ac_exeext conftest.$ac_ext
8741
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8742
echo "${ECHO_T}$have_ilckd" >&6
8743
test $have_ilckd = yes &&
8744
cat >>confdefs.h <<\_ACEOF
8745
#define ETHR_HAVE__INTERLOCKEDAND64 1
8750
echo "$as_me:$LINENO: checking for _InterlockedOr64()" >&5
8751
echo $ECHO_N "checking for _InterlockedOr64()... $ECHO_C" >&6
8752
cat >conftest.$ac_ext <<_ACEOF
8755
cat confdefs.h >>conftest.$ac_ext
8756
cat >>conftest.$ac_ext <<_ACEOF
8757
/* end confdefs.h. */
8759
#define WIN32_LEAN_AND_MEAN
8760
#include <windows.h>
8766
volatile __int64 *var;
8767
_InterlockedOr64(var, (__int64) 1);
8774
rm -f conftest.$ac_objext conftest$ac_exeext
8775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776
(eval $ac_link) 2>conftest.er1
8778
grep -v '^ *+' conftest.er1 >conftest.err
8780
cat conftest.err >&5
8781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782
(exit $ac_status); } &&
8783
{ ac_try='test -z "$ac_c_werror_flag"
8784
|| test ! -s conftest.err'
8785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789
(exit $ac_status); }; } &&
8790
{ ac_try='test -s conftest$ac_exeext'
8791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795
(exit $ac_status); }; }; then
8798
echo "$as_me: failed program was:" >&5
8799
sed 's/^/| /' conftest.$ac_ext >&5
8802
rm -f conftest.err conftest.$ac_objext \
8803
conftest$ac_exeext conftest.$ac_ext
8804
echo "$as_me:$LINENO: result: $have_ilckd" >&5
8805
echo "${ECHO_T}$have_ilckd" >&6
8806
test $have_ilckd = yes &&
8807
cat >>confdefs.h <<\_ACEOF
8808
#define ETHR_HAVE__INTERLOCKEDOR64 1
8815
ETHR_THR_LIB_BASE_DIR=pthread
8817
cat >>confdefs.h <<\_ACEOF
8818
#define ETHR_PTHREADS 1
8823
# The default stack size is insufficient for our needs
8824
# on OpenBSD. We increase it to 256 kilo words.
8825
ethr_modified_default_stack_size=256;;
8827
ETHR_DEFS="$ETHR_DEFS -D_GNU_SOURCE"
8829
if test X$cross_compiling = Xyes; then
8830
case X$erl_xcomp_linux_usable_sigusrx in
8831
X) usable_sigusrx=cross;;
8832
Xyes|Xno) usable_sigusrx=$erl_xcomp_linux_usable_sigusrx;;
8833
*) { { echo "$as_me:$LINENO: error: Bad erl_xcomp_linux_usable_sigusrx value: $erl_xcomp_linux_usable_sigusrx" >&5
8834
echo "$as_me: error: Bad erl_xcomp_linux_usable_sigusrx value: $erl_xcomp_linux_usable_sigusrx" >&2;}
8835
{ (exit 1); exit 1; }; };;
8837
case X$erl_xcomp_linux_usable_sigaltstack in
8838
X) usable_sigaltstack=cross;;
8839
Xyes|Xno) usable_sigaltstack=$erl_xcomp_linux_usable_sigaltstack;;
8840
*) { { echo "$as_me:$LINENO: error: Bad erl_xcomp_linux_usable_sigaltstack value: $erl_xcomp_linux_usable_sigaltstack" >&5
8841
echo "$as_me: error: Bad erl_xcomp_linux_usable_sigaltstack value: $erl_xcomp_linux_usable_sigaltstack" >&2;}
8842
{ (exit 1); exit 1; }; };;
8845
# FIXME: Test for actual problems instead of kernel versions
8846
linux_kernel_vsn_=`uname -r`
8847
case $linux_kernel_vsn_ in
8848
[0-1].*|2.[0-1]|2.[0-1].*)
8850
usable_sigaltstack=no;;
8853
usable_sigaltstack=no;;
8856
usable_sigaltstack=yes;;
8860
echo "$as_me:$LINENO: checking if SIGUSR1 and SIGUSR2 can be used" >&5
8861
echo $ECHO_N "checking if SIGUSR1 and SIGUSR2 can be used... $ECHO_C" >&6
8862
echo "$as_me:$LINENO: result: $usable_sigusrx" >&5
8863
echo "${ECHO_T}$usable_sigusrx" >&6
8864
if test $usable_sigusrx = cross; then
8866
{ echo "$as_me:$LINENO: WARNING: result yes guessed because of cross compilation" >&5
8867
echo "$as_me: WARNING: result yes guessed because of cross compilation" >&2;}
8869
if test $usable_sigusrx = no; then
8870
ETHR_DEFS="$ETHR_DEFS -DETHR_UNUSABLE_SIGUSRX"
8873
echo "$as_me:$LINENO: checking if sigaltstack can be used" >&5
8874
echo $ECHO_N "checking if sigaltstack can be used... $ECHO_C" >&6
8875
echo "$as_me:$LINENO: result: $usable_sigaltstack" >&5
8876
echo "${ECHO_T}$usable_sigaltstack" >&6
8877
if test $usable_sigaltstack = cross; then
8878
usable_sigaltstack=yes
8879
{ echo "$as_me:$LINENO: WARNING: result yes guessed because of cross compilation" >&5
8880
echo "$as_me: WARNING: result yes guessed because of cross compilation" >&2;}
8882
if test $usable_sigaltstack = no; then
8883
ETHR_DEFS="$ETHR_DEFS -DETHR_UNUSABLE_SIGALTSTACK"
8889
saved_cppflags="$CPPFLAGS"
6761
8890
CPPFLAGS="$CPPFLAGS $ETHR_DEFS"
6764
8893
LIBS="$LIBS $ETHR_X_LIBS"
6769
8896
if test "${ac_cv_header_pthread_h+set}" = set; then
6770
8897
echo "$as_me:$LINENO: checking for pthread.h" >&5
6771
8898
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
7661
linux*) # Writers may get starved
7662
# TODO: write a test that tests the implementation
7665
echo "$as_me:$LINENO: checking for pthread_rwlock_init" >&5
9650
have_librt_sched_yield=no
9651
echo "$as_me:$LINENO: checking for sched_yield" >&5
9652
echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
9653
if test "${ac_cv_func_sched_yield+set}" = set; then
9654
echo $ECHO_N "(cached) $ECHO_C" >&6
9656
cat >conftest.$ac_ext <<_ACEOF
9659
cat confdefs.h >>conftest.$ac_ext
9660
cat >>conftest.$ac_ext <<_ACEOF
9661
/* end confdefs.h. */
9662
/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
9663
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9664
#define sched_yield innocuous_sched_yield
9666
/* System header to define __stub macros and hopefully few prototypes,
9667
which can conflict with char sched_yield (); below.
9668
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669
<limits.h> exists even on freestanding compilers. */
9672
# include <limits.h>
9674
# include <assert.h>
9679
/* Override any gcc2 internal prototype to avoid an error. */
9684
/* We use char because int might match the return type of a gcc2
9685
builtin and then its argument prototype would still apply. */
9686
char sched_yield ();
9687
/* The GNU C library defines this for functions which it implements
9688
to always fail with ENOSYS. Some functions are actually named
9689
something starting with __ and the normal name is an alias. */
9690
#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
9693
char (*f) () = sched_yield;
9702
return f != sched_yield;
9707
rm -f conftest.$ac_objext conftest$ac_exeext
9708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709
(eval $ac_link) 2>conftest.er1
9711
grep -v '^ *+' conftest.er1 >conftest.err
9713
cat conftest.err >&5
9714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715
(exit $ac_status); } &&
9716
{ ac_try='test -z "$ac_c_werror_flag"
9717
|| test ! -s conftest.err'
9718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722
(exit $ac_status); }; } &&
9723
{ ac_try='test -s conftest$ac_exeext'
9724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728
(exit $ac_status); }; }; then
9729
ac_cv_func_sched_yield=yes
9731
echo "$as_me: failed program was:" >&5
9732
sed 's/^/| /' conftest.$ac_ext >&5
9734
ac_cv_func_sched_yield=no
9736
rm -f conftest.err conftest.$ac_objext \
9737
conftest$ac_exeext conftest.$ac_ext
9739
echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
9740
echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
9741
if test $ac_cv_func_sched_yield = yes; then
9742
have_sched_yield=yes
9745
if test $have_sched_yield = no; then
9746
echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
9747
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
9748
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
9749
echo $ECHO_N "(cached) $ECHO_C" >&6
9751
ac_check_lib_save_LIBS=$LIBS
9753
cat >conftest.$ac_ext <<_ACEOF
9756
cat confdefs.h >>conftest.$ac_ext
9757
cat >>conftest.$ac_ext <<_ACEOF
9758
/* end confdefs.h. */
9760
/* Override any gcc2 internal prototype to avoid an error. */
9764
/* We use char because int might match the return type of a gcc2
9765
builtin and then its argument prototype would still apply. */
9766
char sched_yield ();
9775
rm -f conftest.$ac_objext conftest$ac_exeext
9776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777
(eval $ac_link) 2>conftest.er1
9779
grep -v '^ *+' conftest.er1 >conftest.err
9781
cat conftest.err >&5
9782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783
(exit $ac_status); } &&
9784
{ ac_try='test -z "$ac_c_werror_flag"
9785
|| test ! -s conftest.err'
9786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
(exit $ac_status); }; } &&
9791
{ ac_try='test -s conftest$ac_exeext'
9792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796
(exit $ac_status); }; }; then
9797
ac_cv_lib_rt_sched_yield=yes
9799
echo "$as_me: failed program was:" >&5
9800
sed 's/^/| /' conftest.$ac_ext >&5
9802
ac_cv_lib_rt_sched_yield=no
9804
rm -f conftest.err conftest.$ac_objext \
9805
conftest$ac_exeext conftest.$ac_ext
9806
LIBS=$ac_check_lib_save_LIBS
9808
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
9809
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
9810
if test $ac_cv_lib_rt_sched_yield = yes; then
9811
have_librt_sched_yield=yes
9812
ETHR_X_LIBS="$ETHR_X_LIBS -lrt"
9816
if test $have_sched_yield = yes || test $have_librt_sched_yield = yes; then
9818
cat >>confdefs.h <<\_ACEOF
9819
#define ETHR_HAVE_SCHED_YIELD 1
9822
echo "$as_me:$LINENO: checking whether sched_yield() returns an int" >&5
9823
echo $ECHO_N "checking whether sched_yield() returns an int... $ECHO_C" >&6
9824
sched_yield_ret_int=no
9825
cat >conftest.$ac_ext <<_ACEOF
9828
cat confdefs.h >>conftest.$ac_ext
9829
cat >>conftest.$ac_ext <<_ACEOF
9830
/* end confdefs.h. */
9832
#ifdef ETHR_HAVE_SCHED_H
9844
rm -f conftest.$ac_objext
9845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846
(eval $ac_compile) 2>conftest.er1
9848
grep -v '^ *+' conftest.er1 >conftest.err
9850
cat conftest.err >&5
9851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852
(exit $ac_status); } &&
9853
{ ac_try='test -z "$ac_c_werror_flag"
9854
|| test ! -s conftest.err'
9855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859
(exit $ac_status); }; } &&
9860
{ ac_try='test -s conftest.$ac_objext'
9861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865
(exit $ac_status); }; }; then
9866
sched_yield_ret_int=yes
9868
echo "$as_me: failed program was:" >&5
9869
sed 's/^/| /' conftest.$ac_ext >&5
9872
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9873
echo "$as_me:$LINENO: result: $sched_yield_ret_int" >&5
9874
echo "${ECHO_T}$sched_yield_ret_int" >&6
9875
if test $sched_yield_ret_int = yes; then
9877
cat >>confdefs.h <<\_ACEOF
9878
#define ETHR_SCHED_YIELD_RET_INT 1
9884
have_pthread_yield=no
9885
echo "$as_me:$LINENO: checking for pthread_yield" >&5
9886
echo $ECHO_N "checking for pthread_yield... $ECHO_C" >&6
9887
if test "${ac_cv_func_pthread_yield+set}" = set; then
9888
echo $ECHO_N "(cached) $ECHO_C" >&6
9890
cat >conftest.$ac_ext <<_ACEOF
9893
cat confdefs.h >>conftest.$ac_ext
9894
cat >>conftest.$ac_ext <<_ACEOF
9895
/* end confdefs.h. */
9896
/* Define pthread_yield to an innocuous variant, in case <limits.h> declares pthread_yield.
9897
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9898
#define pthread_yield innocuous_pthread_yield
9900
/* System header to define __stub macros and hopefully few prototypes,
9901
which can conflict with char pthread_yield (); below.
9902
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903
<limits.h> exists even on freestanding compilers. */
9906
# include <limits.h>
9908
# include <assert.h>
9911
#undef pthread_yield
9913
/* Override any gcc2 internal prototype to avoid an error. */
9918
/* We use char because int might match the return type of a gcc2
9919
builtin and then its argument prototype would still apply. */
9920
char pthread_yield ();
9921
/* The GNU C library defines this for functions which it implements
9922
to always fail with ENOSYS. Some functions are actually named
9923
something starting with __ and the normal name is an alias. */
9924
#if defined (__stub_pthread_yield) || defined (__stub___pthread_yield)
9927
char (*f) () = pthread_yield;
9936
return f != pthread_yield;
9941
rm -f conftest.$ac_objext conftest$ac_exeext
9942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943
(eval $ac_link) 2>conftest.er1
9945
grep -v '^ *+' conftest.er1 >conftest.err
9947
cat conftest.err >&5
9948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949
(exit $ac_status); } &&
9950
{ ac_try='test -z "$ac_c_werror_flag"
9951
|| test ! -s conftest.err'
9952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956
(exit $ac_status); }; } &&
9957
{ ac_try='test -s conftest$ac_exeext'
9958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
(exit $ac_status); }; }; then
9963
ac_cv_func_pthread_yield=yes
9965
echo "$as_me: failed program was:" >&5
9966
sed 's/^/| /' conftest.$ac_ext >&5
9968
ac_cv_func_pthread_yield=no
9970
rm -f conftest.err conftest.$ac_objext \
9971
conftest$ac_exeext conftest.$ac_ext
9973
echo "$as_me:$LINENO: result: $ac_cv_func_pthread_yield" >&5
9974
echo "${ECHO_T}$ac_cv_func_pthread_yield" >&6
9975
if test $ac_cv_func_pthread_yield = yes; then
9976
have_pthread_yield=yes
9979
if test $have_pthread_yield = yes; then
9981
cat >>confdefs.h <<\_ACEOF
9982
#define ETHR_HAVE_PTHREAD_YIELD 1
9985
echo "$as_me:$LINENO: checking whether pthread_yield() returns an int" >&5
9986
echo $ECHO_N "checking whether pthread_yield() returns an int... $ECHO_C" >&6
9987
pthread_yield_ret_int=no
9988
cat >conftest.$ac_ext <<_ACEOF
9991
cat confdefs.h >>conftest.$ac_ext
9992
cat >>conftest.$ac_ext <<_ACEOF
9993
/* end confdefs.h. */
9995
#if defined(ETHR_NEED_NPTL_PTHREAD_H)
9996
#include <nptl/pthread.h>
9997
#elif defined(ETHR_HAVE_MIT_PTHREAD_H)
9998
#include <pthread/mit/pthread.h>
9999
#elif defined(ETHR_HAVE_PTHREAD_H)
10000
#include <pthread.h>
10006
int pthread_yield();
10011
rm -f conftest.$ac_objext
10012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013
(eval $ac_compile) 2>conftest.er1
10015
grep -v '^ *+' conftest.er1 >conftest.err
10017
cat conftest.err >&5
10018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019
(exit $ac_status); } &&
10020
{ ac_try='test -z "$ac_c_werror_flag"
10021
|| test ! -s conftest.err'
10022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023
(eval $ac_try) 2>&5
10025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026
(exit $ac_status); }; } &&
10027
{ ac_try='test -s conftest.$ac_objext'
10028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029
(eval $ac_try) 2>&5
10031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032
(exit $ac_status); }; }; then
10033
pthread_yield_ret_int=yes
10035
echo "$as_me: failed program was:" >&5
10036
sed 's/^/| /' conftest.$ac_ext >&5
10039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10040
echo "$as_me:$LINENO: result: $pthread_yield_ret_int" >&5
10041
echo "${ECHO_T}$pthread_yield_ret_int" >&6
10042
if test $pthread_yield_ret_int = yes; then
10044
cat >>confdefs.h <<\_ACEOF
10045
#define ETHR_PTHREAD_YIELD_RET_INT 1
10051
have_pthread_rwlock_init=no
10052
echo "$as_me:$LINENO: checking for pthread_rwlock_init" >&5
7666
10053
echo $ECHO_N "checking for pthread_rwlock_init... $ECHO_C" >&6
7667
10054
if test "${ac_cv_func_pthread_rwlock_init+set}" = set; then
7668
10055
echo $ECHO_N "(cached) $ECHO_C" >&6
10442
echo "$as_me:$LINENO: checking for Linux futexes" >&5
10443
echo $ECHO_N "checking for Linux futexes... $ECHO_C" >&6
10444
cat >conftest.$ac_ext <<_ACEOF
10447
cat confdefs.h >>conftest.$ac_ext
10448
cat >>conftest.$ac_ext <<_ACEOF
10449
/* end confdefs.h. */
10451
#include <sys/syscall.h>
10452
#include <unistd.h>
10453
#include <linux/futex.h>
10454
#include <sys/time.h>
10461
syscall(__NR_futex, (void *) &i, FUTEX_WAKE, 1,
10462
(void*)0,(void*)0, 0);
10463
syscall(__NR_futex, (void *) &i, FUTEX_WAIT, 0,
10464
(void*)0,(void*)0, 0);
10471
rm -f conftest.$ac_objext conftest$ac_exeext
10472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473
(eval $ac_link) 2>conftest.er1
10475
grep -v '^ *+' conftest.er1 >conftest.err
10477
cat conftest.err >&5
10478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479
(exit $ac_status); } &&
10480
{ ac_try='test -z "$ac_c_werror_flag"
10481
|| test ! -s conftest.err'
10482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483
(eval $ac_try) 2>&5
10485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486
(exit $ac_status); }; } &&
10487
{ ac_try='test -s conftest$ac_exeext'
10488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489
(eval $ac_try) 2>&5
10491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492
(exit $ac_status); }; }; then
10495
echo "$as_me: failed program was:" >&5
10496
sed 's/^/| /' conftest.$ac_ext >&5
10499
rm -f conftest.err conftest.$ac_objext \
10500
conftest$ac_exeext conftest.$ac_ext
10501
echo "$as_me:$LINENO: result: $linux_futex" >&5
10502
echo "${ECHO_T}$linux_futex" >&6
10503
test $linux_futex = yes &&
10504
cat >>confdefs.h <<\_ACEOF
10505
#define ETHR_HAVE_LINUX_FUTEX 1
10509
echo "$as_me:$LINENO: checking for GCC atomic operations" >&5
10510
echo $ECHO_N "checking for GCC atomic operations... $ECHO_C" >&6
10511
ethr_have_gcc_atomic_ops=no
10512
cat >conftest.$ac_ext <<_ACEOF
10515
cat confdefs.h >>conftest.$ac_ext
10516
cat >>conftest.$ac_ext <<_ACEOF
10517
/* end confdefs.h. */
10525
res = __sync_val_compare_and_swap(&val, (long) 1, (long) 0);
10526
res = __sync_add_and_fetch(&val, (long) 1);
10527
res = __sync_sub_and_fetch(&val, (long) 1);
10528
res = __sync_fetch_and_and(&val, (long) 1);
10529
res = __sync_fetch_and_or(&val, (long) 1);
10535
rm -f conftest.$ac_objext conftest$ac_exeext
10536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537
(eval $ac_link) 2>conftest.er1
10539
grep -v '^ *+' conftest.er1 >conftest.err
10541
cat conftest.err >&5
10542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543
(exit $ac_status); } &&
10544
{ ac_try='test -z "$ac_c_werror_flag"
10545
|| test ! -s conftest.err'
10546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547
(eval $ac_try) 2>&5
10549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550
(exit $ac_status); }; } &&
10551
{ ac_try='test -s conftest$ac_exeext'
10552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553
(eval $ac_try) 2>&5
10555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556
(exit $ac_status); }; }; then
10557
ethr_have_native_atomics=yes
10558
ethr_have_gcc_atomic_ops=yes
10560
echo "$as_me: failed program was:" >&5
10561
sed 's/^/| /' conftest.$ac_ext >&5
10564
rm -f conftest.err conftest.$ac_objext \
10565
conftest$ac_exeext conftest.$ac_ext
10566
echo "$as_me:$LINENO: result: $ethr_have_gcc_atomic_ops" >&5
10567
echo "${ECHO_T}$ethr_have_gcc_atomic_ops" >&6
10568
test $ethr_have_gcc_atomic_ops = yes &&
10569
cat >>confdefs.h <<\_ACEOF
10570
#define ETHR_HAVE_GCC_ATOMIC_OPS 1
10574
case "$host_cpu" in
10575
sun4u | sparc64 | sun4v)
10576
ethr_have_native_atomics=yes;;
10577
i86pc | i*86 | x86_64 | amd64)
10578
ethr_have_native_atomics=yes;;
10579
macppc | ppc | "Power Macintosh")
10580
ethr_have_native_atomics=yes;;
10582
ethr_have_native_atomics=yes;;
10587
echo "$as_me:$LINENO: checking for a usable libatomic_ops implementation" >&5
10588
echo $ECHO_N "checking for a usable libatomic_ops implementation... $ECHO_C" >&6
10589
case "x$with_libatomic_ops" in
10591
libatomic_ops_include=
10594
if test -d "${with_libatomic_ops}/include"; then
10595
libatomic_ops_include="-I$with_libatomic_ops/include"
10596
CPPFLAGS="$CPPFLAGS $libatomic_ops_include"
10598
{ { echo "$as_me:$LINENO: error: libatomic_ops include directory $with_libatomic_ops/include not found" >&5
10599
echo "$as_me: error: libatomic_ops include directory $with_libatomic_ops/include not found" >&2;}
10600
{ (exit 1); exit 1; }; }
10603
ethr_have_libatomic_ops=no
10604
cat >conftest.$ac_ext <<_ACEOF
10607
cat confdefs.h >>conftest.$ac_ext
10608
cat >>conftest.$ac_ext <<_ACEOF
10609
/* end confdefs.h. */
10610
#include "atomic_ops.h"
10620
AO_store(&x, (AO_t) 0);
10622
z = AO_compare_and_swap(&x, (AO_t) 0, (AO_t) 1);
10628
rm -f conftest.$ac_objext conftest$ac_exeext
10629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630
(eval $ac_link) 2>conftest.er1
10632
grep -v '^ *+' conftest.er1 >conftest.err
10634
cat conftest.err >&5
10635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636
(exit $ac_status); } &&
10637
{ ac_try='test -z "$ac_c_werror_flag"
10638
|| test ! -s conftest.err'
10639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640
(eval $ac_try) 2>&5
10642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
(exit $ac_status); }; } &&
10644
{ ac_try='test -s conftest$ac_exeext'
10645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646
(eval $ac_try) 2>&5
10648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649
(exit $ac_status); }; }; then
10650
ethr_have_native_atomics=yes
10651
ethr_have_libatomic_ops=yes
10653
echo "$as_me: failed program was:" >&5
10654
sed 's/^/| /' conftest.$ac_ext >&5
10657
rm -f conftest.err conftest.$ac_objext \
10658
conftest$ac_exeext conftest.$ac_ext
10659
echo "$as_me:$LINENO: result: $ethr_have_libatomic_ops" >&5
10660
echo "${ECHO_T}$ethr_have_libatomic_ops" >&6
10661
if test $ethr_have_libatomic_ops = yes; then
10662
echo "$as_me:$LINENO: checking for AO_t" >&5
10663
echo $ECHO_N "checking for AO_t... $ECHO_C" >&6
10664
if test "${ac_cv_type_AO_t+set}" = set; then
10665
echo $ECHO_N "(cached) $ECHO_C" >&6
10667
cat >conftest.$ac_ext <<_ACEOF
10670
cat confdefs.h >>conftest.$ac_ext
10671
cat >>conftest.$ac_ext <<_ACEOF
10672
/* end confdefs.h. */
10675
#include "atomic_ops.h"
10689
rm -f conftest.$ac_objext
10690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691
(eval $ac_compile) 2>conftest.er1
10693
grep -v '^ *+' conftest.er1 >conftest.err
10695
cat conftest.err >&5
10696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697
(exit $ac_status); } &&
10698
{ ac_try='test -z "$ac_c_werror_flag"
10699
|| test ! -s conftest.err'
10700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701
(eval $ac_try) 2>&5
10703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704
(exit $ac_status); }; } &&
10705
{ ac_try='test -s conftest.$ac_objext'
10706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707
(eval $ac_try) 2>&5
10709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710
(exit $ac_status); }; }; then
10711
ac_cv_type_AO_t=yes
10713
echo "$as_me: failed program was:" >&5
10714
sed 's/^/| /' conftest.$ac_ext >&5
10718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10720
echo "$as_me:$LINENO: result: $ac_cv_type_AO_t" >&5
10721
echo "${ECHO_T}$ac_cv_type_AO_t" >&6
10723
echo "$as_me:$LINENO: checking size of AO_t" >&5
10724
echo $ECHO_N "checking size of AO_t... $ECHO_C" >&6
10725
if test "${ac_cv_sizeof_AO_t+set}" = set; then
10726
echo $ECHO_N "(cached) $ECHO_C" >&6
10728
if test "$ac_cv_type_AO_t" = yes; then
10729
# The cast to unsigned long works around a bug in the HP C Compiler
10730
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10731
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10732
# This bug is HP SR number 8606223364.
10733
if test "$cross_compiling" = yes; then
10734
# Depending upon the size, compute the lo and hi bounds.
10735
cat >conftest.$ac_ext <<_ACEOF
10738
cat confdefs.h >>conftest.$ac_ext
10739
cat >>conftest.$ac_ext <<_ACEOF
10740
/* end confdefs.h. */
10743
#include "atomic_ops.h"
10749
static int test_array [1 - 2 * !(((long) (sizeof (AO_t))) >= 0)];
10756
rm -f conftest.$ac_objext
10757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758
(eval $ac_compile) 2>conftest.er1
10760
grep -v '^ *+' conftest.er1 >conftest.err
10762
cat conftest.err >&5
10763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764
(exit $ac_status); } &&
10765
{ ac_try='test -z "$ac_c_werror_flag"
10766
|| test ! -s conftest.err'
10767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768
(eval $ac_try) 2>&5
10770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771
(exit $ac_status); }; } &&
10772
{ ac_try='test -s conftest.$ac_objext'
10773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774
(eval $ac_try) 2>&5
10776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
(exit $ac_status); }; }; then
10780
cat >conftest.$ac_ext <<_ACEOF
10783
cat confdefs.h >>conftest.$ac_ext
10784
cat >>conftest.$ac_ext <<_ACEOF
10785
/* end confdefs.h. */
10788
#include "atomic_ops.h"
10794
static int test_array [1 - 2 * !(((long) (sizeof (AO_t))) <= $ac_mid)];
10801
rm -f conftest.$ac_objext
10802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803
(eval $ac_compile) 2>conftest.er1
10805
grep -v '^ *+' conftest.er1 >conftest.err
10807
cat conftest.err >&5
10808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809
(exit $ac_status); } &&
10810
{ ac_try='test -z "$ac_c_werror_flag"
10811
|| test ! -s conftest.err'
10812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813
(eval $ac_try) 2>&5
10815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816
(exit $ac_status); }; } &&
10817
{ ac_try='test -s conftest.$ac_objext'
10818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819
(eval $ac_try) 2>&5
10821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822
(exit $ac_status); }; }; then
10823
ac_hi=$ac_mid; break
10825
echo "$as_me: failed program was:" >&5
10826
sed 's/^/| /' conftest.$ac_ext >&5
10828
ac_lo=`expr $ac_mid + 1`
10829
if test $ac_lo -le $ac_mid; then
10833
ac_mid=`expr 2 '*' $ac_mid + 1`
10835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838
echo "$as_me: failed program was:" >&5
10839
sed 's/^/| /' conftest.$ac_ext >&5
10841
cat >conftest.$ac_ext <<_ACEOF
10844
cat confdefs.h >>conftest.$ac_ext
10845
cat >>conftest.$ac_ext <<_ACEOF
10846
/* end confdefs.h. */
10849
#include "atomic_ops.h"
10855
static int test_array [1 - 2 * !(((long) (sizeof (AO_t))) < 0)];
10862
rm -f conftest.$ac_objext
10863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864
(eval $ac_compile) 2>conftest.er1
10866
grep -v '^ *+' conftest.er1 >conftest.err
10868
cat conftest.err >&5
10869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870
(exit $ac_status); } &&
10871
{ ac_try='test -z "$ac_c_werror_flag"
10872
|| test ! -s conftest.err'
10873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874
(eval $ac_try) 2>&5
10876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
(exit $ac_status); }; } &&
10878
{ ac_try='test -s conftest.$ac_objext'
10879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880
(eval $ac_try) 2>&5
10882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883
(exit $ac_status); }; }; then
10886
cat >conftest.$ac_ext <<_ACEOF
10889
cat confdefs.h >>conftest.$ac_ext
10890
cat >>conftest.$ac_ext <<_ACEOF
10891
/* end confdefs.h. */
10894
#include "atomic_ops.h"
10900
static int test_array [1 - 2 * !(((long) (sizeof (AO_t))) >= $ac_mid)];
10907
rm -f conftest.$ac_objext
10908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909
(eval $ac_compile) 2>conftest.er1
10911
grep -v '^ *+' conftest.er1 >conftest.err
10913
cat conftest.err >&5
10914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915
(exit $ac_status); } &&
10916
{ ac_try='test -z "$ac_c_werror_flag"
10917
|| test ! -s conftest.err'
10918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919
(eval $ac_try) 2>&5
10921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922
(exit $ac_status); }; } &&
10923
{ ac_try='test -s conftest.$ac_objext'
10924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925
(eval $ac_try) 2>&5
10927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928
(exit $ac_status); }; }; then
10929
ac_lo=$ac_mid; break
10931
echo "$as_me: failed program was:" >&5
10932
sed 's/^/| /' conftest.$ac_ext >&5
10934
ac_hi=`expr '(' $ac_mid ')' - 1`
10935
if test $ac_mid -le $ac_hi; then
10939
ac_mid=`expr 2 '*' $ac_mid`
10941
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10944
echo "$as_me: failed program was:" >&5
10945
sed 's/^/| /' conftest.$ac_ext >&5
10949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10952
# Binary search between lo and hi bounds.
10953
while test "x$ac_lo" != "x$ac_hi"; do
10954
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10955
cat >conftest.$ac_ext <<_ACEOF
10958
cat confdefs.h >>conftest.$ac_ext
10959
cat >>conftest.$ac_ext <<_ACEOF
10960
/* end confdefs.h. */
10963
#include "atomic_ops.h"
10969
static int test_array [1 - 2 * !(((long) (sizeof (AO_t))) <= $ac_mid)];
10976
rm -f conftest.$ac_objext
10977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10978
(eval $ac_compile) 2>conftest.er1
10980
grep -v '^ *+' conftest.er1 >conftest.err
10982
cat conftest.err >&5
10983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984
(exit $ac_status); } &&
10985
{ ac_try='test -z "$ac_c_werror_flag"
10986
|| test ! -s conftest.err'
10987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988
(eval $ac_try) 2>&5
10990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991
(exit $ac_status); }; } &&
10992
{ ac_try='test -s conftest.$ac_objext'
10993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994
(eval $ac_try) 2>&5
10996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997
(exit $ac_status); }; }; then
11000
echo "$as_me: failed program was:" >&5
11001
sed 's/^/| /' conftest.$ac_ext >&5
11003
ac_lo=`expr '(' $ac_mid ')' + 1`
11005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008
?*) ac_cv_sizeof_AO_t=$ac_lo;;
11009
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (AO_t), 77
11010
See \`config.log' for more details." >&5
11011
echo "$as_me: error: cannot compute sizeof (AO_t), 77
11012
See \`config.log' for more details." >&2;}
11013
{ (exit 1); exit 1; }; } ;;
11016
if test "$cross_compiling" = yes; then
11017
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11018
See \`config.log' for more details." >&5
11019
echo "$as_me: error: cannot run test program while cross compiling
11020
See \`config.log' for more details." >&2;}
11021
{ (exit 1); exit 1; }; }
11023
cat >conftest.$ac_ext <<_ACEOF
11026
cat confdefs.h >>conftest.$ac_ext
11027
cat >>conftest.$ac_ext <<_ACEOF
11028
/* end confdefs.h. */
11031
#include "atomic_ops.h"
11034
long longval () { return (long) (sizeof (AO_t)); }
11035
unsigned long ulongval () { return (long) (sizeof (AO_t)); }
11037
#include <stdlib.h>
11042
FILE *f = fopen ("conftest.val", "w");
11045
if (((long) (sizeof (AO_t))) < 0)
11047
long i = longval ();
11048
if (i != ((long) (sizeof (AO_t))))
11050
fprintf (f, "%ld\n", i);
11054
unsigned long i = ulongval ();
11055
if (i != ((long) (sizeof (AO_t))))
11057
fprintf (f, "%lu\n", i);
11059
exit (ferror (f) || fclose (f) != 0);
11065
rm -f conftest$ac_exeext
11066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067
(eval $ac_link) 2>&5
11069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072
(eval $ac_try) 2>&5
11074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075
(exit $ac_status); }; }; then
11076
ac_cv_sizeof_AO_t=`cat conftest.val`
11078
echo "$as_me: program exited with status $ac_status" >&5
11079
echo "$as_me: failed program was:" >&5
11080
sed 's/^/| /' conftest.$ac_ext >&5
11082
( exit $ac_status )
11083
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (AO_t), 77
11084
See \`config.log' for more details." >&5
11085
echo "$as_me: error: cannot compute sizeof (AO_t), 77
11086
See \`config.log' for more details." >&2;}
11087
{ (exit 1); exit 1; }; }
11089
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094
ac_cv_sizeof_AO_t=0
11097
echo "$as_me:$LINENO: result: $ac_cv_sizeof_AO_t" >&5
11098
echo "${ECHO_T}$ac_cv_sizeof_AO_t" >&6
11099
cat >>confdefs.h <<_ACEOF
11100
#define SIZEOF_AO_T $ac_cv_sizeof_AO_t
11105
cat >>confdefs.h <<_ACEOF
11106
#define ETHR_SIZEOF_AO_T $ac_cv_sizeof_AO_t
11111
cat >>confdefs.h <<\_ACEOF
11112
#define ETHR_HAVE_LIBATOMIC_OPS 1
11115
if test "x$with_libatomic_ops" != "xno" && test "x$with_libatomic_ops" != "x"; then
11117
cat >>confdefs.h <<\_ACEOF
11118
#define ETHR_PREFER_LIBATOMIC_OPS_NATIVE_IMPLS 1
11122
ETHR_DEFS="$ETHR_DEFS $libatomic_ops_include"
11123
elif test "x$with_libatomic_ops" != "xno" && test "x$with_libatomic_ops" != "x"; then
11124
{ { echo "$as_me:$LINENO: error: No usable libatomic_ops implementation found" >&5
11125
echo "$as_me: error: No usable libatomic_ops implementation found" >&2;}
11126
{ (exit 1); exit 1; }; }
7866
11129
LIBS=$saved_libs
7867
11130
CPPFLAGS=$saved_cppflags
7872
11137
echo "$as_me:$LINENO: checking whether default stack size should be modified" >&5
7873
11138
echo $ECHO_N "checking whether default stack size should be modified... $ECHO_C" >&6
8313
if test "X$disable_native_ethr_impls" = "Xyes"; then
11578
echo "$as_me:$LINENO: checking for int" >&5
11579
echo $ECHO_N "checking for int... $ECHO_C" >&6
11580
if test "${ac_cv_type_int+set}" = set; then
11581
echo $ECHO_N "(cached) $ECHO_C" >&6
11583
cat >conftest.$ac_ext <<_ACEOF
11586
cat confdefs.h >>conftest.$ac_ext
11587
cat >>conftest.$ac_ext <<_ACEOF
11588
/* end confdefs.h. */
11589
$ac_includes_default
11601
rm -f conftest.$ac_objext
11602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11603
(eval $ac_compile) 2>conftest.er1
11605
grep -v '^ *+' conftest.er1 >conftest.err
11607
cat conftest.err >&5
11608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609
(exit $ac_status); } &&
11610
{ ac_try='test -z "$ac_c_werror_flag"
11611
|| test ! -s conftest.err'
11612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613
(eval $ac_try) 2>&5
11615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616
(exit $ac_status); }; } &&
11617
{ ac_try='test -s conftest.$ac_objext'
11618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619
(eval $ac_try) 2>&5
11621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622
(exit $ac_status); }; }; then
11625
echo "$as_me: failed program was:" >&5
11626
sed 's/^/| /' conftest.$ac_ext >&5
11630
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11632
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11633
echo "${ECHO_T}$ac_cv_type_int" >&6
11635
echo "$as_me:$LINENO: checking size of int" >&5
11636
echo $ECHO_N "checking size of int... $ECHO_C" >&6
11637
if test "${ac_cv_sizeof_int+set}" = set; then
11638
echo $ECHO_N "(cached) $ECHO_C" >&6
11640
if test "$ac_cv_type_int" = yes; then
11641
# The cast to unsigned long works around a bug in the HP C Compiler
11642
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11643
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11644
# This bug is HP SR number 8606223364.
11645
if test "$cross_compiling" = yes; then
11646
# Depending upon the size, compute the lo and hi bounds.
11647
cat >conftest.$ac_ext <<_ACEOF
11650
cat confdefs.h >>conftest.$ac_ext
11651
cat >>conftest.$ac_ext <<_ACEOF
11652
/* end confdefs.h. */
11653
$ac_includes_default
11657
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11664
rm -f conftest.$ac_objext
11665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666
(eval $ac_compile) 2>conftest.er1
11668
grep -v '^ *+' conftest.er1 >conftest.err
11670
cat conftest.err >&5
11671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672
(exit $ac_status); } &&
11673
{ ac_try='test -z "$ac_c_werror_flag"
11674
|| test ! -s conftest.err'
11675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676
(eval $ac_try) 2>&5
11678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679
(exit $ac_status); }; } &&
11680
{ ac_try='test -s conftest.$ac_objext'
11681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682
(eval $ac_try) 2>&5
11684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685
(exit $ac_status); }; }; then
11688
cat >conftest.$ac_ext <<_ACEOF
11691
cat confdefs.h >>conftest.$ac_ext
11692
cat >>conftest.$ac_ext <<_ACEOF
11693
/* end confdefs.h. */
11694
$ac_includes_default
11698
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11705
rm -f conftest.$ac_objext
11706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707
(eval $ac_compile) 2>conftest.er1
11709
grep -v '^ *+' conftest.er1 >conftest.err
11711
cat conftest.err >&5
11712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713
(exit $ac_status); } &&
11714
{ ac_try='test -z "$ac_c_werror_flag"
11715
|| test ! -s conftest.err'
11716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717
(eval $ac_try) 2>&5
11719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720
(exit $ac_status); }; } &&
11721
{ ac_try='test -s conftest.$ac_objext'
11722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723
(eval $ac_try) 2>&5
11725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726
(exit $ac_status); }; }; then
11727
ac_hi=$ac_mid; break
11729
echo "$as_me: failed program was:" >&5
11730
sed 's/^/| /' conftest.$ac_ext >&5
11732
ac_lo=`expr $ac_mid + 1`
11733
if test $ac_lo -le $ac_mid; then
11737
ac_mid=`expr 2 '*' $ac_mid + 1`
11739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11742
echo "$as_me: failed program was:" >&5
11743
sed 's/^/| /' conftest.$ac_ext >&5
11745
cat >conftest.$ac_ext <<_ACEOF
11748
cat confdefs.h >>conftest.$ac_ext
11749
cat >>conftest.$ac_ext <<_ACEOF
11750
/* end confdefs.h. */
11751
$ac_includes_default
11755
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11762
rm -f conftest.$ac_objext
11763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11764
(eval $ac_compile) 2>conftest.er1
11766
grep -v '^ *+' conftest.er1 >conftest.err
11768
cat conftest.err >&5
11769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770
(exit $ac_status); } &&
11771
{ ac_try='test -z "$ac_c_werror_flag"
11772
|| test ! -s conftest.err'
11773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774
(eval $ac_try) 2>&5
11776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777
(exit $ac_status); }; } &&
11778
{ ac_try='test -s conftest.$ac_objext'
11779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780
(eval $ac_try) 2>&5
11782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783
(exit $ac_status); }; }; then
11786
cat >conftest.$ac_ext <<_ACEOF
11789
cat confdefs.h >>conftest.$ac_ext
11790
cat >>conftest.$ac_ext <<_ACEOF
11791
/* end confdefs.h. */
11792
$ac_includes_default
11796
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11803
rm -f conftest.$ac_objext
11804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11805
(eval $ac_compile) 2>conftest.er1
11807
grep -v '^ *+' conftest.er1 >conftest.err
11809
cat conftest.err >&5
11810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811
(exit $ac_status); } &&
11812
{ ac_try='test -z "$ac_c_werror_flag"
11813
|| test ! -s conftest.err'
11814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815
(eval $ac_try) 2>&5
11817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818
(exit $ac_status); }; } &&
11819
{ ac_try='test -s conftest.$ac_objext'
11820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821
(eval $ac_try) 2>&5
11823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824
(exit $ac_status); }; }; then
11825
ac_lo=$ac_mid; break
11827
echo "$as_me: failed program was:" >&5
11828
sed 's/^/| /' conftest.$ac_ext >&5
11830
ac_hi=`expr '(' $ac_mid ')' - 1`
11831
if test $ac_mid -le $ac_hi; then
11835
ac_mid=`expr 2 '*' $ac_mid`
11837
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840
echo "$as_me: failed program was:" >&5
11841
sed 's/^/| /' conftest.$ac_ext >&5
11845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11847
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848
# Binary search between lo and hi bounds.
11849
while test "x$ac_lo" != "x$ac_hi"; do
11850
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11851
cat >conftest.$ac_ext <<_ACEOF
11854
cat confdefs.h >>conftest.$ac_ext
11855
cat >>conftest.$ac_ext <<_ACEOF
11856
/* end confdefs.h. */
11857
$ac_includes_default
11861
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11868
rm -f conftest.$ac_objext
11869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870
(eval $ac_compile) 2>conftest.er1
11872
grep -v '^ *+' conftest.er1 >conftest.err
11874
cat conftest.err >&5
11875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876
(exit $ac_status); } &&
11877
{ ac_try='test -z "$ac_c_werror_flag"
11878
|| test ! -s conftest.err'
11879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880
(eval $ac_try) 2>&5
11882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883
(exit $ac_status); }; } &&
11884
{ ac_try='test -s conftest.$ac_objext'
11885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886
(eval $ac_try) 2>&5
11888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889
(exit $ac_status); }; }; then
11892
echo "$as_me: failed program was:" >&5
11893
sed 's/^/| /' conftest.$ac_ext >&5
11895
ac_lo=`expr '(' $ac_mid ')' + 1`
11897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900
?*) ac_cv_sizeof_int=$ac_lo;;
11901
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11902
See \`config.log' for more details." >&5
11903
echo "$as_me: error: cannot compute sizeof (int), 77
11904
See \`config.log' for more details." >&2;}
11905
{ (exit 1); exit 1; }; } ;;
11908
if test "$cross_compiling" = yes; then
11909
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11910
See \`config.log' for more details." >&5
11911
echo "$as_me: error: cannot run test program while cross compiling
11912
See \`config.log' for more details." >&2;}
11913
{ (exit 1); exit 1; }; }
11915
cat >conftest.$ac_ext <<_ACEOF
11918
cat confdefs.h >>conftest.$ac_ext
11919
cat >>conftest.$ac_ext <<_ACEOF
11920
/* end confdefs.h. */
11921
$ac_includes_default
11922
long longval () { return (long) (sizeof (int)); }
11923
unsigned long ulongval () { return (long) (sizeof (int)); }
11925
#include <stdlib.h>
11930
FILE *f = fopen ("conftest.val", "w");
11933
if (((long) (sizeof (int))) < 0)
11935
long i = longval ();
11936
if (i != ((long) (sizeof (int))))
11938
fprintf (f, "%ld\n", i);
11942
unsigned long i = ulongval ();
11943
if (i != ((long) (sizeof (int))))
11945
fprintf (f, "%lu\n", i);
11947
exit (ferror (f) || fclose (f) != 0);
11953
rm -f conftest$ac_exeext
11954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955
(eval $ac_link) 2>&5
11957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960
(eval $ac_try) 2>&5
11962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963
(exit $ac_status); }; }; then
11964
ac_cv_sizeof_int=`cat conftest.val`
11966
echo "$as_me: program exited with status $ac_status" >&5
11967
echo "$as_me: failed program was:" >&5
11968
sed 's/^/| /' conftest.$ac_ext >&5
11970
( exit $ac_status )
11971
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11972
See \`config.log' for more details." >&5
11973
echo "$as_me: error: cannot compute sizeof (int), 77
11974
See \`config.log' for more details." >&2;}
11975
{ (exit 1); exit 1; }; }
11977
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11985
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11986
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11987
cat >>confdefs.h <<_ACEOF
11988
#define SIZEOF_INT $ac_cv_sizeof_int
11993
cat >>confdefs.h <<_ACEOF
11994
#define ETHR_SIZEOF_INT $ac_cv_sizeof_int
11997
echo "$as_me:$LINENO: checking for long" >&5
11998
echo $ECHO_N "checking for long... $ECHO_C" >&6
11999
if test "${ac_cv_type_long+set}" = set; then
12000
echo $ECHO_N "(cached) $ECHO_C" >&6
12002
cat >conftest.$ac_ext <<_ACEOF
12005
cat confdefs.h >>conftest.$ac_ext
12006
cat >>conftest.$ac_ext <<_ACEOF
12007
/* end confdefs.h. */
12008
$ac_includes_default
12020
rm -f conftest.$ac_objext
12021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022
(eval $ac_compile) 2>conftest.er1
12024
grep -v '^ *+' conftest.er1 >conftest.err
12026
cat conftest.err >&5
12027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028
(exit $ac_status); } &&
12029
{ ac_try='test -z "$ac_c_werror_flag"
12030
|| test ! -s conftest.err'
12031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032
(eval $ac_try) 2>&5
12034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035
(exit $ac_status); }; } &&
12036
{ ac_try='test -s conftest.$ac_objext'
12037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038
(eval $ac_try) 2>&5
12040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041
(exit $ac_status); }; }; then
12042
ac_cv_type_long=yes
12044
echo "$as_me: failed program was:" >&5
12045
sed 's/^/| /' conftest.$ac_ext >&5
12049
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12052
echo "${ECHO_T}$ac_cv_type_long" >&6
12054
echo "$as_me:$LINENO: checking size of long" >&5
12055
echo $ECHO_N "checking size of long... $ECHO_C" >&6
12056
if test "${ac_cv_sizeof_long+set}" = set; then
12057
echo $ECHO_N "(cached) $ECHO_C" >&6
12059
if test "$ac_cv_type_long" = yes; then
12060
# The cast to unsigned long works around a bug in the HP C Compiler
12061
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12062
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12063
# This bug is HP SR number 8606223364.
12064
if test "$cross_compiling" = yes; then
12065
# Depending upon the size, compute the lo and hi bounds.
12066
cat >conftest.$ac_ext <<_ACEOF
12069
cat confdefs.h >>conftest.$ac_ext
12070
cat >>conftest.$ac_ext <<_ACEOF
12071
/* end confdefs.h. */
12072
$ac_includes_default
12076
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12083
rm -f conftest.$ac_objext
12084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085
(eval $ac_compile) 2>conftest.er1
12087
grep -v '^ *+' conftest.er1 >conftest.err
12089
cat conftest.err >&5
12090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091
(exit $ac_status); } &&
12092
{ ac_try='test -z "$ac_c_werror_flag"
12093
|| test ! -s conftest.err'
12094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095
(eval $ac_try) 2>&5
12097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098
(exit $ac_status); }; } &&
12099
{ ac_try='test -s conftest.$ac_objext'
12100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101
(eval $ac_try) 2>&5
12103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104
(exit $ac_status); }; }; then
12107
cat >conftest.$ac_ext <<_ACEOF
12110
cat confdefs.h >>conftest.$ac_ext
12111
cat >>conftest.$ac_ext <<_ACEOF
12112
/* end confdefs.h. */
12113
$ac_includes_default
12117
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12124
rm -f conftest.$ac_objext
12125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126
(eval $ac_compile) 2>conftest.er1
12128
grep -v '^ *+' conftest.er1 >conftest.err
12130
cat conftest.err >&5
12131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132
(exit $ac_status); } &&
12133
{ ac_try='test -z "$ac_c_werror_flag"
12134
|| test ! -s conftest.err'
12135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136
(eval $ac_try) 2>&5
12138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139
(exit $ac_status); }; } &&
12140
{ ac_try='test -s conftest.$ac_objext'
12141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142
(eval $ac_try) 2>&5
12144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145
(exit $ac_status); }; }; then
12146
ac_hi=$ac_mid; break
12148
echo "$as_me: failed program was:" >&5
12149
sed 's/^/| /' conftest.$ac_ext >&5
12151
ac_lo=`expr $ac_mid + 1`
12152
if test $ac_lo -le $ac_mid; then
12156
ac_mid=`expr 2 '*' $ac_mid + 1`
12158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161
echo "$as_me: failed program was:" >&5
12162
sed 's/^/| /' conftest.$ac_ext >&5
12164
cat >conftest.$ac_ext <<_ACEOF
12167
cat confdefs.h >>conftest.$ac_ext
12168
cat >>conftest.$ac_ext <<_ACEOF
12169
/* end confdefs.h. */
12170
$ac_includes_default
12174
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12181
rm -f conftest.$ac_objext
12182
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183
(eval $ac_compile) 2>conftest.er1
12185
grep -v '^ *+' conftest.er1 >conftest.err
12187
cat conftest.err >&5
12188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189
(exit $ac_status); } &&
12190
{ ac_try='test -z "$ac_c_werror_flag"
12191
|| test ! -s conftest.err'
12192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193
(eval $ac_try) 2>&5
12195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196
(exit $ac_status); }; } &&
12197
{ ac_try='test -s conftest.$ac_objext'
12198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199
(eval $ac_try) 2>&5
12201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202
(exit $ac_status); }; }; then
12205
cat >conftest.$ac_ext <<_ACEOF
12208
cat confdefs.h >>conftest.$ac_ext
12209
cat >>conftest.$ac_ext <<_ACEOF
12210
/* end confdefs.h. */
12211
$ac_includes_default
12215
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12222
rm -f conftest.$ac_objext
12223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224
(eval $ac_compile) 2>conftest.er1
12226
grep -v '^ *+' conftest.er1 >conftest.err
12228
cat conftest.err >&5
12229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230
(exit $ac_status); } &&
12231
{ ac_try='test -z "$ac_c_werror_flag"
12232
|| test ! -s conftest.err'
12233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234
(eval $ac_try) 2>&5
12236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237
(exit $ac_status); }; } &&
12238
{ ac_try='test -s conftest.$ac_objext'
12239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240
(eval $ac_try) 2>&5
12242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243
(exit $ac_status); }; }; then
12244
ac_lo=$ac_mid; break
12246
echo "$as_me: failed program was:" >&5
12247
sed 's/^/| /' conftest.$ac_ext >&5
12249
ac_hi=`expr '(' $ac_mid ')' - 1`
12250
if test $ac_mid -le $ac_hi; then
12254
ac_mid=`expr 2 '*' $ac_mid`
12256
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259
echo "$as_me: failed program was:" >&5
12260
sed 's/^/| /' conftest.$ac_ext >&5
12264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12267
# Binary search between lo and hi bounds.
12268
while test "x$ac_lo" != "x$ac_hi"; do
12269
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12270
cat >conftest.$ac_ext <<_ACEOF
12273
cat confdefs.h >>conftest.$ac_ext
12274
cat >>conftest.$ac_ext <<_ACEOF
12275
/* end confdefs.h. */
12276
$ac_includes_default
12280
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12287
rm -f conftest.$ac_objext
12288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289
(eval $ac_compile) 2>conftest.er1
12291
grep -v '^ *+' conftest.er1 >conftest.err
12293
cat conftest.err >&5
12294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
(exit $ac_status); } &&
12296
{ ac_try='test -z "$ac_c_werror_flag"
12297
|| test ! -s conftest.err'
12298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299
(eval $ac_try) 2>&5
12301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302
(exit $ac_status); }; } &&
12303
{ ac_try='test -s conftest.$ac_objext'
12304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305
(eval $ac_try) 2>&5
12307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308
(exit $ac_status); }; }; then
12311
echo "$as_me: failed program was:" >&5
12312
sed 's/^/| /' conftest.$ac_ext >&5
12314
ac_lo=`expr '(' $ac_mid ')' + 1`
12316
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319
?*) ac_cv_sizeof_long=$ac_lo;;
12320
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12321
See \`config.log' for more details." >&5
12322
echo "$as_me: error: cannot compute sizeof (long), 77
12323
See \`config.log' for more details." >&2;}
12324
{ (exit 1); exit 1; }; } ;;
12327
if test "$cross_compiling" = yes; then
12328
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12329
See \`config.log' for more details." >&5
12330
echo "$as_me: error: cannot run test program while cross compiling
12331
See \`config.log' for more details." >&2;}
12332
{ (exit 1); exit 1; }; }
12334
cat >conftest.$ac_ext <<_ACEOF
12337
cat confdefs.h >>conftest.$ac_ext
12338
cat >>conftest.$ac_ext <<_ACEOF
12339
/* end confdefs.h. */
12340
$ac_includes_default
12341
long longval () { return (long) (sizeof (long)); }
12342
unsigned long ulongval () { return (long) (sizeof (long)); }
12344
#include <stdlib.h>
12349
FILE *f = fopen ("conftest.val", "w");
12352
if (((long) (sizeof (long))) < 0)
12354
long i = longval ();
12355
if (i != ((long) (sizeof (long))))
12357
fprintf (f, "%ld\n", i);
12361
unsigned long i = ulongval ();
12362
if (i != ((long) (sizeof (long))))
12364
fprintf (f, "%lu\n", i);
12366
exit (ferror (f) || fclose (f) != 0);
12372
rm -f conftest$ac_exeext
12373
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374
(eval $ac_link) 2>&5
12376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379
(eval $ac_try) 2>&5
12381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382
(exit $ac_status); }; }; then
12383
ac_cv_sizeof_long=`cat conftest.val`
12385
echo "$as_me: program exited with status $ac_status" >&5
12386
echo "$as_me: failed program was:" >&5
12387
sed 's/^/| /' conftest.$ac_ext >&5
12389
( exit $ac_status )
12390
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12391
See \`config.log' for more details." >&5
12392
echo "$as_me: error: cannot compute sizeof (long), 77
12393
See \`config.log' for more details." >&2;}
12394
{ (exit 1); exit 1; }; }
12396
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12401
ac_cv_sizeof_long=0
12404
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12405
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12406
cat >>confdefs.h <<_ACEOF
12407
#define SIZEOF_LONG $ac_cv_sizeof_long
12412
cat >>confdefs.h <<_ACEOF
12413
#define ETHR_SIZEOF_LONG $ac_cv_sizeof_long
12416
echo "$as_me:$LINENO: checking for long long" >&5
12417
echo $ECHO_N "checking for long long... $ECHO_C" >&6
12418
if test "${ac_cv_type_long_long+set}" = set; then
12419
echo $ECHO_N "(cached) $ECHO_C" >&6
12421
cat >conftest.$ac_ext <<_ACEOF
12424
cat confdefs.h >>conftest.$ac_ext
12425
cat >>conftest.$ac_ext <<_ACEOF
12426
/* end confdefs.h. */
12427
$ac_includes_default
12431
if ((long long *) 0)
12433
if (sizeof (long long))
12439
rm -f conftest.$ac_objext
12440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441
(eval $ac_compile) 2>conftest.er1
12443
grep -v '^ *+' conftest.er1 >conftest.err
12445
cat conftest.err >&5
12446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447
(exit $ac_status); } &&
12448
{ ac_try='test -z "$ac_c_werror_flag"
12449
|| test ! -s conftest.err'
12450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451
(eval $ac_try) 2>&5
12453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454
(exit $ac_status); }; } &&
12455
{ ac_try='test -s conftest.$ac_objext'
12456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457
(eval $ac_try) 2>&5
12459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460
(exit $ac_status); }; }; then
12461
ac_cv_type_long_long=yes
12463
echo "$as_me: failed program was:" >&5
12464
sed 's/^/| /' conftest.$ac_ext >&5
12466
ac_cv_type_long_long=no
12468
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12470
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12471
echo "${ECHO_T}$ac_cv_type_long_long" >&6
12473
echo "$as_me:$LINENO: checking size of long long" >&5
12474
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12475
if test "${ac_cv_sizeof_long_long+set}" = set; then
12476
echo $ECHO_N "(cached) $ECHO_C" >&6
12478
if test "$ac_cv_type_long_long" = yes; then
12479
# The cast to unsigned long works around a bug in the HP C Compiler
12480
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12481
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12482
# This bug is HP SR number 8606223364.
12483
if test "$cross_compiling" = yes; then
12484
# Depending upon the size, compute the lo and hi bounds.
12485
cat >conftest.$ac_ext <<_ACEOF
12488
cat confdefs.h >>conftest.$ac_ext
12489
cat >>conftest.$ac_ext <<_ACEOF
12490
/* end confdefs.h. */
12491
$ac_includes_default
12495
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12502
rm -f conftest.$ac_objext
12503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504
(eval $ac_compile) 2>conftest.er1
12506
grep -v '^ *+' conftest.er1 >conftest.err
12508
cat conftest.err >&5
12509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510
(exit $ac_status); } &&
12511
{ ac_try='test -z "$ac_c_werror_flag"
12512
|| test ! -s conftest.err'
12513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514
(eval $ac_try) 2>&5
12516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517
(exit $ac_status); }; } &&
12518
{ ac_try='test -s conftest.$ac_objext'
12519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520
(eval $ac_try) 2>&5
12522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523
(exit $ac_status); }; }; then
12526
cat >conftest.$ac_ext <<_ACEOF
12529
cat confdefs.h >>conftest.$ac_ext
12530
cat >>conftest.$ac_ext <<_ACEOF
12531
/* end confdefs.h. */
12532
$ac_includes_default
12536
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12543
rm -f conftest.$ac_objext
12544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545
(eval $ac_compile) 2>conftest.er1
12547
grep -v '^ *+' conftest.er1 >conftest.err
12549
cat conftest.err >&5
12550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
(exit $ac_status); } &&
12552
{ ac_try='test -z "$ac_c_werror_flag"
12553
|| test ! -s conftest.err'
12554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555
(eval $ac_try) 2>&5
12557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558
(exit $ac_status); }; } &&
12559
{ ac_try='test -s conftest.$ac_objext'
12560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561
(eval $ac_try) 2>&5
12563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564
(exit $ac_status); }; }; then
12565
ac_hi=$ac_mid; break
12567
echo "$as_me: failed program was:" >&5
12568
sed 's/^/| /' conftest.$ac_ext >&5
12570
ac_lo=`expr $ac_mid + 1`
12571
if test $ac_lo -le $ac_mid; then
12575
ac_mid=`expr 2 '*' $ac_mid + 1`
12577
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580
echo "$as_me: failed program was:" >&5
12581
sed 's/^/| /' conftest.$ac_ext >&5
12583
cat >conftest.$ac_ext <<_ACEOF
12586
cat confdefs.h >>conftest.$ac_ext
12587
cat >>conftest.$ac_ext <<_ACEOF
12588
/* end confdefs.h. */
12589
$ac_includes_default
12593
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12600
rm -f conftest.$ac_objext
12601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602
(eval $ac_compile) 2>conftest.er1
12604
grep -v '^ *+' conftest.er1 >conftest.err
12606
cat conftest.err >&5
12607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608
(exit $ac_status); } &&
12609
{ ac_try='test -z "$ac_c_werror_flag"
12610
|| test ! -s conftest.err'
12611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612
(eval $ac_try) 2>&5
12614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615
(exit $ac_status); }; } &&
12616
{ ac_try='test -s conftest.$ac_objext'
12617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618
(eval $ac_try) 2>&5
12620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621
(exit $ac_status); }; }; then
12624
cat >conftest.$ac_ext <<_ACEOF
12627
cat confdefs.h >>conftest.$ac_ext
12628
cat >>conftest.$ac_ext <<_ACEOF
12629
/* end confdefs.h. */
12630
$ac_includes_default
12634
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12641
rm -f conftest.$ac_objext
12642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643
(eval $ac_compile) 2>conftest.er1
12645
grep -v '^ *+' conftest.er1 >conftest.err
12647
cat conftest.err >&5
12648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649
(exit $ac_status); } &&
12650
{ ac_try='test -z "$ac_c_werror_flag"
12651
|| test ! -s conftest.err'
12652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653
(eval $ac_try) 2>&5
12655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656
(exit $ac_status); }; } &&
12657
{ ac_try='test -s conftest.$ac_objext'
12658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659
(eval $ac_try) 2>&5
12661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662
(exit $ac_status); }; }; then
12663
ac_lo=$ac_mid; break
12665
echo "$as_me: failed program was:" >&5
12666
sed 's/^/| /' conftest.$ac_ext >&5
12668
ac_hi=`expr '(' $ac_mid ')' - 1`
12669
if test $ac_mid -le $ac_hi; then
12673
ac_mid=`expr 2 '*' $ac_mid`
12675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678
echo "$as_me: failed program was:" >&5
12679
sed 's/^/| /' conftest.$ac_ext >&5
12683
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686
# Binary search between lo and hi bounds.
12687
while test "x$ac_lo" != "x$ac_hi"; do
12688
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12689
cat >conftest.$ac_ext <<_ACEOF
12692
cat confdefs.h >>conftest.$ac_ext
12693
cat >>conftest.$ac_ext <<_ACEOF
12694
/* end confdefs.h. */
12695
$ac_includes_default
12699
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12706
rm -f conftest.$ac_objext
12707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708
(eval $ac_compile) 2>conftest.er1
12710
grep -v '^ *+' conftest.er1 >conftest.err
12712
cat conftest.err >&5
12713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714
(exit $ac_status); } &&
12715
{ ac_try='test -z "$ac_c_werror_flag"
12716
|| test ! -s conftest.err'
12717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718
(eval $ac_try) 2>&5
12720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721
(exit $ac_status); }; } &&
12722
{ ac_try='test -s conftest.$ac_objext'
12723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724
(eval $ac_try) 2>&5
12726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727
(exit $ac_status); }; }; then
12730
echo "$as_me: failed program was:" >&5
12731
sed 's/^/| /' conftest.$ac_ext >&5
12733
ac_lo=`expr '(' $ac_mid ')' + 1`
12735
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12738
?*) ac_cv_sizeof_long_long=$ac_lo;;
12739
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12740
See \`config.log' for more details." >&5
12741
echo "$as_me: error: cannot compute sizeof (long long), 77
12742
See \`config.log' for more details." >&2;}
12743
{ (exit 1); exit 1; }; } ;;
12746
if test "$cross_compiling" = yes; then
12747
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12748
See \`config.log' for more details." >&5
12749
echo "$as_me: error: cannot run test program while cross compiling
12750
See \`config.log' for more details." >&2;}
12751
{ (exit 1); exit 1; }; }
12753
cat >conftest.$ac_ext <<_ACEOF
12756
cat confdefs.h >>conftest.$ac_ext
12757
cat >>conftest.$ac_ext <<_ACEOF
12758
/* end confdefs.h. */
12759
$ac_includes_default
12760
long longval () { return (long) (sizeof (long long)); }
12761
unsigned long ulongval () { return (long) (sizeof (long long)); }
12763
#include <stdlib.h>
12768
FILE *f = fopen ("conftest.val", "w");
12771
if (((long) (sizeof (long long))) < 0)
12773
long i = longval ();
12774
if (i != ((long) (sizeof (long long))))
12776
fprintf (f, "%ld\n", i);
12780
unsigned long i = ulongval ();
12781
if (i != ((long) (sizeof (long long))))
12783
fprintf (f, "%lu\n", i);
12785
exit (ferror (f) || fclose (f) != 0);
12791
rm -f conftest$ac_exeext
12792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793
(eval $ac_link) 2>&5
12795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798
(eval $ac_try) 2>&5
12800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801
(exit $ac_status); }; }; then
12802
ac_cv_sizeof_long_long=`cat conftest.val`
12804
echo "$as_me: program exited with status $ac_status" >&5
12805
echo "$as_me: failed program was:" >&5
12806
sed 's/^/| /' conftest.$ac_ext >&5
12808
( exit $ac_status )
12809
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12810
See \`config.log' for more details." >&5
12811
echo "$as_me: error: cannot compute sizeof (long long), 77
12812
See \`config.log' for more details." >&2;}
12813
{ (exit 1); exit 1; }; }
12815
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12820
ac_cv_sizeof_long_long=0
12823
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12824
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12825
cat >>confdefs.h <<_ACEOF
12826
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12831
cat >>confdefs.h <<_ACEOF
12832
#define ETHR_SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12835
echo "$as_me:$LINENO: checking for __int64" >&5
12836
echo $ECHO_N "checking for __int64... $ECHO_C" >&6
12837
if test "${ac_cv_type___int64+set}" = set; then
12838
echo $ECHO_N "(cached) $ECHO_C" >&6
12840
cat >conftest.$ac_ext <<_ACEOF
12843
cat confdefs.h >>conftest.$ac_ext
12844
cat >>conftest.$ac_ext <<_ACEOF
12845
/* end confdefs.h. */
12846
$ac_includes_default
12852
if (sizeof (__int64))
12858
rm -f conftest.$ac_objext
12859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860
(eval $ac_compile) 2>conftest.er1
12862
grep -v '^ *+' conftest.er1 >conftest.err
12864
cat conftest.err >&5
12865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866
(exit $ac_status); } &&
12867
{ ac_try='test -z "$ac_c_werror_flag"
12868
|| test ! -s conftest.err'
12869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870
(eval $ac_try) 2>&5
12872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873
(exit $ac_status); }; } &&
12874
{ ac_try='test -s conftest.$ac_objext'
12875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876
(eval $ac_try) 2>&5
12878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879
(exit $ac_status); }; }; then
12880
ac_cv_type___int64=yes
12882
echo "$as_me: failed program was:" >&5
12883
sed 's/^/| /' conftest.$ac_ext >&5
12885
ac_cv_type___int64=no
12887
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12889
echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
12890
echo "${ECHO_T}$ac_cv_type___int64" >&6
12892
echo "$as_me:$LINENO: checking size of __int64" >&5
12893
echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
12894
if test "${ac_cv_sizeof___int64+set}" = set; then
12895
echo $ECHO_N "(cached) $ECHO_C" >&6
12897
if test "$ac_cv_type___int64" = yes; then
12898
# The cast to unsigned long works around a bug in the HP C Compiler
12899
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12900
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12901
# This bug is HP SR number 8606223364.
12902
if test "$cross_compiling" = yes; then
12903
# Depending upon the size, compute the lo and hi bounds.
12904
cat >conftest.$ac_ext <<_ACEOF
12907
cat confdefs.h >>conftest.$ac_ext
12908
cat >>conftest.$ac_ext <<_ACEOF
12909
/* end confdefs.h. */
12910
$ac_includes_default
12914
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
12921
rm -f conftest.$ac_objext
12922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923
(eval $ac_compile) 2>conftest.er1
12925
grep -v '^ *+' conftest.er1 >conftest.err
12927
cat conftest.err >&5
12928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929
(exit $ac_status); } &&
12930
{ ac_try='test -z "$ac_c_werror_flag"
12931
|| test ! -s conftest.err'
12932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933
(eval $ac_try) 2>&5
12935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936
(exit $ac_status); }; } &&
12937
{ ac_try='test -s conftest.$ac_objext'
12938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939
(eval $ac_try) 2>&5
12941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942
(exit $ac_status); }; }; then
12945
cat >conftest.$ac_ext <<_ACEOF
12948
cat confdefs.h >>conftest.$ac_ext
12949
cat >>conftest.$ac_ext <<_ACEOF
12950
/* end confdefs.h. */
12951
$ac_includes_default
12955
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
12962
rm -f conftest.$ac_objext
12963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964
(eval $ac_compile) 2>conftest.er1
12966
grep -v '^ *+' conftest.er1 >conftest.err
12968
cat conftest.err >&5
12969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970
(exit $ac_status); } &&
12971
{ ac_try='test -z "$ac_c_werror_flag"
12972
|| test ! -s conftest.err'
12973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974
(eval $ac_try) 2>&5
12976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977
(exit $ac_status); }; } &&
12978
{ ac_try='test -s conftest.$ac_objext'
12979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980
(eval $ac_try) 2>&5
12982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983
(exit $ac_status); }; }; then
12984
ac_hi=$ac_mid; break
12986
echo "$as_me: failed program was:" >&5
12987
sed 's/^/| /' conftest.$ac_ext >&5
12989
ac_lo=`expr $ac_mid + 1`
12990
if test $ac_lo -le $ac_mid; then
12994
ac_mid=`expr 2 '*' $ac_mid + 1`
12996
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999
echo "$as_me: failed program was:" >&5
13000
sed 's/^/| /' conftest.$ac_ext >&5
13002
cat >conftest.$ac_ext <<_ACEOF
13005
cat confdefs.h >>conftest.$ac_ext
13006
cat >>conftest.$ac_ext <<_ACEOF
13007
/* end confdefs.h. */
13008
$ac_includes_default
13012
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
13019
rm -f conftest.$ac_objext
13020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021
(eval $ac_compile) 2>conftest.er1
13023
grep -v '^ *+' conftest.er1 >conftest.err
13025
cat conftest.err >&5
13026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027
(exit $ac_status); } &&
13028
{ ac_try='test -z "$ac_c_werror_flag"
13029
|| test ! -s conftest.err'
13030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031
(eval $ac_try) 2>&5
13033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034
(exit $ac_status); }; } &&
13035
{ ac_try='test -s conftest.$ac_objext'
13036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037
(eval $ac_try) 2>&5
13039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040
(exit $ac_status); }; }; then
13043
cat >conftest.$ac_ext <<_ACEOF
13046
cat confdefs.h >>conftest.$ac_ext
13047
cat >>conftest.$ac_ext <<_ACEOF
13048
/* end confdefs.h. */
13049
$ac_includes_default
13053
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
13060
rm -f conftest.$ac_objext
13061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13062
(eval $ac_compile) 2>conftest.er1
13064
grep -v '^ *+' conftest.er1 >conftest.err
13066
cat conftest.err >&5
13067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068
(exit $ac_status); } &&
13069
{ ac_try='test -z "$ac_c_werror_flag"
13070
|| test ! -s conftest.err'
13071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072
(eval $ac_try) 2>&5
13074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075
(exit $ac_status); }; } &&
13076
{ ac_try='test -s conftest.$ac_objext'
13077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078
(eval $ac_try) 2>&5
13080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081
(exit $ac_status); }; }; then
13082
ac_lo=$ac_mid; break
13084
echo "$as_me: failed program was:" >&5
13085
sed 's/^/| /' conftest.$ac_ext >&5
13087
ac_hi=`expr '(' $ac_mid ')' - 1`
13088
if test $ac_mid -le $ac_hi; then
13092
ac_mid=`expr 2 '*' $ac_mid`
13094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13097
echo "$as_me: failed program was:" >&5
13098
sed 's/^/| /' conftest.$ac_ext >&5
13102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13105
# Binary search between lo and hi bounds.
13106
while test "x$ac_lo" != "x$ac_hi"; do
13107
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13108
cat >conftest.$ac_ext <<_ACEOF
13111
cat confdefs.h >>conftest.$ac_ext
13112
cat >>conftest.$ac_ext <<_ACEOF
13113
/* end confdefs.h. */
13114
$ac_includes_default
13118
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
13125
rm -f conftest.$ac_objext
13126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127
(eval $ac_compile) 2>conftest.er1
13129
grep -v '^ *+' conftest.er1 >conftest.err
13131
cat conftest.err >&5
13132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133
(exit $ac_status); } &&
13134
{ ac_try='test -z "$ac_c_werror_flag"
13135
|| test ! -s conftest.err'
13136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137
(eval $ac_try) 2>&5
13139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140
(exit $ac_status); }; } &&
13141
{ ac_try='test -s conftest.$ac_objext'
13142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143
(eval $ac_try) 2>&5
13145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146
(exit $ac_status); }; }; then
13149
echo "$as_me: failed program was:" >&5
13150
sed 's/^/| /' conftest.$ac_ext >&5
13152
ac_lo=`expr '(' $ac_mid ')' + 1`
13154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13157
?*) ac_cv_sizeof___int64=$ac_lo;;
13158
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
13159
See \`config.log' for more details." >&5
13160
echo "$as_me: error: cannot compute sizeof (__int64), 77
13161
See \`config.log' for more details." >&2;}
13162
{ (exit 1); exit 1; }; } ;;
13165
if test "$cross_compiling" = yes; then
13166
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13167
See \`config.log' for more details." >&5
13168
echo "$as_me: error: cannot run test program while cross compiling
13169
See \`config.log' for more details." >&2;}
13170
{ (exit 1); exit 1; }; }
13172
cat >conftest.$ac_ext <<_ACEOF
13175
cat confdefs.h >>conftest.$ac_ext
13176
cat >>conftest.$ac_ext <<_ACEOF
13177
/* end confdefs.h. */
13178
$ac_includes_default
13179
long longval () { return (long) (sizeof (__int64)); }
13180
unsigned long ulongval () { return (long) (sizeof (__int64)); }
13182
#include <stdlib.h>
13187
FILE *f = fopen ("conftest.val", "w");
13190
if (((long) (sizeof (__int64))) < 0)
13192
long i = longval ();
13193
if (i != ((long) (sizeof (__int64))))
13195
fprintf (f, "%ld\n", i);
13199
unsigned long i = ulongval ();
13200
if (i != ((long) (sizeof (__int64))))
13202
fprintf (f, "%lu\n", i);
13204
exit (ferror (f) || fclose (f) != 0);
13210
rm -f conftest$ac_exeext
13211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212
(eval $ac_link) 2>&5
13214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217
(eval $ac_try) 2>&5
13219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220
(exit $ac_status); }; }; then
13221
ac_cv_sizeof___int64=`cat conftest.val`
13223
echo "$as_me: program exited with status $ac_status" >&5
13224
echo "$as_me: failed program was:" >&5
13225
sed 's/^/| /' conftest.$ac_ext >&5
13227
( exit $ac_status )
13228
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
13229
See \`config.log' for more details." >&5
13230
echo "$as_me: error: cannot compute sizeof (__int64), 77
13231
See \`config.log' for more details." >&2;}
13232
{ (exit 1); exit 1; }; }
13234
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13239
ac_cv_sizeof___int64=0
13242
echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
13243
echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
13244
cat >>confdefs.h <<_ACEOF
13245
#define SIZEOF___INT64 $ac_cv_sizeof___int64
13250
cat >>confdefs.h <<_ACEOF
13251
#define ETHR_SIZEOF___INT64 $ac_cv_sizeof___int64
13256
case X$erl_xcomp_bigendian in
13258
Xyes|Xno) ac_cv_c_bigendian=$erl_xcomp_bigendian;;
13259
*) { { echo "$as_me:$LINENO: error: Bad erl_xcomp_bigendian value: $erl_xcomp_bigendian" >&5
13260
echo "$as_me: error: Bad erl_xcomp_bigendian value: $erl_xcomp_bigendian" >&2;}
13261
{ (exit 1); exit 1; }; };;
13264
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13265
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13266
if test "${ac_cv_c_bigendian+set}" = set; then
13267
echo $ECHO_N "(cached) $ECHO_C" >&6
13269
# See if sys/param.h defines the BYTE_ORDER macro.
13270
cat >conftest.$ac_ext <<_ACEOF
13273
cat confdefs.h >>conftest.$ac_ext
13274
cat >>conftest.$ac_ext <<_ACEOF
13275
/* end confdefs.h. */
13276
#include <sys/types.h>
13277
#include <sys/param.h>
13282
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13283
bogus endian macros
13290
rm -f conftest.$ac_objext
13291
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292
(eval $ac_compile) 2>conftest.er1
13294
grep -v '^ *+' conftest.er1 >conftest.err
13296
cat conftest.err >&5
13297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298
(exit $ac_status); } &&
13299
{ ac_try='test -z "$ac_c_werror_flag"
13300
|| test ! -s conftest.err'
13301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302
(eval $ac_try) 2>&5
13304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305
(exit $ac_status); }; } &&
13306
{ ac_try='test -s conftest.$ac_objext'
13307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308
(eval $ac_try) 2>&5
13310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311
(exit $ac_status); }; }; then
13312
# It does; now see whether it defined to BIG_ENDIAN or not.
13313
cat >conftest.$ac_ext <<_ACEOF
13316
cat confdefs.h >>conftest.$ac_ext
13317
cat >>conftest.$ac_ext <<_ACEOF
13318
/* end confdefs.h. */
13319
#include <sys/types.h>
13320
#include <sys/param.h>
13325
#if BYTE_ORDER != BIG_ENDIAN
13333
rm -f conftest.$ac_objext
13334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335
(eval $ac_compile) 2>conftest.er1
13337
grep -v '^ *+' conftest.er1 >conftest.err
13339
cat conftest.err >&5
13340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341
(exit $ac_status); } &&
13342
{ ac_try='test -z "$ac_c_werror_flag"
13343
|| test ! -s conftest.err'
13344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345
(eval $ac_try) 2>&5
13347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348
(exit $ac_status); }; } &&
13349
{ ac_try='test -s conftest.$ac_objext'
13350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351
(eval $ac_try) 2>&5
13353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354
(exit $ac_status); }; }; then
13355
ac_cv_c_bigendian=yes
13357
echo "$as_me: failed program was:" >&5
13358
sed 's/^/| /' conftest.$ac_ext >&5
13360
ac_cv_c_bigendian=no
13362
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364
echo "$as_me: failed program was:" >&5
13365
sed 's/^/| /' conftest.$ac_ext >&5
13367
# It does not; compile a test program.
13368
if test "$cross_compiling" = yes; then
13369
# try to guess the endianness by grepping values into an object file
13370
ac_cv_c_bigendian=unknown
13371
cat >conftest.$ac_ext <<_ACEOF
13374
cat confdefs.h >>conftest.$ac_ext
13375
cat >>conftest.$ac_ext <<_ACEOF
13376
/* end confdefs.h. */
13377
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13378
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13379
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13380
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13381
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13382
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13386
_ascii (); _ebcdic ();
13391
rm -f conftest.$ac_objext
13392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393
(eval $ac_compile) 2>conftest.er1
13395
grep -v '^ *+' conftest.er1 >conftest.err
13397
cat conftest.err >&5
13398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399
(exit $ac_status); } &&
13400
{ ac_try='test -z "$ac_c_werror_flag"
13401
|| test ! -s conftest.err'
13402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403
(eval $ac_try) 2>&5
13405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406
(exit $ac_status); }; } &&
13407
{ ac_try='test -s conftest.$ac_objext'
13408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409
(eval $ac_try) 2>&5
13411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412
(exit $ac_status); }; }; then
13413
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13414
ac_cv_c_bigendian=yes
13416
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13417
if test "$ac_cv_c_bigendian" = unknown; then
13418
ac_cv_c_bigendian=no
13420
# finding both strings is unlikely to happen, but who knows?
13421
ac_cv_c_bigendian=unknown
13425
echo "$as_me: failed program was:" >&5
13426
sed 's/^/| /' conftest.$ac_ext >&5
13429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13431
cat >conftest.$ac_ext <<_ACEOF
13434
cat confdefs.h >>conftest.$ac_ext
13435
cat >>conftest.$ac_ext <<_ACEOF
13436
/* end confdefs.h. */
13440
/* Are we little or big endian? From Harbison&Steele. */
13444
char c[sizeof (long)];
13447
exit (u.c[sizeof (long) - 1] == 1);
13450
rm -f conftest$ac_exeext
13451
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452
(eval $ac_link) 2>&5
13454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457
(eval $ac_try) 2>&5
13459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460
(exit $ac_status); }; }; then
13461
ac_cv_c_bigendian=no
13463
echo "$as_me: program exited with status $ac_status" >&5
13464
echo "$as_me: failed program was:" >&5
13465
sed 's/^/| /' conftest.$ac_ext >&5
13467
( exit $ac_status )
13468
ac_cv_c_bigendian=yes
13470
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13473
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13476
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13477
case $ac_cv_c_bigendian in
13480
cat >>confdefs.h <<\_ACEOF
13481
#define WORDS_BIGENDIAN 1
13487
{ { echo "$as_me:$LINENO: error: unknown endianness
13488
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13489
echo "$as_me: error: unknown endianness
13490
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13491
{ (exit 1); exit 1; }; } ;;
13495
if test "$ac_cv_c_bigendian" = "yes"; then
13497
cat >>confdefs.h <<\_ACEOF
13498
#define ETHR_BIGENDIAN 1
13503
# Check whether --enable-native-ethr-impls or --disable-native-ethr-impls was given.
13504
if test "${enable_native_ethr_impls+set}" = set; then
13505
enableval="$enable_native_ethr_impls"
13506
case "$enableval" in
13507
no) disable_native_ethr_impls=yes ;;
13508
*) disable_native_ethr_impls=no ;;
13511
disable_native_ethr_impls=no
13514
test "X$disable_native_ethr_impls" = "Xyes" &&
8315
13516
cat >>confdefs.h <<\_ACEOF
8316
13517
#define ETHR_DISABLE_NATIVE_IMPLS 1
13521
# Check whether --enable-prefer-gcc-native-ethr-impls or --disable-prefer-gcc-native-ethr-impls was given.
13522
if test "${enable_prefer_gcc_native_ethr_impls+set}" = set; then
13523
enableval="$enable_prefer_gcc_native_ethr_impls"
13524
case "$enableval" in
13525
yes) enable_prefer_gcc_native_ethr_impls=yes ;;
13526
*) enable_prefer_gcc_native_ethr_impls=no ;;
13529
enable_prefer_gcc_native_ethr_impls=no
13532
test $enable_prefer_gcc_native_ethr_impls = yes &&
13534
cat >>confdefs.h <<\_ACEOF
13535
#define ETHR_PREFER_GCC_NATIVE_IMPLS 1
13540
# Check whether --with-libatomic_ops or --without-libatomic_ops was given.
13541
if test "${with_libatomic_ops+set}" = set; then
13542
withval="$with_libatomic_ops"
13546
# Check whether --enable-ethread-pre-pentium4-compatibility or --disable-ethread-pre-pentium4-compatibility was given.
13547
if test "${enable_ethread_pre_pentium4_compatibility+set}" = set; then
13548
enableval="$enable_ethread_pre_pentium4_compatibility"
13550
case "$enable_ethread_pre_pentium4_compatibility" in
13552
*) enable_ethread_pre_pentium4_compatibility=check;;
13556
enable_ethread_pre_pentium4_compatibility=check
13559
test "$cross_compiling" != "yes" || enable_ethread_pre_pentium4_compatibility=no
13561
case "$enable_ethread_pre_pentium4_compatibility-$host_cpu" in
13562
check-i86pc | check-i*86)
13563
echo "$as_me:$LINENO: checking whether pre pentium 4 compatibility should forced" >&5
13564
echo $ECHO_N "checking whether pre pentium 4 compatibility should forced... $ECHO_C" >&6
13565
if test "$cross_compiling" = yes; then
13566
enable_ethread_pre_pentium4_compatibility=no
13568
cat >conftest.$ac_ext <<_ACEOF
13570
#if defined(__GNUC__)
13571
# if defined(ETHR_PREFER_LIBATOMIC_OPS_NATIVE_IMPLS)
13572
# define CHECK_LIBATOMIC_OPS__
13574
# define CHECK_GCC_ASM__
13576
#elif defined(ETHR_HAVE_LIBATOMIC_OPS)
13577
# define CHECK_LIBATOMIC_OPS__
13579
#if defined(CHECK_LIBATOMIC_OPS__)
13580
#include "atomic_ops.h"
13584
#if defined(CHECK_GCC_ASM__)
13585
__asm__ __volatile__("mfence" : : : "memory");
13586
#elif defined(CHECK_LIBATOMIC_OPS__)
13593
rm -f conftest$ac_exeext
13594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13595
(eval $ac_link) 2>&5
13597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600
(eval $ac_try) 2>&5
13602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603
(exit $ac_status); }; }; then
13604
enable_ethread_pre_pentium4_compatibility=no
13606
echo "$as_me: program exited with status $ac_status" >&5
13607
echo "$as_me: failed program was:" >&5
13608
sed 's/^/| /' conftest.$ac_ext >&5
13610
( exit $ac_status )
13611
enable_ethread_pre_pentium4_compatibility=yes
13613
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13615
echo "$as_me:$LINENO: result: $enable_ethread_pre_pentium4_compatibility" >&5
13616
echo "${ECHO_T}$enable_ethread_pre_pentium4_compatibility" >&6;;
13621
test $enable_ethread_pre_pentium4_compatibility = yes &&
13623
cat >>confdefs.h <<\_ACEOF
13624
#define ETHR_PRE_PENTIUM4_COMPAT 1
8322
13629
cat >>confdefs.h <<\_ACEOF
21591
echo "$as_me:$LINENO: checking for size_t" >&5
21592
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21593
if test "${ac_cv_type_size_t+set}" = set; then
21594
echo $ECHO_N "(cached) $ECHO_C" >&6
21596
cat >conftest.$ac_ext <<_ACEOF
21599
cat confdefs.h >>conftest.$ac_ext
21600
cat >>conftest.$ac_ext <<_ACEOF
21601
/* end confdefs.h. */
21602
$ac_includes_default
21608
if (sizeof (size_t))
21614
rm -f conftest.$ac_objext
21615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21616
(eval $ac_compile) 2>conftest.er1
21618
grep -v '^ *+' conftest.er1 >conftest.err
21620
cat conftest.err >&5
21621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622
(exit $ac_status); } &&
21623
{ ac_try='test -z "$ac_c_werror_flag"
21624
|| test ! -s conftest.err'
21625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626
(eval $ac_try) 2>&5
21628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629
(exit $ac_status); }; } &&
21630
{ ac_try='test -s conftest.$ac_objext'
21631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632
(eval $ac_try) 2>&5
21634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635
(exit $ac_status); }; }; then
21636
ac_cv_type_size_t=yes
21638
echo "$as_me: failed program was:" >&5
21639
sed 's/^/| /' conftest.$ac_ext >&5
21641
ac_cv_type_size_t=no
21643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21645
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21646
echo "${ECHO_T}$ac_cv_type_size_t" >&6
21648
echo "$as_me:$LINENO: checking size of size_t" >&5
21649
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
21650
if test "${ac_cv_sizeof_size_t+set}" = set; then
21651
echo $ECHO_N "(cached) $ECHO_C" >&6
21653
if test "$ac_cv_type_size_t" = yes; then
21654
# The cast to unsigned long works around a bug in the HP C Compiler
21655
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21656
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21657
# This bug is HP SR number 8606223364.
21658
if test "$cross_compiling" = yes; then
21659
# Depending upon the size, compute the lo and hi bounds.
21660
cat >conftest.$ac_ext <<_ACEOF
21663
cat confdefs.h >>conftest.$ac_ext
21664
cat >>conftest.$ac_ext <<_ACEOF
21665
/* end confdefs.h. */
21666
$ac_includes_default
21670
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
21677
rm -f conftest.$ac_objext
21678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679
(eval $ac_compile) 2>conftest.er1
21681
grep -v '^ *+' conftest.er1 >conftest.err
21683
cat conftest.err >&5
21684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685
(exit $ac_status); } &&
21686
{ ac_try='test -z "$ac_c_werror_flag"
21687
|| test ! -s conftest.err'
21688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689
(eval $ac_try) 2>&5
21691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692
(exit $ac_status); }; } &&
21693
{ ac_try='test -s conftest.$ac_objext'
21694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695
(eval $ac_try) 2>&5
21697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698
(exit $ac_status); }; }; then
21701
cat >conftest.$ac_ext <<_ACEOF
21704
cat confdefs.h >>conftest.$ac_ext
21705
cat >>conftest.$ac_ext <<_ACEOF
21706
/* end confdefs.h. */
21707
$ac_includes_default
21711
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21718
rm -f conftest.$ac_objext
21719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21720
(eval $ac_compile) 2>conftest.er1
21722
grep -v '^ *+' conftest.er1 >conftest.err
21724
cat conftest.err >&5
21725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726
(exit $ac_status); } &&
21727
{ ac_try='test -z "$ac_c_werror_flag"
21728
|| test ! -s conftest.err'
21729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730
(eval $ac_try) 2>&5
21732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733
(exit $ac_status); }; } &&
21734
{ ac_try='test -s conftest.$ac_objext'
21735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736
(eval $ac_try) 2>&5
21738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739
(exit $ac_status); }; }; then
21740
ac_hi=$ac_mid; break
21742
echo "$as_me: failed program was:" >&5
21743
sed 's/^/| /' conftest.$ac_ext >&5
21745
ac_lo=`expr $ac_mid + 1`
21746
if test $ac_lo -le $ac_mid; then
21750
ac_mid=`expr 2 '*' $ac_mid + 1`
21752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21755
echo "$as_me: failed program was:" >&5
21756
sed 's/^/| /' conftest.$ac_ext >&5
21758
cat >conftest.$ac_ext <<_ACEOF
21761
cat confdefs.h >>conftest.$ac_ext
21762
cat >>conftest.$ac_ext <<_ACEOF
21763
/* end confdefs.h. */
21764
$ac_includes_default
21768
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
21775
rm -f conftest.$ac_objext
21776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777
(eval $ac_compile) 2>conftest.er1
21779
grep -v '^ *+' conftest.er1 >conftest.err
21781
cat conftest.err >&5
21782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783
(exit $ac_status); } &&
21784
{ ac_try='test -z "$ac_c_werror_flag"
21785
|| test ! -s conftest.err'
21786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787
(eval $ac_try) 2>&5
21789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790
(exit $ac_status); }; } &&
21791
{ ac_try='test -s conftest.$ac_objext'
21792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793
(eval $ac_try) 2>&5
21795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796
(exit $ac_status); }; }; then
21799
cat >conftest.$ac_ext <<_ACEOF
21802
cat confdefs.h >>conftest.$ac_ext
21803
cat >>conftest.$ac_ext <<_ACEOF
21804
/* end confdefs.h. */
21805
$ac_includes_default
21809
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
21816
rm -f conftest.$ac_objext
21817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21818
(eval $ac_compile) 2>conftest.er1
21820
grep -v '^ *+' conftest.er1 >conftest.err
21822
cat conftest.err >&5
21823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824
(exit $ac_status); } &&
21825
{ ac_try='test -z "$ac_c_werror_flag"
21826
|| test ! -s conftest.err'
21827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828
(eval $ac_try) 2>&5
21830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831
(exit $ac_status); }; } &&
21832
{ ac_try='test -s conftest.$ac_objext'
21833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834
(eval $ac_try) 2>&5
21836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837
(exit $ac_status); }; }; then
21838
ac_lo=$ac_mid; break
21840
echo "$as_me: failed program was:" >&5
21841
sed 's/^/| /' conftest.$ac_ext >&5
21843
ac_hi=`expr '(' $ac_mid ')' - 1`
21844
if test $ac_mid -le $ac_hi; then
21848
ac_mid=`expr 2 '*' $ac_mid`
21850
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21853
echo "$as_me: failed program was:" >&5
21854
sed 's/^/| /' conftest.$ac_ext >&5
21858
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21861
# Binary search between lo and hi bounds.
21862
while test "x$ac_lo" != "x$ac_hi"; do
21863
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21864
cat >conftest.$ac_ext <<_ACEOF
21867
cat confdefs.h >>conftest.$ac_ext
21868
cat >>conftest.$ac_ext <<_ACEOF
21869
/* end confdefs.h. */
21870
$ac_includes_default
21874
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21881
rm -f conftest.$ac_objext
21882
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883
(eval $ac_compile) 2>conftest.er1
21885
grep -v '^ *+' conftest.er1 >conftest.err
21887
cat conftest.err >&5
21888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889
(exit $ac_status); } &&
21890
{ ac_try='test -z "$ac_c_werror_flag"
21891
|| test ! -s conftest.err'
21892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893
(eval $ac_try) 2>&5
21895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896
(exit $ac_status); }; } &&
21897
{ ac_try='test -s conftest.$ac_objext'
21898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899
(eval $ac_try) 2>&5
21901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902
(exit $ac_status); }; }; then
21905
echo "$as_me: failed program was:" >&5
21906
sed 's/^/| /' conftest.$ac_ext >&5
21908
ac_lo=`expr '(' $ac_mid ')' + 1`
21910
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913
?*) ac_cv_sizeof_size_t=$ac_lo;;
21914
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21915
See \`config.log' for more details." >&5
21916
echo "$as_me: error: cannot compute sizeof (size_t), 77
21917
See \`config.log' for more details." >&2;}
21918
{ (exit 1); exit 1; }; } ;;
21921
if test "$cross_compiling" = yes; then
21922
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21923
See \`config.log' for more details." >&5
21924
echo "$as_me: error: cannot run test program while cross compiling
21925
See \`config.log' for more details." >&2;}
21926
{ (exit 1); exit 1; }; }
21928
cat >conftest.$ac_ext <<_ACEOF
21931
cat confdefs.h >>conftest.$ac_ext
21932
cat >>conftest.$ac_ext <<_ACEOF
21933
/* end confdefs.h. */
21934
$ac_includes_default
21935
long longval () { return (long) (sizeof (size_t)); }
21936
unsigned long ulongval () { return (long) (sizeof (size_t)); }
21938
#include <stdlib.h>
21943
FILE *f = fopen ("conftest.val", "w");
21946
if (((long) (sizeof (size_t))) < 0)
21948
long i = longval ();
21949
if (i != ((long) (sizeof (size_t))))
21951
fprintf (f, "%ld\n", i);
21955
unsigned long i = ulongval ();
21956
if (i != ((long) (sizeof (size_t))))
21958
fprintf (f, "%lu\n", i);
21960
exit (ferror (f) || fclose (f) != 0);
21966
rm -f conftest$ac_exeext
21967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968
(eval $ac_link) 2>&5
21970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973
(eval $ac_try) 2>&5
21975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976
(exit $ac_status); }; }; then
21977
ac_cv_sizeof_size_t=`cat conftest.val`
21979
echo "$as_me: program exited with status $ac_status" >&5
21980
echo "$as_me: failed program was:" >&5
21981
sed 's/^/| /' conftest.$ac_ext >&5
21983
( exit $ac_status )
21984
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21985
See \`config.log' for more details." >&5
21986
echo "$as_me: error: cannot compute sizeof (size_t), 77
21987
See \`config.log' for more details." >&2;}
21988
{ (exit 1); exit 1; }; }
21990
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21995
ac_cv_sizeof_size_t=0
21998
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21999
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
22000
cat >>confdefs.h <<_ACEOF
22001
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22005
echo "$as_me:$LINENO: checking for off_t" >&5
22006
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22007
if test "${ac_cv_type_off_t+set}" = set; then
22008
echo $ECHO_N "(cached) $ECHO_C" >&6
22010
cat >conftest.$ac_ext <<_ACEOF
22013
cat confdefs.h >>conftest.$ac_ext
22014
cat >>conftest.$ac_ext <<_ACEOF
22015
/* end confdefs.h. */
22016
$ac_includes_default
22022
if (sizeof (off_t))
22028
rm -f conftest.$ac_objext
22029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22030
(eval $ac_compile) 2>conftest.er1
22032
grep -v '^ *+' conftest.er1 >conftest.err
22034
cat conftest.err >&5
22035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036
(exit $ac_status); } &&
22037
{ ac_try='test -z "$ac_c_werror_flag"
22038
|| test ! -s conftest.err'
22039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040
(eval $ac_try) 2>&5
22042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043
(exit $ac_status); }; } &&
22044
{ ac_try='test -s conftest.$ac_objext'
22045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046
(eval $ac_try) 2>&5
22048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049
(exit $ac_status); }; }; then
22050
ac_cv_type_off_t=yes
22052
echo "$as_me: failed program was:" >&5
22053
sed 's/^/| /' conftest.$ac_ext >&5
22055
ac_cv_type_off_t=no
22057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22060
echo "${ECHO_T}$ac_cv_type_off_t" >&6
22062
echo "$as_me:$LINENO: checking size of off_t" >&5
22063
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
22064
if test "${ac_cv_sizeof_off_t+set}" = set; then
22065
echo $ECHO_N "(cached) $ECHO_C" >&6
22067
if test "$ac_cv_type_off_t" = yes; then
22068
# The cast to unsigned long works around a bug in the HP C Compiler
22069
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22070
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22071
# This bug is HP SR number 8606223364.
22072
if test "$cross_compiling" = yes; then
22073
# Depending upon the size, compute the lo and hi bounds.
22074
cat >conftest.$ac_ext <<_ACEOF
22077
cat confdefs.h >>conftest.$ac_ext
22078
cat >>conftest.$ac_ext <<_ACEOF
22079
/* end confdefs.h. */
22080
$ac_includes_default
22084
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
22091
rm -f conftest.$ac_objext
22092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093
(eval $ac_compile) 2>conftest.er1
22095
grep -v '^ *+' conftest.er1 >conftest.err
22097
cat conftest.err >&5
22098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099
(exit $ac_status); } &&
22100
{ ac_try='test -z "$ac_c_werror_flag"
22101
|| test ! -s conftest.err'
22102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103
(eval $ac_try) 2>&5
22105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106
(exit $ac_status); }; } &&
22107
{ ac_try='test -s conftest.$ac_objext'
22108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109
(eval $ac_try) 2>&5
22111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112
(exit $ac_status); }; }; then
22115
cat >conftest.$ac_ext <<_ACEOF
22118
cat confdefs.h >>conftest.$ac_ext
22119
cat >>conftest.$ac_ext <<_ACEOF
22120
/* end confdefs.h. */
22121
$ac_includes_default
22125
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
22132
rm -f conftest.$ac_objext
22133
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22134
(eval $ac_compile) 2>conftest.er1
22136
grep -v '^ *+' conftest.er1 >conftest.err
22138
cat conftest.err >&5
22139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140
(exit $ac_status); } &&
22141
{ ac_try='test -z "$ac_c_werror_flag"
22142
|| test ! -s conftest.err'
22143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144
(eval $ac_try) 2>&5
22146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147
(exit $ac_status); }; } &&
22148
{ ac_try='test -s conftest.$ac_objext'
22149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150
(eval $ac_try) 2>&5
22152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153
(exit $ac_status); }; }; then
22154
ac_hi=$ac_mid; break
22156
echo "$as_me: failed program was:" >&5
22157
sed 's/^/| /' conftest.$ac_ext >&5
22159
ac_lo=`expr $ac_mid + 1`
22160
if test $ac_lo -le $ac_mid; then
22164
ac_mid=`expr 2 '*' $ac_mid + 1`
22166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22169
echo "$as_me: failed program was:" >&5
22170
sed 's/^/| /' conftest.$ac_ext >&5
22172
cat >conftest.$ac_ext <<_ACEOF
22175
cat confdefs.h >>conftest.$ac_ext
22176
cat >>conftest.$ac_ext <<_ACEOF
22177
/* end confdefs.h. */
22178
$ac_includes_default
22182
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
22189
rm -f conftest.$ac_objext
22190
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191
(eval $ac_compile) 2>conftest.er1
22193
grep -v '^ *+' conftest.er1 >conftest.err
22195
cat conftest.err >&5
22196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197
(exit $ac_status); } &&
22198
{ ac_try='test -z "$ac_c_werror_flag"
22199
|| test ! -s conftest.err'
22200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201
(eval $ac_try) 2>&5
22203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204
(exit $ac_status); }; } &&
22205
{ ac_try='test -s conftest.$ac_objext'
22206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207
(eval $ac_try) 2>&5
22209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210
(exit $ac_status); }; }; then
22213
cat >conftest.$ac_ext <<_ACEOF
22216
cat confdefs.h >>conftest.$ac_ext
22217
cat >>conftest.$ac_ext <<_ACEOF
22218
/* end confdefs.h. */
22219
$ac_includes_default
22223
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
22230
rm -f conftest.$ac_objext
22231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22232
(eval $ac_compile) 2>conftest.er1
22234
grep -v '^ *+' conftest.er1 >conftest.err
22236
cat conftest.err >&5
22237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238
(exit $ac_status); } &&
22239
{ ac_try='test -z "$ac_c_werror_flag"
22240
|| test ! -s conftest.err'
22241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242
(eval $ac_try) 2>&5
22244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245
(exit $ac_status); }; } &&
22246
{ ac_try='test -s conftest.$ac_objext'
22247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248
(eval $ac_try) 2>&5
22250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251
(exit $ac_status); }; }; then
22252
ac_lo=$ac_mid; break
22254
echo "$as_me: failed program was:" >&5
22255
sed 's/^/| /' conftest.$ac_ext >&5
22257
ac_hi=`expr '(' $ac_mid ')' - 1`
22258
if test $ac_mid -le $ac_hi; then
22262
ac_mid=`expr 2 '*' $ac_mid`
22264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267
echo "$as_me: failed program was:" >&5
22268
sed 's/^/| /' conftest.$ac_ext >&5
22272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22275
# Binary search between lo and hi bounds.
22276
while test "x$ac_lo" != "x$ac_hi"; do
22277
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22278
cat >conftest.$ac_ext <<_ACEOF
22281
cat confdefs.h >>conftest.$ac_ext
22282
cat >>conftest.$ac_ext <<_ACEOF
22283
/* end confdefs.h. */
22284
$ac_includes_default
22288
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
22295
rm -f conftest.$ac_objext
22296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22297
(eval $ac_compile) 2>conftest.er1
22299
grep -v '^ *+' conftest.er1 >conftest.err
22301
cat conftest.err >&5
22302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303
(exit $ac_status); } &&
22304
{ ac_try='test -z "$ac_c_werror_flag"
22305
|| test ! -s conftest.err'
22306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307
(eval $ac_try) 2>&5
22309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310
(exit $ac_status); }; } &&
22311
{ ac_try='test -s conftest.$ac_objext'
22312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313
(eval $ac_try) 2>&5
22315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316
(exit $ac_status); }; }; then
22319
echo "$as_me: failed program was:" >&5
22320
sed 's/^/| /' conftest.$ac_ext >&5
22322
ac_lo=`expr '(' $ac_mid ')' + 1`
22324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22327
?*) ac_cv_sizeof_off_t=$ac_lo;;
22328
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
22329
See \`config.log' for more details." >&5
22330
echo "$as_me: error: cannot compute sizeof (off_t), 77
22331
See \`config.log' for more details." >&2;}
22332
{ (exit 1); exit 1; }; } ;;
22335
if test "$cross_compiling" = yes; then
22336
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22337
See \`config.log' for more details." >&5
22338
echo "$as_me: error: cannot run test program while cross compiling
22339
See \`config.log' for more details." >&2;}
22340
{ (exit 1); exit 1; }; }
22342
cat >conftest.$ac_ext <<_ACEOF
22345
cat confdefs.h >>conftest.$ac_ext
22346
cat >>conftest.$ac_ext <<_ACEOF
22347
/* end confdefs.h. */
22348
$ac_includes_default
22349
long longval () { return (long) (sizeof (off_t)); }
22350
unsigned long ulongval () { return (long) (sizeof (off_t)); }
22352
#include <stdlib.h>
22357
FILE *f = fopen ("conftest.val", "w");
22360
if (((long) (sizeof (off_t))) < 0)
22362
long i = longval ();
22363
if (i != ((long) (sizeof (off_t))))
22365
fprintf (f, "%ld\n", i);
22369
unsigned long i = ulongval ();
22370
if (i != ((long) (sizeof (off_t))))
22372
fprintf (f, "%lu\n", i);
22374
exit (ferror (f) || fclose (f) != 0);
22380
rm -f conftest$ac_exeext
22381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22382
(eval $ac_link) 2>&5
22384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387
(eval $ac_try) 2>&5
22389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390
(exit $ac_status); }; }; then
22391
ac_cv_sizeof_off_t=`cat conftest.val`
22393
echo "$as_me: program exited with status $ac_status" >&5
22394
echo "$as_me: failed program was:" >&5
22395
sed 's/^/| /' conftest.$ac_ext >&5
22397
( exit $ac_status )
22398
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
22399
See \`config.log' for more details." >&5
22400
echo "$as_me: error: cannot compute sizeof (off_t), 77
22401
See \`config.log' for more details." >&2;}
22402
{ (exit 1); exit 1; }; }
22404
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22409
ac_cv_sizeof_off_t=0
22412
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
22413
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
22414
cat >>confdefs.h <<_ACEOF
22415
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16711
22826
saved_libs=$LIBS
16712
22827
LIBS="$LIBS $EMU_THR_X_LIBS"
22830
for ac_header in windows.h
22832
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22833
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22834
echo "$as_me:$LINENO: checking for $ac_header" >&5
22835
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22836
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22837
echo $ECHO_N "(cached) $ECHO_C" >&6
22839
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22840
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22842
# Is the header compilable?
22843
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22844
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22845
cat >conftest.$ac_ext <<_ACEOF
22848
cat confdefs.h >>conftest.$ac_ext
22849
cat >>conftest.$ac_ext <<_ACEOF
22850
/* end confdefs.h. */
22851
$ac_includes_default
22852
#include <$ac_header>
22854
rm -f conftest.$ac_objext
22855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22856
(eval $ac_compile) 2>conftest.er1
22858
grep -v '^ *+' conftest.er1 >conftest.err
22860
cat conftest.err >&5
22861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862
(exit $ac_status); } &&
22863
{ ac_try='test -z "$ac_c_werror_flag"
22864
|| test ! -s conftest.err'
22865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866
(eval $ac_try) 2>&5
22868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869
(exit $ac_status); }; } &&
22870
{ ac_try='test -s conftest.$ac_objext'
22871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872
(eval $ac_try) 2>&5
22874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875
(exit $ac_status); }; }; then
22876
ac_header_compiler=yes
22878
echo "$as_me: failed program was:" >&5
22879
sed 's/^/| /' conftest.$ac_ext >&5
22881
ac_header_compiler=no
22883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22884
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22885
echo "${ECHO_T}$ac_header_compiler" >&6
22887
# Is the header present?
22888
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22889
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22890
cat >conftest.$ac_ext <<_ACEOF
22893
cat confdefs.h >>conftest.$ac_ext
22894
cat >>conftest.$ac_ext <<_ACEOF
22895
/* end confdefs.h. */
22896
#include <$ac_header>
22898
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22899
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22901
grep -v '^ *+' conftest.er1 >conftest.err
22903
cat conftest.err >&5
22904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905
(exit $ac_status); } >/dev/null; then
22906
if test -s conftest.err; then
22907
ac_cpp_err=$ac_c_preproc_warn_flag
22908
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22915
if test -z "$ac_cpp_err"; then
22916
ac_header_preproc=yes
22918
echo "$as_me: failed program was:" >&5
22919
sed 's/^/| /' conftest.$ac_ext >&5
22921
ac_header_preproc=no
22923
rm -f conftest.err conftest.$ac_ext
22924
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22925
echo "${ECHO_T}$ac_header_preproc" >&6
22927
# So? What about this header?
22928
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22930
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22931
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22932
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22933
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22934
ac_header_preproc=yes
22937
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22938
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22939
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22940
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22941
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22942
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22943
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22944
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22945
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22946
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22947
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22948
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22951
## ------------------------------------------ ##
22952
## Report this to the AC_PACKAGE_NAME lists. ##
22953
## ------------------------------------------ ##
22956
sed "s/^/$as_me: WARNING: /" >&2
22959
echo "$as_me:$LINENO: checking for $ac_header" >&5
22960
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22961
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22962
echo $ECHO_N "(cached) $ECHO_C" >&6
22964
eval "$as_ac_Header=\$ac_header_preproc"
22966
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22967
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22970
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22971
cat >>confdefs.h <<_ACEOF
22972
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22980
for ac_header in winsock2.h
22982
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22983
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22984
echo "$as_me:$LINENO: checking for $ac_header" >&5
22985
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22986
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22987
echo $ECHO_N "(cached) $ECHO_C" >&6
22989
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22990
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22992
# Is the header compilable?
22993
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22994
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22995
cat >conftest.$ac_ext <<_ACEOF
22998
cat confdefs.h >>conftest.$ac_ext
22999
cat >>conftest.$ac_ext <<_ACEOF
23000
/* end confdefs.h. */
23001
$ac_includes_default
23002
#include <$ac_header>
23004
rm -f conftest.$ac_objext
23005
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23006
(eval $ac_compile) 2>conftest.er1
23008
grep -v '^ *+' conftest.er1 >conftest.err
23010
cat conftest.err >&5
23011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012
(exit $ac_status); } &&
23013
{ ac_try='test -z "$ac_c_werror_flag"
23014
|| test ! -s conftest.err'
23015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016
(eval $ac_try) 2>&5
23018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019
(exit $ac_status); }; } &&
23020
{ ac_try='test -s conftest.$ac_objext'
23021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022
(eval $ac_try) 2>&5
23024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025
(exit $ac_status); }; }; then
23026
ac_header_compiler=yes
23028
echo "$as_me: failed program was:" >&5
23029
sed 's/^/| /' conftest.$ac_ext >&5
23031
ac_header_compiler=no
23033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23034
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035
echo "${ECHO_T}$ac_header_compiler" >&6
23037
# Is the header present?
23038
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23039
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23040
cat >conftest.$ac_ext <<_ACEOF
23043
cat confdefs.h >>conftest.$ac_ext
23044
cat >>conftest.$ac_ext <<_ACEOF
23045
/* end confdefs.h. */
23046
#include <$ac_header>
23048
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23049
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23051
grep -v '^ *+' conftest.er1 >conftest.err
23053
cat conftest.err >&5
23054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055
(exit $ac_status); } >/dev/null; then
23056
if test -s conftest.err; then
23057
ac_cpp_err=$ac_c_preproc_warn_flag
23058
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23065
if test -z "$ac_cpp_err"; then
23066
ac_header_preproc=yes
23068
echo "$as_me: failed program was:" >&5
23069
sed 's/^/| /' conftest.$ac_ext >&5
23071
ac_header_preproc=no
23073
rm -f conftest.err conftest.$ac_ext
23074
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23075
echo "${ECHO_T}$ac_header_preproc" >&6
23077
# So? What about this header?
23078
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23080
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23081
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23082
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23083
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23084
ac_header_preproc=yes
23087
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23088
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23089
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23090
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23091
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23092
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23093
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23094
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23095
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23096
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23097
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23098
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23101
## ------------------------------------------ ##
23102
## Report this to the AC_PACKAGE_NAME lists. ##
23103
## ------------------------------------------ ##
23106
sed "s/^/$as_me: WARNING: /" >&2
23109
echo "$as_me:$LINENO: checking for $ac_header" >&5
23110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23111
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23112
echo $ECHO_N "(cached) $ECHO_C" >&6
23114
eval "$as_ac_Header=\$ac_header_preproc"
23116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23117
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23120
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23121
cat >>confdefs.h <<_ACEOF
23122
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23130
for ac_header in ws2tcpip.h
23132
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23133
echo "$as_me:$LINENO: checking for $ac_header" >&5
23134
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23136
echo $ECHO_N "(cached) $ECHO_C" >&6
23138
cat >conftest.$ac_ext <<_ACEOF
23141
cat confdefs.h >>conftest.$ac_ext
23142
cat >>conftest.$ac_ext <<_ACEOF
23143
/* end confdefs.h. */
23145
#ifdef HAVE_WINSOCK2_H
23146
#include <winsock2.h>
23148
#ifdef HAVE_WINDOWS_H
23149
#include <windows.h>
23153
#include <$ac_header>
23155
rm -f conftest.$ac_objext
23156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23157
(eval $ac_compile) 2>conftest.er1
23159
grep -v '^ *+' conftest.er1 >conftest.err
23161
cat conftest.err >&5
23162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163
(exit $ac_status); } &&
23164
{ ac_try='test -z "$ac_c_werror_flag"
23165
|| test ! -s conftest.err'
23166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167
(eval $ac_try) 2>&5
23169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170
(exit $ac_status); }; } &&
23171
{ ac_try='test -s conftest.$ac_objext'
23172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173
(eval $ac_try) 2>&5
23175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176
(exit $ac_status); }; }; then
23177
eval "$as_ac_Header=yes"
23179
echo "$as_me: failed program was:" >&5
23180
sed 's/^/| /' conftest.$ac_ext >&5
23182
eval "$as_ac_Header=no"
23184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23186
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23187
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23188
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23189
cat >>confdefs.h <<_ACEOF
23190
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16714
23197
echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16715
23198
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16716
if test "${ac_cv_func_getaddrinfo+set}" = set; then
16717
echo $ECHO_N "(cached) $ECHO_C" >&6
16719
cat >conftest.$ac_ext <<_ACEOF
23199
cat >conftest.$ac_ext <<_ACEOF
16720
23200
/* confdefs.h. */
16722
23202
cat confdefs.h >>conftest.$ac_ext
16723
23203
cat >>conftest.$ac_ext <<_ACEOF
16724
23204
/* end confdefs.h. */
16725
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
16726
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16727
#define getaddrinfo innocuous_getaddrinfo
16729
/* System header to define __stub macros and hopefully few prototypes,
16730
which can conflict with char getaddrinfo (); below.
16731
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16732
<limits.h> exists even on freestanding compilers. */
16735
# include <limits.h>
16737
# include <assert.h>
16742
/* Override any gcc2 internal prototype to avoid an error. */
16747
/* We use char because int might match the return type of a gcc2
16748
builtin and then its argument prototype would still apply. */
16749
char getaddrinfo ();
16750
/* The GNU C library defines this for functions which it implements
16751
to always fail with ENOSYS. Some functions are actually named
16752
something starting with __ and the normal name is an alias. */
16753
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
16756
char (*f) () = getaddrinfo;
23206
#include <stdlib.h>
23207
#include <string.h>
23208
#ifdef HAVE_WINSOCK2_H
23209
#include <winsock2.h>
23211
#ifdef HAVE_WINDOWS_H
23212
#include <windows.h>
23214
#ifdef HAVE_WS2TCPIP_H
23215
#include <ws2tcpip.h>
23218
#include <sys/socket.h>
16765
return f != getaddrinfo;
23226
getaddrinfo("","",NULL,NULL);
18029
for ac_header in stdlib.h unistd.h
18031
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18033
echo "$as_me:$LINENO: checking for $ac_header" >&5
18034
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036
echo $ECHO_N "(cached) $ECHO_C" >&6
18038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18039
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18041
# Is the header compilable?
18042
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18043
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18044
cat >conftest.$ac_ext <<_ACEOF
18047
cat confdefs.h >>conftest.$ac_ext
18048
cat >>conftest.$ac_ext <<_ACEOF
18049
/* end confdefs.h. */
18050
$ac_includes_default
18051
#include <$ac_header>
18053
rm -f conftest.$ac_objext
18054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18055
(eval $ac_compile) 2>conftest.er1
18057
grep -v '^ *+' conftest.er1 >conftest.err
18059
cat conftest.err >&5
18060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061
(exit $ac_status); } &&
18062
{ ac_try='test -z "$ac_c_werror_flag"
18063
|| test ! -s conftest.err'
18064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065
(eval $ac_try) 2>&5
18067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068
(exit $ac_status); }; } &&
18069
{ ac_try='test -s conftest.$ac_objext'
18070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071
(eval $ac_try) 2>&5
18073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074
(exit $ac_status); }; }; then
18075
ac_header_compiler=yes
18077
echo "$as_me: failed program was:" >&5
18078
sed 's/^/| /' conftest.$ac_ext >&5
18080
ac_header_compiler=no
18082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18083
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18084
echo "${ECHO_T}$ac_header_compiler" >&6
18086
# Is the header present?
18087
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18088
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18089
cat >conftest.$ac_ext <<_ACEOF
18092
cat confdefs.h >>conftest.$ac_ext
18093
cat >>conftest.$ac_ext <<_ACEOF
18094
/* end confdefs.h. */
18095
#include <$ac_header>
18097
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18098
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18100
grep -v '^ *+' conftest.er1 >conftest.err
18102
cat conftest.err >&5
18103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104
(exit $ac_status); } >/dev/null; then
18105
if test -s conftest.err; then
18106
ac_cpp_err=$ac_c_preproc_warn_flag
18107
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18114
if test -z "$ac_cpp_err"; then
18115
ac_header_preproc=yes
18117
echo "$as_me: failed program was:" >&5
18118
sed 's/^/| /' conftest.$ac_ext >&5
18120
ac_header_preproc=no
18122
rm -f conftest.err conftest.$ac_ext
18123
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18124
echo "${ECHO_T}$ac_header_preproc" >&6
18126
# So? What about this header?
18127
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18129
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18130
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18131
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18132
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18133
ac_header_preproc=yes
18136
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18137
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18138
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18139
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18140
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18141
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18142
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18143
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18144
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18145
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18146
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18147
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18150
## ------------------------------------------ ##
18151
## Report this to the AC_PACKAGE_NAME lists. ##
18152
## ------------------------------------------ ##
18155
sed "s/^/$as_me: WARNING: /" >&2
18158
echo "$as_me:$LINENO: checking for $ac_header" >&5
18159
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18160
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18161
echo $ECHO_N "(cached) $ECHO_C" >&6
18163
eval "$as_ac_Header=\$ac_header_preproc"
18165
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18166
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18169
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18170
cat >>confdefs.h <<_ACEOF
18171
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18179
for ac_func in getpagesize
18181
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18182
echo "$as_me:$LINENO: checking for $ac_func" >&5
18183
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18184
if eval "test \"\${$as_ac_var+set}\" = set"; then
18185
echo $ECHO_N "(cached) $ECHO_C" >&6
18187
cat >conftest.$ac_ext <<_ACEOF
18190
cat confdefs.h >>conftest.$ac_ext
18191
cat >>conftest.$ac_ext <<_ACEOF
18192
/* end confdefs.h. */
18193
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18194
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18195
#define $ac_func innocuous_$ac_func
18197
/* System header to define __stub macros and hopefully few prototypes,
18198
which can conflict with char $ac_func (); below.
18199
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18200
<limits.h> exists even on freestanding compilers. */
18203
# include <limits.h>
18205
# include <assert.h>
18210
/* Override any gcc2 internal prototype to avoid an error. */
18215
/* We use char because int might match the return type of a gcc2
18216
builtin and then its argument prototype would still apply. */
18218
/* The GNU C library defines this for functions which it implements
18219
to always fail with ENOSYS. Some functions are actually named
18220
something starting with __ and the normal name is an alias. */
18221
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18224
char (*f) () = $ac_func;
18233
return f != $ac_func;
18238
rm -f conftest.$ac_objext conftest$ac_exeext
18239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18240
(eval $ac_link) 2>conftest.er1
18242
grep -v '^ *+' conftest.er1 >conftest.err
18244
cat conftest.err >&5
18245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246
(exit $ac_status); } &&
18247
{ ac_try='test -z "$ac_c_werror_flag"
18248
|| test ! -s conftest.err'
18249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250
(eval $ac_try) 2>&5
18252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253
(exit $ac_status); }; } &&
18254
{ ac_try='test -s conftest$ac_exeext'
18255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256
(eval $ac_try) 2>&5
18258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259
(exit $ac_status); }; }; then
18260
eval "$as_ac_var=yes"
18262
echo "$as_me: failed program was:" >&5
18263
sed 's/^/| /' conftest.$ac_ext >&5
18265
eval "$as_ac_var=no"
18267
rm -f conftest.err conftest.$ac_objext \
18268
conftest$ac_exeext conftest.$ac_ext
18270
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18271
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18272
if test `eval echo '${'$as_ac_var'}'` = yes; then
18273
cat >>confdefs.h <<_ACEOF
18274
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18280
echo "$as_me:$LINENO: checking for working mmap" >&5
18281
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18282
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18283
echo $ECHO_N "(cached) $ECHO_C" >&6
18285
if test "$cross_compiling" = yes; then
18286
ac_cv_func_mmap_fixed_mapped=no
18288
cat >conftest.$ac_ext <<_ACEOF
18291
cat confdefs.h >>conftest.$ac_ext
18292
cat >>conftest.$ac_ext <<_ACEOF
18293
/* end confdefs.h. */
18294
$ac_includes_default
18295
/* malloc might have been renamed as rpl_malloc. */
18298
/* Thanks to Mike Haertel and Jim Avera for this test.
18299
Here is a matrix of mmap possibilities:
18300
mmap private not fixed
18301
mmap private fixed at somewhere currently unmapped
18302
mmap private fixed at somewhere already mapped
18303
mmap shared not fixed
18304
mmap shared fixed at somewhere currently unmapped
18305
mmap shared fixed at somewhere already mapped
18306
For private mappings, we should verify that changes cannot be read()
18307
back from the file, nor mmap's back from the file at a different
18308
address. (There have been systems where private was not correctly
18309
implemented like the infamous i386 svr4.0, and systems where the
18310
VM page cache was not coherent with the file system buffer cache
18311
like early versions of FreeBSD and possibly contemporary NetBSD.)
18312
For shared mappings, we should conversely verify that changes get
18313
propagated back to all the places they're supposed to be.
18315
Grep wants private fixed already mapped.
18316
The main things grep needs to know about mmap are:
18317
* does it exist and is it safe to write into the mmap'd area
18318
* how to use it (BSD variants) */
18321
#include <sys/mman.h>
18323
#if !STDC_HEADERS && !HAVE_STDLIB_H
18327
/* This mess was copied from the GNU getpagesize.h. */
18328
#if !HAVE_GETPAGESIZE
18329
/* Assume that all systems that can run configure have sys/param.h. */
18330
# if !HAVE_SYS_PARAM_H
18331
# define HAVE_SYS_PARAM_H 1
18334
# ifdef _SC_PAGESIZE
18335
# define getpagesize() sysconf(_SC_PAGESIZE)
18336
# else /* no _SC_PAGESIZE */
18337
# if HAVE_SYS_PARAM_H
18338
# include <sys/param.h>
18339
# ifdef EXEC_PAGESIZE
18340
# define getpagesize() EXEC_PAGESIZE
18341
# else /* no EXEC_PAGESIZE */
18343
# define getpagesize() NBPG * CLSIZE
18346
# endif /* no CLSIZE */
18347
# else /* no NBPG */
18349
# define getpagesize() NBPC
18350
# else /* no NBPC */
18352
# define getpagesize() PAGESIZE
18353
# endif /* PAGESIZE */
18354
# endif /* no NBPC */
18355
# endif /* no NBPG */
18356
# endif /* no EXEC_PAGESIZE */
18357
# else /* no HAVE_SYS_PARAM_H */
18358
# define getpagesize() 8192 /* punt totally */
18359
# endif /* no HAVE_SYS_PARAM_H */
18360
# endif /* no _SC_PAGESIZE */
18362
#endif /* no HAVE_GETPAGESIZE */
18367
char *data, *data2, *data3;
18371
pagesize = getpagesize ();
18373
/* First, make a file with some known garbage in it. */
18374
data = (char *) malloc (pagesize);
18377
for (i = 0; i < pagesize; ++i)
18378
*(data + i) = rand ();
18380
fd = creat ("conftest.mmap", 0600);
18383
if (write (fd, data, pagesize) != pagesize)
18387
/* Next, try to mmap the file at a fixed address which already has
18388
something else allocated at it. If we can, also make sure that
18389
we see the same garbage. */
18390
fd = open ("conftest.mmap", O_RDWR);
18393
data2 = (char *) malloc (2 * pagesize);
18396
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18397
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18398
MAP_PRIVATE | MAP_FIXED, fd, 0L))
18400
for (i = 0; i < pagesize; ++i)
18401
if (*(data + i) != *(data2 + i))
18404
/* Finally, make sure that changes to the mapped area do not
18405
percolate back to the file as seen by read(). (This is a bug on
18406
some variants of i386 svr4.0.) */
18407
for (i = 0; i < pagesize; ++i)
18408
*(data2 + i) = *(data2 + i) + 1;
18409
data3 = (char *) malloc (pagesize);
18412
if (read (fd, data3, pagesize) != pagesize)
18414
for (i = 0; i < pagesize; ++i)
18415
if (*(data + i) != *(data3 + i))
18421
rm -f conftest$ac_exeext
18422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423
(eval $ac_link) 2>&5
18425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18427
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428
(eval $ac_try) 2>&5
18430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431
(exit $ac_status); }; }; then
18432
ac_cv_func_mmap_fixed_mapped=yes
18434
echo "$as_me: program exited with status $ac_status" >&5
18435
echo "$as_me: failed program was:" >&5
18436
sed 's/^/| /' conftest.$ac_ext >&5
18438
( exit $ac_status )
18439
ac_cv_func_mmap_fixed_mapped=no
18441
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18444
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18445
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18446
if test $ac_cv_func_mmap_fixed_mapped = yes; then
18448
cat >>confdefs.h <<\_ACEOF
18449
#define HAVE_MMAP 1
18453
rm -f conftest.mmap
18456
24659
echo "$as_me:$LINENO: checking for conflicting declaration of fread" >&5
18457
24660
echo $ECHO_N "checking for conflicting declaration of fread... $ECHO_C" >&6
18458
24661
if test "${ac_cv_func_decl_fread+set}" = set; then
24956
for ac_func in fdatasync
24958
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24959
echo "$as_me:$LINENO: checking for $ac_func" >&5
24960
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24961
if eval "test \"\${$as_ac_var+set}\" = set"; then
24962
echo $ECHO_N "(cached) $ECHO_C" >&6
24964
cat >conftest.$ac_ext <<_ACEOF
24967
cat confdefs.h >>conftest.$ac_ext
24968
cat >>conftest.$ac_ext <<_ACEOF
24969
/* end confdefs.h. */
24970
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972
#define $ac_func innocuous_$ac_func
24974
/* System header to define __stub macros and hopefully few prototypes,
24975
which can conflict with char $ac_func (); below.
24976
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977
<limits.h> exists even on freestanding compilers. */
24980
# include <limits.h>
24982
# include <assert.h>
24987
/* Override any gcc2 internal prototype to avoid an error. */
24992
/* We use char because int might match the return type of a gcc2
24993
builtin and then its argument prototype would still apply. */
24995
/* The GNU C library defines this for functions which it implements
24996
to always fail with ENOSYS. Some functions are actually named
24997
something starting with __ and the normal name is an alias. */
24998
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25001
char (*f) () = $ac_func;
25010
return f != $ac_func;
25015
rm -f conftest.$ac_objext conftest$ac_exeext
25016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017
(eval $ac_link) 2>conftest.er1
25019
grep -v '^ *+' conftest.er1 >conftest.err
25021
cat conftest.err >&5
25022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023
(exit $ac_status); } &&
25024
{ ac_try='test -z "$ac_c_werror_flag"
25025
|| test ! -s conftest.err'
25026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027
(eval $ac_try) 2>&5
25029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030
(exit $ac_status); }; } &&
25031
{ ac_try='test -s conftest$ac_exeext'
25032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033
(eval $ac_try) 2>&5
25035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036
(exit $ac_status); }; }; then
25037
eval "$as_ac_var=yes"
25039
echo "$as_me: failed program was:" >&5
25040
sed 's/^/| /' conftest.$ac_ext >&5
25042
eval "$as_ac_var=no"
25044
rm -f conftest.err conftest.$ac_objext \
25045
conftest$ac_exeext conftest.$ac_ext
25047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049
if test `eval echo '${'$as_ac_var'}'` = yes; then
25050
cat >>confdefs.h <<_ACEOF
25051
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25058
echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
25059
echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
25060
if test "${ac_cv_search_fdatasync+set}" = set; then
25061
echo $ECHO_N "(cached) $ECHO_C" >&6
25063
ac_func_search_save_LIBS=$LIBS
25064
ac_cv_search_fdatasync=no
25065
cat >conftest.$ac_ext <<_ACEOF
25068
cat confdefs.h >>conftest.$ac_ext
25069
cat >>conftest.$ac_ext <<_ACEOF
25070
/* end confdefs.h. */
25072
/* Override any gcc2 internal prototype to avoid an error. */
25076
/* We use char because int might match the return type of a gcc2
25077
builtin and then its argument prototype would still apply. */
25087
rm -f conftest.$ac_objext conftest$ac_exeext
25088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25089
(eval $ac_link) 2>conftest.er1
25091
grep -v '^ *+' conftest.er1 >conftest.err
25093
cat conftest.err >&5
25094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095
(exit $ac_status); } &&
25096
{ ac_try='test -z "$ac_c_werror_flag"
25097
|| test ! -s conftest.err'
25098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099
(eval $ac_try) 2>&5
25101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102
(exit $ac_status); }; } &&
25103
{ ac_try='test -s conftest$ac_exeext'
25104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105
(eval $ac_try) 2>&5
25107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108
(exit $ac_status); }; }; then
25109
ac_cv_search_fdatasync="none required"
25111
echo "$as_me: failed program was:" >&5
25112
sed 's/^/| /' conftest.$ac_ext >&5
25115
rm -f conftest.err conftest.$ac_objext \
25116
conftest$ac_exeext conftest.$ac_ext
25117
if test "$ac_cv_search_fdatasync" = no; then
25118
for ac_lib in rt; do
25119
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25120
cat >conftest.$ac_ext <<_ACEOF
25123
cat confdefs.h >>conftest.$ac_ext
25124
cat >>conftest.$ac_ext <<_ACEOF
25125
/* end confdefs.h. */
25127
/* Override any gcc2 internal prototype to avoid an error. */
25131
/* We use char because int might match the return type of a gcc2
25132
builtin and then its argument prototype would still apply. */
25142
rm -f conftest.$ac_objext conftest$ac_exeext
25143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144
(eval $ac_link) 2>conftest.er1
25146
grep -v '^ *+' conftest.er1 >conftest.err
25148
cat conftest.err >&5
25149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150
(exit $ac_status); } &&
25151
{ ac_try='test -z "$ac_c_werror_flag"
25152
|| test ! -s conftest.err'
25153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154
(eval $ac_try) 2>&5
25156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157
(exit $ac_status); }; } &&
25158
{ ac_try='test -s conftest$ac_exeext'
25159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160
(eval $ac_try) 2>&5
25162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163
(exit $ac_status); }; }; then
25164
ac_cv_search_fdatasync="-l$ac_lib"
25167
echo "$as_me: failed program was:" >&5
25168
sed 's/^/| /' conftest.$ac_ext >&5
25171
rm -f conftest.err conftest.$ac_objext \
25172
conftest$ac_exeext conftest.$ac_ext
25175
LIBS=$ac_func_search_save_LIBS
25177
echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
25178
echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
25179
if test "$ac_cv_search_fdatasync" != no; then
25180
test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
25188
for ac_header in net/if_dl.h ifaddrs.h netpacket/packet.h
25190
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25191
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25192
echo "$as_me:$LINENO: checking for $ac_header" >&5
25193
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25195
echo $ECHO_N "(cached) $ECHO_C" >&6
25197
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25198
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25200
# Is the header compilable?
25201
echo "$as_me:$LINENO: checking $ac_header usability" >&5
25202
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25203
cat >conftest.$ac_ext <<_ACEOF
25206
cat confdefs.h >>conftest.$ac_ext
25207
cat >>conftest.$ac_ext <<_ACEOF
25208
/* end confdefs.h. */
25209
$ac_includes_default
25210
#include <$ac_header>
25212
rm -f conftest.$ac_objext
25213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25214
(eval $ac_compile) 2>conftest.er1
25216
grep -v '^ *+' conftest.er1 >conftest.err
25218
cat conftest.err >&5
25219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220
(exit $ac_status); } &&
25221
{ ac_try='test -z "$ac_c_werror_flag"
25222
|| test ! -s conftest.err'
25223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224
(eval $ac_try) 2>&5
25226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227
(exit $ac_status); }; } &&
25228
{ ac_try='test -s conftest.$ac_objext'
25229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230
(eval $ac_try) 2>&5
25232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233
(exit $ac_status); }; }; then
25234
ac_header_compiler=yes
25236
echo "$as_me: failed program was:" >&5
25237
sed 's/^/| /' conftest.$ac_ext >&5
25239
ac_header_compiler=no
25241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25242
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25243
echo "${ECHO_T}$ac_header_compiler" >&6
25245
# Is the header present?
25246
echo "$as_me:$LINENO: checking $ac_header presence" >&5
25247
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25248
cat >conftest.$ac_ext <<_ACEOF
25251
cat confdefs.h >>conftest.$ac_ext
25252
cat >>conftest.$ac_ext <<_ACEOF
25253
/* end confdefs.h. */
25254
#include <$ac_header>
25256
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25257
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25259
grep -v '^ *+' conftest.er1 >conftest.err
25261
cat conftest.err >&5
25262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263
(exit $ac_status); } >/dev/null; then
25264
if test -s conftest.err; then
25265
ac_cpp_err=$ac_c_preproc_warn_flag
25266
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25273
if test -z "$ac_cpp_err"; then
25274
ac_header_preproc=yes
25276
echo "$as_me: failed program was:" >&5
25277
sed 's/^/| /' conftest.$ac_ext >&5
25279
ac_header_preproc=no
25281
rm -f conftest.err conftest.$ac_ext
25282
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25283
echo "${ECHO_T}$ac_header_preproc" >&6
25285
# So? What about this header?
25286
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25288
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25289
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25290
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25291
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25292
ac_header_preproc=yes
25295
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25296
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25297
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25298
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25299
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25300
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25301
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25302
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25303
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25304
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25305
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25306
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25309
## ------------------------------------------ ##
25310
## Report this to the AC_PACKAGE_NAME lists. ##
25311
## ------------------------------------------ ##
25314
sed "s/^/$as_me: WARNING: /" >&2
25317
echo "$as_me:$LINENO: checking for $ac_header" >&5
25318
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25319
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25320
echo $ECHO_N "(cached) $ECHO_C" >&6
25322
eval "$as_ac_Header=\$ac_header_preproc"
25324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25325
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25328
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25329
cat >>confdefs.h <<_ACEOF
25330
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25338
for ac_func in getifaddrs
25340
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25341
echo "$as_me:$LINENO: checking for $ac_func" >&5
25342
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25343
if eval "test \"\${$as_ac_var+set}\" = set"; then
25344
echo $ECHO_N "(cached) $ECHO_C" >&6
25346
cat >conftest.$ac_ext <<_ACEOF
25349
cat confdefs.h >>conftest.$ac_ext
25350
cat >>conftest.$ac_ext <<_ACEOF
25351
/* end confdefs.h. */
25352
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25353
For example, HP-UX 11i <limits.h> declares gettimeofday. */
25354
#define $ac_func innocuous_$ac_func
25356
/* System header to define __stub macros and hopefully few prototypes,
25357
which can conflict with char $ac_func (); below.
25358
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25359
<limits.h> exists even on freestanding compilers. */
25362
# include <limits.h>
25364
# include <assert.h>
25369
/* Override any gcc2 internal prototype to avoid an error. */
25374
/* We use char because int might match the return type of a gcc2
25375
builtin and then its argument prototype would still apply. */
25377
/* The GNU C library defines this for functions which it implements
25378
to always fail with ENOSYS. Some functions are actually named
25379
something starting with __ and the normal name is an alias. */
25380
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25383
char (*f) () = $ac_func;
25392
return f != $ac_func;
25397
rm -f conftest.$ac_objext conftest$ac_exeext
25398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25399
(eval $ac_link) 2>conftest.er1
25401
grep -v '^ *+' conftest.er1 >conftest.err
25403
cat conftest.err >&5
25404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405
(exit $ac_status); } &&
25406
{ ac_try='test -z "$ac_c_werror_flag"
25407
|| test ! -s conftest.err'
25408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409
(eval $ac_try) 2>&5
25411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412
(exit $ac_status); }; } &&
25413
{ ac_try='test -s conftest$ac_exeext'
25414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415
(eval $ac_try) 2>&5
25417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418
(exit $ac_status); }; }; then
25419
eval "$as_ac_var=yes"
25421
echo "$as_me: failed program was:" >&5
25422
sed 's/^/| /' conftest.$ac_ext >&5
25424
eval "$as_ac_var=no"
25426
rm -f conftest.err conftest.$ac_objext \
25427
conftest$ac_exeext conftest.$ac_ext
25429
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25430
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25431
if test `eval echo '${'$as_ac_var'}'` = yes; then
25432
cat >>confdefs.h <<_ACEOF
25433
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18753
25441
echo "$as_me:$LINENO: checking for sched_getaffinity/sched_setaffinity" >&5
18754
25442
echo $ECHO_N "checking for sched_getaffinity/sched_setaffinity... $ECHO_C" >&6
18755
25443
cat >conftest.$ac_ext <<_ACEOF