[PATCH] Make configure.ac attempt to set the default xen emulator

# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1213200322 25200 # Node ID 4490ff0e39c77b64e9380151dd9b6f3b217836f4 # Parent cb1993563ebbca5bb4f7392f42d33019af7668bc Make configure.ac attempt to set the default xen emulator by checking lib and lib64 Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r cb1993563ebb -r 4490ff0e39c7 configure.ac --- a/configure.ac Wed Jun 11 08:31:44 2008 -0700 +++ b/configure.ac Wed Jun 11 09:05:22 2008 -0700 @@ -87,10 +87,18 @@ AC_SUBST(MIG_CHECKS_DIR) AC_DEFINE_UNQUOTED(MIG_CHECKS_DIR, "$MIG_CHECKS_DIR", [External migration check timeout]) +if test -x /usr/lib64/xen/bin/qemu-dm; then + default_xen_emulator=/usr/lib64/xen/bin/qemu-dm +elif test -x /usr/lib/xen/bin/qemu-dm; then + default_xen_emulator=/usr/lib/xen/bin/qemu-dm +else + default_xen_emulator=/bin/false +fi + AC_ARG_WITH([xen_emulator], [ --with-xen_emulator=emu Location of Xen FullVirt emulator], [test "x$withval" != "x" && XEN_EMULATOR="$withval"], - [XEN_EMULATOR=/usr/lib/xen/bin/qemu-dm]) + [XEN_EMULATOR=$default_xen_emulator]) AC_SUBST(XEN_EMULATOR) AC_DEFINE_UNQUOTED(XEN_EMULATOR, "$XEN_EMULATOR", [Location of Xen FullVirt emulator])

Dan Smith wrote:
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1213200322 25200 # Node ID 4490ff0e39c77b64e9380151dd9b6f3b217836f4 # Parent cb1993563ebbca5bb4f7392f42d33019af7668bc Make configure.ac attempt to set the default xen emulator by checking lib and lib64
Signed-off-by: Dan Smith <danms@us.ibm.com>
diff -r cb1993563ebb -r 4490ff0e39c7 configure.ac
+1 Excellent - this, combined with the previous 2 FV related patches fixes the issue starting XenFV guests that I was seeing. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (2)
-
Dan Smith
-
Kaitlin Rupert