Re: [PATCH] fix compilation if readline lib is not available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Veillard <veillard@xxxxxxxxxx> 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/?
Otherwise, we may end up with too many FEATURE_CPPFLAGS
variables, rather than a more manageable number of PROGRAM_CPPFLAGS.

As soon as you've committed that, I'll adjust my patch
(which overlaps) and post the other fix.

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]