|
|
| version 1.3.2.1, 2011/08/18 15:10:22 | version 1.4, 2011/08/29 22:37:05 |
|---|---|
| Line 3403 _ACEOF | Line 3403 _ACEOF |
| fi | fi |
| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | |
| $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | |
| if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : | |
| $as_echo_n "(cached) " >&6 | |
| else | |
| ac_check_lib_save_LIBS=$LIBS | |
| LIBS="-lpthread $LIBS" | |
| cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| /* end confdefs.h. */ | |
| /* Override any GCC internal prototype to avoid an error. | |
| Use char because int might match the return type of a GCC | |
| builtin and then its argument prototype would still apply. */ | |
| #ifdef __cplusplus | |
| extern "C" | |
| #endif | |
| char pthread_create (); | |
| int | |
| main () | |
| { | |
| return pthread_create (); | |
| ; | |
| return 0; | |
| } | |
| _ACEOF | |
| if ac_fn_c_try_link "$LINENO"; then : | |
| ac_cv_lib_pthread_pthread_create=yes | |
| else | |
| ac_cv_lib_pthread_pthread_create=no | |
| fi | |
| rm -f core conftest.err conftest.$ac_objext \ | |
| conftest$ac_exeext conftest.$ac_ext | |
| LIBS=$ac_check_lib_save_LIBS | |
| fi | |
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
| $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | |
| if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : | |
| cat >>confdefs.h <<_ACEOF | |
| #define HAVE_LIBPTHREAD 1 | |
| _ACEOF | |
| LIBS="-lpthread $LIBS" | |
| fi | |
| # Checks for header files. | # Checks for header files. |
| ac_ext=c | ac_ext=c |
| ac_cpp='$CPP $CPPFLAGS' | ac_cpp='$CPP $CPPFLAGS' |
| Line 4374 eval as_val=\$$as_ac_var | Line 4419 eval as_val=\$$as_ac_var |
| if test "x$as_val" = x""yes; then : | if test "x$as_val" = x""yes; then : |
| cat >>confdefs.h <<_ACEOF | cat >>confdefs.h <<_ACEOF |
| #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| _ACEOF | |
| fi | |
| done | |
| for ac_func in pthread_yield | |
| do : | |
| ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield" | |
| if test "x$ac_cv_func_pthread_yield" = x""yes; then : | |
| cat >>confdefs.h <<_ACEOF | |
| #define HAVE_PTHREAD_YIELD 1 | |
| _ACEOF | _ACEOF |
| fi | fi |