package/libsemanage: add host-audit as a dependency of the host variant
[buildroot-gz.git] / package / htop / 0001-Allow-to-override-ncurses-config-path.patch
blob9a8de1561f49de80b8600b728066130102a44a8d
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>
11 ---
12 Patch sent upstream: https://github.com/hishamhm/htop/pull/524
13 ---
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
19 --- a/configure.ac
20 +++ b/configure.ac
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)
28 + else
29 + htop_config_script=$([$4] --libs 2> /dev/null)
30 + fi
31 htop_script_success=no
32 htop_save_LDFLAGS="$LDFLAGS"
33 if test ! "x$htop_config_script" = x; then
34 --
35 2.9.0