| | 6235 | echo "$as_me:$LINENO: checking for working chown" >&5 |
|---|
| | 6236 | echo $ECHO_N "checking for working chown... $ECHO_C" >&6 |
|---|
| | 6237 | if test "${ac_cv_func_chown_works+set}" = set; then |
|---|
| | 6238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6239 | else |
|---|
| | 6240 | if test "$cross_compiling" = yes; then |
|---|
| | 6241 | ac_cv_func_chown_works=no |
|---|
| | 6242 | else |
|---|
| | 6243 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6244 | #line $LINENO "configure" |
|---|
| | 6245 | /* confdefs.h. */ |
|---|
| | 6246 | _ACEOF |
|---|
| | 6247 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6248 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6249 | /* end confdefs.h. */ |
|---|
| | 6250 | $ac_includes_default |
|---|
| | 6251 | #include <fcntl.h> |
|---|
| | 6252 | |
|---|
| | 6253 | int |
|---|
| | 6254 | main () |
|---|
| | 6255 | { |
|---|
| | 6256 | char *f = "conftest.chown"; |
|---|
| | 6257 | struct stat before, after; |
|---|
| | 6258 | |
|---|
| | 6259 | if (creat (f, 0600) < 0) |
|---|
| | 6260 | exit (1); |
|---|
| | 6261 | if (stat (f, &before) < 0) |
|---|
| | 6262 | exit (1); |
|---|
| | 6263 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) |
|---|
| | 6264 | exit (1); |
|---|
| | 6265 | if (stat (f, &after) < 0) |
|---|
| | 6266 | exit (1); |
|---|
| | 6267 | exit ((before.st_uid == after.st_uid |
|---|
| | 6268 | && before.st_gid == after.st_gid) ? 0 : 1); |
|---|
| | 6269 | |
|---|
| | 6270 | ; |
|---|
| | 6271 | return 0; |
|---|
| | 6272 | } |
|---|
| | 6273 | _ACEOF |
|---|
| | 6274 | rm -f conftest$ac_exeext |
|---|
| | 6275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 6276 | (eval $ac_link) 2>&5 |
|---|
| | 6277 | ac_status=$? |
|---|
| | 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 6280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6281 | (eval $ac_try) 2>&5 |
|---|
| | 6282 | ac_status=$? |
|---|
| | 6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6284 | (exit $ac_status); }; }; then |
|---|
| | 6285 | ac_cv_func_chown_works=yes |
|---|
| | 6286 | else |
|---|
| | 6287 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 6288 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6290 | |
|---|
| | 6291 | ( exit $ac_status ) |
|---|
| | 6292 | ac_cv_func_chown_works=no |
|---|
| | 6293 | fi |
|---|
| | 6294 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6295 | fi |
|---|
| | 6296 | rm -f conftest.chown |
|---|
| | 6297 | |
|---|
| | 6298 | fi |
|---|
| | 6299 | echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
|---|
| | 6300 | echo "${ECHO_T}$ac_cv_func_chown_works" >&6 |
|---|
| | 6301 | if test $ac_cv_func_chown_works = yes; then |
|---|
| | 6302 | |
|---|
| | 6303 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 6304 | #define HAVE_CHOWN 1 |
|---|
| | 6305 | _ACEOF |
|---|
| | 6306 | |
|---|
| | 6307 | fi |
|---|
| | 6308 | |
|---|
| | 6309 | |
|---|
| | 6310 | for ac_header in stdlib.h |
|---|
| | 6311 | do |
|---|
| | 6312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| | 6313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6314 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6318 | fi |
|---|
| | 6319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6321 | else |
|---|
| | 6322 | # Is the header compilable? |
|---|
| | 6323 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| | 6324 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| | 6325 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6326 | #line $LINENO "configure" |
|---|
| | 6327 | /* confdefs.h. */ |
|---|
| | 6328 | _ACEOF |
|---|
| | 6329 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6330 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6331 | /* end confdefs.h. */ |
|---|
| | 6332 | $ac_includes_default |
|---|
| | 6333 | #include <$ac_header> |
|---|
| | 6334 | _ACEOF |
|---|
| | 6335 | rm -f conftest.$ac_objext |
|---|
| | 6336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 6337 | (eval $ac_compile) 2>&5 |
|---|
| | 6338 | ac_status=$? |
|---|
| | 6339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6340 | (exit $ac_status); } && |
|---|
| | 6341 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 6342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6343 | (eval $ac_try) 2>&5 |
|---|
| | 6344 | ac_status=$? |
|---|
| | 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6346 | (exit $ac_status); }; }; then |
|---|
| | 6347 | ac_header_compiler=yes |
|---|
| | 6348 | else |
|---|
| | 6349 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6351 | |
|---|
| | 6352 | ac_header_compiler=no |
|---|
| | 6353 | fi |
|---|
| | 6354 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| | 6356 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| | 6357 | |
|---|
| | 6358 | # Is the header present? |
|---|
| | 6359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| | 6360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| | 6361 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6362 | #line $LINENO "configure" |
|---|
| | 6363 | /* confdefs.h. */ |
|---|
| | 6364 | _ACEOF |
|---|
| | 6365 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6366 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6367 | /* end confdefs.h. */ |
|---|
| | 6368 | #include <$ac_header> |
|---|
| | 6369 | _ACEOF |
|---|
| | 6370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| | 6371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| | 6372 | ac_status=$? |
|---|
| | 6373 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6374 | rm -f conftest.er1 |
|---|
| | 6375 | cat conftest.err >&5 |
|---|
| | 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6377 | (exit $ac_status); } >/dev/null; then |
|---|
| | 6378 | if test -s conftest.err; then |
|---|
| | 6379 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| | 6380 | else |
|---|
| | 6381 | ac_cpp_err= |
|---|
| | 6382 | fi |
|---|
| | 6383 | else |
|---|
| | 6384 | ac_cpp_err=yes |
|---|
| | 6385 | fi |
|---|
| | 6386 | if test -z "$ac_cpp_err"; then |
|---|
| | 6387 | ac_header_preproc=yes |
|---|
| | 6388 | else |
|---|
| | 6389 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6391 | |
|---|
| | 6392 | ac_header_preproc=no |
|---|
| | 6393 | fi |
|---|
| | 6394 | rm -f conftest.err conftest.$ac_ext |
|---|
| | 6395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| | 6396 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| | 6397 | |
|---|
| | 6398 | # So? What about this header? |
|---|
| | 6399 | case $ac_header_compiler:$ac_header_preproc in |
|---|
| | 6400 | yes:no ) |
|---|
| | 6401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| | 6402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| | 6403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6405 | ( |
|---|
| | 6406 | cat <<\_ASBOX |
|---|
| | 6407 | ## ------------------------------------ ## |
|---|
| | 6408 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6409 | ## ------------------------------------ ## |
|---|
| | 6410 | _ASBOX |
|---|
| | 6411 | ) | |
|---|
| | 6412 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6413 | ;; |
|---|
| | 6414 | no:yes ) |
|---|
| | 6415 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| | 6416 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| | 6417 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| | 6418 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| | 6419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6421 | ( |
|---|
| | 6422 | cat <<\_ASBOX |
|---|
| | 6423 | ## ------------------------------------ ## |
|---|
| | 6424 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6425 | ## ------------------------------------ ## |
|---|
| | 6426 | _ASBOX |
|---|
| | 6427 | ) | |
|---|
| | 6428 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6429 | ;; |
|---|
| | 6430 | esac |
|---|
| | 6431 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6435 | else |
|---|
| | 6436 | eval "$as_ac_Header=$ac_header_preproc" |
|---|
| | 6437 | fi |
|---|
| | 6438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6440 | |
|---|
| | 6441 | fi |
|---|
| | 6442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 6443 | cat >>confdefs.h <<_ACEOF |
|---|
| | 6444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| | 6445 | _ACEOF |
|---|
| | 6446 | |
|---|
| | 6447 | fi |
|---|
| | 6448 | |
|---|
| | 6449 | done |
|---|
| | 6450 | |
|---|
| 6435 | | fi |
|---|
| 6436 | | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|---|
| 6437 | | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
|---|
| | 6706 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| | 6707 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| | 6708 | |
|---|
| | 6709 | # Is the header present? |
|---|
| | 6710 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| | 6711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| | 6712 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6713 | #line $LINENO "configure" |
|---|
| | 6714 | /* confdefs.h. */ |
|---|
| | 6715 | _ACEOF |
|---|
| | 6716 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6717 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6718 | /* end confdefs.h. */ |
|---|
| | 6719 | #include <$ac_header> |
|---|
| | 6720 | _ACEOF |
|---|
| | 6721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| | 6722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| | 6723 | ac_status=$? |
|---|
| | 6724 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6725 | rm -f conftest.er1 |
|---|
| | 6726 | cat conftest.err >&5 |
|---|
| | 6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6728 | (exit $ac_status); } >/dev/null; then |
|---|
| | 6729 | if test -s conftest.err; then |
|---|
| | 6730 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| | 6731 | else |
|---|
| | 6732 | ac_cpp_err= |
|---|
| | 6733 | fi |
|---|
| | 6734 | else |
|---|
| | 6735 | ac_cpp_err=yes |
|---|
| | 6736 | fi |
|---|
| | 6737 | if test -z "$ac_cpp_err"; then |
|---|
| | 6738 | ac_header_preproc=yes |
|---|
| | 6739 | else |
|---|
| | 6740 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6741 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6742 | |
|---|
| | 6743 | ac_header_preproc=no |
|---|
| | 6744 | fi |
|---|
| | 6745 | rm -f conftest.err conftest.$ac_ext |
|---|
| | 6746 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| | 6747 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| | 6748 | |
|---|
| | 6749 | # So? What about this header? |
|---|
| | 6750 | case $ac_header_compiler:$ac_header_preproc in |
|---|
| | 6751 | yes:no ) |
|---|
| | 6752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| | 6753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| | 6754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6755 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6756 | ( |
|---|
| | 6757 | cat <<\_ASBOX |
|---|
| | 6758 | ## ------------------------------------ ## |
|---|
| | 6759 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6760 | ## ------------------------------------ ## |
|---|
| | 6761 | _ASBOX |
|---|
| | 6762 | ) | |
|---|
| | 6763 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6764 | ;; |
|---|
| | 6765 | no:yes ) |
|---|
| | 6766 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| | 6767 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| | 6768 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| | 6769 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| | 6770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6771 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6772 | ( |
|---|
| | 6773 | cat <<\_ASBOX |
|---|
| | 6774 | ## ------------------------------------ ## |
|---|
| | 6775 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6776 | ## ------------------------------------ ## |
|---|
| | 6777 | _ASBOX |
|---|
| | 6778 | ) | |
|---|
| | 6779 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6780 | ;; |
|---|
| | 6781 | esac |
|---|
| | 6782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6786 | else |
|---|
| | 6787 | eval "$as_ac_Header=$ac_header_preproc" |
|---|
| | 6788 | fi |
|---|
| | 6789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6791 | |
|---|
| | 6792 | fi |
|---|
| | 6793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 6794 | cat >>confdefs.h <<_ACEOF |
|---|
| | 6795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| | 6796 | _ACEOF |
|---|
| | 6797 | |
|---|
| | 6798 | fi |
|---|
| | 6799 | |
|---|
| | 6800 | done |
|---|
| | 6801 | |
|---|
| | 6802 | echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
|---|
| | 6803 | echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 |
|---|
| | 6804 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
|---|
| | 6805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6806 | else |
|---|
| | 6807 | if test "$cross_compiling" = yes; then |
|---|
| | 6808 | ac_cv_func_realloc_0_nonnull=no |
|---|
| | 6809 | else |
|---|
| | 6810 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6811 | #line $LINENO "configure" |
|---|
| | 6812 | /* confdefs.h. */ |
|---|
| | 6813 | _ACEOF |
|---|
| | 6814 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6815 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6816 | /* end confdefs.h. */ |
|---|
| | 6817 | #if STDC_HEADERS || HAVE_STDLIB_H |
|---|
| | 6818 | # include <stdlib.h> |
|---|
| | 6819 | #else |
|---|
| | 6820 | char *realloc (); |
|---|
| | 6821 | #endif |
|---|
| | 6822 | |
|---|
| | 6823 | int |
|---|
| | 6824 | main () |
|---|
| | 6825 | { |
|---|
| | 6826 | exit (realloc (0, 0) ? 0 : 1); |
|---|
| | 6827 | ; |
|---|
| | 6828 | return 0; |
|---|
| | 6829 | } |
|---|
| | 6830 | _ACEOF |
|---|
| | 6831 | rm -f conftest$ac_exeext |
|---|
| | 6832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 6833 | (eval $ac_link) 2>&5 |
|---|
| | 6834 | ac_status=$? |
|---|
| | 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 6837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6838 | (eval $ac_try) 2>&5 |
|---|
| | 6839 | ac_status=$? |
|---|
| | 6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6841 | (exit $ac_status); }; }; then |
|---|
| | 6842 | ac_cv_func_realloc_0_nonnull=yes |
|---|
| | 6843 | else |
|---|
| | 6844 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 6845 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6846 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6847 | |
|---|
| | 6848 | ( exit $ac_status ) |
|---|
| | 6849 | ac_cv_func_realloc_0_nonnull=no |
|---|
| | 6850 | fi |
|---|
| | 6851 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6852 | fi |
|---|
| | 6853 | fi |
|---|
| | 6854 | echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
|---|
| | 6855 | echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 |
|---|
| | 6856 | if test $ac_cv_func_realloc_0_nonnull = yes; then |
|---|
| | 6857 | |
|---|
| | 6858 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 6859 | #define HAVE_REALLOC 1 |
|---|
| | 6860 | _ACEOF |
|---|
| | 6861 | |
|---|
| | 6862 | else |
|---|
| | 6863 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 6864 | #define HAVE_REALLOC 0 |
|---|
| | 6865 | _ACEOF |
|---|
| | 6866 | |
|---|
| | 6867 | LIBOBJS="$LIBOBJS realloc.$ac_objext" |
|---|
| | 6868 | |
|---|
| | 6869 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 6870 | #define realloc rpl_realloc |
|---|
| | 6871 | _ACEOF |
|---|
| | 6872 | |
|---|
| | 6873 | fi |
|---|
| | 6874 | |
|---|
| | 6875 | |
|---|
| | 6876 | |
|---|
| | 6877 | |
|---|
| | 6878 | |
|---|
| | 6879 | for ac_header in sys/select.h sys/socket.h |
|---|
| | 6880 | do |
|---|
| | 6881 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| | 6882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6887 | fi |
|---|
| | 6888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6889 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6890 | else |
|---|
| | 6891 | # Is the header compilable? |
|---|
| | 6892 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| | 6893 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| | 6894 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6895 | #line $LINENO "configure" |
|---|
| | 6896 | /* confdefs.h. */ |
|---|
| | 6897 | _ACEOF |
|---|
| | 6898 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6899 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6900 | /* end confdefs.h. */ |
|---|
| | 6901 | $ac_includes_default |
|---|
| | 6902 | #include <$ac_header> |
|---|
| | 6903 | _ACEOF |
|---|
| | 6904 | rm -f conftest.$ac_objext |
|---|
| | 6905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 6906 | (eval $ac_compile) 2>&5 |
|---|
| | 6907 | ac_status=$? |
|---|
| | 6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6909 | (exit $ac_status); } && |
|---|
| | 6910 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 6911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6912 | (eval $ac_try) 2>&5 |
|---|
| | 6913 | ac_status=$? |
|---|
| | 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6915 | (exit $ac_status); }; }; then |
|---|
| | 6916 | ac_header_compiler=yes |
|---|
| | 6917 | else |
|---|
| | 6918 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6920 | |
|---|
| | 6921 | ac_header_compiler=no |
|---|
| | 6922 | fi |
|---|
| | 6923 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| | 6925 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| | 6926 | |
|---|
| | 6927 | # Is the header present? |
|---|
| | 6928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| | 6929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| | 6930 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6931 | #line $LINENO "configure" |
|---|
| | 6932 | /* confdefs.h. */ |
|---|
| | 6933 | _ACEOF |
|---|
| | 6934 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6935 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6936 | /* end confdefs.h. */ |
|---|
| | 6937 | #include <$ac_header> |
|---|
| | 6938 | _ACEOF |
|---|
| | 6939 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| | 6940 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| | 6941 | ac_status=$? |
|---|
| | 6942 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6943 | rm -f conftest.er1 |
|---|
| | 6944 | cat conftest.err >&5 |
|---|
| | 6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6946 | (exit $ac_status); } >/dev/null; then |
|---|
| | 6947 | if test -s conftest.err; then |
|---|
| | 6948 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| | 6949 | else |
|---|
| | 6950 | ac_cpp_err= |
|---|
| | 6951 | fi |
|---|
| | 6952 | else |
|---|
| | 6953 | ac_cpp_err=yes |
|---|
| | 6954 | fi |
|---|
| | 6955 | if test -z "$ac_cpp_err"; then |
|---|
| | 6956 | ac_header_preproc=yes |
|---|
| | 6957 | else |
|---|
| | 6958 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6960 | |
|---|
| | 6961 | ac_header_preproc=no |
|---|
| | 6962 | fi |
|---|
| | 6963 | rm -f conftest.err conftest.$ac_ext |
|---|
| | 6964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| | 6965 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| | 6966 | |
|---|
| | 6967 | # So? What about this header? |
|---|
| | 6968 | case $ac_header_compiler:$ac_header_preproc in |
|---|
| | 6969 | yes:no ) |
|---|
| | 6970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| | 6971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| | 6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6974 | ( |
|---|
| | 6975 | cat <<\_ASBOX |
|---|
| | 6976 | ## ------------------------------------ ## |
|---|
| | 6977 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6978 | ## ------------------------------------ ## |
|---|
| | 6979 | _ASBOX |
|---|
| | 6980 | ) | |
|---|
| | 6981 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6982 | ;; |
|---|
| | 6983 | no:yes ) |
|---|
| | 6984 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| | 6985 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| | 6986 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| | 6987 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| | 6988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6990 | ( |
|---|
| | 6991 | cat <<\_ASBOX |
|---|
| | 6992 | ## ------------------------------------ ## |
|---|
| | 6993 | ## Report this to bug-autoconf@gnu.org. ## |
|---|
| | 6994 | ## ------------------------------------ ## |
|---|
| | 6995 | _ASBOX |
|---|
| | 6996 | ) | |
|---|
| | 6997 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6998 | ;; |
|---|
| | 6999 | esac |
|---|
| | 7000 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 7001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 7002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 7003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 7004 | else |
|---|
| | 7005 | eval "$as_ac_Header=$ac_header_preproc" |
|---|
| | 7006 | fi |
|---|
| | 7007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 7008 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 7009 | |
|---|
| | 7010 | fi |
|---|
| | 7011 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 7012 | cat >>confdefs.h <<_ACEOF |
|---|
| | 7013 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| | 7014 | _ACEOF |
|---|
| | 7015 | |
|---|
| | 7016 | fi |
|---|
| | 7017 | |
|---|
| | 7018 | done |
|---|
| | 7019 | |
|---|
| | 7020 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
|---|
| | 7021 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 |
|---|
| | 7022 | if test "${ac_cv_func_select_args+set}" = set; then |
|---|
| | 7023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 7024 | else |
|---|
| | 7025 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
|---|
| | 7026 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do |
|---|
| | 7027 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
|---|
| | 7028 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 7029 | #line $LINENO "configure" |
|---|
| | 7030 | /* confdefs.h. */ |
|---|
| | 7031 | _ACEOF |
|---|
| | 7032 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 7033 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 7034 | /* end confdefs.h. */ |
|---|
| | 7035 | $ac_includes_default |
|---|
| | 7036 | #if HAVE_SYS_SELECT_H |
|---|
| | 7037 | # include <sys/select.h> |
|---|
| | 7038 | #endif |
|---|
| | 7039 | #if HAVE_SYS_SOCKET_H |
|---|
| | 7040 | # include <sys/socket.h> |
|---|
| | 7041 | #endif |
|---|
| | 7042 | |
|---|
| | 7043 | int |
|---|
| | 7044 | main () |
|---|
| | 7045 | { |
|---|
| | 7046 | extern int select ($ac_arg1, |
|---|
| | 7047 | $ac_arg234, $ac_arg234, $ac_arg234, |
|---|
| | 7048 | $ac_arg5); |
|---|
| | 7049 | ; |
|---|
| | 7050 | return 0; |
|---|
| | 7051 | } |
|---|
| | 7052 | _ACEOF |
|---|
| | 7053 | rm -f conftest.$ac_objext |
|---|
| | 7054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 7055 | (eval $ac_compile) 2>&5 |
|---|
| | 7056 | ac_status=$? |
|---|
| | 7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7058 | (exit $ac_status); } && |
|---|
| | 7059 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 7060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 7061 | (eval $ac_try) 2>&5 |
|---|
| | 7062 | ac_status=$? |
|---|
| | 7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7064 | (exit $ac_status); }; }; then |
|---|
| | 7065 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
|---|
| | 7066 | else |
|---|
| | 7067 | echo "$as_me: failed program was:" >&5 |
|---|
| | 7068 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 7069 | |
|---|
| | 7070 | fi |
|---|
| | 7071 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 7072 | done |
|---|
| | 7073 | done |
|---|
| | 7074 | done |
|---|
| | 7075 | # Provide a safe default value. |
|---|
| | 7076 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
|---|
| | 7077 | |
|---|
| | 7078 | fi |
|---|
| | 7079 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
|---|
| | 7080 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 |
|---|
| | 7081 | ac_save_IFS=$IFS; IFS=',' |
|---|
| | 7082 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
|---|
| | 7083 | IFS=$ac_save_IFS |
|---|
| | 7084 | shift |
|---|