}
echo "Checking for a complete tree..."
-for dir in build portals lustre ; do
+# required directories
+for dir in build lnet portals lustre ; do
if [ ! -d "$dir" ] ; then
cat >&2 <<EOF
Your tree seems to be missing $dir.
fi
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
done
+# some are optional
+for dir in snmp ; do
+ if [ -d "$dir" ] ; then
+ ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
+ fi
+done
check_version automake automake-1.7 "1.7.8"
check_version autoconf autoconf "2.57"