vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 1c4978d2d585154249bd6ecc493ee6357c059b72
parent 8705655692b1d732cec1b926000773d06abe3fa7
Author: Christian Hesse <mail@eworm.de>
Date:   Mon, 21 Mar 2016 13:50:12 +0100

configure: fix condition for ncurses

Diffstat:
Mconfigure | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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