mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Let users select their pythons
Add configure check for python, exit if not found. Add switches for specifying the path to python, use the path in Makefile. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0caf448b80
commit
c886edfb85
2 changed files with 19 additions and 6 deletions
13
configure
vendored
13
configure
vendored
|
@ -475,6 +475,7 @@ fi
|
|||
|
||||
: ${make=${MAKE-make}}
|
||||
: ${install=${INSTALL-install}}
|
||||
: ${python=${PYTHON-python}}
|
||||
|
||||
if test "$mingw32" = "yes" ; then
|
||||
EXESUF=".exe"
|
||||
|
@ -516,6 +517,8 @@ for opt do
|
|||
;;
|
||||
--install=*) install="$optarg"
|
||||
;;
|
||||
--python=*) python="$optarg"
|
||||
;;
|
||||
--extra-cflags=*)
|
||||
;;
|
||||
--extra-ldflags=*)
|
||||
|
@ -924,6 +927,7 @@ echo " --extra-cflags=CFLAGS append extra C compiler flags QEMU_CFLAGS"
|
|||
echo " --extra-ldflags=LDFLAGS append extra linker flags LDFLAGS"
|
||||
echo " --make=MAKE use specified make [$make]"
|
||||
echo " --install=INSTALL use specified install [$install]"
|
||||
echo " --python=PYTHON use specified python [$python]"
|
||||
echo " --static enable static build [$static]"
|
||||
echo " --mandir=PATH install man pages in PATH"
|
||||
echo " --datadir=PATH install firmware in PATH"
|
||||
|
@ -1084,6 +1088,13 @@ if test "$solaris" = "yes" ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if has $python; then
|
||||
:
|
||||
else
|
||||
echo "Python not found. Use --python=/path/to/python"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$target_list" ; then
|
||||
target_list="$default_target_list"
|
||||
else
|
||||
|
@ -2591,6 +2602,7 @@ echo "QEMU_CFLAGS $QEMU_CFLAGS"
|
|||
echo "LDFLAGS $LDFLAGS"
|
||||
echo "make $make"
|
||||
echo "install $install"
|
||||
echo "python $python"
|
||||
echo "host CPU $cpu"
|
||||
echo "host big endian $bigendian"
|
||||
echo "target list $target_list"
|
||||
|
@ -3003,6 +3015,7 @@ echo "INSTALL=$install" >> $config_host_mak
|
|||
echo "INSTALL_DIR=$install -d -m0755 -p" >> $config_host_mak
|
||||
echo "INSTALL_DATA=$install -m0644 -p" >> $config_host_mak
|
||||
echo "INSTALL_PROG=$install -m0755 -p" >> $config_host_mak
|
||||
echo "PYTHON=$python" >> $config_host_mak
|
||||
echo "CC=$cc" >> $config_host_mak
|
||||
echo "CC_I386=$cc_i386" >> $config_host_mak
|
||||
echo "HOST_CC=$host_cc" >> $config_host_mak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue