[PATCH 3/4] m4/virt-lib: properly pass header_name in LIBVIRT_CHECK_LIB(_ALT)

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

 



The *header_name* cannot be quoted, otherwise it is not translated to
the passed argument.  Without this fix the generated configure contains
*ac_cv_header_header_name*, but there should be for example
*ac_cv_header_sals_sasl_h* for "sasl/sasl.h".

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 m4/virt-lib.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/m4/virt-lib.m4 b/m4/virt-lib.m4
index 75b9b1dec1..a9efb74138 100644
--- a/m4/virt-lib.m4
+++ b/m4/virt-lib.m4
@@ -88,7 +88,7 @@ AC_DEFUN([LIBVIRT_CHECK_LIB],[
       with_var=no
     ])
     if test "$fail" = "0" && test "x$with_var" != "xno" ; then
-      AC_CHECK_HEADER([header_name], [
+      AC_CHECK_HEADER(header_name, [
         with_var=yes
       ],[
         if test "x$with_var" != "xcheck"; then
@@ -225,10 +225,10 @@ AC_DEFUN([LIBVIRT_CHECK_LIB_ALT],[
       ])
     ])
     if test "$fail" = "0" && test "x$with_var" != "xno" ; then
-      AC_CHECK_HEADER([header_name], [
+      AC_CHECK_HEADER(header_name, [
         with_var=yes
       ],[
-        AC_CHECK_HEADER([header_name_alt], [
+        AC_CHECK_HEADER(header_name_alt, [
           with_var=yes
         ],[
           if test "x$with_var" != "xcheck"; then
-- 
2.11.0

--
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]
  Powered by Linux