3598
ac_cpp='$CPP $CPPFLAGS'
3599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3603
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3604
# On Suns, sometimes $CPP names a directory.
3605
if test -n "$CPP" && test -d "$CPP"; then
3608
if test -z "$CPP"; then
3609
if test "${ac_cv_prog_CPP+set}" = set; then
3610
$as_echo_n "(cached) " >&6
3612
# Double quotes because CPP needs to be expanded
3613
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3616
for ac_c_preproc_warn_flag in '' yes
3618
# Use a header file that comes with gcc, so configuring glibc
3619
# with a fresh cross-compiler works.
3620
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621
# <limits.h> exists even on freestanding compilers.
3622
# On the NeXT, cc -E runs the code through the compiler's parser,
3623
# not just through cpp. "Syntax error" is here to catch this case.
3624
cat >conftest.$ac_ext <<_ACEOF
3627
cat confdefs.h >>conftest.$ac_ext
3628
cat >>conftest.$ac_ext <<_ACEOF
3629
/* end confdefs.h. */
3631
# include <limits.h>
3633
# include <assert.h>
3637
if { (ac_try="$ac_cpp conftest.$ac_ext"
3639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640
*) ac_try_echo=$ac_try;;
3642
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643
$as_echo "$ac_try_echo") >&5
3644
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3646
grep -v '^ *+' conftest.er1 >conftest.err
3648
cat conftest.err >&5
3649
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650
(exit $ac_status); } >/dev/null && {
3651
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3652
test ! -s conftest.err
3656
$as_echo "$as_me: failed program was:" >&5
3657
sed 's/^/| /' conftest.$ac_ext >&5
3659
# Broken: fails on valid input.
3663
rm -f conftest.err conftest.$ac_ext
3665
# OK, works on sane cases. Now check whether nonexistent headers
3666
# can be detected and how.
3667
cat >conftest.$ac_ext <<_ACEOF
3670
cat confdefs.h >>conftest.$ac_ext
3671
cat >>conftest.$ac_ext <<_ACEOF
3672
/* end confdefs.h. */
3673
#include <ac_nonexistent.h>
3675
if { (ac_try="$ac_cpp conftest.$ac_ext"
3677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678
*) ac_try_echo=$ac_try;;
3680
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3681
$as_echo "$ac_try_echo") >&5
3682
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684
grep -v '^ *+' conftest.er1 >conftest.err
3686
cat conftest.err >&5
3687
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688
(exit $ac_status); } >/dev/null && {
3689
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3690
test ! -s conftest.err
3692
# Broken: success on invalid input.
3695
$as_echo "$as_me: failed program was:" >&5
3696
sed 's/^/| /' conftest.$ac_ext >&5
3698
# Passes both tests.
3703
rm -f conftest.err conftest.$ac_ext
3706
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707
rm -f conftest.err conftest.$ac_ext
3708
if $ac_preproc_ok; then
3720
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3721
$as_echo "$CPP" >&6; }
3723
for ac_c_preproc_warn_flag in '' yes
3725
# Use a header file that comes with gcc, so configuring glibc
3726
# with a fresh cross-compiler works.
3727
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728
# <limits.h> exists even on freestanding compilers.
3729
# On the NeXT, cc -E runs the code through the compiler's parser,
3730
# not just through cpp. "Syntax error" is here to catch this case.
3731
cat >conftest.$ac_ext <<_ACEOF
3734
cat confdefs.h >>conftest.$ac_ext
3735
cat >>conftest.$ac_ext <<_ACEOF
3736
/* end confdefs.h. */
3738
# include <limits.h>
3740
# include <assert.h>
3744
if { (ac_try="$ac_cpp conftest.$ac_ext"
3746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747
*) ac_try_echo=$ac_try;;
3749
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3750
$as_echo "$ac_try_echo") >&5
3751
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3753
grep -v '^ *+' conftest.er1 >conftest.err
3755
cat conftest.err >&5
3756
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757
(exit $ac_status); } >/dev/null && {
3758
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3759
test ! -s conftest.err
3763
$as_echo "$as_me: failed program was:" >&5
3764
sed 's/^/| /' conftest.$ac_ext >&5
3766
# Broken: fails on valid input.
3770
rm -f conftest.err conftest.$ac_ext
3772
# OK, works on sane cases. Now check whether nonexistent headers
3773
# can be detected and how.
3774
cat >conftest.$ac_ext <<_ACEOF
3777
cat confdefs.h >>conftest.$ac_ext
3778
cat >>conftest.$ac_ext <<_ACEOF
3779
/* end confdefs.h. */
3780
#include <ac_nonexistent.h>
3782
if { (ac_try="$ac_cpp conftest.$ac_ext"
3784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785
*) ac_try_echo=$ac_try;;
3787
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788
$as_echo "$ac_try_echo") >&5
3789
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3791
grep -v '^ *+' conftest.er1 >conftest.err
3793
cat conftest.err >&5
3794
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); } >/dev/null && {
3796
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3797
test ! -s conftest.err
3799
# Broken: success on invalid input.
3802
$as_echo "$as_me: failed program was:" >&5
3803
sed 's/^/| /' conftest.$ac_ext >&5
3805
# Passes both tests.
3810
rm -f conftest.err conftest.$ac_ext
3813
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3814
rm -f conftest.err conftest.$ac_ext
3815
if $ac_preproc_ok; then
3818
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3819
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3821
See \`config.log' for more details." >&5
3822
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3823
See \`config.log' for more details." >&2;}
3824
{ (exit 1); exit 1; }; }; }
3828
ac_cpp='$CPP $CPPFLAGS'
3829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3835
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3836
if test "${ac_cv_path_GREP+set}" = set; then
3837
$as_echo_n "(cached) " >&6
3839
if test -z "$GREP"; then
3840
ac_path_GREP_found=false
3841
# Loop through the user's path and test for each of PROGNAME-LIST
3842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846
test -z "$as_dir" && as_dir=.
3847
for ac_prog in grep ggrep; do
3848
for ac_exec_ext in '' $ac_executable_extensions; do
3849
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3850
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3851
# Check for GNU ac_path_GREP and select it if it is found.
3852
# Check for GNU $ac_path_GREP
3853
case `"$ac_path_GREP" --version 2>&1` in
3855
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3858
$as_echo_n 0123456789 >"conftest.in"
3861
cat "conftest.in" "conftest.in" >"conftest.tmp"
3862
mv "conftest.tmp" "conftest.in"
3863
cp "conftest.in" "conftest.nl"
3864
$as_echo 'GREP' >> "conftest.nl"
3865
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867
ac_count=`expr $ac_count + 1`
3868
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3869
# Best one so far, save it but keep looking for a better one
3870
ac_cv_path_GREP="$ac_path_GREP"
3871
ac_path_GREP_max=$ac_count
3873
# 10*(2^10) chars as input seems more than enough
3874
test $ac_count -gt 10 && break
3876
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3879
$ac_path_GREP_found && break 3
3884
if test -z "$ac_cv_path_GREP"; then
3885
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3886
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3887
{ (exit 1); exit 1; }; }
3890
ac_cv_path_GREP=$GREP
3894
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3895
$as_echo "$ac_cv_path_GREP" >&6; }
3896
GREP="$ac_cv_path_GREP"
3899
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3900
$as_echo_n "checking for egrep... " >&6; }
3901
if test "${ac_cv_path_EGREP+set}" = set; then
3902
$as_echo_n "(cached) " >&6
3904
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3905
then ac_cv_path_EGREP="$GREP -E"
3907
if test -z "$EGREP"; then
3908
ac_path_EGREP_found=false
3909
# Loop through the user's path and test for each of PROGNAME-LIST
3910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914
test -z "$as_dir" && as_dir=.
3915
for ac_prog in egrep; do
3916
for ac_exec_ext in '' $ac_executable_extensions; do
3917
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3918
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3919
# Check for GNU ac_path_EGREP and select it if it is found.
3920
# Check for GNU $ac_path_EGREP
3921
case `"$ac_path_EGREP" --version 2>&1` in
3923
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3926
$as_echo_n 0123456789 >"conftest.in"
3929
cat "conftest.in" "conftest.in" >"conftest.tmp"
3930
mv "conftest.tmp" "conftest.in"
3931
cp "conftest.in" "conftest.nl"
3932
$as_echo 'EGREP' >> "conftest.nl"
3933
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3934
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3935
ac_count=`expr $ac_count + 1`
3936
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3937
# Best one so far, save it but keep looking for a better one
3938
ac_cv_path_EGREP="$ac_path_EGREP"
3939
ac_path_EGREP_max=$ac_count
3941
# 10*(2^10) chars as input seems more than enough
3942
test $ac_count -gt 10 && break
3944
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947
$ac_path_EGREP_found && break 3
3952
if test -z "$ac_cv_path_EGREP"; then
3953
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3954
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3955
{ (exit 1); exit 1; }; }
3958
ac_cv_path_EGREP=$EGREP
3963
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3964
$as_echo "$ac_cv_path_EGREP" >&6; }
3965
EGREP="$ac_cv_path_EGREP"
3970
{ $as_echo "$as_me:$LINENO: checking for icc in use" >&5
3971
$as_echo_n "checking for icc in use... " >&6; }
3972
if test "$GCC" = "yes"; then
3973
cat >conftest.$ac_ext <<_ACEOF
3976
cat confdefs.h >>conftest.$ac_ext
3977
cat >>conftest.$ac_ext <<_ACEOF
3978
/* end confdefs.h. */
3981
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3982
$EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
3983
{ $as_echo "$as_me:$LINENO: result: no" >&5
3984
$as_echo "no" >&6; }
3987
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3988
$as_echo "yes" >&6; }
3995
{ $as_echo "$as_me:$LINENO: result: no" >&5
3996
$as_echo "no" >&6; }
4005
{ $as_echo "$as_me:$LINENO: checking for Sun cc in use" >&5
4006
$as_echo_n "checking for Sun cc in use... " >&6; }
4007
if test "$cross_compiling" = yes; then
4008
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4009
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4011
See \`config.log' for more details." >&5
4012
$as_echo "$as_me: error: cannot run test program while cross compiling
4013
See \`config.log' for more details." >&2;}
4014
{ (exit 1); exit 1; }; }; }
4016
cat >conftest.$ac_ext <<_ACEOF
4019
cat confdefs.h >>conftest.$ac_ext
4020
cat >>conftest.$ac_ext <<_ACEOF
4021
/* end confdefs.h. */
4037
rm -f conftest$ac_exeext
4038
if { (ac_try="$ac_link"
4040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041
*) ac_try_echo=$ac_try;;
4043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4044
$as_echo "$ac_try_echo") >&5
4045
(eval "$ac_link") 2>&5
4047
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4049
{ (case "(($ac_try" in
4050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051
*) ac_try_echo=$ac_try;;
4053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054
$as_echo "$ac_try_echo") >&5
4055
(eval "$ac_try") 2>&5
4057
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058
(exit $ac_status); }; }; then
4060
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4061
$as_echo "yes" >&6; }
4062
CFLAGS="-mt $CFLAGS"
4066
$as_echo "$as_me: program exited with status $ac_status" >&5
4067
$as_echo "$as_me: failed program was:" >&5
4068
sed 's/^/| /' conftest.$ac_ext >&5
4072
{ $as_echo "$as_me:$LINENO: result: no" >&5
4073
$as_echo "no" >&6; }
4077
rm -rf conftest.dSYM
4078
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4084
if test "$ICC" = "no"; then
4085
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4086
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4087
if test "${ac_cv_prog_cc_c99+set}" = set; then
4088
$as_echo_n "(cached) " >&6
4090
ac_cv_prog_cc_c99=no
4092
cat >conftest.$ac_ext <<_ACEOF
4095
cat confdefs.h >>conftest.$ac_ext
4096
cat >>conftest.$ac_ext <<_ACEOF
4097
/* end confdefs.h. */
4099
#include <stdbool.h>
4104
// Check varargs macros. These examples are taken from C99 6.10.3.5.
4105
#define debug(...) fprintf (stderr, __VA_ARGS__)
4106
#define showlist(...) puts (#__VA_ARGS__)
4107
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4109
test_varargs_macros (void)
4114
debug ("X = %d\n", x);
4115
showlist (The first, second, and third items.);
4116
report (x>y, "x is %d but y is %d", x, y);
4119
// Check long long types.
4120
#define BIG64 18446744073709551615ull
4121
#define BIG32 4294967295ul
4122
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4124
your preprocessor is broken;
4128
your preprocessor is broken;
4130
static long long int bignum = -9223372036854775807LL;
4131
static unsigned long long int ubignum = BIG64;
4133
struct incomplete_array
4141
const wchar_t *name;
4145
typedef const char *ccp;
4148
test_restrict (ccp restrict text)
4150
// See if C++-style comments work.
4151
// Iterate through items via the restricted pointer.
4152
// Also check for declarations in for loops.
4153
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4158
// Check varargs and va_copy.
4160
test_varargs (const char *format, ...)
4163
va_start (args, format);
4165
va_copy (args_copy, args);
4176
str = va_arg (args_copy, const char *);
4179
number = va_arg (args_copy, int);
4182
fnumber = va_arg (args_copy, double);
4197
_Bool success = false;
4200
if (test_restrict ("String literal") == 0)
4202
char *restrict newvar = "Another string";
4205
test_varargs ("s, d' f .", "string", 65, 34.234);
4206
test_varargs_macros ();
4208
// Check flexible array members.
4209
struct incomplete_array *ia =
4210
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4212
for (int i = 0; i < ia->datasize; ++i)
4213
ia->data[i] = i * 1.234;
4215
// Check named initializers.
4216
struct named_init ni = {
4218
.name = L"Test wide string",
4219
.average = 543.34343,
4224
int dynamic_array[ni.number];
4225
dynamic_array[ni.number - 1] = 543;
4227
// work around unused variable warnings
4228
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4229
|| dynamic_array[ni.number - 1] != 543);
4235
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4237
CC="$ac_save_CC $ac_arg"
4238
rm -f conftest.$ac_objext
4239
if { (ac_try="$ac_compile"
4241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242
*) ac_try_echo=$ac_try;;
4244
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245
$as_echo "$ac_try_echo") >&5
4246
(eval "$ac_compile") 2>conftest.er1
4248
grep -v '^ *+' conftest.er1 >conftest.err
4250
cat conftest.err >&5
4251
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252
(exit $ac_status); } && {
4253
test -z "$ac_c_werror_flag" ||
4254
test ! -s conftest.err
4255
} && test -s conftest.$ac_objext; then
4256
ac_cv_prog_cc_c99=$ac_arg
4258
$as_echo "$as_me: failed program was:" >&5
4259
sed 's/^/| /' conftest.$ac_ext >&5
4264
rm -f core conftest.err conftest.$ac_objext
4265
test "x$ac_cv_prog_cc_c99" != "xno" && break
4267
rm -f conftest.$ac_ext
4272
case "x$ac_cv_prog_cc_c99" in
4274
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
4275
$as_echo "none needed" >&6; } ;;
4277
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4278
$as_echo "unsupported" >&6; } ;;
4280
CC="$CC $ac_cv_prog_cc_c99"
4281
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4282
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3579
4289
if test "x$CC" != xcc; then
3580
4290
{ $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3581
4291
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4273
{ $as_echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
4274
$as_echo_n "checking for library containing mallinfo... " >&6; }
4275
if test "${ac_cv_search_mallinfo+set}" = set; then
4276
$as_echo_n "(cached) " >&6
4278
ac_func_search_save_LIBS=$LIBS
4279
cat >conftest.$ac_ext <<_ACEOF
4282
cat confdefs.h >>conftest.$ac_ext
4283
cat >>conftest.$ac_ext <<_ACEOF
4284
/* end confdefs.h. */
4286
/* Override any GCC internal prototype to avoid an error.
4287
Use char because int might match the return type of a GCC
4288
builtin and then its argument prototype would still apply. */
4301
for ac_lib in '' malloc; do
4302
if test -z "$ac_lib"; then
4303
ac_res="none required"
4306
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4308
rm -f conftest.$ac_objext conftest$ac_exeext
4309
if { (ac_try="$ac_link"
4311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312
*) ac_try_echo=$ac_try;;
4314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4315
$as_echo "$ac_try_echo") >&5
4316
(eval "$ac_link") 2>conftest.er1
4318
grep -v '^ *+' conftest.er1 >conftest.err
4320
cat conftest.err >&5
4321
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); } && {
4323
test -z "$ac_c_werror_flag" ||
4324
test ! -s conftest.err
4325
} && test -s conftest$ac_exeext && {
4326
test "$cross_compiling" = yes ||
4327
$as_test_x conftest$ac_exeext
4329
ac_cv_search_mallinfo=$ac_res
4331
$as_echo "$as_me: failed program was:" >&5
4332
sed 's/^/| /' conftest.$ac_ext >&5
4337
rm -rf conftest.dSYM
4338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4340
if test "${ac_cv_search_mallinfo+set}" = set; then
4344
if test "${ac_cv_search_mallinfo+set}" = set; then
4347
ac_cv_search_mallinfo=no
4350
LIBS=$ac_func_search_save_LIBS
4352
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
4353
$as_echo "$ac_cv_search_mallinfo" >&6; }
4354
ac_res=$ac_cv_search_mallinfo
4355
if test "$ac_res" != no; then
4356
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4361
{ $as_echo "$as_me:$LINENO: checking for daemon" >&5
4362
$as_echo_n "checking for daemon... " >&6; }
4363
if test "${ac_cv_func_daemon+set}" = set; then
4364
$as_echo_n "(cached) " >&6
4366
cat >conftest.$ac_ext <<_ACEOF
4369
cat confdefs.h >>conftest.$ac_ext
4370
cat >>conftest.$ac_ext <<_ACEOF
4371
/* end confdefs.h. */
4372
/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
4373
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4374
#define daemon innocuous_daemon
4376
/* System header to define __stub macros and hopefully few prototypes,
4377
which can conflict with char daemon (); below.
4378
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4379
<limits.h> exists even on freestanding compilers. */
4382
# include <limits.h>
4384
# include <assert.h>
4389
/* Override any GCC internal prototype to avoid an error.
4390
Use char because int might match the return type of a GCC
4391
builtin and then its argument prototype would still apply. */
4396
/* The GNU C library defines this for functions which it implements
4397
to always fail with ENOSYS. Some functions are actually named
4398
something starting with __ and the normal name is an alias. */
4399
#if defined __stub_daemon || defined __stub___daemon
4411
rm -f conftest.$ac_objext conftest$ac_exeext
4412
if { (ac_try="$ac_link"
4414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415
*) ac_try_echo=$ac_try;;
4417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418
$as_echo "$ac_try_echo") >&5
4419
(eval "$ac_link") 2>conftest.er1
4421
grep -v '^ *+' conftest.er1 >conftest.err
4423
cat conftest.err >&5
4424
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425
(exit $ac_status); } && {
4426
test -z "$ac_c_werror_flag" ||
4427
test ! -s conftest.err
4428
} && test -s conftest$ac_exeext && {
4429
test "$cross_compiling" = yes ||
4430
$as_test_x conftest$ac_exeext
4432
ac_cv_func_daemon=yes
4434
$as_echo "$as_me: failed program was:" >&5
4435
sed 's/^/| /' conftest.$ac_ext >&5
4437
ac_cv_func_daemon=no
4440
rm -rf conftest.dSYM
4441
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4442
conftest$ac_exeext conftest.$ac_ext
4444
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
4445
$as_echo "$ac_cv_func_daemon" >&6; }
4446
if test "x$ac_cv_func_daemon" = x""yes; then
4448
cat >>confdefs.h <<\_ACEOF
4449
#define HAVE_DAEMON /**/
4459
ac_cpp='$CPP $CPPFLAGS'
4460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4464
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4465
# On Suns, sometimes $CPP names a directory.
4466
if test -n "$CPP" && test -d "$CPP"; then
4469
if test -z "$CPP"; then
4470
if test "${ac_cv_prog_CPP+set}" = set; then
4471
$as_echo_n "(cached) " >&6
4473
# Double quotes because CPP needs to be expanded
4474
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4477
for ac_c_preproc_warn_flag in '' yes
4479
# Use a header file that comes with gcc, so configuring glibc
4480
# with a fresh cross-compiler works.
4481
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482
# <limits.h> exists even on freestanding compilers.
4483
# On the NeXT, cc -E runs the code through the compiler's parser,
4484
# not just through cpp. "Syntax error" is here to catch this case.
4485
cat >conftest.$ac_ext <<_ACEOF
4488
cat confdefs.h >>conftest.$ac_ext
4489
cat >>conftest.$ac_ext <<_ACEOF
4490
/* end confdefs.h. */
4492
# include <limits.h>
4494
# include <assert.h>
4498
if { (ac_try="$ac_cpp conftest.$ac_ext"
4500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501
*) ac_try_echo=$ac_try;;
4503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4504
$as_echo "$ac_try_echo") >&5
4505
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4507
grep -v '^ *+' conftest.er1 >conftest.err
4509
cat conftest.err >&5
4510
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); } >/dev/null && {
4512
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4513
test ! -s conftest.err
4517
$as_echo "$as_me: failed program was:" >&5
4518
sed 's/^/| /' conftest.$ac_ext >&5
4520
# Broken: fails on valid input.
4524
rm -f conftest.err conftest.$ac_ext
4526
# OK, works on sane cases. Now check whether nonexistent headers
4527
# can be detected and how.
4528
cat >conftest.$ac_ext <<_ACEOF
4531
cat confdefs.h >>conftest.$ac_ext
4532
cat >>conftest.$ac_ext <<_ACEOF
4533
/* end confdefs.h. */
4534
#include <ac_nonexistent.h>
4536
if { (ac_try="$ac_cpp conftest.$ac_ext"
4538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539
*) ac_try_echo=$ac_try;;
4541
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4542
$as_echo "$ac_try_echo") >&5
4543
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545
grep -v '^ *+' conftest.er1 >conftest.err
4547
cat conftest.err >&5
4548
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); } >/dev/null && {
4550
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551
test ! -s conftest.err
4553
# Broken: success on invalid input.
4556
$as_echo "$as_me: failed program was:" >&5
4557
sed 's/^/| /' conftest.$ac_ext >&5
4559
# Passes both tests.
4564
rm -f conftest.err conftest.$ac_ext
4567
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4568
rm -f conftest.err conftest.$ac_ext
4569
if $ac_preproc_ok; then
4581
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4582
$as_echo "$CPP" >&6; }
4584
for ac_c_preproc_warn_flag in '' yes
4586
# Use a header file that comes with gcc, so configuring glibc
4587
# with a fresh cross-compiler works.
4588
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589
# <limits.h> exists even on freestanding compilers.
4590
# On the NeXT, cc -E runs the code through the compiler's parser,
4591
# not just through cpp. "Syntax error" is here to catch this case.
4592
cat >conftest.$ac_ext <<_ACEOF
4595
cat confdefs.h >>conftest.$ac_ext
4596
cat >>conftest.$ac_ext <<_ACEOF
4597
/* end confdefs.h. */
4599
# include <limits.h>
4601
# include <assert.h>
4605
if { (ac_try="$ac_cpp conftest.$ac_ext"
4607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608
*) ac_try_echo=$ac_try;;
4610
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611
$as_echo "$ac_try_echo") >&5
4612
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4614
grep -v '^ *+' conftest.er1 >conftest.err
4616
cat conftest.err >&5
4617
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
(exit $ac_status); } >/dev/null && {
4619
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4620
test ! -s conftest.err
4624
$as_echo "$as_me: failed program was:" >&5
4625
sed 's/^/| /' conftest.$ac_ext >&5
4627
# Broken: fails on valid input.
4631
rm -f conftest.err conftest.$ac_ext
4633
# OK, works on sane cases. Now check whether nonexistent headers
4634
# can be detected and how.
4635
cat >conftest.$ac_ext <<_ACEOF
4638
cat confdefs.h >>conftest.$ac_ext
4639
cat >>conftest.$ac_ext <<_ACEOF
4640
/* end confdefs.h. */
4641
#include <ac_nonexistent.h>
4643
if { (ac_try="$ac_cpp conftest.$ac_ext"
4645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646
*) ac_try_echo=$ac_try;;
4648
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649
$as_echo "$ac_try_echo") >&5
4650
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652
grep -v '^ *+' conftest.er1 >conftest.err
4654
cat conftest.err >&5
4655
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
(exit $ac_status); } >/dev/null && {
4657
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658
test ! -s conftest.err
4660
# Broken: success on invalid input.
4663
$as_echo "$as_me: failed program was:" >&5
4664
sed 's/^/| /' conftest.$ac_ext >&5
4666
# Passes both tests.
4671
rm -f conftest.err conftest.$ac_ext
4674
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675
rm -f conftest.err conftest.$ac_ext
4676
if $ac_preproc_ok; then
4679
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4680
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4681
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682
See \`config.log' for more details." >&5
4683
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684
See \`config.log' for more details." >&2;}
4685
{ (exit 1); exit 1; }; }; }
4689
ac_cpp='$CPP $CPPFLAGS'
4690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4696
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4697
if test "${ac_cv_path_GREP+set}" = set; then
4698
$as_echo_n "(cached) " >&6
4700
if test -z "$GREP"; then
4701
ac_path_GREP_found=false
4702
# Loop through the user's path and test for each of PROGNAME-LIST
4703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707
test -z "$as_dir" && as_dir=.
4708
for ac_prog in grep ggrep; do
4709
for ac_exec_ext in '' $ac_executable_extensions; do
4710
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4711
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4712
# Check for GNU ac_path_GREP and select it if it is found.
4713
# Check for GNU $ac_path_GREP
4714
case `"$ac_path_GREP" --version 2>&1` in
4716
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4719
$as_echo_n 0123456789 >"conftest.in"
4722
cat "conftest.in" "conftest.in" >"conftest.tmp"
4723
mv "conftest.tmp" "conftest.in"
4724
cp "conftest.in" "conftest.nl"
4725
$as_echo 'GREP' >> "conftest.nl"
4726
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728
ac_count=`expr $ac_count + 1`
4729
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730
# Best one so far, save it but keep looking for a better one
4731
ac_cv_path_GREP="$ac_path_GREP"
4732
ac_path_GREP_max=$ac_count
4734
# 10*(2^10) chars as input seems more than enough
4735
test $ac_count -gt 10 && break
4737
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740
$ac_path_GREP_found && break 3
4745
if test -z "$ac_cv_path_GREP"; then
4746
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4747
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4748
{ (exit 1); exit 1; }; }
4751
ac_cv_path_GREP=$GREP
4755
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4756
$as_echo "$ac_cv_path_GREP" >&6; }
4757
GREP="$ac_cv_path_GREP"
4760
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4761
$as_echo_n "checking for egrep... " >&6; }
4762
if test "${ac_cv_path_EGREP+set}" = set; then
4763
$as_echo_n "(cached) " >&6
4765
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4766
then ac_cv_path_EGREP="$GREP -E"
4768
if test -z "$EGREP"; then
4769
ac_path_EGREP_found=false
4770
# Loop through the user's path and test for each of PROGNAME-LIST
4771
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775
test -z "$as_dir" && as_dir=.
4776
for ac_prog in egrep; do
4777
for ac_exec_ext in '' $ac_executable_extensions; do
4778
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4779
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4780
# Check for GNU ac_path_EGREP and select it if it is found.
4781
# Check for GNU $ac_path_EGREP
4782
case `"$ac_path_EGREP" --version 2>&1` in
4784
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4787
$as_echo_n 0123456789 >"conftest.in"
4790
cat "conftest.in" "conftest.in" >"conftest.tmp"
4791
mv "conftest.tmp" "conftest.in"
4792
cp "conftest.in" "conftest.nl"
4793
$as_echo 'EGREP' >> "conftest.nl"
4794
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796
ac_count=`expr $ac_count + 1`
4797
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4798
# Best one so far, save it but keep looking for a better one
4799
ac_cv_path_EGREP="$ac_path_EGREP"
4800
ac_path_EGREP_max=$ac_count
4802
# 10*(2^10) chars as input seems more than enough
4803
test $ac_count -gt 10 && break
4805
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808
$ac_path_EGREP_found && break 3
4813
if test -z "$ac_cv_path_EGREP"; then
4814
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4815
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4816
{ (exit 1); exit 1; }; }
4819
ac_cv_path_EGREP=$EGREP
4824
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4825
$as_echo "$ac_cv_path_EGREP" >&6; }
4826
EGREP="$ac_cv_path_EGREP"
5114
{ $as_echo "$as_me:$LINENO: checking for library containing umem_cache_create" >&5
5115
$as_echo_n "checking for library containing umem_cache_create... " >&6; }
5116
if test "${ac_cv_search_umem_cache_create+set}" = set; then
5117
$as_echo_n "(cached) " >&6
5119
ac_func_search_save_LIBS=$LIBS
5120
cat >conftest.$ac_ext <<_ACEOF
5123
cat confdefs.h >>conftest.$ac_ext
5124
cat >>conftest.$ac_ext <<_ACEOF
5125
/* end confdefs.h. */
5127
/* Override any GCC internal prototype to avoid an error.
5128
Use char because int might match the return type of a GCC
5129
builtin and then its argument prototype would still apply. */
5133
char umem_cache_create ();
5137
return umem_cache_create ();
5142
for ac_lib in '' umem; do
5143
if test -z "$ac_lib"; then
5144
ac_res="none required"
5147
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5149
rm -f conftest.$ac_objext conftest$ac_exeext
5150
if { (ac_try="$ac_link"
5152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153
*) ac_try_echo=$ac_try;;
5155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5156
$as_echo "$ac_try_echo") >&5
5157
(eval "$ac_link") 2>conftest.er1
5159
grep -v '^ *+' conftest.er1 >conftest.err
5161
cat conftest.err >&5
5162
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163
(exit $ac_status); } && {
5164
test -z "$ac_c_werror_flag" ||
5165
test ! -s conftest.err
5166
} && test -s conftest$ac_exeext && {
5167
test "$cross_compiling" = yes ||
5168
$as_test_x conftest$ac_exeext
5170
ac_cv_search_umem_cache_create=$ac_res
5172
$as_echo "$as_me: failed program was:" >&5
5173
sed 's/^/| /' conftest.$ac_ext >&5
5178
rm -rf conftest.dSYM
5179
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5181
if test "${ac_cv_search_umem_cache_create+set}" = set; then
5185
if test "${ac_cv_search_umem_cache_create+set}" = set; then
5188
ac_cv_search_umem_cache_create=no
5191
LIBS=$ac_func_search_save_LIBS
5193
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_umem_cache_create" >&5
5194
$as_echo "$ac_cv_search_umem_cache_create" >&6; }
5195
ac_res=$ac_cv_search_umem_cache_create
5196
if test "$ac_res" != no; then
5197
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5201
{ $as_echo "$as_me:$LINENO: checking for library containing gethugepagesizes" >&5
5202
$as_echo_n "checking for library containing gethugepagesizes... " >&6; }
5203
if test "${ac_cv_search_gethugepagesizes+set}" = set; then
5204
$as_echo_n "(cached) " >&6
5206
ac_func_search_save_LIBS=$LIBS
5207
cat >conftest.$ac_ext <<_ACEOF
5210
cat confdefs.h >>conftest.$ac_ext
5211
cat >>conftest.$ac_ext <<_ACEOF
5212
/* end confdefs.h. */
5214
/* Override any GCC internal prototype to avoid an error.
5215
Use char because int might match the return type of a GCC
5216
builtin and then its argument prototype would still apply. */
5220
char gethugepagesizes ();
5224
return gethugepagesizes ();
5229
for ac_lib in '' hugetlbfs; do
5230
if test -z "$ac_lib"; then
5231
ac_res="none required"
5234
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5236
rm -f conftest.$ac_objext conftest$ac_exeext
5237
if { (ac_try="$ac_link"
5239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240
*) ac_try_echo=$ac_try;;
5242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243
$as_echo "$ac_try_echo") >&5
5244
(eval "$ac_link") 2>conftest.er1
5246
grep -v '^ *+' conftest.er1 >conftest.err
5248
cat conftest.err >&5
5249
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
(exit $ac_status); } && {
5251
test -z "$ac_c_werror_flag" ||
5252
test ! -s conftest.err
5253
} && test -s conftest$ac_exeext && {
5254
test "$cross_compiling" = yes ||
5255
$as_test_x conftest$ac_exeext
5257
ac_cv_search_gethugepagesizes=$ac_res
5259
$as_echo "$as_me: failed program was:" >&5
5260
sed 's/^/| /' conftest.$ac_ext >&5
5265
rm -rf conftest.dSYM
5266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5268
if test "${ac_cv_search_gethugepagesizes+set}" = set; then
5272
if test "${ac_cv_search_gethugepagesizes+set}" = set; then
5275
ac_cv_search_gethugepagesizes=no
5278
LIBS=$ac_func_search_save_LIBS
5280
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethugepagesizes" >&5
5281
$as_echo "$ac_cv_search_gethugepagesizes" >&6; }
5282
ac_res=$ac_cv_search_gethugepagesizes
5283
if test "$ac_res" != no; then
5284
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4829
5288
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4830
5289
$as_echo_n "checking for ANSI C header files... " >&6; }
5417
if test "${ac_cv_header_malloc_h+set}" = set; then
5418
{ $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
5419
$as_echo_n "checking for malloc.h... " >&6; }
5420
if test "${ac_cv_header_malloc_h+set}" = set; then
5421
$as_echo_n "(cached) " >&6
5423
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5424
$as_echo "$ac_cv_header_malloc_h" >&6; }
5426
# Is the header compilable?
5427
{ $as_echo "$as_me:$LINENO: checking malloc.h usability" >&5
5428
$as_echo_n "checking malloc.h usability... " >&6; }
5429
cat >conftest.$ac_ext <<_ACEOF
5432
cat confdefs.h >>conftest.$ac_ext
5433
cat >>conftest.$ac_ext <<_ACEOF
5434
/* end confdefs.h. */
5435
$ac_includes_default
5438
rm -f conftest.$ac_objext
5439
if { (ac_try="$ac_compile"
5441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442
*) ac_try_echo=$ac_try;;
5444
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5445
$as_echo "$ac_try_echo") >&5
5446
(eval "$ac_compile") 2>conftest.er1
5448
grep -v '^ *+' conftest.er1 >conftest.err
5450
cat conftest.err >&5
5451
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452
(exit $ac_status); } && {
5453
test -z "$ac_c_werror_flag" ||
5454
test ! -s conftest.err
5455
} && test -s conftest.$ac_objext; then
5456
ac_header_compiler=yes
5458
$as_echo "$as_me: failed program was:" >&5
5459
sed 's/^/| /' conftest.$ac_ext >&5
5461
ac_header_compiler=no
5464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466
$as_echo "$ac_header_compiler" >&6; }
5468
# Is the header present?
5469
{ $as_echo "$as_me:$LINENO: checking malloc.h presence" >&5
5470
$as_echo_n "checking malloc.h presence... " >&6; }
5471
cat >conftest.$ac_ext <<_ACEOF
5474
cat confdefs.h >>conftest.$ac_ext
5475
cat >>conftest.$ac_ext <<_ACEOF
5476
/* end confdefs.h. */
5479
if { (ac_try="$ac_cpp conftest.$ac_ext"
5481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482
*) ac_try_echo=$ac_try;;
5484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485
$as_echo "$ac_try_echo") >&5
5486
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488
grep -v '^ *+' conftest.er1 >conftest.err
5490
cat conftest.err >&5
5491
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492
(exit $ac_status); } >/dev/null && {
5493
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5494
test ! -s conftest.err
5496
ac_header_preproc=yes
5498
$as_echo "$as_me: failed program was:" >&5
5499
sed 's/^/| /' conftest.$ac_ext >&5
5501
ac_header_preproc=no
5504
rm -f conftest.err conftest.$ac_ext
5505
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5506
$as_echo "$ac_header_preproc" >&6; }
5508
# So? What about this header?
5509
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5511
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5512
$as_echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5513
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
5514
$as_echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
5515
ac_header_preproc=yes
5518
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
5519
$as_echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
5520
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
5521
$as_echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
5522
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
5523
$as_echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
5524
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
5525
$as_echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
5526
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
5527
$as_echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
5528
{ $as_echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
5529
$as_echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
5531
## ----------------------------- ##
5532
## Report this to brad@danga.com ##
5533
## ----------------------------- ##
5535
) | sed "s/^/$as_me: WARNING: /" >&2
5538
{ $as_echo "$as_me:$LINENO: checking for malloc.h" >&5
5539
$as_echo_n "checking for malloc.h... " >&6; }
5540
if test "${ac_cv_header_malloc_h+set}" = set; then
5541
$as_echo_n "(cached) " >&6
5543
ac_cv_header_malloc_h=$ac_header_preproc
5545
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
5546
$as_echo "$ac_cv_header_malloc_h" >&6; }
5549
if test "x$ac_cv_header_malloc_h" = x""yes; then
5551
cat >>confdefs.h <<\_ACEOF
5552
#define HAVE_MALLOC_H /**/
5558
{ $as_echo "$as_me:$LINENO: checking for struct mallinfo.arena" >&5
5559
$as_echo_n "checking for struct mallinfo.arena... " >&6; }
5560
if test "${ac_cv_member_struct_mallinfo_arena+set}" = set; then
5561
$as_echo_n "(cached) " >&6
5563
cat >conftest.$ac_ext <<_ACEOF
5566
cat confdefs.h >>conftest.$ac_ext
5567
cat >>conftest.$ac_ext <<_ACEOF
5568
/* end confdefs.h. */
5570
# include <malloc.h>
5577
static struct mallinfo ac_aggr;
5584
rm -f conftest.$ac_objext
5585
if { (ac_try="$ac_compile"
5587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588
*) ac_try_echo=$ac_try;;
5590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591
$as_echo "$ac_try_echo") >&5
5592
(eval "$ac_compile") 2>conftest.er1
5594
grep -v '^ *+' conftest.er1 >conftest.err
5596
cat conftest.err >&5
5597
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598
(exit $ac_status); } && {
5599
test -z "$ac_c_werror_flag" ||
5600
test ! -s conftest.err
5601
} && test -s conftest.$ac_objext; then
5602
ac_cv_member_struct_mallinfo_arena=yes
5604
$as_echo "$as_me: failed program was:" >&5
5605
sed 's/^/| /' conftest.$ac_ext >&5
5607
cat >conftest.$ac_ext <<_ACEOF
5610
cat confdefs.h >>conftest.$ac_ext
5611
cat >>conftest.$ac_ext <<_ACEOF
5612
/* end confdefs.h. */
5614
# include <malloc.h>
5621
static struct mallinfo ac_aggr;
5622
if (sizeof ac_aggr.arena)
5628
rm -f conftest.$ac_objext
5629
if { (ac_try="$ac_compile"
5631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632
*) ac_try_echo=$ac_try;;
5634
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5635
$as_echo "$ac_try_echo") >&5
5636
(eval "$ac_compile") 2>conftest.er1
5638
grep -v '^ *+' conftest.er1 >conftest.err
5640
cat conftest.err >&5
5641
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642
(exit $ac_status); } && {
5643
test -z "$ac_c_werror_flag" ||
5644
test ! -s conftest.err
5645
} && test -s conftest.$ac_objext; then
5646
ac_cv_member_struct_mallinfo_arena=yes
5648
$as_echo "$as_me: failed program was:" >&5
5649
sed 's/^/| /' conftest.$ac_ext >&5
5651
ac_cv_member_struct_mallinfo_arena=no
5654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_arena" >&5
5660
$as_echo "$ac_cv_member_struct_mallinfo_arena" >&6; }
5661
if test "x$ac_cv_member_struct_mallinfo_arena" = x""yes; then
5664
cat >>confdefs.h <<\_ACEOF
5665
#define HAVE_STRUCT_MALLINFO /**/
6526
for ac_func in sigignore
6528
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6529
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6530
$as_echo_n "checking for $ac_func... " >&6; }
6531
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6532
$as_echo_n "(cached) " >&6
6534
cat >conftest.$ac_ext <<_ACEOF
6537
cat confdefs.h >>conftest.$ac_ext
6538
cat >>conftest.$ac_ext <<_ACEOF
6539
/* end confdefs.h. */
6540
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6541
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6542
#define $ac_func innocuous_$ac_func
6544
/* System header to define __stub macros and hopefully few prototypes,
6545
which can conflict with char $ac_func (); below.
6546
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6547
<limits.h> exists even on freestanding compilers. */
6550
# include <limits.h>
6552
# include <assert.h>
6557
/* Override any GCC internal prototype to avoid an error.
6558
Use char because int might match the return type of a GCC
6559
builtin and then its argument prototype would still apply. */
6564
/* The GNU C library defines this for functions which it implements
6565
to always fail with ENOSYS. Some functions are actually named
6566
something starting with __ and the normal name is an alias. */
6567
#if defined __stub_$ac_func || defined __stub___$ac_func
6579
rm -f conftest.$ac_objext conftest$ac_exeext
6580
if { (ac_try="$ac_link"
6582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583
*) ac_try_echo=$ac_try;;
6585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6586
$as_echo "$ac_try_echo") >&5
6587
(eval "$ac_link") 2>conftest.er1
6589
grep -v '^ *+' conftest.er1 >conftest.err
6591
cat conftest.err >&5
6592
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593
(exit $ac_status); } && {
6594
test -z "$ac_c_werror_flag" ||
6595
test ! -s conftest.err
6596
} && test -s conftest$ac_exeext && {
6597
test "$cross_compiling" = yes ||
6598
$as_test_x conftest$ac_exeext
6600
eval "$as_ac_var=yes"
6602
$as_echo "$as_me: failed program was:" >&5
6603
sed 's/^/| /' conftest.$ac_ext >&5
6605
eval "$as_ac_var=no"
6608
rm -rf conftest.dSYM
6609
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6610
conftest$ac_exeext conftest.$ac_ext
6612
ac_res=`eval 'as_val=${'$as_ac_var'}
6613
$as_echo "$as_val"'`
6614
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6615
$as_echo "$ac_res" >&6; }
6616
as_val=`eval 'as_val=${'$as_ac_var'}
6617
$as_echo "$as_val"'`
6618
if test "x$as_val" = x""yes; then
6619
cat >>confdefs.h <<_ACEOF
6620
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6629
{ $as_echo "$as_me:$LINENO: checking for alignment" >&5
6630
$as_echo_n "checking for alignment... " >&6; }
6631
if test "${ac_cv_c_alignment+set}" = set; then
6632
$as_echo_n "(cached) " >&6
6635
if test "$cross_compiling" = yes; then
6636
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6637
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6638
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6639
See \`config.log' for more details." >&5
6640
$as_echo "$as_me: error: cannot run test program while cross compiling
6641
See \`config.log' for more details." >&2;}
6642
{ (exit 1); exit 1; }; }; }
6644
cat >conftest.$ac_ext <<_ACEOF
6647
cat confdefs.h >>conftest.$ac_ext
6648
cat >>conftest.$ac_ext <<_ACEOF
6649
/* end confdefs.h. */
6652
#include <inttypes.h>
6658
char *buf = malloc(32);
6659
uint64_t *ptr = (uint64_t*)(buf+2);
6668
rm -f conftest$ac_exeext
6669
if { (ac_try="$ac_link"
6671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672
*) ac_try_echo=$ac_try;;
6674
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675
$as_echo "$ac_try_echo") >&5
6676
(eval "$ac_link") 2>&5
6678
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6680
{ (case "(($ac_try" in
6681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682
*) ac_try_echo=$ac_try;;
6684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6685
$as_echo "$ac_try_echo") >&5
6686
(eval "$ac_try") 2>&5
6688
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689
(exit $ac_status); }; }; then
6691
ac_cv_c_alignment=none
6694
$as_echo "$as_me: program exited with status $ac_status" >&5
6695
$as_echo "$as_me: failed program was:" >&5
6696
sed 's/^/| /' conftest.$ac_ext >&5
6700
ac_cv_c_alignment=need
6703
rm -rf conftest.dSYM
6704
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6710
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_alignment" >&5
6711
$as_echo "$ac_cv_c_alignment" >&6; }
6712
if test $ac_cv_c_alignment = need; then
6714
cat >>confdefs.h <<\_ACEOF
6715
#define NEED_ALIGN 1
6722
for ac_func in setppriv
6724
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6725
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6726
$as_echo_n "checking for $ac_func... " >&6; }
6727
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6728
$as_echo_n "(cached) " >&6
6730
cat >conftest.$ac_ext <<_ACEOF
6733
cat confdefs.h >>conftest.$ac_ext
6734
cat >>conftest.$ac_ext <<_ACEOF
6735
/* end confdefs.h. */
6736
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6737
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6738
#define $ac_func innocuous_$ac_func
6740
/* System header to define __stub macros and hopefully few prototypes,
6741
which can conflict with char $ac_func (); below.
6742
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6743
<limits.h> exists even on freestanding compilers. */
6746
# include <limits.h>
6748
# include <assert.h>
6753
/* Override any GCC internal prototype to avoid an error.
6754
Use char because int might match the return type of a GCC
6755
builtin and then its argument prototype would still apply. */
6760
/* The GNU C library defines this for functions which it implements
6761
to always fail with ENOSYS. Some functions are actually named
6762
something starting with __ and the normal name is an alias. */
6763
#if defined __stub_$ac_func || defined __stub___$ac_func
6775
rm -f conftest.$ac_objext conftest$ac_exeext
6776
if { (ac_try="$ac_link"
6778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779
*) ac_try_echo=$ac_try;;
6781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782
$as_echo "$ac_try_echo") >&5
6783
(eval "$ac_link") 2>conftest.er1
6785
grep -v '^ *+' conftest.er1 >conftest.err
6787
cat conftest.err >&5
6788
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789
(exit $ac_status); } && {
6790
test -z "$ac_c_werror_flag" ||
6791
test ! -s conftest.err
6792
} && test -s conftest$ac_exeext && {
6793
test "$cross_compiling" = yes ||
6794
$as_test_x conftest$ac_exeext
6796
eval "$as_ac_var=yes"
6798
$as_echo "$as_me: failed program was:" >&5
6799
sed 's/^/| /' conftest.$ac_ext >&5
6801
eval "$as_ac_var=no"
6804
rm -rf conftest.dSYM
6805
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6806
conftest$ac_exeext conftest.$ac_ext
6808
ac_res=`eval 'as_val=${'$as_ac_var'}
6809
$as_echo "$as_val"'`
6810
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6811
$as_echo "$ac_res" >&6; }
6812
as_val=`eval 'as_val=${'$as_ac_var'}
6813
$as_echo "$as_val"'`
6814
if test "x$as_val" = x""yes; then
6815
cat >>confdefs.h <<_ACEOF
6816
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6819
if test "${ac_cv_header_priv_h+set}" = set; then
6820
{ $as_echo "$as_me:$LINENO: checking for priv.h" >&5
6821
$as_echo_n "checking for priv.h... " >&6; }
6822
if test "${ac_cv_header_priv_h+set}" = set; then
6823
$as_echo_n "(cached) " >&6
6825
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_priv_h" >&5
6826
$as_echo "$ac_cv_header_priv_h" >&6; }
6828
# Is the header compilable?
6829
{ $as_echo "$as_me:$LINENO: checking priv.h usability" >&5
6830
$as_echo_n "checking priv.h usability... " >&6; }
6831
cat >conftest.$ac_ext <<_ACEOF
6834
cat confdefs.h >>conftest.$ac_ext
6835
cat >>conftest.$ac_ext <<_ACEOF
6836
/* end confdefs.h. */
6837
$ac_includes_default
6840
rm -f conftest.$ac_objext
6841
if { (ac_try="$ac_compile"
6843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844
*) ac_try_echo=$ac_try;;
6846
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6847
$as_echo "$ac_try_echo") >&5
6848
(eval "$ac_compile") 2>conftest.er1
6850
grep -v '^ *+' conftest.er1 >conftest.err
6852
cat conftest.err >&5
6853
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854
(exit $ac_status); } && {
6855
test -z "$ac_c_werror_flag" ||
6856
test ! -s conftest.err
6857
} && test -s conftest.$ac_objext; then
6858
ac_header_compiler=yes
6860
$as_echo "$as_me: failed program was:" >&5
6861
sed 's/^/| /' conftest.$ac_ext >&5
6863
ac_header_compiler=no
6866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6868
$as_echo "$ac_header_compiler" >&6; }
6870
# Is the header present?
6871
{ $as_echo "$as_me:$LINENO: checking priv.h presence" >&5
6872
$as_echo_n "checking priv.h presence... " >&6; }
6873
cat >conftest.$ac_ext <<_ACEOF
6876
cat confdefs.h >>conftest.$ac_ext
6877
cat >>conftest.$ac_ext <<_ACEOF
6878
/* end confdefs.h. */
6881
if { (ac_try="$ac_cpp conftest.$ac_ext"
6883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884
*) ac_try_echo=$ac_try;;
6886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887
$as_echo "$ac_try_echo") >&5
6888
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890
grep -v '^ *+' conftest.er1 >conftest.err
6892
cat conftest.err >&5
6893
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894
(exit $ac_status); } >/dev/null && {
6895
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896
test ! -s conftest.err
6898
ac_header_preproc=yes
6900
$as_echo "$as_me: failed program was:" >&5
6901
sed 's/^/| /' conftest.$ac_ext >&5
6903
ac_header_preproc=no
6906
rm -f conftest.err conftest.$ac_ext
6907
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6908
$as_echo "$ac_header_preproc" >&6; }
6910
# So? What about this header?
6911
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6913
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6914
$as_echo "$as_me: WARNING: priv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6915
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: proceeding with the compiler's result" >&5
6916
$as_echo "$as_me: WARNING: priv.h: proceeding with the compiler's result" >&2;}
6917
ac_header_preproc=yes
6920
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: present but cannot be compiled" >&5
6921
$as_echo "$as_me: WARNING: priv.h: present but cannot be compiled" >&2;}
6922
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: check for missing prerequisite headers?" >&5
6923
$as_echo "$as_me: WARNING: priv.h: check for missing prerequisite headers?" >&2;}
6924
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: see the Autoconf documentation" >&5
6925
$as_echo "$as_me: WARNING: priv.h: see the Autoconf documentation" >&2;}
6926
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: section \"Present But Cannot Be Compiled\"" >&5
6927
$as_echo "$as_me: WARNING: priv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6928
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: proceeding with the preprocessor's result" >&5
6929
$as_echo "$as_me: WARNING: priv.h: proceeding with the preprocessor's result" >&2;}
6930
{ $as_echo "$as_me:$LINENO: WARNING: priv.h: in the future, the compiler will take precedence" >&5
6931
$as_echo "$as_me: WARNING: priv.h: in the future, the compiler will take precedence" >&2;}
6933
## ----------------------------- ##
6934
## Report this to brad@danga.com ##
6935
## ----------------------------- ##
6937
) | sed "s/^/$as_me: WARNING: /" >&2
6940
{ $as_echo "$as_me:$LINENO: checking for priv.h" >&5
6941
$as_echo_n "checking for priv.h... " >&6; }
6942
if test "${ac_cv_header_priv_h+set}" = set; then
6943
$as_echo_n "(cached) " >&6
6945
ac_cv_header_priv_h=$ac_header_preproc
6947
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_priv_h" >&5
6948
$as_echo "$ac_cv_header_priv_h" >&6; }
6951
if test "x$ac_cv_header_priv_h" = x""yes; then
6954
cat >>confdefs.h <<\_ACEOF
6955
#define HAVE_DROP_PRIVILEGES 1
6958
build_solaris_privs=yes
6968
if test "$build_solaris_privs" = "yes"; then
6969
BUILD_SOLARIS_PRIVS_TRUE=
6970
BUILD_SOLARIS_PRIVS_FALSE='#'
6972
BUILD_SOLARIS_PRIVS_TRUE='#'
6973
BUILD_SOLARIS_PRIVS_FALSE=
6977
if test "${ac_cv_header_umem_h+set}" = set; then
6978
{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
6979
$as_echo_n "checking for umem.h... " >&6; }
6980
if test "${ac_cv_header_umem_h+set}" = set; then
6981
$as_echo_n "(cached) " >&6
6983
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
6984
$as_echo "$ac_cv_header_umem_h" >&6; }
6986
# Is the header compilable?
6987
{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
6988
$as_echo_n "checking umem.h usability... " >&6; }
6989
cat >conftest.$ac_ext <<_ACEOF
6992
cat confdefs.h >>conftest.$ac_ext
6993
cat >>conftest.$ac_ext <<_ACEOF
6994
/* end confdefs.h. */
6995
$ac_includes_default
6998
rm -f conftest.$ac_objext
6999
if { (ac_try="$ac_compile"
7001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002
*) ac_try_echo=$ac_try;;
7004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005
$as_echo "$ac_try_echo") >&5
7006
(eval "$ac_compile") 2>conftest.er1
7008
grep -v '^ *+' conftest.er1 >conftest.err
7010
cat conftest.err >&5
7011
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
(exit $ac_status); } && {
7013
test -z "$ac_c_werror_flag" ||
7014
test ! -s conftest.err
7015
} && test -s conftest.$ac_objext; then
7016
ac_header_compiler=yes
7018
$as_echo "$as_me: failed program was:" >&5
7019
sed 's/^/| /' conftest.$ac_ext >&5
7021
ac_header_compiler=no
7024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026
$as_echo "$ac_header_compiler" >&6; }
7028
# Is the header present?
7029
{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
7030
$as_echo_n "checking umem.h presence... " >&6; }
7031
cat >conftest.$ac_ext <<_ACEOF
7034
cat confdefs.h >>conftest.$ac_ext
7035
cat >>conftest.$ac_ext <<_ACEOF
7036
/* end confdefs.h. */
7039
if { (ac_try="$ac_cpp conftest.$ac_ext"
7041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042
*) ac_try_echo=$ac_try;;
7044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045
$as_echo "$ac_try_echo") >&5
7046
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7048
grep -v '^ *+' conftest.er1 >conftest.err
7050
cat conftest.err >&5
7051
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052
(exit $ac_status); } >/dev/null && {
7053
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7054
test ! -s conftest.err
7056
ac_header_preproc=yes
7058
$as_echo "$as_me: failed program was:" >&5
7059
sed 's/^/| /' conftest.$ac_ext >&5
7061
ac_header_preproc=no
7064
rm -f conftest.err conftest.$ac_ext
7065
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7066
$as_echo "$ac_header_preproc" >&6; }
7068
# So? What about this header?
7069
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7071
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
7072
$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7073
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
7074
$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
7075
ac_header_preproc=yes
7078
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
7079
$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
7080
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
7081
$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
7082
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
7083
$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
7084
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
7085
$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
7086
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
7087
$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
7088
{ $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
7089
$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
7091
## ----------------------------- ##
7092
## Report this to brad@danga.com ##
7093
## ----------------------------- ##
7095
) | sed "s/^/$as_me: WARNING: /" >&2
7098
{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
7099
$as_echo_n "checking for umem.h... " >&6; }
7100
if test "${ac_cv_header_umem_h+set}" = set; then
7101
$as_echo_n "(cached) " >&6
7103
ac_cv_header_umem_h=$ac_header_preproc
7105
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
7106
$as_echo "$ac_cv_header_umem_h" >&6; }
7109
if test "x$ac_cv_header_umem_h" = x""yes; then
7112
cat >>confdefs.h <<\_ACEOF
7113
#define HAVE_UMEM_H 1
7124
if test "x$build_cache" = "xyes"; then
7126
BUILD_CACHE_FALSE='#'
7128
BUILD_CACHE_TRUE='#'
7133
# Check whether --enable-docs was given.
7134
if test "${enable_docs+set}" = set; then
7135
enableval=$enable_docs;
7139
# Extract the first word of "xml2rfc", so it can be a program name with args.
7140
set dummy xml2rfc; ac_word=$2
7141
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7142
$as_echo_n "checking for $ac_word... " >&6; }
7143
if test "${ac_cv_path_XML2RFC+set}" = set; then
7144
$as_echo_n "(cached) " >&6
7148
ac_cv_path_XML2RFC="$XML2RFC" # Let the user override the test with a path.
7151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155
test -z "$as_dir" && as_dir=.
7156
for ac_exec_ext in '' $ac_executable_extensions; do
7157
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158
ac_cv_path_XML2RFC="$as_dir/$ac_word$ac_exec_ext"
7159
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166
test -z "$ac_cv_path_XML2RFC" && ac_cv_path_XML2RFC=""no""
7170
XML2RFC=$ac_cv_path_XML2RFC
7171
if test -n "$XML2RFC"; then
7172
{ $as_echo "$as_me:$LINENO: result: $XML2RFC" >&5
7173
$as_echo "$XML2RFC" >&6; }
7175
{ $as_echo "$as_me:$LINENO: result: no" >&5
7176
$as_echo "no" >&6; }
7180
# Extract the first word of "xsltproc", so it can be a program name with args.
7181
set dummy xsltproc; ac_word=$2
7182
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7183
$as_echo_n "checking for $ac_word... " >&6; }
7184
if test "${ac_cv_path_XSLTPROC+set}" = set; then
7185
$as_echo_n "(cached) " >&6
7189
ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196
test -z "$as_dir" && as_dir=.
7197
for ac_exec_ext in '' $ac_executable_extensions; do
7198
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199
ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7200
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207
test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC=""no""
7211
XSLTPROC=$ac_cv_path_XSLTPROC
7212
if test -n "$XSLTPROC"; then
7213
{ $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7214
$as_echo "$XSLTPROC" >&6; }
7216
{ $as_echo "$as_me:$LINENO: result: no" >&5
7217
$as_echo "no" >&6; }
7222
if test "x$enable_docs" != "xno" -a "x$XML2RFC" != "xno" -a "x$XSLTPROC" != "xno"; then
7223
BUILD_SPECIFICATIONS_TRUE=
7224
BUILD_SPECIFICATIONS_FALSE='#'
7226
BUILD_SPECIFICATIONS_TRUE='#'
7227
BUILD_SPECIFICATIONS_FALSE=
7232
if test "$ICC" = "yes"
7234
CFLAGS="$CFLAGS -diag-disable 187 -Wall -Werror"
7236
cat >>confdefs.h <<\_ACEOF
7237
#define _GNU_SOURCE 1
7240
elif test "$GCC" = "yes"
7242
GCC_VERSION=`$CC -dumpversion`
7243
CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
7244
case $GCC_VERSION in
7246
CFLAGS="$CFLAGS -fno-strict-aliasing"
7250
cat >>confdefs.h <<\_ACEOF
7251
#define _GNU_SOURCE 1
7254
elif test "$SUNCC" = "yes"
7256
CFLAGS="$CFLAGS -errfmt=error -errwarn -errshort=tags"
6316
7259
ac_config_files="$ac_config_files Makefile doc/Makefile"
6318
7261
cat >confcache <<\_ACEOF