--- utils/kamcmd/Makefile.orig	2015-07-20 13:16:26 UTC
+++ utils/kamcmd/Makefile
@@ -12,7 +12,7 @@ else
 	NAME=kamcmd
 endif
 
-readline_locations= /usr/include/readline/readline.h \
+readline_locations= /usr/local/include/readline/readline.h \
 					$(LOCALBASE)/include/readline/readline.h
 
 use_readline ?=
@@ -72,8 +72,8 @@ endif
 endif
 
 ifeq ($(use_readline),1)
-	DEFS+=-DUSE_READLINE
-	LIBS+=-lreadline -lncurses
+	DEFS+=-DUSE_READLINE -I${LOCALBASE}/include
+	LIBS+=-L${LOCALBASE}/lib -lreadline -lncurses
 endif