summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2019-07-08 17:59:16 +0530
committerhari gowtham <hari.gowtham005@gmail.com>2019-07-18 06:20:48 +0000
commitff5b36443f0e3d5b7228b3e25d9fc6b154b22cbf (patch)
treedd347f6c4b4f5e578d65abcc2d7152db30d548ac /configure.ac
parent42898de6ae07e35ed0c2934b7f7dbedc95b9d650 (diff)
Configure changes to build with python2
Issue: On a centos7 machine with python3, glupy doesnt get built. Throws the following: configure: WARNING: --------------------------------------------------------------------------------- cannot build glupy. python 3.6 and python-devel/python-dev package are required. --------------------------------------------------------------------------------- Cause: glupy needs python3 with python3-devel or python2 should be used. Fix: We are making the configure prioritize python2 over python3. Change-Id: I6d4ebc6d181c48cb1ccfd19a9a1793fe2cae3f27 fixes: bz#1728988 Signed-off-by: hari gowtham <hgowtham@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index bc4cf9342b4..70e395cd7be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -620,17 +620,17 @@ dnl if the user has not specified a python, pick one
if test -z "${PYTHON}"; then
case $host_os in
freebsd*)
- if test -x /usr/local/bin/python3; then
- PYTHON=/usr/local/bin/python3
- else
+ if test -x /usr/local/bin/python2; then
PYTHON=/usr/local/bin/python2
+ else
+ PYTHON=/usr/local/bin/python3
fi
;;
*)
- if test -x /usr/bin/python3; then
- PYTHON=/usr/bin/python3
- else
+ if test -x /usr/bin/python2; then
PYTHON=/usr/bin/python2
+ else
+ PYTHON=/usr/bin/python3
fi
;;
esac