Here is a tentative patch to enable ONE driver in libvirt :
- configure.ac: add snippet stolen from Gentoo [1] (a bit rough)
- d/control: Build-Depends on libxmlrpc-core-c3-dev and libcurl4-gnutls-dev
- d/rules: Simply add --with-one flag
- configure script was regenerated with autoconf, you can skip that

[1] http://bugs.gentoo.org/show_bug.cgi?id=293416

Cheers,
-- 
Damien - Debian Developper
http://wiki.debian.org/DamienRaudeMorvan
diff --git a/configure b/configure
index fb40f0c..53cc065 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.66 for libvirt 0.8.8.
+# Generated by GNU Autoconf 2.67 for libvirt 0.8.8.
 #
 # Report bugs to <[email protected]>.
 #
@@ -1835,8 +1835,9 @@ do
   fi
 
   case $ac_option in
-  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-  *)	ac_optarg=yes ;;
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+  *=)   ac_optarg= ;;
+  *)    ac_optarg=yes ;;
   esac
 
   # Accept the important Cygnus configure options, so we can diagnose typos.
@@ -2629,7 +2630,7 @@ test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
 libvirt configure 0.8.8
-generated by GNU Autoconf 2.66
+generated by GNU Autoconf 2.67
 
 Copyright (C) 2010 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
@@ -2701,7 +2702,7 @@ $as_echo "$ac_try_echo"; } >&5
     mv -f conftest.er1 conftest.err
   fi
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } >/dev/null && {
+  test $ac_status = 0; } > conftest.i && {
 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 	 test ! -s conftest.err
        }; then :
@@ -2764,7 +2765,7 @@ if ac_fn_c_try_cpp "$LINENO"; then :
 else
   ac_header_preproc=no
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 $as_echo "$ac_header_preproc" >&6; }
 
@@ -3333,7 +3334,7 @@ This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 It was created by libvirt $as_me 0.8.8, which was
-generated by GNU Autoconf 2.66.  Invocation command line was
+generated by GNU Autoconf 2.67.  Invocation command line was
 
   $ $0 $@
 
@@ -3591,7 +3592,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
   fi
 done
 
@@ -3888,11 +3889,11 @@ am_lf='
 '
 case `pwd` in
   *[\\\"\#\$\&\'\`$am_lf]*)
-    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
 esac
 case $srcdir in
   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
-    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
+    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
 esac
 
 # Do `set' in a subshell so we don't clobber the current shell's
@@ -4322,7 +4323,7 @@ fi
 $as_echo "$ac_cv_build" >&6; }
 case $ac_cv_build in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 esac
 build=$ac_cv_build
 ac_save_IFS=$IFS; IFS='-'
@@ -4355,7 +4356,7 @@ fi
 $as_echo "$ac_cv_host" >&6; }
 case $ac_cv_host in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 esac
 host=$ac_cv_host
 ac_save_IFS=$IFS; IFS='-'
@@ -4735,7 +4736,7 @@ fi
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -4850,7 +4851,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
@@ -4893,7 +4894,7 @@ else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest conftest$ac_cv_exeext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -4952,7 +4953,7 @@ $as_echo "$ac_try_echo"; } >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot run C compiled programs.
 If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
     fi
   fi
 fi
@@ -5004,7 +5005,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 fi
@@ -5456,7 +5457,7 @@ else
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -5472,11 +5473,11 @@ else
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
   break
 fi
@@ -5515,7 +5516,7 @@ else
   # Broken: fails on valid input.
 continue
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
   # OK, works on sane cases.  Now check whether nonexistent headers
   # can be detected and how.
@@ -5531,18 +5532,18 @@ else
 ac_preproc_ok=:
 break
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.err conftest.i conftest.$ac_ext
 
 done
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
+rm -f conftest.i conftest.err conftest.$ac_ext
 if $ac_preproc_ok; then :
 
 else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 ac_ext=c
@@ -5852,7 +5853,7 @@ fi
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -9020,7 +9021,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
      ;; #(
    *)
      as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
  esac
 
 
@@ -25531,7 +25532,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
      ;; #(
    *)
      as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
  esac
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
@@ -25755,7 +25756,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
      ;; #(
    *)
      as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
  esac
 
 
@@ -35411,7 +35412,7 @@ $as_echo "$lv_cv_xdr_cflags" >&6; }
     CFLAGS=$old_CFLAGS
     case $lv_cv_xdr_cflags in
       none) XDR_CFLAGS= ;;
-      missing) as_fn_error $? "Unable to find <rpc/rpc.h>" "$LINENO" 5 ;;
+      missing) as_fn_error $? "Unable to find <rpc/rpc.h>" "$LINENO" 5  ;;
       *) XDR_CFLAGS=$lv_cv_xdr_cflags ;;
     esac
 
@@ -35492,7 +35493,7 @@ fi
 
     case $ac_cv_search_dlopen:$host_os in
       'none required'* | *:mingw* | *:msvc*) DLOPEN_LIBS= ;;
-      no*) as_fn_error $? "Unable to find dlopen()" "$LINENO" 5 ;;
+      no*) as_fn_error $? "Unable to find dlopen()" "$LINENO" 5  ;;
       *) DLOPEN_LIBS=$ac_cv_search_dlopen ;;
     esac
 
@@ -36128,6 +36129,7 @@ fi
 if test "$with_libvirtd" = "no" ; then
   with_one=no
 fi
+XMLRPC_CONFIG="xmlrpc-c-config client"
 XMLRPC_CFLAGS=
 XMLRPC_LIBS=
 if test "x$with_one" = "xyes" || test "x$with_one" = "xcheck"; then
@@ -36189,21 +36191,37 @@ fi
 	echo "$XMLRPC_PKG_ERRORS" >&5
 
 
+     XMLRPC_VERSION="`$XMLRPC_CONFIG --version`"
+     if test "x$XMLRPC_VERSION" = "x" || test "$XMLRPC_VERSION" '<' "$XMLRPC_REQUIRED" ; then
       if test "x$with_one" = "xcheck" ; then
           with_one=no
       else
           as_fn_error $? "You must install XMLRPC-C >= $XMLRPC_REQUIRED to compile libvirt ONE driver" "$LINENO" 5
       fi
+     else
+      with_one=yes
+      HAVE_XMLRPC=1
+      XMLRPC_CFLAGS="`$XMLRPC_CONFIG --cflags`"
+      XMLRPC_LIBS="`$XMLRPC_CONFIG --libs`"
+     fi
 
 elif test $pkg_failed = untried; then
      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
 
+     XMLRPC_VERSION="`$XMLRPC_CONFIG --version`"
+     if test "x$XMLRPC_VERSION" = "x" || test "$XMLRPC_VERSION" '<' "$XMLRPC_REQUIRED" ; then
       if test "x$with_one" = "xcheck" ; then
           with_one=no
       else
           as_fn_error $? "You must install XMLRPC-C >= $XMLRPC_REQUIRED to compile libvirt ONE driver" "$LINENO" 5
       fi
+     else
+      with_one=yes
+      HAVE_XMLRPC=1
+      XMLRPC_CFLAGS="`$XMLRPC_CONFIG --cflags`"
+      XMLRPC_LIBS="`$XMLRPC_CONFIG --libs`"
+     fi
 
 else
 	XMLRPC_CFLAGS=$pkg_cv_XMLRPC_CFLAGS
@@ -39102,8 +39120,8 @@ fi
 
 
   if test "$with_storage_fs" = "yes" ; then
-    if test -z "$MOUNT" ; then as_fn_error $? "We need mount for FS storage driver" "$LINENO" 5 ; fi
-    if test -z "$UMOUNT" ; then as_fn_error $? "We need umount for FS storage driver" "$LINENO" 5 ; fi
+    if test -z "$MOUNT" ; then as_fn_error $? "We need mount for FS storage driver" "$LINENO" 5  ; fi
+    if test -z "$UMOUNT" ; then as_fn_error $? "We need umount for FS storage driver" "$LINENO" 5  ; fi
   else
     if test -z "$MOUNT" ; then with_storage_fs=no ; fi
     if test -z "$UMOUNT" ; then with_storage_fs=no ; fi
@@ -39640,17 +39658,17 @@ fi
 
 
   if test "$with_storage_lvm" = "yes" ; then
-    if test -z "$PVCREATE" ; then as_fn_error $? "We need pvcreate for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$VGCREATE" ; then as_fn_error $? "We need vgcreate for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$LVCREATE" ; then as_fn_error $? "We need lvcreate for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$PVREMOVE" ; then as_fn_error $? "We need pvremove for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$VGREMOVE" ; then as_fn_error $? "We need vgremove for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$LVREMOVE" ; then as_fn_error $? "We need lvremove for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$VGCHANGE" ; then as_fn_error $? "We need vgchange for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$VGSCAN" ; then as_fn_error $? "We need vgscan for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$PVS" ; then as_fn_error $? "We need pvs for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$VGS" ; then as_fn_error $? "We need vgs for LVM storage driver" "$LINENO" 5 ; fi
-    if test -z "$LVS" ; then as_fn_error $? "We need lvs for LVM storage driver" "$LINENO" 5 ; fi
+    if test -z "$PVCREATE" ; then as_fn_error $? "We need pvcreate for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$VGCREATE" ; then as_fn_error $? "We need vgcreate for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$LVCREATE" ; then as_fn_error $? "We need lvcreate for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$PVREMOVE" ; then as_fn_error $? "We need pvremove for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$VGREMOVE" ; then as_fn_error $? "We need vgremove for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$LVREMOVE" ; then as_fn_error $? "We need lvremove for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$VGCHANGE" ; then as_fn_error $? "We need vgchange for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$VGSCAN" ; then as_fn_error $? "We need vgscan for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$PVS" ; then as_fn_error $? "We need pvs for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$VGS" ; then as_fn_error $? "We need vgs for LVM storage driver" "$LINENO" 5  ; fi
+    if test -z "$LVS" ; then as_fn_error $? "We need lvs for LVM storage driver" "$LINENO" 5  ; fi
   else
     if test -z "$PVCREATE" ; then with_storage_lvm=no ; fi
     if test -z "$VGCREATE" ; then with_storage_lvm=no ; fi
@@ -39784,7 +39802,7 @@ fi
 
 
   if test "$with_storage_iscsi" = "yes" ; then
-    if test -z "$ISCSIADM" ; then as_fn_error $? "We need iscsiadm for iSCSI storage driver" "$LINENO" 5 ; fi
+    if test -z "$ISCSIADM" ; then as_fn_error $? "We need iscsiadm for iSCSI storage driver" "$LINENO" 5  ; fi
   else
     if test -z "$ISCSIADM" ; then with_storage_iscsi=no ; fi
 
@@ -40747,7 +40765,7 @@ fi
 if test "${enable_test_coverage+set}" = set; then :
   enableval=$enable_test_coverage; case "${enableval}" in
    yes|no) ;;
-   *)      as_fn_error $? "bad value ${enableval} for test-coverage option" "$LINENO" 5 ;;
+   *)      as_fn_error $? "bad value ${enableval} for test-coverage option" "$LINENO" 5  ;;
  esac
 else
   enableval=no
@@ -40848,7 +40866,7 @@ fi
 if test "${enable_test_oom+set}" = set; then :
   enableval=$enable_test_oom; case "${enableval}" in
    yes|no) ;;
-   *)      as_fn_error $? "bad value ${enableval} for test-oom option" "$LINENO" 5 ;;
+   *)      as_fn_error $? "bad value ${enableval} for test-oom option" "$LINENO" 5  ;;
  esac
 else
   enableval=no
@@ -40888,7 +40906,7 @@ fi
 if test "${enable_test_locking+set}" = set; then :
   enableval=$enable_test_locking; case "${enableval}" in
    yes|no) ;;
-   *)      as_fn_error $? "bad value ${enableval} for test-locking option" "$LINENO" 5 ;;
+   *)      as_fn_error $? "bad value ${enableval} for test-locking option" "$LINENO" 5  ;;
  esac
 else
   enableval=no
@@ -44067,7 +44085,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # values after options handling.
 ac_log="
 This file was extended by libvirt $as_me 0.8.8, which was
-generated by GNU Autoconf 2.66.  Invocation command line was
+generated by GNU Autoconf 2.67.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS
@@ -44138,7 +44156,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
 libvirt config.status 0.8.8
-configured by $0, generated by GNU Autoconf 2.66,
+configured by $0, generated by GNU Autoconf 2.67,
   with options \\"\$ac_cs_config\\"
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -44159,11 +44177,16 @@ ac_need_defaults=:
 while test $# != 0
 do
   case $1 in
-  --*=*)
+  --*=?*)
     ac_option=`expr "X$1" : 'X\([^=]*\)='`
     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     ac_shift=:
     ;;
+  --*=)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=
+    ac_shift=:
+    ;;
   *)
     ac_option=$1
     ac_optarg=$2
@@ -44185,6 +44208,7 @@ do
     $ac_shift
     case $ac_optarg in
     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    '') as_fn_error $? "missing file argument" ;;
     esac
     as_fn_append CONFIG_FILES " '$ac_optarg'"
     ac_need_defaults=false;;
@@ -44565,7 +44589,7 @@ do
     "examples/systemtap/Makefile") CONFIG_FILES="$CONFIG_FILES examples/systemtap/Makefile" ;;
     "examples/xml/nwfilter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/xml/nwfilter/Makefile" ;;
 
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
   esac
 done
 
@@ -44882,7 +44906,7 @@ do
   esac
   case $ac_mode$ac_tag in
   :[FHL]*:*);;
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
   :[FH]-) ac_tag=-:-;;
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   esac
@@ -44910,7 +44934,7 @@ do
 	   [\\/$]*) false;;
 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 	   esac ||
-	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
       esac
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
       as_fn_append ac_file_inputs " '$ac_f'"
@@ -44937,7 +44961,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
 
     case $ac_tag in
     *:-:* | *:-) cat >"$tmp/stdin" \
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
     esac
     ;;
   esac
diff --git a/configure.ac b/configure.ac
index 22884e2..c5f5d03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -684,17 +684,26 @@ dnl
 if test "$with_libvirtd" = "no" ; then
   with_one=no
 fi
+XMLRPC_CONFIG="xmlrpc-c-config client"
 XMLRPC_CFLAGS=
 XMLRPC_LIBS=
 if test "x$with_one" = "xyes" || test "x$with_one" = "xcheck"; then
     PKG_CHECK_MODULES(XMLRPC, xmlrpc_client >= $XMLRPC_REQUIRED,
       [with_one=yes], [
+     XMLRPC_VERSION="`$XMLRPC_CONFIG --version`"
+     if test "x$XMLRPC_VERSION" = "x" || test "$XMLRPC_VERSION" '<' "$XMLRPC_REQUIRED" ; then
       if test "x$with_one" = "xcheck" ; then
           with_one=no
       else
           AC_MSG_ERROR(
             [You must install XMLRPC-C >= $XMLRPC_REQUIRED to compile libvirt ONE driver])
       fi
+     else
+      with_one=yes
+      HAVE_XMLRPC=1
+      XMLRPC_CFLAGS="`$XMLRPC_CONFIG --cflags`"
+      XMLRPC_LIBS="`$XMLRPC_CONFIG --libs`"
+     fi
     ])
     if test "x$with_one" = "xyes" ; then
         AC_DEFINE_UNQUOTED([HAVE_XMLRPC], 1,
diff --git a/debian/changelog b/debian/changelog
index 6b0664a..574f4ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libvirt (0.8.8-2~pre0) UNRELEASED; urgency=low
+
+  * Enable ONE driver
+  * Build-Depends on libxmlrpc-core-c3-dev
+  * Build-Depends on libcurl4-gnutls-dev
+
+ -- Damien Raude-Morvan <[email protected]>  Mon, 21 Feb 2011 20:29:32 +0100
+
 libvirt (0.8.8-1) unstable; urgency=low
 
   [ Guido Günther ]
diff --git a/debian/control b/debian/control
index d517e7f..30d0e0e 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,8 @@ Build-Depends: cdbs (>= 0.4.43), debhelper (>= 7), libxml2-dev, libncurses5-dev,
  dpkg-dev (<< 1.15.3) | dpkg-dev (>> 1.15.3),
  libcap-ng-dev,
  virtualbox-ose [amd64 i386],
- libnl-dev
+ libnl-dev,
+ libxmlrpc-core-c3-dev, libcurl4-gnutls-dev
 XS-Python-Version: current
 Build-Conflicts: dpkg-dev (= 1.15.3)
 Vcs-Git: git://git.debian.org/git/pkg-libvirt/libvirt.git
diff --git a/debian/rules b/debian/rules
index 98c2528..d567591 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,7 +46,8 @@ DEB_CONFIGURE_EXTRA_FLAGS :=     \
 	--enable-debug		 \
 	$(BUILD_XEN)		 \
 	$(BUILD_VBOX)		 \
-	$(BUILD_LXC)
+	$(BUILD_LXC)		 \
+	--with-one
 
 DEB_COMPRESS_EXCLUDE = .o event-test hellolibvirt info1 suspend
 DEB_PYTHON_SETUP_CMD = /dev/null

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to