Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menuconfig,check-lxdiaglog.sh: Allow specification of ncurses location #30

Merged
merged 1 commit into from
Sep 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/kconfig/lxdialog/check-lxdialog.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# What library to link
ldflags()
{
if [ "$CROSS_CURSES_LIB" != "" ]; then
echo "$CROSS_CURSES_LIB"
exit
fi
pkg-config --libs ncursesw 2>/dev/null && exit
pkg-config --libs ncurses 2>/dev/null && exit
for ext in so a dll.a dylib ; do
Expand All @@ -22,6 +26,10 @@ ldflags()
# Where is ncurses.h?
ccflags()
{
if [ x"$CROSS_CURSES_INC" != x ]; then
echo "$CROSS_CURSES_INC"
exit
fi
if pkg-config --cflags ncursesw 2>/dev/null; then
echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1'
elif pkg-config --cflags ncurses 2>/dev/null; then
Expand Down