$NetBSD: patch-ah,v 1.2 2013/08/22 21:07:08 adam Exp $

--- configure.orig	2012-08-08 17:04:57.000000000 +0900
+++ configure
@@ -5524,7 +5524,7 @@
 fi
 
 if test x$with_libpaper != xno; then
-    LIBS="$LIBS -lpaper"
+    LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper"
 
 $as_echo "#define USE_LIBPAPER 1" >>confdefs.h
 
