Fix use of SUPERMIN and QEMU environment variables, and document.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 16 Mar 2016 13:29:11 +0000 (13:29 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 16 Mar 2016 13:29:11 +0000 (13:29 +0000)
README
configure.ac

diff --git a/README b/README
index 1b2632d..42c6ced 100644 (file)
--- a/README
+++ b/README
@@ -53,6 +53,10 @@ To build the disk image, do:
   ./configure
   make
 
+If supermin and qemu are not in the normal location on the path, you
+can set SUPERMIN and QEMU environment variables before running
+./configure.
+
 Assuming that works you will end up with 4 files:
 
  - 'supernested-<VERSION>-<DISTRO>.qcow2'
index 6a53b32..e03505c 100644 (file)
@@ -49,13 +49,13 @@ fi
 dnl Get the distro that supermin thinks it is using.
 AC_MSG_CHECKING([for the distro])
 DISTRO="$(
-    supermin --list-drivers |
+    $SUPERMIN --list-drivers |
     $AWK '$2 == "detected" { gsub ("/", "-", $1); print $1; exit }'
     )"
 AC_MSG_RESULT([$DISTRO])
 AC_SUBST([DISTRO])
 if test -z "$DISTRO"; then
-    AC_MSG_ERROR([cannot get supermin distro from 'supermin --list-drivers' output])
+    AC_MSG_ERROR([cannot get supermin distro from '$SUPERMIN --list-drivers' output])
 fi
 
 dnl Check for a usable qemu KVM binary.