m4: Make MY_WITH_TERMINFO consistent with MY_WITH_READLINE

Tweak help text and failure message.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-12-08 21:36:38 +01:00
parent 56f426ae9e
commit 48fcff36b2

View file

@ -14,11 +14,11 @@ AC_DEFUN([MY_WITH_TERMINFO],
[ [
AC_ARG_WITH([terminfo], AC_ARG_WITH([terminfo],
AS_HELP_STRING([--with-terminfo], AS_HELP_STRING([--with-terminfo],
[use terminfo for highlighting (default check)])) [use terminfo for highlighting @<:@default check@:>@]))
if test "x$with_terminfo" != xno; then if test "x$with_terminfo" != xno; then
MY_CURSES_TERMINFO MY_CURSES_TERMINFO
if test "$have_terminfo$with_terminfo" = noyes if test "$have_terminfo$with_terminfo" = noyes
then AC_MSG_FAILURE([Can't satisfy --with-terminfo]) then AC_MSG_FAILURE([--with-terminfo was given, but test for terminfo failed])
fi fi
with_terminfo="$have_terminfo" with_terminfo="$have_terminfo"
fi fi