… | |
… | |
2549 | ac_cpp='$CPP $CPPFLAGS' |
2549 | ac_cpp='$CPP $CPPFLAGS' |
2550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2553 | |
2553 | |
|
|
2554 | |
|
|
2555 | |
|
|
2556 | { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
|
|
2557 | echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } |
|
|
2558 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2560 | else |
|
|
2561 | ac_func_search_save_LIBS=$LIBS |
|
|
2562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2563 | /* confdefs.h. */ |
|
|
2564 | _ACEOF |
|
|
2565 | cat confdefs.h >>conftest.$ac_ext |
|
|
2566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2567 | /* end confdefs.h. */ |
|
|
2568 | |
|
|
2569 | /* Override any GCC internal prototype to avoid an error. |
|
|
2570 | Use char because int might match the return type of a GCC |
|
|
2571 | builtin and then its argument prototype would still apply. */ |
|
|
2572 | #ifdef __cplusplus |
|
|
2573 | extern "C" |
|
|
2574 | #endif |
|
|
2575 | char pthread_create (); |
|
|
2576 | int |
|
|
2577 | main () |
|
|
2578 | { |
|
|
2579 | return pthread_create (); |
|
|
2580 | ; |
|
|
2581 | return 0; |
|
|
2582 | } |
|
|
2583 | _ACEOF |
|
|
2584 | for ac_lib in '' pthread pthreads pthreadVC2; do |
|
|
2585 | if test -z "$ac_lib"; then |
|
|
2586 | ac_res="none required" |
|
|
2587 | else |
|
|
2588 | ac_res=-l$ac_lib |
|
|
2589 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
2590 | fi |
|
|
2591 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2592 | if { (ac_try="$ac_link" |
|
|
2593 | case "(($ac_try" in |
|
|
2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2595 | *) ac_try_echo=$ac_try;; |
|
|
2596 | esac |
|
|
2597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2598 | (eval "$ac_link") 2>conftest.er1 |
|
|
2599 | ac_status=$? |
|
|
2600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2601 | rm -f conftest.er1 |
|
|
2602 | cat conftest.err >&5 |
|
|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2604 | (exit $ac_status); } && { |
|
|
2605 | test -z "$ac_c_werror_flag" || |
|
|
2606 | test ! -s conftest.err |
|
|
2607 | } && test -s conftest$ac_exeext && |
|
|
2608 | $as_test_x conftest$ac_exeext; then |
|
|
2609 | ac_cv_search_pthread_create=$ac_res |
|
|
2610 | else |
|
|
2611 | echo "$as_me: failed program was:" >&5 |
|
|
2612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2613 | |
|
|
2614 | |
|
|
2615 | fi |
|
|
2616 | |
|
|
2617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2618 | conftest$ac_exeext |
|
|
2619 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2620 | break |
|
|
2621 | fi |
|
|
2622 | done |
|
|
2623 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2624 | : |
|
|
2625 | else |
|
|
2626 | ac_cv_search_pthread_create=no |
|
|
2627 | fi |
|
|
2628 | rm conftest.$ac_ext |
|
|
2629 | LIBS=$ac_func_search_save_LIBS |
|
|
2630 | fi |
|
|
2631 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
|
|
2632 | echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } |
|
|
2633 | ac_res=$ac_cv_search_pthread_create |
|
|
2634 | if test "$ac_res" != no; then |
|
|
2635 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
2636 | |
|
|
2637 | else |
|
|
2638 | { { echo "$as_me:$LINENO: error: pthread functions not found" >&5 |
|
|
2639 | echo "$as_me: error: pthread functions not found" >&2;} |
|
|
2640 | { (exit 1); exit 1; }; } |
|
|
2641 | |
|
|
2642 | fi |
2554 | |
2643 | |
2555 | |
2644 | |
2556 | { echo "$as_me:$LINENO: checking for futimes" >&5 |
2645 | { echo "$as_me:$LINENO: checking for futimes" >&5 |
2557 | echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } |
2646 | echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } |
2558 | if test "${ac_cv_futimes+set}" = set; then |
2647 | if test "${ac_cv_futimes+set}" = set; then |