thanks, that's what i was asking for. :-)<br><br><div class="gmail_quote">On Wed, Sep 12, 2012 at 5:01 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Sep 12, 2012 at 04:39:48PM +0800, Richard Huang wrote:<br>
> Hi Richard,<br>
><br>
> I want to compile guestfsd only for some guests, including centos, debian,<br>
> variable versions. But I didn't find scripts for it. Can you guide me how<br>
> to do this?<br>
<br>
</div></div>I'm unclear exactly what the question is.  You can compile guestfsd<br>
(just the daemon) this way:<br>
<br>
  ./configure \<br>
    --enable-daemon \<br>
    --disable-appliance \<br>
    --disable-fuse \<br>
    --disable-perl \<br>
    --disable-python \<br>
    --disable-ruby \<br>
    --disable-haskell \<br>
    --disable-php \<br>
    --disable-erlang \<br>
    --disable-gobject<br>
  make<br>
<br>
  $ ls -l daemon/guestfsd<br>
  -rwxrwxr-x. 1 rjones rjones 2073914 Sep 12 09:57 daemon/guestfsd<br>
<br>
You still have to run that command on each distro/version that you<br>
want to build a daemon for, assuming that's what you're trying to do.<br>
<br>
Try:<br>
<br>
  ./configure --help | grep -E -- '--(dis|en)able'<br>
<br>
to get a list of things that can be enabled or disabled.  There is no<br>
way currently to disable building the library, tools and language<br>
bindings as a whole, although arguably we should add that.<br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" target="_blank">http://libguestfs.org</a><br>
</font></span></blockquote></div><br>