build-sys: Allow enable-watch9bit and with-ncurses
The commit that changed configure.ac was supposed to check for when
someone removes ncurses using the flag --without-ncurses
Unfortunately the change didn't check if the user was specifying
--without or --with meaning if they didn use --with-ncurses the
configure script would error out.
Signed-off-by: Craig Small <csmall@dropbear.xyz>
References:
commit 8128641814
procps-ng/procps#251
This commit is contained in:
parent
4b607edc12
commit
f9f5f6ad38
@ -219,13 +219,13 @@ AC_SUBST([HARDEN_LDFLAGS])
|
||||
# Optional packages - AC_ARG_WITH
|
||||
AC_ARG_WITH([ncurses],
|
||||
AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]),
|
||||
[AS_IF([test "x$enable_watch8bit" = "xyes"],
|
||||
[AC_MSG_ERROR([Cannot have both --enable-watch8bit and --without-ncurses])]
|
||||
)],
|
||||
[],
|
||||
[with_ncurses=yes]
|
||||
)
|
||||
if test "x$with_ncurses" = xno; then
|
||||
AM_CONDITIONAL(WITH_NCURSES, false)
|
||||
AS_IF([test "x$enable_watch8bit" = "xyes"],
|
||||
[AC_MSG_ERROR([Cannot have both --enable-watch8bit and --without-ncurses])])
|
||||
else
|
||||
AM_CONDITIONAL(WITH_NCURSES, true)
|
||||
PKG_CHECK_MODULES([NCURSES], [ncursesw],
|
||||
|
Loading…
Reference in New Issue
Block a user