--- configure.orig Tue Feb 10 17:44:37 2004 +++ configure Tue Feb 10 17:57:58 2004 @@ -35376,13 +35376,13 @@ FreeBSD) OS_TYPE="BSD" - echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5 +echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lc_r $LIBS" +LIBS="$PTHREAD_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* #line $LINENO "configure" */ /* confdefs.h. */ @@ -35431,7 +35431,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 if test $ac_cv_lib_c_r_pthread_create = yes; then - LIBPTHREAD="-lc_r" + LIBPTHREAD="$PTHREAD_LIBS" fi cat >>confdefs.h <<\_ACEOF