]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
Fix build when default python is python3
authorLénaïc Huard <lenaic@lhuard.fr.eu.org>
Tue, 17 Dec 2013 17:53:28 +0000 (18:53 +0100)
committerEric Blake <eblake@redhat.com>
Tue, 17 Dec 2013 18:13:13 +0000 (11:13 -0700)
As the python generator scripts are written in python2,
the ./configure script must check for python2 before checking for python
otherwise, on platforms where both python2 and python3 are available and
on which the default python points to python3, ./configure will try to use
the wrong one.

Signed-off-by: Lénaïc Huard <lenaic@lhuard.fr.eu.org>
configure.ac

index 10ce184cf41a60ff5c543b6a6e19be8d9bcb86bf..54466343a43d78167faa454ee3ac093b56e56d70 100644 (file)
@@ -2032,7 +2032,7 @@ AM_CONDITIONAL([WITH_HYPERV], [test "$with_hyperv" = "yes"])
 
 
 dnl Allow perl/python overrides
-AC_PATH_PROG([PYTHON], [python])
+AC_PATH_PROGS([PYTHON], [python2 python])
 AC_PATH_PROG([PERL], [perl])
 
 AC_ARG_ENABLE([with-test-suite],