diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-02 19:43:36 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-06-02 19:43:36 (GMT) |
commit | c6f3947bcb2c152446d4e4d8fff11d8342176e52 (patch) | |
tree | ffc49239e8bd17b8802755d6d647bd8ba7871957 | |
parent | a8f575082a1bbe1e4c2817a41894f5c0a7c49d49 (diff) |
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" <yann.morin.1998@anciens.enib.fr>
-rwxr-xr-x | configure | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 )" |