diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 11:08:07 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-01-29 11:08:07 +0000 |
commit | 6b139c2063623e9310025247cd966490b9aa57ea (patch) | |
tree | 375acfd898ca3d721250aa17291bbb90a8d7250a /lib/mesa/m4/ax_check_python_mako_module.m4 | |
parent | cce99579dcfb1d54c54cff65573be3430e77f2c5 (diff) |
Import Mesa 18.3.2
Diffstat (limited to 'lib/mesa/m4/ax_check_python_mako_module.m4')
-rw-r--r-- | lib/mesa/m4/ax_check_python_mako_module.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mesa/m4/ax_check_python_mako_module.m4 b/lib/mesa/m4/ax_check_python_mako_module.m4 index 7d9bb511c..d6484e722 100644 --- a/lib/mesa/m4/ax_check_python_mako_module.m4 +++ b/lib/mesa/m4/ax_check_python_mako_module.m4 @@ -45,13 +45,14 @@ AC_DEFUN([AX_CHECK_PYTHON_MAKO_MODULE], try: import sys import mako + import distutils.version except ImportError as err: sys.exit(err) else: - ver_req = map(int, '$1'.split('.')) - ver_act = map(int, mako.__version__.split('.')) + ver_req = distutils.version.LooseVersion('$1') + ver_act = distutils.version.LooseVersion(mako.__version__) sys.exit(int(ver_req > ver_act)) - " | $PYTHON2 - + " | $PYTHON - if test $? -ne 0 ; then AC_MSG_RESULT(no) |