From b2ad24867dc60868ebc04cdb9928c874f2dd723f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 19 Jul 2011 19:55:24 +0100 Subject: [PATCH] build: Fix virtio-serial test for qemu 0.15. (Cherry picked and combined commit d82438431c1551610eb7d9945fa76d6387534582 and commit 5dec7842655dd872bb0fd9fe07f6a9eab6b13bfd) --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index f7b1c99..3830161 100644 --- a/configure.ac +++ b/configure.ac @@ -310,6 +310,19 @@ AC_DEFINE_UNQUOTED([QEMU],["$QEMU"],[Location of qemu binary.]) dnl Check that the chosen qemu has virtio-serial support. if test "x$vmchannel_test" != "xno"; then + AC_MSG_CHECKING([that $QEMU -help works]) + if $QEMU -help > /dev/null 2>&1; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + AC_MSG_FAILURE( +[$QEMU -help: command failed. + +This could be a very old version of qemu, or qemu might not be +working. +]) + fi + AC_MSG_CHECKING([for virtio-serial support in $QEMU]) if $QEMU -nographic -device \? 2>&1 | grep -sq virtio-serial; then AC_MSG_RESULT([yes]) -- 1.8.3.1