mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
build: Fix problem of building Python bindings
If one specify "--with-python=yes" but no python-devel package is installed, we ignore it with just a notice message, which doesn't give clear guide to user.
This commit is contained in:
parent
968fd0111a
commit
53cb23f426
@ -1917,15 +1917,13 @@ if test "$with_python" != "no" ; then
|
||||
then
|
||||
PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
||||
else
|
||||
AC_MSG_NOTICE([Could not find python$PYTHON_VERSION/Python.h, disabling bindings])
|
||||
with_python=no
|
||||
AC_MSG_ERROR([You must install python-devel to build Python bindings])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
else
|
||||
AC_MSG_NOTICE([Could not find python interpreter, disabling bindings])
|
||||
with_python=no
|
||||
AC_MSG_ERROR([You must install python to build Python bindings])
|
||||
fi
|
||||
else
|
||||
AC_MSG_NOTICE([Could not find python in $with_python, disabling bindings])
|
||||
|
Loading…
x
Reference in New Issue
Block a user