]> granicus.if.org Git - procps-ng/commitdiff
watch: Support wide char ncurses on mac with enable-watch8bit
authorNipunn Koorapati <nipunn@dropbox.com>
Mon, 13 Jul 2020 05:08:24 +0000 (22:08 -0700)
committerCraig Small <csmall@dropbear.xyz>
Tue, 22 Dec 2020 00:53:12 +0000 (11:53 +1100)
Fixes #47

configure.ac

index 0c93ad7b9c7636c71afa47372744a0716ae68da9..b8e4938b445989cf003765e45b5a6958a3a64eb7 100644 (file)
@@ -180,8 +180,11 @@ else
   AM_CONDITIONAL(WITH_NCURSES, true)
   if test "$enable_watch8bit" = yes; then
     PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"], [
-      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"