]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix libvirt-driver-libxl check
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Sun, 5 Aug 2018 21:50:35 +0000 (23:50 +0200)
committerJim Fehlig <jfehlig@suse.com>
Thu, 9 Aug 2018 20:55:21 +0000 (14:55 -0600)
Fix saving CFLAGS in LIBVIRT_DRIVER_CHECK_LIBXL - LIBVIRT_CHECK_LIB will
override old_CFLAGS, so use a different name.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
m4/virt-driver-libxl.m4

index 2cc1c062d87ab6e87cac97d4afd3c2ebd89358d4..90338eb3067f8a68c83517740bd34d93daca7ef0 100644 (file)
@@ -46,10 +46,10 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBXL], [
     dnl The libxl driver will make use of this new parameter for specifying
     dnl the Xen migration stream version. Specify LIBXL_API_VERSION to trigger
     dnl an error if there is too old xenlight
-    old_CFLAGS="$CFLAGS"
+    libxlold_CFLAGS="$CFLAGS"
     CFLAGS="$CFLAGS $LIBXL_API_VERSION"
     LIBVIRT_CHECK_LIB([LIBXL], [xenlight], [libxl_ctx_alloc], [libxl.h], [fail="1"])
-    CFLAGS="$old_CFLAGS"
+    CFLAGS="$libxlold_CFLAGS"
 
     if test $fail = 1; then
       AC_MSG_ERROR([You must install the libxl Library from Xen >= 4.4 to compile libxenlight driver with -lxl])