$NetBSD: patch-ac,v 1.1 2006/03/13 21:21:39 joerg Exp $

--- configure.orig	2005-11-06 06:04:59.000000000 +0000
+++ configure
@@ -8959,7 +8959,7 @@ fi
 
 
 case "$host_os" in
-  freebsd*|openbsd*|netbsd*|bsdi*|darwin*|rhapsody*)
+  freebsd*|openbsd*|netbsd*|bsdi*|darwin*|rhapsody*|dragonfly*)
 
 cat >>confdefs.h <<\_ACEOF
 #define SYS_BSD 1
@@ -8991,7 +8991,7 @@ case "$host" in
 esac
 # let user override
 if test -n "$PTHREAD_LIBS" ; then
-  pthread_libs="$PTHREAD_LIBS"
+  pthread_libs="$PTHREAD_LIBS $PTHREAD_LDFLAGS"
 fi
 if test -n "$PTHREAD_CFLAGS" ; then
   pthread_cflags="$PTHREAD_CFLAGS"
