$NetBSD: patch-af,v 1.1 2007/06/29 22:55:50 joerg Exp $ --- configure.orig 2004-11-21 01:12:28.000000000 +0000 +++ configure @@ -22911,7 +22911,7 @@ if test "${ac_cv_lib_aprutil_0_apr_briga echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-laprutil-0 `$APUC --link-ld` `$APUC --libs` `$APRC --link-ld` $LIBS" +LIBS="-laprutil-0 `$APUC --link-ld` `$APUC --libs` `$APRC --link-ld` ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -23215,13 +23215,13 @@ echo "$as_me: error: could not find pthr fi - echo "$as_me:$LINENO: checking for pthread_setspecific in -lpthread" >&5 -echo $ECHO_N "checking for pthread_setspecific in -lpthread... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for pthread_setspecific in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5 +echo $ECHO_N "checking for pthread_setspecific in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_setspecific+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 @@ -23280,7 +23280,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib echo "${ECHO_T}$ac_cv_lib_pthread_pthread_setspecific" >&6 if test $ac_cv_lib_pthread_pthread_setspecific = yes; then - LIBS="$LIBS -lpthread" + LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" CFLAGS="$CFLAGS -D_REENTRANT" cat >>confdefs.h <<\_ACEOF