$NetBSD: patch-ab,v 1.4 2005/07/25 12:12:54 wiz Exp $

--- configure.orig	2005-07-24 00:14:17.000000000 +0200
+++ configure
@@ -10378,6 +10378,20 @@ echo $ECHO_N "checking if this is FreeBS
 echo "${ECHO_T}$this_is_freebsd" >&6
 fi
 
+this_is_netbsd=no
+if test x$we_have_sed = xyes; then
+  echo "$as_me:$LINENO: checking if this is NetBSD" >&5
+echo $ECHO_N "checking if this is NetBSD... $ECHO_C" >&6
+  x=`echo $target_os |tr A-Z a-z |sed "s/.*netbsd.*/netbsd/"`
+  if test x$x = xnetbsd; then
+    this_is_netbsd=yes
+    PHYSFSLDFLAGS="$PHYSFSLDFLAGS -pthread"
+  fi
+
+  echo "$as_me:$LINENO: result: $this_is_netbsd" >&5
+echo "${ECHO_T}$this_is_netbsd" >&6
+fi
+
 this_is_openbsd=no
 if test x$we_have_sed = xyes; then
   echo "$as_me:$LINENO: checking if this is OpenBSD" >&5
