Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
c2377024
Commit
c2377024
authored
Dec 06, 2015
by
Hisham Muhammad
Browse files
If ncurses*-config script is present, use it in configure
when testing for ncurses library. See #198.
parent
96c929f8
Changes
1
Show whitespace changes
Inline
Side-by-side
configure.ac
View file @
c2377024
...
@@ -147,15 +147,22 @@ fi
...
@@ -147,15 +147,22 @@ fi
# HTOP_CHECK_NCURSES_LIBRARY(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART)
# HTOP_CHECK_NCURSES_LIBRARY(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART)
m4_define([HTOP_CHECK_NCURSES_LIBRARY],
m4_define([HTOP_CHECK_NCURSES_LIBRARY],
[
[
config_script=$([$4] --libs 2> /dev/null)
save_LDFLAGS="$LDFLAGS"
if test ! "x$config_script" = x; then
LDFLAGS="$config_script $LDFLAGS"
fi
AC_CHECK_LIB([$1], [$2], [
AC_CHECK_LIB([$1], [$2], [
AC_DEFINE([$3], 1, [The library is present.])
AC_DEFINE([$3], 1, [The library is present.])
config_script=$([$4] --libs 2> /dev/null)
if test ! "x$config_script" = x; then
if test ! "x$config_script" = x; then
LIBS="$config_script $LIBS "
LIBS="$config_script $LIBS "
else
else
LIBS="-l[$1] $LIBS "
LIBS="-l[$1] $LIBS "
fi
fi
], [$5])
LDFLAGS="$save_LDFLAGS"
], [
LDFLAGS="$save_LDFLAGS"
$5])
])
])
AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment