$NetBSD: patch-ac,v 1.4 2007/01/16 12:52:44 adam Exp $ --- configure.orig 2006-10-06 10:38:13.000000000 +0200 +++ configure @@ -22317,13 +22317,13 @@ fi fi if test -z "$THREAD_LIBS"; then - echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5 +echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -22382,7 +22382,7 @@ fi echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 if test $ac_cv_lib_pthread_pthread_create = yes; then - THREAD_LIBS='-lpthread' + THREAD_LIBS='${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}' else echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6