[virt-tools-list] [PATCH virt-viewer] configure: Fix check for govirt functions

Victor Toso victortoso at redhat.com
Fri May 31 15:36:24 UTC 2019


Hi,

On Fri, May 31, 2019 at 12:29:16PM -0300, Eduardo Lima (Etrunko) wrote:
> Use saved CFLAGS and LIBS to avoid errors in the check programs.
> 
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
>  configure.ac | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 7b61821..c787e1e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -196,8 +196,8 @@ AS_IF([test "x$with_ovirt" = "xyes"],
>        [AC_DEFINE([HAVE_OVIRT], 1, [Have libgovirt?])]
>        [SAVED_CFLAGS="$CFLAGS"
>         SAVED_LIBS="$LIBS"
> -       CFLAGS="$OVIRT_CFLAGS"
> -       LIBS="$OVIRT_LIBS"
> +       CFLAGS="$SAVED_CFLAGS $OVIRT_CFLAGS"
> +       LIBS="$SAVED_LIBS $OVIRT_LIBS"

Acked-by: Victor Toso <victortoso at redhat.com>

>         AC_CHECK_FUNCS([ovirt_api_search_vms ovirt_vm_get_host ovirt_host_get_cluster ovirt_cluster_get_data_center],
>                        [AC_DEFINE([HAVE_OVIRT_DATA_CENTER], 1, [Have support for data center])],
>                        []
> -- 
> 2.21.0
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20190531/ee29ce39/attachment.sig>


More information about the virt-tools-list mailing list