Try harder to find the ncurses header, fixes detection in SuSE SLES9.

(thanks to Moritz Barsnick)
This commit is contained in:
Hisham Muhammad
2011-09-08 01:45:16 +00:00
parent 25a2aada3c
commit a7bcf1d2e4
4 changed files with 19 additions and 7 deletions

View File

@ -15,10 +15,14 @@
#include "debug.h"
#include <assert.h>
#ifdef HAVE_LIBNCURSESW
#include <ncursesw/curses.h>
#else
#ifdef HAVE_CURSES_H
#include <curses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#elif HAVE_NCURSESW_CURSES_H
#include <ncursesw/curses.h>
#elif HAVE_NCURSES_NCURSES_H
#include <ncurses/ncurses.h>
#endif
#define RICHSTRING_MAXLEN 300