| | 2977 | else |
|---|
| | 2978 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| | 2979 | echo "${ECHO_T}no" >&6 |
|---|
| | 2980 | fi |
|---|
| | 2981 | |
|---|
| | 2982 | # Extract the first word of "find", so it can be a program name with args. |
|---|
| | 2983 | set dummy find; ac_word=$2 |
|---|
| | 2984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| | 2985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| | 2986 | if test "${ac_cv_prog_FIND+set}" = set; then |
|---|
| | 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 2988 | else |
|---|
| | 2989 | if test -n "$FIND"; then |
|---|
| | 2990 | ac_cv_prog_FIND="$FIND" # Let the user override the test. |
|---|
| | 2991 | else |
|---|
| | 2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| | 2993 | for as_dir in $PATH |
|---|
| | 2994 | do |
|---|
| | 2995 | IFS=$as_save_IFS |
|---|
| | 2996 | test -z "$as_dir" && as_dir=. |
|---|
| | 2997 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| | 2998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| | 2999 | ac_cv_prog_FIND="find" |
|---|
| | 3000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| | 3001 | break 2 |
|---|
| | 3002 | fi |
|---|
| | 3003 | done |
|---|
| | 3004 | done |
|---|
| | 3005 | |
|---|
| | 3006 | fi |
|---|
| | 3007 | fi |
|---|
| | 3008 | FIND=$ac_cv_prog_FIND |
|---|
| | 3009 | if test -n "$FIND"; then |
|---|
| | 3010 | echo "$as_me:$LINENO: result: $FIND" >&5 |
|---|
| | 3011 | echo "${ECHO_T}$FIND" >&6 |
|---|
| | 3012 | else |
|---|
| | 3013 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| | 3014 | echo "${ECHO_T}no" >&6 |
|---|
| | 3015 | fi |
|---|
| | 3016 | |
|---|
| | 3017 | # Extract the first word of "xargs", so it can be a program name with args. |
|---|
| | 3018 | set dummy xargs; ac_word=$2 |
|---|
| | 3019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| | 3020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| | 3021 | if test "${ac_cv_prog_XARGS+set}" = set; then |
|---|
| | 3022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 3023 | else |
|---|
| | 3024 | if test -n "$XARGS"; then |
|---|
| | 3025 | ac_cv_prog_XARGS="$XARGS" # Let the user override the test. |
|---|
| | 3026 | else |
|---|
| | 3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| | 3028 | for as_dir in $PATH |
|---|
| | 3029 | do |
|---|
| | 3030 | IFS=$as_save_IFS |
|---|
| | 3031 | test -z "$as_dir" && as_dir=. |
|---|
| | 3032 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| | 3033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| | 3034 | ac_cv_prog_XARGS="xargs" |
|---|
| | 3035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| | 3036 | break 2 |
|---|
| | 3037 | fi |
|---|
| | 3038 | done |
|---|
| | 3039 | done |
|---|
| | 3040 | |
|---|
| | 3041 | fi |
|---|
| | 3042 | fi |
|---|
| | 3043 | XARGS=$ac_cv_prog_XARGS |
|---|
| | 3044 | if test -n "$XARGS"; then |
|---|
| | 3045 | echo "$as_me:$LINENO: result: $XARGS" >&5 |
|---|
| | 3046 | echo "${ECHO_T}$XARGS" >&6 |
|---|
| | 6186 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
|---|
| | 6187 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
|---|
| | 6188 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
|---|
| | 6189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6190 | else |
|---|
| | 6191 | while :; do |
|---|
| | 6192 | ac_cv_sys_largefile_source=no |
|---|
| | 6193 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6194 | #line $LINENO "configure" |
|---|
| | 6195 | /* confdefs.h. */ |
|---|
| | 6196 | _ACEOF |
|---|
| | 6197 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6198 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6199 | /* end confdefs.h. */ |
|---|
| | 6200 | #include <stdio.h> |
|---|
| | 6201 | int |
|---|
| | 6202 | main () |
|---|
| | 6203 | { |
|---|
| | 6204 | return !fseeko; |
|---|
| | 6205 | ; |
|---|
| | 6206 | return 0; |
|---|
| | 6207 | } |
|---|
| | 6208 | _ACEOF |
|---|
| | 6209 | rm -f conftest.$ac_objext |
|---|
| | 6210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 6211 | (eval $ac_compile) 2>&5 |
|---|
| | 6212 | ac_status=$? |
|---|
| | 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6214 | (exit $ac_status); } && |
|---|
| | 6215 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 6216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6217 | (eval $ac_try) 2>&5 |
|---|
| | 6218 | ac_status=$? |
|---|
| | 6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6220 | (exit $ac_status); }; }; then |
|---|
| | 6221 | break |
|---|
| | 6222 | else |
|---|
| | 6223 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6224 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6225 | |
|---|
| | 6226 | fi |
|---|
| | 6227 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6228 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6229 | #line $LINENO "configure" |
|---|
| | 6230 | /* confdefs.h. */ |
|---|
| | 6231 | _ACEOF |
|---|
| | 6232 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6233 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6234 | /* end confdefs.h. */ |
|---|
| | 6235 | #define _LARGEFILE_SOURCE 1 |
|---|
| | 6236 | #include <stdio.h> |
|---|
| | 6237 | int |
|---|
| | 6238 | main () |
|---|
| | 6239 | { |
|---|
| | 6240 | return !fseeko; |
|---|
| | 6241 | ; |
|---|
| | 6242 | return 0; |
|---|
| | 6243 | } |
|---|
| | 6244 | _ACEOF |
|---|
| | 6245 | rm -f conftest.$ac_objext |
|---|
| | 6246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 6247 | (eval $ac_compile) 2>&5 |
|---|
| | 6248 | ac_status=$? |
|---|
| | 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6250 | (exit $ac_status); } && |
|---|
| | 6251 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6253 | (eval $ac_try) 2>&5 |
|---|
| | 6254 | ac_status=$? |
|---|
| | 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6256 | (exit $ac_status); }; }; then |
|---|
| | 6257 | ac_cv_sys_largefile_source=1; break |
|---|
| | 6258 | else |
|---|
| | 6259 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6261 | |
|---|
| | 6262 | fi |
|---|
| | 6263 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6264 | break |
|---|
| | 6265 | done |
|---|
| | 6266 | fi |
|---|
| | 6267 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
|---|
| | 6268 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
|---|
| | 6269 | if test "$ac_cv_sys_largefile_source" != no; then |
|---|
| | 6270 | |
|---|
| | 6271 | cat >>confdefs.h <<_ACEOF |
|---|
| | 6272 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
|---|
| | 6273 | _ACEOF |
|---|
| | 6274 | |
|---|
| | 6275 | fi |
|---|
| | 6276 | rm -f conftest* |
|---|
| | 6277 | |
|---|
| | 6278 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
|---|
| | 6279 | # in glibc 2.1.3, but that breaks too many other things. |
|---|
| | 6280 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
|---|
| | 6281 | echo "$as_me:$LINENO: checking for fseeko" >&5 |
|---|
| | 6282 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
|---|
| | 6283 | if test "${ac_cv_func_fseeko+set}" = set; then |
|---|
| | 6284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6285 | else |
|---|
| | 6286 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6287 | #line $LINENO "configure" |
|---|
| | 6288 | /* confdefs.h. */ |
|---|
| | 6289 | _ACEOF |
|---|
| | 6290 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6291 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6292 | /* end confdefs.h. */ |
|---|
| | 6293 | #include <stdio.h> |
|---|
| | 6294 | int |
|---|
| | 6295 | main () |
|---|
| | 6296 | { |
|---|
| | 6297 | return fseeko && fseeko (stdin, 0, 0); |
|---|
| | 6298 | ; |
|---|
| | 6299 | return 0; |
|---|
| | 6300 | } |
|---|
| | 6301 | _ACEOF |
|---|
| | 6302 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 6303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 6304 | (eval $ac_link) 2>&5 |
|---|
| | 6305 | ac_status=$? |
|---|
| | 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6307 | (exit $ac_status); } && |
|---|
| | 6308 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6310 | (eval $ac_try) 2>&5 |
|---|
| | 6311 | ac_status=$? |
|---|
| | 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6313 | (exit $ac_status); }; }; then |
|---|
| | 6314 | ac_cv_func_fseeko=yes |
|---|
| | 6315 | else |
|---|
| | 6316 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6317 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6318 | |
|---|
| | 6319 | ac_cv_func_fseeko=no |
|---|
| | 6320 | fi |
|---|
| | 6321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 6322 | fi |
|---|
| | 6323 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
|---|
| | 6324 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
|---|
| | 6325 | if test $ac_cv_func_fseeko = yes; then |
|---|
| | 6326 | |
|---|
| | 6327 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 6328 | #define HAVE_FSEEKO 1 |
|---|
| | 6329 | _ACEOF |
|---|
| | 6330 | |
|---|
| | 6331 | fi |
|---|
| | 6332 | |
|---|
| | 7409 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
|---|
| | 7410 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 |
|---|
| | 7411 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
|---|
| | 7412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 7413 | else |
|---|
| | 7414 | rm -f conftest.sym conftest.file |
|---|
| | 7415 | echo >conftest.file |
|---|
| | 7416 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
|---|
| | 7417 | if test "$cross_compiling" = yes; then |
|---|
| | 7418 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
|---|
| | 7419 | else |
|---|
| | 7420 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 7421 | #line $LINENO "configure" |
|---|
| | 7422 | /* confdefs.h. */ |
|---|
| | 7423 | _ACEOF |
|---|
| | 7424 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 7425 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 7426 | /* end confdefs.h. */ |
|---|
| | 7427 | $ac_includes_default |
|---|
| | 7428 | int |
|---|
| | 7429 | main () |
|---|
| | 7430 | { |
|---|
| | 7431 | struct stat sbuf; |
|---|
| | 7432 | /* Linux will dereference the symlink and fail. |
|---|
| | 7433 | That is better in the sense that it means we will not |
|---|
| | 7434 | have to compile and use the lstat wrapper. */ |
|---|
| | 7435 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
|---|
| | 7436 | ; |
|---|
| | 7437 | return 0; |
|---|
| | 7438 | } |
|---|
| | 7439 | _ACEOF |
|---|
| | 7440 | rm -f conftest$ac_exeext |
|---|
| | 7441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 7442 | (eval $ac_link) 2>&5 |
|---|
| | 7443 | ac_status=$? |
|---|
| | 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 7447 | (eval $ac_try) 2>&5 |
|---|
| | 7448 | ac_status=$? |
|---|
| | 7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7450 | (exit $ac_status); }; }; then |
|---|
| | 7451 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
|---|
| | 7452 | else |
|---|
| | 7453 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 7454 | echo "$as_me: failed program was:" >&5 |
|---|
| | 7455 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 7456 | |
|---|
| | 7457 | ( exit $ac_status ) |
|---|
| | 7458 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
|---|
| | 7459 | fi |
|---|
| | 7460 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 7461 | fi |
|---|
| | 7462 | else |
|---|
| | 7463 | # If the `ln -s' command failed, then we probably don't even |
|---|
| | 7464 | # have an lstat function. |
|---|
| | 7465 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
|---|
| | 7466 | fi |
|---|
| | 7467 | rm -f conftest.sym conftest.file |
|---|
| | 7468 | |
|---|
| | 7469 | fi |
|---|
| | 7470 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
|---|
| | 7471 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 |
|---|
| | 7472 | |
|---|
| | 7473 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
|---|
| | 7474 | |
|---|
| | 7475 | cat >>confdefs.h <<_ACEOF |
|---|
| | 7476 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
|---|
| | 7477 | _ACEOF |
|---|
| | 7478 | |
|---|
| | 7479 | |
|---|
| | 7480 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then |
|---|
| | 7481 | LIBOBJS="$LIBOBJS lstat.$ac_objext" |
|---|
| | 7482 | fi |
|---|
| | 7483 | |
|---|
| | 7484 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
|---|
| | 7485 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 |
|---|
| | 7486 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
|---|
| | 7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 7488 | else |
|---|
| | 7489 | if test "$cross_compiling" = yes; then |
|---|
| | 7490 | ac_cv_func_stat_empty_string_bug=yes |
|---|
| | 7491 | else |
|---|
| | 7492 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 7493 | #line $LINENO "configure" |
|---|
| | 7494 | /* confdefs.h. */ |
|---|
| | 7495 | _ACEOF |
|---|
| | 7496 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 7497 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 7498 | /* end confdefs.h. */ |
|---|
| | 7499 | $ac_includes_default |
|---|
| | 7500 | int |
|---|
| | 7501 | main () |
|---|
| | 7502 | { |
|---|
| | 7503 | struct stat sbuf; |
|---|
| | 7504 | exit (stat ("", &sbuf) ? 1 : 0); |
|---|
| | 7505 | ; |
|---|
| | 7506 | return 0; |
|---|
| | 7507 | } |
|---|
| | 7508 | _ACEOF |
|---|
| | 7509 | rm -f conftest$ac_exeext |
|---|
| | 7510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 7511 | (eval $ac_link) 2>&5 |
|---|
| | 7512 | ac_status=$? |
|---|
| | 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 7515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 7516 | (eval $ac_try) 2>&5 |
|---|
| | 7517 | ac_status=$? |
|---|
| | 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 7519 | (exit $ac_status); }; }; then |
|---|
| | 7520 | ac_cv_func_stat_empty_string_bug=yes |
|---|
| | 7521 | else |
|---|
| | 7522 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 7523 | echo "$as_me: failed program was:" >&5 |
|---|
| | 7524 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 7525 | |
|---|
| | 7526 | ( exit $ac_status ) |
|---|
| | 7527 | ac_cv_func_stat_empty_string_bug=no |
|---|
| | 7528 | fi |
|---|
| | 7529 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 7530 | fi |
|---|
| | 7531 | fi |
|---|
| | 7532 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
|---|
| | 7533 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 |
|---|
| | 7534 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
|---|
| | 7535 | LIBOBJS="$LIBOBJS stat.$ac_objext" |
|---|
| | 7536 | |
|---|
| | 7537 | cat >>confdefs.h <<_ACEOF |
|---|
| | 7538 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
|---|
| | 7539 | _ACEOF |
|---|
| | 7540 | |
|---|
| | 7541 | fi |
|---|
| | 7542 | |
|---|