mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
Make autogen.sh report relevant environment variables
* autogen.sh (check_version): Indicate if using an environment variable.
This commit is contained in:
parent
0648edf3e0
commit
a62d15763d
10
autogen.sh
10
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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user