3 # taken from gnome-common/macros2/autogen.sh
8 IFS="${IFS= }"; ch_save_IFS="$IFS"; IFS="."
10 for ch_min in $ch_min_version; do
11 ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes
12 if [ -z "$ch_min" ]; then break; fi
13 if [ -z "$ch_cur" ]; then ch_status=1; break; fi
14 if [ $ch_cur -gt $ch_min ]; then break; fi
15 if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi
22 echo "$cmd is $1. version $required is required to build Lustre."
24 if [ -e /usr/lib/autolustre/bin/$cmd ]; then
26 You apparently already have Lustre-specific autoconf/make RPMs
27 installed on your system at /usr/lib/autolustre/share/$cmd.
28 Please set your PATH to point to those versions:
30 export PATH="/usr/lib/autolustre/bin:\$PATH"
34 CFS provides RPMs which can be installed alongside your
35 existing autoconf/make RPMs, if you are nervous about
38 ftp://ftp.lustre.org/pub/other/autolustre/README.autolustre
40 You may be able to download newer version from:
42 http://ftp.gnu.org/gnu/$cmd/$cmd-$required.tar.gz
45 [ "$cmd" = "autoconf" -a "$required" = "2.57" ] && cat >&2 <<EOF
47 or for RH9 systems you can use:
49 ftp://fr2.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/autoconf-2.57-3.noarch.rpm
51 [ "$cmd" = "automake-1.7" -a "$required" = "1.7.8" ] && cat >&2 <<EOF
53 or for RH9 systems you can use:
55 ftp://fr2.rpmfind.net/linux/fedora/core/1/i386/os/Fedora/RPMS/automake-1.7.8-1.noarch.rpm
69 echo -n "checking for $cmd $required... "
70 if ! $cmd --version >/dev/null ; then
73 version=$($cmd --version | awk "BEGIN { IGNORECASE=1 } /$tool \(GNU $tool\)/ { print \$4 }")
75 if ! compare_versions "$required" "$version" ; then
80 echo "Checking for a complete tree..."
81 for dir in build portals lustre ; do
82 if [ ! -d "$dir" ] ; then
84 Your tree seems to be missing $dir.
85 Please read README.lustrecvs for details.
89 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
92 check_version automake automake-1.7 "1.7.8"
93 check_version autoconf autoconf "2.57"
95 echo "Running aclocal-1.7 $ACLOCAL_FLAGS..."
96 aclocal-1.7 $ACLOCAL_FLAGS
97 echo "Running autoheader..."
99 echo "Running automake-1.7..."
101 echo "Running autoconf..."
104 if [ -d libsysio ] ; then
105 pushd libsysio >/dev/null
106 echo "Running autogen for libsysio..."