check for Xinitscr in pdcurses and define XCURSES if available

This commit is contained in:
Andrzej Rybczak
2009-03-26 12:10:04 +01:00
parent 48f3361e2d
commit cbc452fde5
3 changed files with 5 additions and 6 deletions

View File

@@ -69,6 +69,9 @@ if test "$pdcurses" = "XCurses" && test "$CURSES_CONFIG" != "" ; then
else
AC_CHECK_LIB($curses_lib, initscr, LDFLAGS="$LDFLAGS -l$curses_lib", AC_MSG_ERROR([$ncurses_lib library is required]))
fi
if test "$pdcurses" != "no" ; then
AC_CHECK_LIB($curses_lib, Xinitscr, AC_DEFINE([XCURSES], [1], [x11 pdcurses available]), )
fi
AC_CHECK_HEADERS([curses.h], , AC_MSG_ERROR([missing ncurses.h header]))
dnl =================================