X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=38301611fd37adfa1f98d93f1e760bab614582db;hb=d5cc91cf18b2c08b0041345a69fe137d2cb6085d;hp=f7b1c999372e0fe3e4574211acea7a0b34c02c04;hpb=73f89a81749711a2b5a5fa37cd66a7f282404c5a;p=libguestfs.git 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])