[libvirt] [PATCH] Fix setup of lib directory with autogen.sh --system

On x86_64 hosts, /usr/lib64 must be used instead of /usr/lib Rather than attempt to whitelist architectures, just check for existance of /usr/lib64 * autogen.sh: Fix to use /usr/lib64 if it exists --- autogen.sh | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/autogen.sh b/autogen.sh index 6c2e3bc..4184aa8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -16,7 +16,14 @@ test -f src/libvirt.c || { EXTRA_ARGS= if test "x$1" = "x--system"; then shift - EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var" + prefix=/usr + libdir=$prefix/lib + sysconfdir=/etc + localstatedir=/var + if [ -d /usr/lib64 ]; then + libdir=$prefix/lib64 + fi + EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir" echo "Running ./configure with $EXTRA_ARGS $@" else if test -z "$*" && test ! -f "$THEDIR/config.status"; then -- 1.7.3.4

On 01/21/2011 10:40 AM, Daniel P. Berrange wrote:
On x86_64 hosts, /usr/lib64 must be used instead of /usr/lib Rather than attempt to whitelist architectures, just check for existance of /usr/lib64
* autogen.sh: Fix to use /usr/lib64 if it exists --- autogen.sh | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
ACK - the entire use of 'autogen.sh --system' is currently undocumented, and only works for people with systems that match the libvirt.spec layout, but since it exists as a time-saving hack, this is a worthwhile commit even without documentation. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Daniel P. Berrange
-
Eric Blake