Commit a2816313 authored by Antonio Borneo's avatar Antonio Borneo Committed by Steve Bennett
Browse files

autosetup: keep clean the source tree on out-of-tree build



If the build host doesn't have neither jimsh nor tclsh installed,
during 'configure' the autosetup will build 'autosetup/jimsh0'
inside the source tree. This happens also when out-of-tree build
is used.
Making dirty the source tree during out-of-tree build causes
applications that use jimtcl as submodule (e.g. OpenOCD) to fail
at 'make distcheck'.

Modify 'autosetup-find-tclsh' to build 'jimsh0' in the current
folder. For jimtcl project it would be the root of the source tree
or the root of the out-of-tree build.
Update 'Makefile.in' to search for 'jimsh0' in the new path during
'distclean'.

Reported-by: default avatarPaul Fertser <fercerpav@gmail.com>
Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
parent d224c9a2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment