summaryrefslogtreecommitdiff
path: root/extra/config/lxdialog/check-lxdialog.sh
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 15:35:57 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-11 15:35:57 +0200
commit0c5262ec8dde8fe5ccc59713e8aefbeac670161b (patch)
tree945634361ff9e1a03012e3183555c0f1c834a415 /extra/config/lxdialog/check-lxdialog.sh
parente76d6c8738aea33317c8d7bb57e4b1acff111edb (diff)
lxdialog: fix ncursesw include detection
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'extra/config/lxdialog/check-lxdialog.sh')
-rw-r--r--[-rwxr-xr-x]extra/config/lxdialog/check-lxdialog.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/config/lxdialog/check-lxdialog.sh b/extra/config/lxdialog/check-lxdialog.sh
index fcef0f59d..d34dfd46d 100755..100644
--- a/extra/config/lxdialog/check-lxdialog.sh
+++ b/extra/config/lxdialog/check-lxdialog.sh
@@ -19,7 +19,11 @@ ldflags()
# Where is ncurses.h?
ccflags()
{
- if [ -f /usr/include/ncurses/ncurses.h ]; then
+ if [ -f /usr/include/ncursesw/ncurses.h ]; then
+ echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"'
+ elif [ -f /usr/include/ncursesw/curses.h ]; then
+ echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
+ elif [ -f /usr/include/ncurses/ncurses.h ]; then
echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
elif [ -f /usr/include/ncurses/curses.h ]; then
echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'