summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2016-07-11 20:12:07 -0300
committerRicardo Martincoski <ricardo.martincoski@gmail.com>2016-07-11 20:17:13 -0300
commit78b82d0fdcd2d1b0094fde088a414066f7bd3581 (patch)
treefde48fd10651be271fe79af81ea508812633bbab
parente2ccc7b2408dc4e0b99f7b5446465bea9db0a23e (diff)
Allow to override ncurses*-config path
This will be used when cross-compiling with ncurses*-config generated for the target, using constructs like HTOP_NCURSES_CONFIG_SCRIPT=/path/to/ncurses5-config Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fa323598..58733bff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,7 +147,12 @@ fi
# HTOP_CHECK_SCRIPT(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART)
m4_define([HTOP_CHECK_SCRIPT],
[
- htop_config_script=$([$4] --libs 2> /dev/null)
+ if test ! -z "m4_toupper($HTOP_[$1]_CONFIG_SCRIPT)"; then
+ # to be used to set the path to ncurses*-config when cross-compiling
+ htop_config_script=$(m4_toupper($HTOP_[$1]_CONFIG_SCRIPT) --libs 2> /dev/null)
+ else
+ htop_config_script=$([$4] --libs 2> /dev/null)
+ fi
htop_script_success=no
htop_save_LDFLAGS="$LDFLAGS"
if test ! "x$htop_config_script" = x; then

© 2014-2024 Faster IT GmbH | imprint | privacy policy