Skip to contentSkip to conversation

[5178] Fix libvdeplug link test.

Qemu-devel Paul Brook 1 participant 1 message Sep 7, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 5178

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5178
Author:   pbrook
Date:     2008-09-07 16:42:53 +0000 (Sun, 07 Sep 2008)

Log Message:
-----------
Fix libvdeplug link test.

Modified Paths:
--------------
trunk/configure

Modified: trunk/configure
===================================================================

configure +7 -2
@@ -770,9 +770,14 @@
 if test "$vde" = "yes" ; then
   cat > $TMPC << EOF
 #include <libvdeplug.h>
-int main(void) { struct vde_open_args a = {0, 0, 0} ; return 0;}
+int main(void)
+{
+    struct vde_open_args a = {0, 0, 0};
+    vde_open("", "", &a);
+    return 0;
+}
 EOF
-    if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+    if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lvdeplug 2> /dev/null ; then
         :
     else
         vde="no"