4 echo ... GlusterFS autogen ...
7 ## Check all dependencies are present
11 env aclocal --version > /dev/null 2>&1
15 MISSING="$MISSING aclocal"
19 env autoconf --version > /dev/null 2>&1
23 MISSING="$MISSING autoconf"
26 # Check for autoheader
27 env autoheader --version > /dev/null 2>&1
31 MISSING="$MISSING autoheader"
35 env automake --version > /dev/null 2>&1
39 MISSING="$MISSING automake"
42 # Check for libtoolize or glibtoolize
43 env libtoolize --version > /dev/null 2>&1
45 # libtoolize was found, so use it
48 # libtoolize wasn't found, so check for glibtoolize
49 env glibtoolize --version > /dev/null 2>&1
53 MISSING="$MISSING libtoolize/glibtoolize"
58 env tar -cf /dev/null /dev/null > /dev/null 2>&1
60 MISSING="$MISSING tar"
63 ## If dependencies are missing, warn the user and abort
64 if [ "x$MISSING" != "x" ]; then
67 echo "The following build tools are missing:"
69 for pkg in $MISSING; do
73 echo "Please install them and try again."
78 ## Do the autogeneration
79 echo Running ${ACLOCAL}...
80 $ACLOCAL -I ./contrib/aclocal
81 echo Running ${AUTOHEADER}...
83 echo Running ${TOOL}...
84 $TOOL --automake --copy --force
85 echo Running ${AUTOCONF}...
87 echo Running ${AUTOMAKE}...
88 $AUTOMAKE --add-missing --copy --foreign
90 # Run autogen in the argp-standalone sub-directory
91 echo "Running autogen.sh in argp-standalone ..."
92 ( cd contrib/argp-standalone;./autogen.sh )
94 # Instruct user on next steps
96 echo "Please proceed with configuring, compiling, and installing."