$NetBSD: patch-ab,v 1.2 2006/10/14 02:47:08 rillig Exp $

--- configure.orig	2006-01-31 14:33:42.000000000 +0100
+++ configure	2006-10-14 04:40:35.000000000 +0200
@@ -10965,7 +10965,7 @@ if test "${ac_cv_lib_FOX_1_4_fxfindfox+s
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lFOX-1.4  $LIBS"
+LIBS="-lFOX-1.4 ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -11027,7 +11027,7 @@ if test $ac_cv_lib_FOX_1_4_fxfindfox = y
 #define HAVE_LIBFOX_1_4 1
 _ACEOF
 
-  LIBS="-lFOX-1.4 $LIBS"
+  LIBS="-lFOX-1.4 ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
 
 else
   { { echo "$as_me:$LINENO: error: \"libFOX-1.4 not found\"" >&5
@@ -11830,7 +11830,7 @@ done
 if test "${with_static+set}" = set; then
   withval="$with_static"
 
-		if test "x$withval" == "xyes" ; then
+		if test "x$withval" = "xyes" ; then
 						echo "$as_me:$LINENO: checking for X" >&5
 echo $ECHO_N "checking for X... $ECHO_C" >&6
 
