]> git.wh0rd.org - patches.git/blame - linux-lxdialog-curses-search.patch
more random patches. who knows.
[patches.git] / linux-lxdialog-curses-search.patch
CommitLineData
5e993f12 1diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
2index 120d624..cdca738 100644
3--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
4+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
5@@ -4,21 +4,15 @@
6 # What library to link
7 ldflags()
8 {
9- $cc -print-file-name=libncursesw.so | grep -q /
10- if [ $? -eq 0 ]; then
11- echo '-lncursesw'
12- exit
13- fi
14- $cc -print-file-name=libncurses.so | grep -q /
15- if [ $? -eq 0 ]; then
16- echo '-lncurses'
17- exit
18- fi
19- $cc -print-file-name=libcurses.so | grep -q /
20- if [ $? -eq 0 ]; then
21- echo '-lcurses'
22- exit
23- fi
24+ for ext in so a dylib ; do
25+ for lib in ncursesw ncurses curses ; do
26+ $cc -print-file-name=lib${lib}.${ext} | grep -q /
27+ if [ $? -eq 0 ]; then
28+ echo "-l${lib}"
29+ exit
30+ fi
31+ done
32+ done
33 exit 1
34 }
35