3 # NOTE: Please avoid bashisms (bash specific syntax) in this script
5 # die a horrible death. All output goes to stderr.
9 echo "bootstrap failure: $*"
17 eval "$@" || die "command exited with code $?"
21 echo "Checking for a complete tree..."
22 REQUIRED_DIRS="libcfs lnet lustre"
23 OPTIONAL_DIRS="snmp portals"
24 CONFIGURE_DIRS="libsysio"
26 for dir in $REQUIRED_DIRS ; do
28 die "Your tree seems to be missing $dir.
29 Please read README.lustrecvs for details."
31 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
33 # optional directories for Lustre
34 for dir in $OPTIONAL_DIRS; do
35 if [ -d "$dir" ] ; then
36 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
42 run_cmd "aclocal -I $PWD/config $ACLOCAL_FLAGS"
44 run_cmd "automake -a -c"
47 # bootstrap in these directories
48 for dir in $CONFIGURE_DIRS; do
51 echo "bootstrapping in $dir..."
52 run_cmd "sh autogen.sh"