Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/scripts/kconfig/lxdialog/check-lxdialog.sh
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/scripts/kconfig/lxdialog/check-lxdialog.sh
r2725 r3621 5 5 ldflags() 6 6 { 7 for ext in so a dylib ; do 7 pkg-config --libs ncursesw 2>/dev/null && exit 8 pkg-config --libs ncurses 2>/dev/null && exit 9 for ext in so a dll.a dylib ; do 8 10 for lib in ncursesw ncurses curses ; do 9 11 $cc -print-file-name=lib${lib}.${ext} | grep -q / … … 20 22 ccflags() 21 23 { 22 if [ -f /usr/include/ncursesw/ncurses.h ]; then 23 echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"' 24 if pkg-config --cflags ncursesw 2>/dev/null; then 25 echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' 26 elif pkg-config --cflags ncurses 2>/dev/null; then 27 echo '-DCURSES_LOC="<ncurses.h>"' 24 28 elif [ -f /usr/include/ncursesw/curses.h ]; then 25 echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"' 29 echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' 30 echo ' -DNCURSES_WIDECHAR=1' 26 31 elif [ -f /usr/include/ncurses/ncurses.h ]; then 27 32 echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' 28 33 elif [ -f /usr/include/ncurses/curses.h ]; then 29 echo '-I/usr/include/ncurses -DCURSES_LOC="< ncurses/curses.h>"'34 echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"' 30 35 elif [ -f /usr/include/ncurses.h ]; then 31 36 echo '-DCURSES_LOC="<ncurses.h>"' … … 41 46 # Check if we can link to ncurses 42 47 check() { 43 $cc -x c - -o $tmp 2>/dev/null <<'EOF'48 $cc -x c - -o $tmp 2>/dev/null <<'EOF' 44 49 #include CURSES_LOC 45 50 main() {}
Note:
See TracChangeset
for help on using the changeset viewer.