From bc8518ab979ae4d45db9912e8cf50e730b3ad3dc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 21 Mar 2016 13:50:12 +0100 Subject: configure: fix condition for ncurses --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 13d155a..f1eb730 100755 --- a/configure +++ b/configure @@ -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 -- cgit v1.2.3