Add --with-kvm-path configure option
authorGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 14:24:36 +0000 (14:24 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 13 Aug 2008 14:24:36 +0000 (14:24 +0000)
This allows to configure a different path to the kvm binary. By default
/usr/bin/kvm is used, which is the one found in debian and ubuntu.

Reviewed-by: imsnah

Makefile.am
configure.ac
lib/constants.py

index 5c5c6b6..ce7acac 100644 (file)
@@ -260,6 +260,7 @@ lib/_autoconf.py: Makefile stamp-directories
          echo "XEN_INITRD = '$(XEN_INITRD)'"; \
          echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \
          echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \
+         echo "KVM_PATH = '$(KVM_PATH)'"; \
        } > $@
 
 $(REPLACE_VARS_SED): Makefile stamp-directories
index 58fcf71..a8d4499 100644 (file)
@@ -89,6 +89,16 @@ AC_ARG_WITH([file-storage-dir],
   [file_storage_dir="/srv/ganeti/file-storage"])
 AC_SUBST(FILE_STORAGE_DIR, $file_storage_dir)
 
+# --with-kvm-path=...
+AC_ARG_WITH([kvm-path],
+  [AS_HELP_STRING([--with-kvm-path=PATH],
+    [absolute path to the kvm binary]
+    [ (default is /usr/bin/kvm)]
+  )],
+  [kvm_path="$withval"],
+  [kvm_path="/usr/bin/kvm"])
+AC_SUBST(KVM_PATH, $kvm_path)
+
 # Check common programs
 AC_PROG_INSTALL
 AC_PROG_LN_S
index eb3275a..6f5865b 100644 (file)
@@ -126,6 +126,8 @@ EXPORT_CONF_FILE = "config.ini"
 XEN_KERNEL = _autoconf.XEN_KERNEL
 XEN_INITRD = _autoconf.XEN_INITRD
 
+KVM_PATH = _autoconf.KVM_PATH
+
 VALUE_DEFAULT = "default"
 VALUE_NONE = "none"