diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-10-14 04:09:04 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-10-14 04:09:04 +0000 |
commit | bbe978c6aca708a84c51bfc0abce64da666e6c78 (patch) | |
tree | eb032ba8f01e524dceb65cafa500fe9fabd4da74 /autogen.sh | |
parent | 36c86a5cb16e5ded50f414ab3e29d1fec65eb828 (diff) |
Check for python before configuring CVS sources.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2493 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index cb1ad9a373..c8deebc0a5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,11 +2,25 @@ # # Run this to generate all the initial makefiles. # -# $Id: autogen.sh,v 1.10 2000/07/26 08:03:39 guy Exp $ +# $Id: autogen.sh,v 1.11 2000/10/14 04:09:04 gram Exp $ DIE=true PROJECT="Ethereal" + +# Check for python. There's no "--version" option! +python -c "print 'Checking for python.'" +if [ $? != 0 ] ; then + cat >&2 <<_EOF_ + + You must have Python in order to compiler $PROJECT. + Download the appropriate package for your distribution/OS, + or get the source tarball at http://www.python.org/ +_EOF_ + DIE="exit 1" +fi + + VER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'` case "$VER" in 0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \ |