Patchwork [1/2] Better support for distros using lib64 dis

login
register
mail settings
Submitter Saggi Mizrahi
Date Aug. 22, 2011, 5:06 p.m.
Message ID <1314032798-21423-1-git-send-email-smizrahi@redhat.com>
Download mbox | patch
Permalink /patch/110958/
State New
Headers show

Comments

Saggi Mizrahi - Aug. 22, 2011, 5:06 p.m.
Some distributions use lib64 directories for 64 bit libraries. Currently
configure would always generate libdir as $PREFIX/lib. By checking if
the current distro has a /lib64 directory we can assume it is using this
convention.

Signed-off-by: Saggi Mizrahi <smizrahi@redhat.com>
---
 configure |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/configure b/configure
index 0c67a4a..9001b4c 100755
--- a/configure
+++ b/configure
@@ -146,6 +146,9 @@  datadir="\${prefix}/share/qemu"
 docdir="\${prefix}/share/doc/qemu"
 bindir="\${prefix}/bin"
 libdir="\${prefix}/lib"
+if [ -d /lib64 ]; then
+libdir="\${prefix}/lib64"
+fi
 includedir="\${prefix}/include"
 sysconfdir="\${prefix}/etc"
 confsuffix="/qemu"