diff mbox

[ovs-dev] configure: Fix checking of six library for Python 3.

Message ID 1456326297-29442-1-git-send-email-i.maximets@samsung.com
State Accepted
Headers show

Commit Message

Ilya Maximets Feb. 24, 2016, 3:04 p.m. UTC
Copied from python 2 checker but not corrected.

Fixes: 8fb7d02686ed ("configure: Check for presence of Python 3.")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
---
 m4/openvswitch.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Russell Bryant Feb. 24, 2016, 3:19 p.m. UTC | #1
On Wed, Feb 24, 2016 at 10:04 AM, Ilya Maximets <i.maximets@samsung.com>
wrote:

> Copied from python 2 checker but not corrected.
>
> Fixes: 8fb7d02686ed ("configure: Check for presence of Python 3.")
> Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
>
>
Good catch.  Thanks for the fix!  I pushed this to master.
diff mbox

Patch

diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index fa85d3f..b899250 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -382,9 +382,9 @@  else:
             fi
           done
         done
-        if test $ovs_cv_python != no; then
-          if test -x "$ovs_cv_python" && ! "$ovs_cv_python" -c 'import six' >/dev/null 2>&1; then
-            ovs_cv_python=no
+        if test $ovs_cv_python3 != no; then
+          if test -x "$ovs_cv_python3" && ! "$ovs_cv_python3" -c 'import six' >/dev/null 2>&1; then
+            ovs_cv_python3=no
             AC_MSG_WARN([Missing Python six library.])
           fi
         fi