'automake --add-missing --copy --force-missing';
do
if test "$command" = libtool; then
- grep '^[ ]*A[CM]_PROG_LIBTOOL\>' configure.ac >/dev/null ||
+ grep -E '^[ ]*(LT_INIT|A[CM]_PROG_LIBTOOL)\>' configure.ac >/dev/null ||
continue
command='libtoolize -c -f'
fi