aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-06-08 05:52:37 +0200
committerTristan Gingold <tgingold@free.fr>2017-06-08 05:52:37 +0200
commit9c7003ffd8cd985a2d2be5c38a78f6e1d0a66581 (patch)
tree3c157f3d21d2411ee5bfc3db832bfc0cc65b1072 /configure
parentf676c2d34ac46eff1633a6541724c552f0f9eac5 (diff)
downloadghdl-9c7003ffd8cd985a2d2be5c38a78f6e1d0a66581.tar.gz
ghdl-9c7003ffd8cd985a2d2be5c38a78f6e1d0a66581.tar.bz2
ghdl-9c7003ffd8cd985a2d2be5c38a78f6e1d0a66581.zip
configure: do not use exec in config.status
With bash 3.2, exec always pass the absolute path of the command in argv[0], making config.status --reconfigure non idempotent. For #365
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index c0e1489b1..30c6d65b3 100755
--- a/configure
+++ b/configure
@@ -233,11 +233,13 @@ echo "# Generated by configure."
echo "# Run this file to recreate the current configuration."
echo
echo 'if [ x"$1" = x"--reconfigure" ]; then'
-echo $echon " exec $progname"$echoc
+# Do not use exec as bash 3.2 pass the absolute path in argv[0]
+echo $echon " $progname"$echoc
for opt do
echo $echon \ \"$opt\"$echoc
done
echo
+echo " exit"
echo 'fi'
echo
echo subst_vars=\"$subst_vars\"