+ Check for curses.h as well as ncurses.h. * src/caca.c src/event.c src/graphics.c: + Include curses.h if ncurses.h was not found.tags/v0.99.beta14
@@ -122,7 +122,7 @@ fi | |||||
if test "${enable_ncurses}" != "no"; then | if test "${enable_ncurses}" != "no"; then | ||||
ac_cv_my_have_ncurses="no" | ac_cv_my_have_ncurses="no" | ||||
AC_CHECK_HEADERS(ncurses.h, | |||||
AC_CHECK_HEADERS(curses.h ncurses.h, | |||||
[AC_CHECK_LIB(ncurses, initscr, | [AC_CHECK_LIB(ncurses, initscr, | ||||
[ac_cv_my_have_ncurses="yes" | [ac_cv_my_have_ncurses="yes" | ||||
AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver) | AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver) | ||||
@@ -1,3 +1,10 @@ | |||||
libcaca (0.8-2) unstable; urgency=low | |||||
* src/caca.c src/event.c src/graphics.c: | |||||
+ Include <ncurses.h> instead of <curses.h> to fix m68k FTBFS. | |||||
-- Sam Hocevar (Debian packages) <sam+deb@zoy.org> Mon, 26 Jan 2004 11:47:32 +0100 | |||||
libcaca (0.8-1) unstable; urgency=low | libcaca (0.8-1) unstable; urgency=low | ||||
* New upstream release. | * New upstream release. | ||||
@@ -39,7 +39,11 @@ | |||||
# endif | # endif | ||||
#endif | #endif | ||||
#if defined(USE_NCURSES) | #if defined(USE_NCURSES) | ||||
# include <curses.h> | |||||
# if defined(HAVE_NCURSES_H) | |||||
# include <ncurses.h> | |||||
# else | |||||
# include <curses.h> | |||||
# endif | |||||
#endif | #endif | ||||
#if defined(USE_CONIO) | #if defined(USE_CONIO) | ||||
# include <dos.h> | # include <dos.h> | ||||
@@ -37,7 +37,11 @@ | |||||
# endif | # endif | ||||
#endif | #endif | ||||
#if defined(USE_NCURSES) | #if defined(USE_NCURSES) | ||||
# include <curses.h> | |||||
# if defined(HAVE_NCURSES_H) | |||||
# include <ncurses.h> | |||||
# else | |||||
# include <curses.h> | |||||
# endif | |||||
#endif | #endif | ||||
#if defined(USE_CONIO) | #if defined(USE_CONIO) | ||||
# include <conio.h> | # include <conio.h> | ||||
@@ -37,7 +37,11 @@ | |||||
# endif | # endif | ||||
#endif | #endif | ||||
#if defined(USE_NCURSES) | #if defined(USE_NCURSES) | ||||
# include <curses.h> | |||||
# if defined(HAVE_NCURSES_H) | |||||
# include <ncurses.h> | |||||
# else | |||||
# include <curses.h> | |||||
# endif | |||||
#endif | #endif | ||||
#if defined(USE_CONIO) | #if defined(USE_CONIO) | ||||
# include <conio.h> | # include <conio.h> | ||||