From: Nipunn Koorapati Date: Mon, 13 Jul 2020 05:08:24 +0000 (-0700) Subject: watch: Support wide char ncurses on mac with enable-watch8bit X-Git-Tag: v3.3.17rc1~28^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0f47aab1c3e7d7c84b9798982b7b9ae0f0c87ac;p=procps-ng watch: Support wide char ncurses on mac with enable-watch8bit Fixes #47 --- diff --git a/configure.ac b/configure.ac index a5a644e0..e5ed2aa8 100644 --- a/configure.ac +++ b/configure.ac @@ -163,8 +163,11 @@ else if test "$enable_watch8bit" = yes; then PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"] [WATCH_NCURSES_CFLAGS="$NCURSESW_CFLAGS"], [ - AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], - [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])]) + AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], [ + AC_CHECK_LIB([ncurses], [addwstr], [WATCH_NCURSES_LIBS=-lncurses], [ + AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit]) + ]) + ]) ]) else WATCH_NCURSES_LIBS="$NCURSES_LIBS"