configure: check for ncurses config with abi 6

Signed-off-by: Jan Palus <jan.palus@gmail.com>
This commit is contained in:
Jan Palus
2010-08-17 17:37:47 +02:00
committed by Andrzej Rybczak
parent e0eff99175
commit 6cc12a8da6

View File

@@ -101,10 +101,10 @@ dnl = checking for ncurses =
dnl ======================== dnl ========================
if test "$pdcurses" = "no" ; then if test "$pdcurses" = "no" ; then
if test "$unicode" = "yes" ; then if test "$unicode" = "yes" ; then
curses_config_bin=ncursesw5-config curses_config_bin="ncursesw6-config ncursesw5-config"
AC_DEFINE([_UTF8], [1], [enables unicode support]) AC_DEFINE([_UTF8], [1], [enables unicode support])
else else
curses_config_bin=ncurses5-config curses_config_bin="ncurses6-config ncurses5-config"
fi fi
else else
if test "$pdcurses" = "yes" ; then if test "$pdcurses" = "yes" ; then
@@ -115,7 +115,7 @@ else
fi fi
AC_DEFINE([USE_PDCURSES], [1], [enables pdcurses support]) AC_DEFINE([USE_PDCURSES], [1], [enables pdcurses support])
fi fi
AC_PATH_PROG(CURSES_CONFIG, $curses_config_bin) AC_PATH_PROGS(CURSES_CONFIG, $curses_config_bin)
if test "$CURSES_CONFIG" != "" ; then if test "$CURSES_CONFIG" != "" ; then
CPPFLAGS="$CPPFLAGS `$CURSES_CONFIG --cflags`" CPPFLAGS="$CPPFLAGS `$CURSES_CONFIG --cflags`"
LDFLAGS="$LDFLAGS `$CURSES_CONFIG --libs`" LDFLAGS="$LDFLAGS `$CURSES_CONFIG --libs`"