[Libvir] [PATCH] fix compilation if readline lib is not available

Daniel Veillard veillard at redhat.com
Thu Dec 6 10:24:59 UTC 2007


On Thu, Dec 06, 2007 at 11:22:12AM +0100, Jim Meyering wrote:
> Jim Meyering <jim at meyering.net> wrote:
> 
> > Daniel Veillard <veillard at redhat.com> wrote:
> >>   The current CVS code doesn't compile on RHEL5/F6 because readline lib
> >> there require ncurses, and we removed that check earlier. Sor we find
> >> the readline headers but the lib is not found. Unfortunately virsh.c
> >> tests the availablility of the header to use readline, and link time failures
> >> follow. The patch below:
> >>    - exports a READLINE_CFLAGS from configure if used
> >>    - use the READLINE_CFLAGS when compiling virsh.c
> >>    - change virsh.c to rely on this instead of the header test
> >>    - adds a message about readline usage at the end of configure
> >>
> >>     configure: Miscellaneous
> >>     configure:
> >>     configure:   Debug: no
> >>     configure:   Readline: yes
> >>     configure:
> >>
> >> Another patch available soon should fix the readline library detection itself,
> > ...
> >> +USE_READLINE=
> >> +READLINE_CFLAGS=
> >
> > That looks fine, but would you please do
> > s/READLINE_CFLAGS/VIRSH_CPPFLAGS/?
> 
> Oops.
> Seeing the rest of your patch, you're probably right.
> Even using _CFLAGS is ok, for consistency with all of the other
> libvirt-specific _CFLAGS variable names.
> 
> so +1 for your unmodified patch.

  Okay commited now !

   thanks,

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list