aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/lxdialog/check-lxdialog.sh
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-11-07 11:29:15 +0000
committerRon Yorston <rmy@pobox.com>2022-11-07 13:49:52 +0000
commit863342aef089f064afb65d7c344a0d254c30d155 (patch)
treea84a73fa80fc37fe063491776cdfc5855914c466 /scripts/kconfig/lxdialog/check-lxdialog.sh
parentf8aeca9d9e387be17c8ee96da47e2aea146dc8ee (diff)
downloadbusybox-w32-863342aef089f064afb65d7c344a0d254c30d155.tar.gz
busybox-w32-863342aef089f064afb65d7c344a0d254c30d155.tar.bz2
busybox-w32-863342aef089f064afb65d7c344a0d254c30d155.zip
Provide PDCurses source for w64devkit build
w64devkit doesn't ship a curses library. Provide a cut-down copy of PDCurses which is sufficient to allow 'make menuconfig' to work in w64devkit.
Diffstat (limited to '')
-rwxr-xr-xscripts/kconfig/lxdialog/check-lxdialog.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 5075ebf2d..3b401d86a 100755
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -6,6 +6,10 @@ ldflags()
6{ 6{
7 pkg-config --libs ncursesw 2>/dev/null && exit 7 pkg-config --libs ncursesw 2>/dev/null && exit
8 pkg-config --libs ncurses 2>/dev/null && exit 8 pkg-config --libs ncurses 2>/dev/null && exit
9 if [ -n "$W64DEVKIT" ]
10 then
11 echo "./scripts/kconfig/libcurses/lib.a" && exit
12 fi
9 for ext in so a dll.a dylib ; do 13 for ext in so a dll.a dylib ; do
10 for lib in ncursesw ncurses curses ; do 14 for lib in ncursesw ncurses curses ; do
11 $cc -print-file-name=lib${lib}.${ext} | grep -q / 15 $cc -print-file-name=lib${lib}.${ext} | grep -q /
@@ -34,6 +38,8 @@ ccflags()
34 echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"' 38 echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"'
35 elif [ -f /usr/include/ncurses.h ]; then 39 elif [ -f /usr/include/ncurses.h ]; then
36 echo '-DCURSES_LOC="<ncurses.h>"' 40 echo '-DCURSES_LOC="<ncurses.h>"'
41 elif [ -n "$W64DEVKIT" ]; then
42 echo '-I./scripts/kconfig/libcurses -DCURSES_LOC="<curses.h>"'
37 else 43 else
38 echo '-DCURSES_LOC="<curses.h>"' 44 echo '-DCURSES_LOC="<curses.h>"'
39 fi 45 fi