diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-07-03 22:20:05 +0200 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-07-04 15:27:56 +0100 |
commit | 22b787d17bf038d50b8f9a31db09c7de3a8f82eb (patch) | |
tree | 03432ab45eb6494573f84441d62278d58e060983 /configure.ac | |
parent | 349814e9d912c4f372b8fbdfb10b03749911021f (diff) | |
download | libguestfs-22b787d17bf038d50b8f9a31db09c7de3a8f82eb.tar.gz libguestfs-22b787d17bf038d50b8f9a31db09c7de3a8f82eb.tar.xz libguestfs-22b787d17bf038d50b8f9a31db09c7de3a8f82eb.zip |
select proper kernel by architecture
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f0eba8a3..c70d104f 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,18 @@ else test "x$DEBIRF" = "xno" && AC_MSG_ERROR([debirf must be installed]) DIST="DEBIAN" + case $host_cpu in + *86) + DEBIAN_KERNEL_ARCH=486 + ;; + x86_64) + DEBIAN_KERNEL_ARCH=amd64 + ;; + *) + DEBIAN_KERNEL_ARCH=$host_cpu + ;; + esac + AC_SUBST(DEBIAN_KERNEL_ARCH) fi AC_SUBST(DIST) |