Escape square brackets in configure.ac

This patch attempts to solve the regression introduced in e8b0efdc
(#2607).
This commit is contained in:
Mateusz Piotrowski 2019-01-09 14:45:00 +01:00
parent 013dd28b15
commit 80f464d9d7

View file

@ -275,7 +275,7 @@ test "$prefix" = NONE && prefix=$ac_default_prefix
test "$exec_prefix" = NONE && exec_prefix='${prefix}' test "$exec_prefix" = NONE && exec_prefix='${prefix}'
for name in $ac_subst_vars; do for name in $ac_subst_vars; do
for _ in 1 2 3; do for _ in 1 2 3; do
if printf '%s' "${name}" | egrep '^[_[:alpha:]][_[:alnum:]]*$' if printf '%s' "${name}" | egrep '^[[_[[:alpha:]]]][[_[[:alnum:]]]]*$'
then then
eval "${name}"="$(eval echo "\${${name}}")" eval "${name}"="$(eval echo "\${${name}}")"
fi fi