tweaks: slightly indent warnings and errors during the configure phase

To make them stand out in the waterfall of messages.
master
Benno Schulenberg 2018-12-16 13:35:48 +01:00
parent 38ca2a41f4
commit 5acfa5bb7b
2 changed files with 29 additions and 28 deletions

View File

@ -73,13 +73,13 @@ dnl Checks for pkg-config and gettext when building from git.
if test x$from_git = xyes; then if test x$from_git = xyes; then
if test ! -f $(aclocal --print-ac-dir)/pkg.m4; then if test ! -f $(aclocal --print-ac-dir)/pkg.m4; then
AC_MSG_ERROR([ AC_MSG_ERROR([
*** The pkg.m4 macros are missing. *** *** The pkg.m4 macros are missing. ***
*** The pkg-config package needs to be installed when building from git. ***]) *** The pkg-config package needs to be installed when building from git. ***])
fi fi
if test "$ac_cv_path_MSGFMT" = ":"; then if test "$ac_cv_path_MSGFMT" = ":"; then
AC_MSG_ERROR([ AC_MSG_ERROR([
*** The msgfmt program is missing. *** *** The msgfmt program is missing. ***
*** The gettext package needs to be installed when building from git. ***]) *** The gettext package needs to be installed when building from git. ***])
fi fi
fi fi
@ -425,10 +425,10 @@ int main(void)
AC_MSG_WARN([*** Can not use slang when cross-compiling]))], AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
AC_MSG_WARN([*** Can not use slang when cross-compiling])), AC_MSG_WARN([*** Can not use slang when cross-compiling])),
AC_MSG_ERROR([ AC_MSG_ERROR([
*** The header file slcurses.h was not found. If you wish to use *** The header file slcurses.h was not found. This header file
*** slang support this header file is required. Please either *** is required if you wish to use Slang support. Please either
*** install a version of slang that includes the slcurses.h file or *** install a version of Slang that includes the slcurses.h file
*** do not call the configure script with --with-slang.])) *** or do not call the configure script with --with-slang.]))
fi fi
if eval "test x$CURSES_LIB_NAME = x"; then if eval "test x$CURSES_LIB_NAME = x"; then
@ -506,10 +506,10 @@ int main(void)
AC_MSG_WARN([*** Can not use slang when cross-compiling]))], AC_MSG_WARN([*** Can not use slang when cross-compiling]))],
AC_MSG_WARN([*** Can not use slang when cross-compiling])), AC_MSG_WARN([*** Can not use slang when cross-compiling])),
AC_MSG_ERROR([ AC_MSG_ERROR([
*** The header file slcurses.h was not found. If you wish to use *** The header file slcurses.h was not found. This header file
*** slang support this header file is required. Please either *** is required if you wish to use Slang support. Please either
*** install a version of slang that includes the slcurses.h file or *** install a version of Slang that includes the slcurses.h file
*** do not call the configure script with --with-slang.])) *** or do not call the configure script with --with-slang.]))
fi fi
if test "${_libs+set}" = "set"; then if test "${_libs+set}" = "set"; then
@ -593,9 +593,9 @@ fi
if eval "test x$CURSES_LIB_NAME = x"; then if eval "test x$CURSES_LIB_NAME = x"; then
AC_MSG_ERROR([ AC_MSG_ERROR([
*** No curses lib was found. Please install the curses header files *** No curses lib was found. Please install the curses header files
*** from libncursesw5-dev (Debian), ncurses-devel (Fedora), or similar. *** from libncursesw5-dev (Debian), ncurses-devel (Fedora), or similar.
*** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)]) *** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)])
else else
AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library]) AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library])
fi fi
@ -628,18 +628,18 @@ if test "x$enable_utf8" != xno && \
else else
if test "x$enable_utf8" = xyes; then if test "x$enable_utf8" = xyes; then
AC_MSG_ERROR([ AC_MSG_ERROR([
*** UTF-8 support was requested, but insufficient UTF-8 support was *** UTF-8 support was requested, but insufficient UTF-8 support was
*** detected in your curses and/or C libraries. Please verify that your *** detected in your curses and/or C libraries. Please verify that
*** slang was built with UTF-8 support or your curses was built with *** your Slang was built with UTF-8 support or your curses was built
*** wide character support, and that your C library was built with wide *** with wide-character support, and that your C library was built
*** character support.]) *** with wide-character support.])
elif test "x$enable_utf8" != xno; then elif test "x$enable_utf8" != xno; then
AC_MSG_WARN([ AC_MSG_WARN([
*** Insufficient UTF-8 support was detected in your curses and/or C *** Insufficient UTF-8 support was detected in your curses and/or C
*** libraries. If you want UTF-8 support, please verify that your slang *** libraries. If you want UTF-8 support, please verify that your
*** was built with UTF-8 support or your curses was built with wide *** Slang was built with UTF-8 support or your curses was built with
*** character support, and that your C library was built with wide *** wide-character support, and that your C library was built with
*** character support.]) *** wide-character support.])
fi fi
fi fi
@ -769,8 +769,9 @@ AC_MSG_CHECKING([for HTML support in groff])
groff -t -mandoc -Thtml </dev/null >/dev/null groff -t -mandoc -Thtml </dev/null >/dev/null
if test $? -ne 0 ; then if test $? -ne 0 ; then
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
AC_MSG_WARN([*** Will not generate HTML version of man pages *** AC_MSG_WARN([
*** Consider installing a newer version of groff with HTML support ***]) *** Will not generate HTML version of man pages. ***
*** Consider installing a newer version of groff with HTML support. ***])
groff_html_support=no groff_html_support=no
else else
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])

View File

@ -20,7 +20,7 @@ color red "\"[^"]*\"" "\'[^']*\'"
color green "`[^`]*`" color green "`[^`]*`"
# Error lines: # Error lines:
color brightred "^\*\*\*.*" color brightred "^[[:space:]]*\*\*\*.*"
# Brackets: # Brackets:
color magenta "\[|\]|\(|\)" color magenta "\[|\]|\(|\)"