$NetBSD: patch-ag,v 1.1 2005/10/10 15:24:08 joerg Exp $ --- configure.orig 2005-07-22 16:42:48.000000000 +0000 +++ configure @@ -1909,13 +1909,13 @@ case "${host_os}" in *) -echo "$as_me:1912: checking for pthread_create in -lpthread" >&5 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 +echo "$as_me:1912: 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 #line 1920 "configure" #include "confdefs.h" @@ -1963,7 +1963,7 @@ if test $ac_cv_lib_pthread_pthread_creat #define HAVE_LIBPTHREAD 1 EOF - LIBS="-lpthread $LIBS" + LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" else { { echo "$as_me:1969: error: libpthread not found!" >&5 @@ -1972,7 +1972,7 @@ echo "$as_me: error: libpthread not foun fi OTHER_OBJS="pa_unix_oss/pa_unix_oss.o pa_unix_oss/pa_unix.o"; - LIBS="-lm -lpthread"; + LIBS="-lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"; PADLL="libportaudio.so"; SHARED_FLAGS="-shared"; esac