In some cases we want to pass the full path to the autotool program.
Since the wrapper doesn't really care about this part, normalize the
program name to its basename when creating the stderr file.
autotools_env_setup
- local STDERR_TARGET="${T}/$1.out"
+ # Allow people to pass in full paths. #549268
+ local STDERR_TARGET="${T}/${1##*/}.out"
# most of the time, there will only be one run, but if there are
# more, make sure we get unique log filenames
if [[ -e ${STDERR_TARGET} ]] ; then
local i=1
while :; do
- STDERR_TARGET="${T}/$1-${i}.out"
+ STDERR_TARGET="${T}/${1##*/}-${i}.out"
[[ -e ${STDERR_TARGET} ]] || break
: $(( i++ ))
done