diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-11-15 00:02:41 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-11-15 00:02:41 +0000 |
commit | 508b655a6eb079e1d10cd40a326f38268fb2955b (patch) | |
tree | 9a0c1b9aeb0f75e6fa763a6c3c9bce775db3091a /configure.ac | |
parent | b7cd5b7c3205435f18caa07f41238f32fa8fb10e (diff) |
configure now confirms that django south 0.7.6 or later is installed if the ca tools are going to be built
closes #348
svn path=/trunk/; revision=4869
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5b49b570..dda48308 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,8 @@ have_lxml=no have_mysqldb=no have_pyyaml=no have_vobject=no +have_django_south=no +have_acceptable_django_south=no if test "x$PYTHON" != "x" then @@ -292,6 +294,20 @@ then have_vobject=yes fi AC_MSG_RESULT([$have_vobject]) + + AC_MSG_CHECKING([for Django South]) + if $PYTHON -c 'import south' 2>/dev/null + then + have_django_south=yes + fi + AC_MSG_RESULT([$have_django_south]) + + if test $have_django_south = yes + then + AC_MSG_CHECKING([for Django South 0.7.6 or later]) + have_acceptable_django_south=`$PYTHON -c "import south; print 'no' if south.__version__ < '0.7.6' else 'yes'"` + AC_MSG_RESULT([$have_acceptable_django_south]) + fi fi ok=yes @@ -335,6 +351,11 @@ case $enable_ca_tools in then AC_MSG_WARN([If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script.]) fi + if test $have_acceptable_django_south = no + then + ok=no + AC_MSG_WARN([The RPKI CA tools require Django South 0.7.6 or higher.]) + fi ;; no) build_ca_tools=no ;; |