diff options
author | Geoff Levand <geoff@infradead.org> | 2013-07-19 17:07:31 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-07-23 10:39:08 -0700 |
commit | f1599796efed1eb67759cf42f47fe4bf6a9bf93c (patch) | |
tree | 5cf13ffb598e62a45ed9830f76a74958785b2a44 /ui/ncurses/nc-scr.h | |
parent | f2747434dcdfe71c3a4d1b841070f4c9d8dc4965 (diff) | |
download | talos-petitboot-f1599796efed1eb67759cf42f47fe4bf6a9bf93c.tar.gz talos-petitboot-f1599796efed1eb67759cf42f47fe4bf6a9bf93c.zip |
configure: Update to use AX_WITH_CURSES
For a more portable build system convert to using the
autoconf-archive AX_WITH_CURSES macros. Allows building
on openSUSE, which has a different header file layout than
other distros, and fixes menu entries with UTF-8 characters;
this causes fedora installs (codename "Schrödinger´s cat")
to break the UI.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui/ncurses/nc-scr.h')
-rw-r--r-- | ui/ncurses/nc-scr.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index f18753a..a8aa314 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -20,7 +20,19 @@ #define _PB_NC_SCR_H #include <linux/input.h> /* This must be included before ncurses.h */ -#include <ncurses.h> +#if defined HAVE_NCURSESW_CURSES_H +# include <ncursesw/curses.h> +#elif defined HAVE_NCURSESW_H +# include <ncursesw.h> +#elif defined HAVE_NCURSES_CURSES_H +# include <ncurses/curses.h> +#elif defined HAVE_NCURSES_H +# include <ncurses.h> +#elif defined HAVE_CURSES_H +# include <curses.h> +#else +# error "Curses header file not found." +#endif #ifdef DEBUG #define DBG(fmt, args...) pb_log("DBG: " fmt, ## args) |