]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Fix problem of building Python bindings
authorOsier Yang <jyang@redhat.com>
Wed, 27 Apr 2011 13:07:14 +0000 (21:07 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 27 Apr 2011 13:07:14 +0000 (21:07 +0800)
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.

configure.ac

index 190bf408922ee79e806d25b9080401ee79c1d1dd..758c89322f8a002497ab567d5b16970ab189587f 100644 (file)
@@ -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])