for l in X `find . -name "*.la"`; do
if [ "$l" != "X" ] ; then
l=`basename $l`
libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
sed -e "s%${libdir}%${ldir}%g" $l > _$l
mv -f _$l $l
for l in X `find . -name "*.la"`; do
if [ "$l" != "X" ] ; then
l=`basename $l`
libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"`
sed -e "s%${libdir}%${ldir}%g" $l > _$l
mv -f _$l $l