fix AC_ARG_WITH(ncurses) handling

The third arg is for "the user has specified some flag", not "the user
has disabled things", so use $withval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2012-01-24 13:01:14 -05:00 committed by Sami Kerola
parent 62c0cf67f6
commit 061de22bad

View File

@ -127,7 +127,7 @@ AC_TRY_COMPILE([#include <argp.h>],
AC_ARG_WITH([ncurses],
AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]),
[with_ncurses=no], [with_ncurses=yes]
[with_ncurses=$withval], [with_ncurses=yes]
)
if test "x$with_ncurses" = xno; then