Issue spotted perusing the testsuite logs reported in bug#13317.
* t/pkg-config-macros.sh: Don't use (uninitialized) '$dir' where '$d'
should have been used instead. Set IFS to ':' before looping on the
$PATH expansion. Fix typo: 'alocal' instead of 'aclocal'. These
issues were causing the location in PATH of the 'pkg-config' program
not to be found even when the program was present.
* THANKS: Update.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Robert Swafford robert.swafford@l-3com.com
Roberto Bagnara bagnara@cs.unipr.it
Roman Fietze roman.fietze@telemotive.de
+Ronald Copley ronald.copley@gmail.com
Ronald Landheer ronald@landheer.com
Roumen Petrov bugtrack@roumenpetrov.info
Russ Allbery rra@stanford.edu
# Find the location of the pkg-config executable.
oIFS=$IFS dir=
+IFS=:
for d in $PATH; do
IFS=$oIFS
- if test -f $dir/pkg-config || test -f $dir/pkg-config.exe; then
+ if test -f $d/pkg-config || test -f $d/pkg-config.exe; then
dir=$d
break
fi
# where the corresponding pkg.m4 might be installed.
if test -n "$dir"; then
# Only support standard installation layouts.
- XT_ACLOCAL_PATH=${dir%/bin}/share/alocal:$XT_ACLOCAL_PATH
+ XT_ACLOCAL_PATH=${dir%/bin}/share/aclocal:$XT_ACLOCAL_PATH
fi
XT_ACLOCAL_PATH=$XT_ACLOCAL_PATH${ACLOCAL_PATH+":$ACLOCAL_PATH"}