aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure15
-rw-r--r--configure.ac2
2 files changed, 10 insertions, 7 deletions
diff --git a/configure b/configure
index 3d652a55..c762a381 100755
--- a/configure
+++ b/configure
@@ -4369,7 +4369,7 @@ $as_echo "$have_django_south" >&6; }
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Django South 0.7.6 or later" >&5
$as_echo_n "checking for Django South 0.7.6 or later... " >&6; }
- have_acceptable_django_south=`$PYTHON -c "import south; print 'no' if south.__version__ < '0.7.6' else 'yes'"`
+ have_acceptable_django_south=`$PYTHON -c "import south; print 'no' if map(int,south.__version__.split('.')) < [0, 7, 6] else 'yes'"`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_acceptable_django_south" >&5
$as_echo "$have_acceptable_django_south" >&6; }
fi
@@ -4418,17 +4418,20 @@ $as_echo "$as_me: WARNING: The RPKI CA tools require Django 1.2 or higher." >&2;
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI CA GUI requires the Python vobject module" >&5
$as_echo "$as_me: WARNING: The RPKI CA GUI requires the Python vobject module" >&2;}
fi
- if test $ok = no
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&5
-$as_echo "$as_me: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&2;}
- fi
if test $have_acceptable_django_south = no
then
ok=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The RPKI CA tools require Django South 0.7.6 or higher." >&5
$as_echo "$as_me: WARNING: The RPKI CA tools require Django South 0.7.6 or higher." >&2;}
fi
+ #
+ # This should be the last test in this group, so that failures get the --disable-ca-tools warning.
+ #
+ if test $ok = no
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&5
+$as_echo "$as_me: WARNING: If you do not wish to install the RPKI CA tools, please specify --disable-ca-tools as an argument to this configure script." >&2;}
+ fi
;;
no) build_ca_tools=no
;;
diff --git a/configure.ac b/configure.ac
index ab35a2b5..cf23a4a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -305,7 +305,7 @@ then
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'"`
+ have_acceptable_django_south=`$PYTHON -c "import south; print 'no' if map(int,south.__version__.split('.')) < [[0, 7, 6]] else 'yes'"`
AC_MSG_RESULT([$have_acceptable_django_south])
fi
fi