From 8ae95f1284f3c00c41832ef4d76196481543f59e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 13 Apr 2016 12:31:45 -0400
Subject: [PATCH] build: always define HAVE_PIP macro

---
 configure.ac | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index c352b97f..c9be035e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,15 +28,12 @@ AS_IF([test "x$enable_python" != "xno"], [
        AS_IF([test -n "$PYTHON"],[
               AC_CHECK_PROGS([CYTHON], [cython])
               AS_IF([test -z "$CYTHON"],[AC_MSG_WARN([Cython not found - continuing without python support])])
+              AC_CHECK_PROGS([PIP], [pip3])
+              AS_IF([test -z "$PIP"],[AC_MSG_WARN([pip not found - continuing without python uninstall support])])
               ])
        ])
 AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"])
-dnl Check for pip support (uninstall)
-AS_IF([test -n "$PYTHON"],[
-       AC_CHECK_PROGS([PIP], [pip3])
-       AS_IF([test -z "$PIP"],[AC_MSG_WARN([pip not found - continuing without python uninstall support])])
-       AM_CONDITIONAL([HAVE_PIP], [test -n "$PIP"])
-       ])
+AM_CONDITIONAL([HAVE_PIP], [test -n "$PIP"])
 
 case "${host_os}" in
   "")
-- 
GitLab