Hello, David !

On my day job digging in the gstreamer sources, i've grabbed a  look
inside their autogen.sh script, here is the interesting bits, probably
we need something similar to be added to our build.sh/autogen.sh
scripts.
----------------------------
echo -n "+ check for build tools"
if test ! -z "$NOCHECK"; then echo " skipped"; else  echo; fi
version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53 autocon
f-2.52" \
              "ftp://ftp.gnu.org/pub/gnu/autoconf/"; 2 52 || DIE=1
version_check "automake" "$AUTOMAKE automake automake-1.9 automake-1.7 automake-
1.6 automake-1.5" \
              "ftp://ftp.gnu.org/pub/gnu/automake/"; 1 7 || DIE=1
version_check "autopoint" "autopoint" \
              "ftp://ftp.gnu.org/pub/gnu/gettext/"; 0 11 5 || DIE=1
version_check "libtoolize" "$LIBTOOLIZE libtoolize glibtoolize" \
              "ftp://ftp.gnu.org/pub/gnu/libtool/"; 1 5 0 || DIE=1
version_check "pkg-config" "" \
              "http://www.freedesktop.org/software/pkgconfig"; 0 8 0 || DIE=1

die_check $DIE
--------------------------

As you see they are checking for packages installed (leaving part with
ENV variables, up to the user), and stopping script if versions of
those packages is less than expected.
What do you think ?

Regards Valery.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to