From c6f3947bcb2c152446d4e4d8fff11d8342176e52 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 2 Jun 2011 21:43:36 +0200 Subject: configure: add prefix to err messages in has_or_{abort,warn} Make it easier to spot messages spewed out by has_or_{abort,warn}. Signed-off-by: "Yann E. MORIN" diff --git a/configure b/configure index 1120bd9..9be7a96 100755 --- a/configure +++ b/configure @@ -215,11 +215,11 @@ has_or_abort() { local var ver err kconfig if ! check_for "$@"; then - printf "\n${err:-${prog}${inc}${lib}: none found}\n\n" - printf "Either you are missing entirely the needed tool,\n" - printf "or the version you have is too old.\n" + printf " * ${err:-${prog}${inc}${lib}: none found}\n" + printf " * Either you are missing entirely the needed tool,\n" + printf " * or the version you have is too old.\n" if [ -n "${var}" ]; then - printf "You can give the path to this tool using: --with-${var}=PATH\n" + printf " * --> You can give the path to this tool using: --with-${var}=PATH\n" fi printf "\n" # Bail out if --force is not specified @@ -243,9 +243,10 @@ has_or_warn() { local var ver err kconfig if ! check_for "$@"; then - printf "${err:+${err}\n}" + printf " * optional dependency is missing, some features will be disabled\n" + printf "${err:+ * ${err}\n}" if [ -n "${var}" ]; then - printf -- "--> You can give the path to this tool using: --with-${var}=PATH\n" + printf " * --> You can give the path to this tool using: --with-${var}=PATH\n" fi fi } @@ -434,7 +435,7 @@ has_or_abort lib="${ncurses_libs}" \ # If this version is n hg clone, try to get the revision number # If we can't get the revision number, use date -printf "Computing version string... " +printf "\nComputing version string... " case "${VERSION}" in *+hg|hg) REVISION="$( hg id -n 2>/dev/null || true )" -- cgit v0.10.2-6-g49f6