$OpenBSD: patch-configure,v 1.22 2016/12/09 09:12:01 ajacoutot Exp $

See pre-configure.

--- configure.orig	Thu Dec  8 17:21:54 2016
+++ configure	Fri Dec  9 09:47:24 2016
@@ -27823,7 +27823,7 @@ if ${ac_cv_lib_gif_DGifOpen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgif  $LIBS"
+LIBS="-L${LOCALBASE}/lib -lgif  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -27933,7 +27933,7 @@ if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ljpeg  $LIBS"
+LIBS="-L${LOCALBASE}/lib -ljpeg  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -28043,7 +28043,7 @@ if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ltiff  $LIBS"
+LIBS="-L${LOCALBASE}/lib -ltiff  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -28153,7 +28153,7 @@ if ${ac_cv_lib_png_png_create_read_struct+:} false; th
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng  $LIBS"
+LIBS="-L${LOCALBASE}/lib -lpng  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
