1 From 666f12f60f7d7936af932bf513bc0e9c5c5158f9 Mon Sep 17 00:00:00 2001
2 From: Ricardo Martincoski <ricardo.martincoski@gmail.com>
3 Date: Sat, 9 Jul 2016 22:48:34 -0300
4 Subject: [PATCH] Allow to override ncurses*-config path
6 This will be used when cross-compiling with ncurses*-config generated for the
7 target, using constructs like
8 htop_ncurses_config_script=/path/to/ncurses5-config
10 Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
12 Patch sent upstream: https://github.com/hishamhm/htop/pull/524
14 configure.ac | 6 +++++-
15 1 file changed, 5 insertions(+), 1 deletion(-)
17 diff --git a/configure.ac b/configure.ac
18 index fa32359..790a7f4 100644
21 @@ -147,7 +147,11 @@ fi
22 # HTOP_CHECK_SCRIPT(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART)
23 m4_define([HTOP_CHECK_SCRIPT],
25 - htop_config_script=$([$4] --libs 2> /dev/null)
26 + if test ! -z "$htop_[$1]_config_script"; then
27 + htop_config_script=$($htop_[$1]_config_script --libs 2> /dev/null)
29 + htop_config_script=$([$4] --libs 2> /dev/null)
31 htop_script_success=no
32 htop_save_LDFLAGS="$LDFLAGS"
33 if test ! "x$htop_config_script" = x; then