$OpenBSD: patch-configure,v 1.2 2012/01/09 18:25:44 ajacoutot Exp $
--- configure.orig	Sun Dec 25 00:19:22 2011
+++ configure	Mon Jan  9 18:22:08 2012
@@ -24111,7 +24111,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\"
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-l$ax_lib  $LIBS"
+LIBS="-l$ax_lib -L!!LOCALBASE!!/lib -lpython!!MODPY_VERSION!! -lm -lutil $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
