Prefer pkgconfig to check for ncursesw.

That way we take possible separate tinfo lib into account.
This commit is contained in:
Lars Wendler 2017-03-01 17:11:42 +01:00
parent 54cb9bfa92
commit 287d50594f
No known key found for this signature in database
GPG key ID: 571DD2D0343C6039

View file

@ -26,7 +26,13 @@ AC_CHECK_FUNCS(getopt_long)
AC_CHECK_LIB(numa, numa_available)
AC_CHECK_LIB(m, floor)
AC_CHECK_LIB(curses, mvprintw)
PKG_CHECK_MODULES([NCURSESW], [ncursesw], [has_ncursesw=yes], [AC_CHECK_LIB(curses, mvprintw)])
AS_IF([test "x$has_ncursesw" = "xyes"], [
AC_SUBST([NCURSESW_CFLAGS])
AC_SUBST([NCURSESW_LIBS])
LIBS="$LIBS $NCURSESW_LIBS"
AC_SUBST([LIBS])
])
AC_C_CONST
AC_C_INLINE