Skip to content

Commit

Permalink
Merge pull request #30 from schnitzeltony/4.17.x+fslc
Browse files Browse the repository at this point in the history
menuconfig,check-lxdiaglog.sh: Allow specification of ncurses location
  • Loading branch information
otavio authored Sep 4, 2018
2 parents 076d88a + 2f8bd1c commit 6537593
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 6537593

Please sign in to comment.