Re: [PATCH] build: silence warning from autoconf

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

 



On 05/29/2012 04:18 PM, Eric Blake wrote:
> Autoconf 2.60 and later insist on using ${datarootdir}, rather than
> the derived ${datadir} (although the latter defaults to the former,
> it is possible to set configure arguments so that they differ):
> 
> config.status: creating libvirt.pc
> config.status: WARNING:  'libvirt.pc.in' seems to ignore the --datarootdir setting
> 
> This patch follows the autoconf manual's suggestions for how to
> support 2.59 (RHEL 5) and newer simultaneously.
> 
> * libvirt.pc.in (datarootdir): Define, so ${datadir} will not ignore
> datarootdir when using newer autoconf.
> ---
> 
> https://www.gnu.org/software/autoconf/manual/autoconf.html#Changed-Directory-Variables
> 
>  libvirt.pc.in |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libvirt.pc.in b/libvirt.pc.in
> index 3d999a8..616575d 100644
> --- a/libvirt.pc.in
> +++ b/libvirt.pc.in
> @@ -2,6 +2,7 @@ prefix=@prefix@
>  exec_prefix=@exec_prefix@
>  libdir=@libdir@
>  includedir=@includedir@
> +datarootdir=@datarootdir@
> 
>  libvirt_api=@datadir@/libvirt/api/libvirt-api.xml
>  libvirt_qemu_api=@datadir@/libvirt/api/libvirt-qemu-api.xml

ACK,

Martin

--
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]