fix configure.in

This commit is contained in:
Andrzej Rybczak
2009-03-27 21:08:39 +01:00
parent c4849bf129
commit 97b2f9f1fc

View File

@@ -45,6 +45,7 @@ dnl ========================
dnl = checking for ncurses = dnl = checking for ncurses =
dnl ======================== dnl ========================
if test "$pdcurses" = "no" ; then if test "$pdcurses" = "no" ; then
pdcurses=XCurses
if test "$unicode" = "yes" ; then if test "$unicode" = "yes" ; then
curses_config_bin=ncursesw5-config curses_config_bin=ncursesw5-config
curses_lib=ncursesw curses_lib=ncursesw
@@ -67,7 +68,7 @@ if test "$pdcurses" = "XCurses" && test "$CURSES_CONFIG" != "" ; then
LDFLAGS="$LDFLAGS `$CURSES_CONFIG --libs`" LDFLAGS="$LDFLAGS `$CURSES_CONFIG --libs`"
AC_CHECK_LIB($curses_lib, initscr, , AC_MSG_ERROR([$curses_lib library is required])) AC_CHECK_LIB($curses_lib, initscr, , AC_MSG_ERROR([$curses_lib library is required]))
else else
AC_CHECK_LIB($curses_lib, initscr, LDFLAGS="$LDFLAGS -l$curses_lib", AC_MSG_ERROR([$ncurses_lib library is required])) AC_CHECK_LIB($curses_lib, initscr, LDFLAGS="$LDFLAGS -l$curses_lib", AC_MSG_ERROR([$curses_lib library is required]))
fi fi
if test "$pdcurses" != "no" ; then if test "$pdcurses" != "no" ; then
AC_CHECK_LIB($curses_lib, Xinitscr, AC_DEFINE([XCURSES], [1], [x11 pdcurses available]), ) AC_CHECK_LIB($curses_lib, Xinitscr, AC_DEFINE([XCURSES], [1], [x11 pdcurses available]), )