From 17ee994f5f1099c1e81c76feba8fb503deb1f6cb Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 3 Apr 2013 13:23:53 -0400 Subject: build: ensure that cython 0.16 or higher is installed when building python bindings Our Cython code only builds properly on Cython 0.16 or higher so verify that a proper version of Cython is installed if we are building the Python bindings. Signed-off-by: Paul Moore --- configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8866fda..50bdcca 100755 --- a/configure +++ b/configure @@ -201,11 +201,15 @@ while [[ $# -gt 0 ]]; do esac done -# validate the options +# +# validate the command line options +# + if [[ -e "$opt_prefix" && ! -d "$opt_prefix" ]]; then msg_error "install prefix ($opt_prefix) is not a directory" exit 1 fi + if [[ -z $opt_libdir ]]; then opt_libdir="$opt_prefix/lib" fi @@ -213,11 +217,18 @@ if [[ -e "$opt_libdir" && ! -d "$opt_libdir" ]]; then msg_error "libdir ($opt_libdir) is not a directory" exit 1 fi + if [[ "$opt_bindings_python" = "yes" ]]; then if ! test_deps cython; then msg_error "python bindings require the cython package" exit 1 fi + cython_ver=$(cython -V 2>&1 | cut -d' ' -f 3) + if [[ $(echo $cython_ver | cut -d'.' -f 1) -lt 1 && + $(echo $cython_ver | cut -d'.' -f 2) -lt 16 ]]; then + msg_error "python bindings require cython 0.16 or higher" + exit 1 + fi fi # -- cgit v1.2.1