]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
fix syntax error in configure.ac
authorWen Congyang <wency@cn.fujitsu.com>
Thu, 23 Dec 2010 09:32:33 +0000 (17:32 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 23 Dec 2010 16:29:41 +0000 (09:29 -0700)
When I run configure, I receive some syntax error.

.....
checking where to find <rpc/rpc.h>... none
checking for library containing dlopen... -ldl
/configure: line 52500: test: =: unary operator expected
/configure: line 52766: test: =: unary operator expected
checking linux/kvm.h usability... yes
checking linux/kvm.h presence... yes
.....

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
configure.ac

index 51da1b0ede811a3d8bcffb0ec6381549c2535b40..80ee331352f8360e0f2a889ad4ac204fe83045c9 100644 (file)
@@ -430,12 +430,12 @@ old_CFLAGS="$CFLAGS"
 LIBXENSERVER_LIBS=""
 LIBXENSERVER_CFLAGS=""
 dnl search for the XenServer library
+fail=0
 if test "$with_xenapi" != "no" ; then
     if test "$with_xenapi" != "yes" && test "$with_xenapi" != "check" ; then
         LIBXENSERVER_CFLAGS="-I$with_xenapi/include"
         LIBXENSERVER_LIBS="-L$with_xenapi"
     fi
-    fail=0
     CFLAGS="$CFLAGS $LIBXENSERVER_CFLAGS"
     LIBS="$LIBS $LIBXENSERVER_LIBS"
     AC_CHECK_LIB([xenserver], [xen_vm_start], [