diff options
| author | Christian Hesse <mail@eworm.de> | 2016-03-21 13:50:12 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2016-03-21 13:50:12 +0100 |
| commit | bc8518ab979ae4d45db9912e8cf50e730b3ad3dc (patch) | |
| tree | 6b88e372b04de0150910622c090307883cf1a977 /configure | |
| parent | 66015cde8cb421915553e273adc5917ce75a5e9b (diff) | |
| download | vis-bc8518ab979ae4d45db9912e8cf50e730b3ad3dc.tar.gz vis-bc8518ab979ae4d45db9912e8cf50e730b3ad3dc.tar.xz | |
configure: fix condition for ncurses
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -231,8 +231,8 @@ for curses in ncursesw ncurses curses; do if test "$have_pkgconfig" = "yes" ; then CFLAGS_CURSES=$(pkg-config --cflags $curses 2>/dev/null) LDFLAGS_CURSES=$(pkg-config --libs $curses 2>/dev/null) - if $? -a $CC $CFLAGS $LDFLAGS $CFLAGS_CURSES $LDFLAGS_CURSES \ - -o /dev/null "$tmpc" >/dev/null 2>&1 ; then + if test $? -eq 0 && $CC $CFLAGS $CFLAGS_CURSES "$tmpc" \ + $LDFLAGS $LDFLAGS_CURSES -o /dev/null >/dev/null 2>&1 ; then CONFIG_CURSES=1 printf "yes\n" break @@ -242,8 +242,8 @@ for curses in ncursesw ncurses curses; do CFLAGS_CURSES="-I/usr/include/$curses" LDFLAGS_CURSES="-l$curses" - if $CC $CFLAGS $LDFLAGS $CFLAGS_CURSES $LDFLAGS_CURSES \ - -o /dev/null "$tmpc" >/dev/null 2>&1 ; then + if $CC $CFLAGS $CFLAGS_CURSES "$tmpc" \ + $LDFLAGS $LDFLAGS_CURSES -o /dev/null >/dev/null 2>&1 ; then CONFIG_CURSES=1 printf "yes\n" break |
