aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-03-18 18:35:55 +0100
committerTristan Gingold <tgingold@free.fr>2021-03-18 18:38:21 +0100
commitc4256d931efe445aab9153486c9e5082d23056eb (patch)
tree9ba83eb80cd80ef16f025c37edf3282c78ba0097 /configure
parent8eb6eb35ae475be271cef614af0256282286606b (diff)
downloadghdl-c4256d931efe445aab9153486c9e5082d23056eb.tar.gz
ghdl-c4256d931efe445aab9153486c9e5082d23056eb.tar.bz2
ghdl-c4256d931efe445aab9153486c9e5082d23056eb.zip
configure: work-around unexpected regexp range with sv_SE locale. Fix #1581
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index f026e218a..fd2d3bf02 100755
--- a/configure
+++ b/configure
@@ -338,11 +338,14 @@ rm -f config.status
eval vval=\$$v
echo $v=\"$vval\"
done
- sed_opts=`echo $subst_vars | sed -e "s/\\([a-zA-Z_]*\\)/ -e \"s%@\1@%\$\1%g\"/g"`
subst_files="ghdl.gpr Makefile"
echo "for f in $subst_files; do"
echo ' echo "Creating $f"'
- echo " sed $sed_opts" '< $srcdir/${f}.in > $f'
+ echo " sed \\"
+ for v in $subst_vars; do
+ echo " -e \"s%@$v@%\$$v%g\" \\"
+ done
+ echo ' < $srcdir/${f}.in > $f'
echo "done"
} > config.status || \
{