- Check for Python distutils module presence

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@339 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-17 16:31:36 +00:00
parent 3ba6b90f30
commit 8cb6b81c38
3 changed files with 151 additions and 10 deletions

View file

@ -92,7 +92,21 @@ variable to configure. See ``configure --help'' for reference.
])dnl
fi
fi
#
# Check if you have distutils, else fail
#
AC_MSG_CHECKING([for the distutils Python package])
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
if test -z "$ac_distutils_result"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([cannot import Python module "distutils".
Please check your Python installation. The error was:
$ac_distutils_result])
fi
#
# Check for Python include path
#