From 5fd0748c6ee3fce65d7e05474ec29d0f0a6c146c Mon Sep 17 00:00:00 2001 From: TimBao Date: Mon, 10 Nov 2014 16:17:09 +0800 Subject: [PATCH] fix python version judge method is incorrect. --- src/auto/configure | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/auto/configure b/src/auto/configure index bda88c63bc..7667461876 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -5926,8 +5926,8 @@ __: eof eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" rm -f -- "${tmp_mkf}" - if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ - "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then + if test "x$MACOSX" = "xyes" && (${vi_cv_path_python} -c \ + "import sys; sys.exit(${vi_cv_var_python_version})" < 2.3); then vi_cv_path_python_plibs="-framework Python" else if test "${vi_cv_var_python_version}" = "1.4"; then @@ -14680,5 +14680,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi - -