From: Glenn Morris Date: Thu, 8 Jun 2017 16:48:59 +0000 (-0400) Subject: Make autogen.sh report relevant environment variables X-Git-Tag: emacs-26.0.90~521^2~143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a62d15763df16e64b452b24191e12c0e32a2de6b;p=emacs.git Make autogen.sh report relevant environment variables * autogen.sh (check_version): Indicate if using an environment variable. --- diff --git a/autogen.sh b/autogen.sh index 2297bdc8c49..0153f896a17 100755 --- a/autogen.sh +++ b/autogen.sh @@ -72,11 +72,15 @@ minor_version () check_version () { ## Respect, e.g., $AUTOCONF if it is set, like autoreconf does. - uprog=`echo $1 | sed -e 's/-/_/g' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + uprog0=`echo $1 | sed -e 's/-/_/g' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - eval uprog=\$${uprog} + eval uprog=\$${uprog0} - [ x"$uprog" = x ] && uprog=$1 + if [ x"$uprog" = x ]; then + uprog=$1 + else + printf '%s' "(using $uprog0=$uprog) " + fi have_version=`get_version $uprog`