# HG changeset patch # User "Yann E. MORIN" # Date 1307043816 -7200 # Node ID 6b479665a053b8e6f65a64114e197b5267fad6a6 # Parent ac4c006c48e43c2211e96811ed6c1b69e9948f2d 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 -r ac4c006c48e4 -r 6b479665a053 configure --- a/configure Thu Jun 02 19:58:05 2011 +0200 +++ b/configure Thu Jun 02 21:43:36 2011 +0200 @@ -215,11 +215,11 @@ 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 @@ 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 @@ # 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 )"