$OpenBSD: patch-configure,v 1.5 2011/11/23 12:00:45 edd Exp $
--- configure.origy	Mon May  2 14:04:59 2011
+++ configure	Sat Aug 27 14:12:00 2011
@@ -19812,9 +19812,10 @@ if test "x$with_gd_libdir" != x && test "x$with_gd_lib
 fi
 
 if $PKG_CONFIG poppler --atleast-version=0.10; then
-  POPPLER_VERSION='-DPOPPLER_VERSION=\"'`$PKG_CONFIG poppler --modversion`'\"'
+  POPPLER_VERSION='-DPOPPLER_VERSION="'`$PKG_CONFIG poppler --modversion`'"'
   XPDF_INCLUDES="$POPPLER_VERSION `$PKG_CONFIG poppler --cflags`"
   XPDF_LIBS=`$PKG_CONFIG poppler --libs`
+  XPDF_LIBS="$XPDF_LIBS -pthread"
 elif test "x$need_xpdf:$with_system_xpdf" = xyes:yes; then
   as_fn_error $? "did not find poppler-0.10 or better" "$LINENO" 5
 fi
