#!/bin/sh 
#
# Configure and make from fresh CVS checkout, or cvs update
#
# $Id: CVSMake,v 1.10 1999/08/10 23:37:33 danny Exp $
#
SUBDIRS=`grep AC_CONFIG_SUBDIRS configure.in | sed -e's/^.*(//' -e's/)$//'`
echo "Autofoo in top..."
(libtoolize --force && aclocal && autoheader && automake -a -i && autoconf)

for i in $SUBDIRS
do
    if test -f $i/CVSMake
    then
	echo "Autofoo in $i"
	(cd $i && ./CVSMake)
    fi
done

if test -d test
then
    echo "Autofoo in test..."
    (cd test && ./mklinks)
    (cd test && libtoolize --force && aclocal && autoheader && automake -a -i && autoconf)
fi
