Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

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  
    55ldflags()
    66{
    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
    810        for lib in ncursesw ncurses curses ; do
    911            $cc -print-file-name=lib${lib}.${ext} | grep -q /
     
    2022ccflags()
    2123{
    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>"'
    2428    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'
    2631    elif [ -f /usr/include/ncurses/ncurses.h ]; then
    2732        echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
    2833    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>"'
    3035    elif [ -f /usr/include/ncurses.h ]; then
    3136        echo '-DCURSES_LOC="<ncurses.h>"'
     
    4146# Check if we can link to ncurses
    4247check() {
    43         $cc -xc - -o $tmp 2>/dev/null <<'EOF'
     48        $cc -x c - -o $tmp 2>/dev/null <<'EOF'
    4449#include CURSES_LOC
    4550main() {}
Note: See TracChangeset for help on using the changeset viewer.