$OpenBSD: patch-configure,v 1.2 2009/05/14 07:56:19 pea Exp $
--- configure.orig	Fri May  1 14:59:46 2009
+++ configure	Wed May  6 11:20:50 2009
@@ -5294,7 +5294,7 @@ if test "${ac_cv_lib_ofx_ofx_set_status_cb+set}" = set
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lofx  $LIBS"
+LIBS="`pkg-config --libs libofx`  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -5357,7 +5357,7 @@ if test "x$ac_cv_lib_ofx_ofx_set_status_cb" = x""yes; 
   OFX_0_7="-DOFX_ENABLE"
 fi
 
-        DEPS_LIBS="-lofx ${DEPS_LIBS}"
+        DEPS_LIBS="`pkg-config --libs libofx` ${DEPS_LIBS}"
         CFLAGS="${CFLAGS} $OFX_0_7"
     else
         noofx=true
