diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-06-08 05:52:37 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-06-08 05:52:37 +0200 |
commit | 9c7003ffd8cd985a2d2be5c38a78f6e1d0a66581 (patch) | |
tree | 3c157f3d21d2411ee5bfc3db832bfc0cc65b1072 /configure | |
parent | f676c2d34ac46eff1633a6541724c552f0f9eac5 (diff) | |
download | ghdl-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-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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\" |