提交 d3f851c5 编写于 作者: P Pavel Hrdina

m4/virt-lib: properly pass header_name in LIBVIRT_CHECK_LIB(_ALT)

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: NPavel Hrdina <phrdina@redhat.com>
上级 a96a2560
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册