$NetBSD: patch-aa,v 1.6 2006/02/11 14:17:51 joerg Exp $ --- configure.orig 2006-02-11 13:51:23.000000000 +0000 +++ configure @@ -23041,7 +23041,7 @@ if test "${ac_cv_lib_esmtp_smtp_start_se echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lesmtp -lpthread $LIBS" +LIBS="-lesmtp ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -23100,7 +23100,7 @@ fi echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_start_session" >&5 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_start_session" >&6 if test $ac_cv_lib_esmtp_smtp_start_session = yes; then - LIBS="$LIBS -lesmtp -lpthread" + LIBS="$LIBS -lesmtp ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" else { { echo "$as_me:$LINENO: error: *** You enabled ESMTP but esmtp library is not found." >&5 echo "$as_me: error: *** You enabled ESMTP but esmtp library is not found." >&2;}