AS_IF([test "x$with_ncursesw" != xno], [
UL_NCURSES_CHECK([ncursesw])
AS_IF([test "x$have_ncursesw" = xyes], [
- AC_CHECK_HEADERS([ncursesw/ncurses.h ncurses.h],
- [have_ncursesw_header=yes])
- AC_CHECK_HEADERS([ncursesw/term.h term.h])
+ AC_CHECK_HEADERS([ncursesw/ncurses.h], [have_ncursesw_header=yes])
+ AC_CHECK_HEADERS([ncursesw/term.h])
AS_IF([test "x$have_ncursesw_header" = xno], [have_ncursesw=no])
])
AS_IF([test "x$have_ncursesw" = xyes], [
AS_IF([test "x$have_ncursesw" = xno -a "x$with_ncurses" != xno ], [
UL_NCURSES_CHECK([ncurses])
AS_IF([test "x$have_ncurses" = xyes], [
- AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h],
- [have_ncurses_header=yes])
+ AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h], [have_ncurses_header=yes])
AC_CHECK_HEADERS([ncurses/term.h term.h])
AS_IF([test "x$have_ncurses_header" = xno], [have_ncurses=no])
])
#include <ctype.h>
#if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW)
-# ifdef HAVE_TERM_H
-# include <term.h>
+# if defined(HAVE_NCURSESW_NCURSES_H)
+# include <ncursesw/ncurses.h>
+# elif defined(HAVE_NCURSES_NCURSES_H)
+# include <ncurses/ncurses.h>
+# elif defined(HAVE_NCURSES_H)
+# include <ncurses.h>
+# endif
+# if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
# elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-# elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+# elif defined(HAVE_TERM_H)
+# include <term.h>
# endif
#endif
static const char *Senter = "", *Sexit = ""; /* enter and exit standout mode */
#if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW)
-# ifdef HAVE_TERM_H
-# include <term.h>
+# if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
# elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-# elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+# elif defined(HAVE_TERM_H)
+# include <term.h>
# endif
#endif
#include <termios.h>
#include <unistd.h>
-#ifdef HAVE_TERM_H
-# include <term.h>
+#if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
#elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-#elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+#elif defined(HAVE_TERM_H)
+# include <term.h>
#endif
#ifdef HAVE_LINUX_TIOCL_H
} context, screen_start;
extern char PC; /* pad character */
-#ifdef HAVE_TERM_H
-# include <term.h>
+#if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
#elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-#elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+#elif defined(HAVE_TERM_H)
+# include <term.h>
#endif
#define TERM_AUTO_RIGHT_MARGIN "am"
#include <signal.h>
#include <setjmp.h>
-#ifdef HAVE_NCURSESW_H
-# include <ncursesw.h>
-#elif defined(HAVE_NCURSES_H)
-# include <ncurses.h>
-#elif defined(HAVE_NCURSESW_NCURSES_H)
+#if defined(HAVE_NCURSESW_NCURSES_H)
# include <ncursesw/ncurses.h>
#elif defined(HAVE_NCURSES_NCURSES_H)
# include <ncurses/ncurses.h>
+#elif defined(HAVE_NCURSES_H)
+# include <ncurses.h>
#endif
-#ifdef HAVE_TERM_H
-# include <term.h>
+#if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
#elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-#elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+#elif defined(HAVE_TERM_H)
+# include <term.h>
#endif
#include "nls.h"
#include <errno.h>
#include <getopt.h>
-#ifdef HAVE_TERM_H
-# include <term.h>
+#if defined(HAVE_NCURSESW_TERM_H)
+# include <ncursesw/term.h>
#elif defined(HAVE_NCURSES_TERM_H)
# include <ncurses/term.h>
-#elif defined(HAVE_NCURSESW_TERM_H)
-# include <ncursesw/term.h>
+#elif defined(HAVE_TERM_H)
+# include <term.h>
#endif
#include "nls.h"