[libvirt] [PATCH] libvirt-php: fix libvirt_connect and libvirt_version failure without Xen

2011-03-08 Thread Tiziano Mueller
This is a revised patch to also fix the call to libvirt_version without arguments and without Xen. Currently libvirt_connect fails if libvirt has no Xen support. This is because virGetVersion checks for Xen if typeVer!=NULL. The same applies for libvirt_version if called without arguments and no X

[libvirt] [PATCH] update virGetVersion description

2011-03-05 Thread Tiziano Mueller
The current description suggests that you always have to provide a valid typeVer pointer. But if you want only the libvirt version it's also possible to set type and typeVer to NULL to skip the hypervisor part. --- src/libvirt.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-)

[libvirt] [PATCH 1/3] Fix building with threaded php.

2011-03-04 Thread Tiziano Mueller
--- src/libvirt.c | 74 ++--- 1 files changed, 39 insertions(+), 35 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 1ba2662..ce39a28 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -195,7 +195,7 @@ PHP_MINFO_FUNCTION(libvirt)

[libvirt] [PATCH 3/3] fix libvirt_connect failure without Xen

2011-03-04 Thread Tiziano Mueller
Currently libvirt_connect fails if libvirt has no Xen support. This is because virGetVersion checks for Xen if typeVer!=NULL. --- src/libvirt.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index ce39a28..9a1b51a 100644 --- a/src/libvir

[libvirt] [PATCH 2/3] add --with-php-config flag

2011-03-04 Thread Tiziano Mueller
php extensions can usually be configured to use a specific php-config using --with-php-config to explicitly specify a path to php-config. Moved phpize-detection after php-config and use php-config's prefix path to look for phpize first. --- configure.ac| 18 ++ src/Makefile.a

[libvirt] libvirt-php: various fixes

2011-03-04 Thread Tiziano Mueller
While building a libvirt-php package for Gentoo Linux I had to workaround a couple of build issues. The first two patches are the results. The last patch is a fix for the case libvirt has been built without Xen support. In this case libvirt_connect (and phpinfo()) fails because virGetVersion is ca