autotools: append branch subdir to builddir for non-srcdir modules
Submitted by Leo Singer
Link to original bug (#689472)
Description
Created attachment 230430 proposed patch
For non-srcdir builds of autotools modules, the name of the build directory takes into account the buildroot and the branch's module name, but not the branch's subdir. As a result, multiple autotools modules can be built with the same builddir if their sources are in subdirectories of the same branch.
This patch modifies autotools' get_builddir method to append the branch's subdir, if it has one, when performing a non-srcdir build.
My example of such a source layout is this git repository: http://www.lsc-group.phys.uwm.edu/cgit/lalsuite/tree/
It contains a number of closely related autotools and distutils projects for analyzing data for the LIGO experiment http://www.ligo.org/.
Patch 230430, "proposed patch":
0001-autotools-append-branch-subdir-to-builddir-for-non-s.patch