|
|
5544c1 |
From 6762c144443bca8fa97a389289bda7693bd4c8d4 Mon Sep 17 00:00:00 2001
|
|
|
5544c1 |
From: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
5544c1 |
Date: Thu, 7 Jun 2012 01:11:00 +0400
|
|
|
5544c1 |
Subject: [PATCH] use --libexecdir instead of ignoring it first and
|
|
|
5544c1 |
reinventing it later
|
|
|
5544c1 |
MIME-Version: 1.0
|
|
|
5544c1 |
Content-Type: text/plain; charset=UTF-8
|
|
|
5544c1 |
Content-Transfer-Encoding: 8bit
|
|
|
5544c1 |
|
|
|
5544c1 |
Commit 7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8 "Add basic version
|
|
|
5544c1 |
of bridge helper" put the bridge helper executable into a fixed
|
|
|
5544c1 |
${prefix}/libexec/ location, instead of using ${libexecdir} for
|
|
|
5544c1 |
this. At the same time, --libexecdir is being happily ignored
|
|
|
5544c1 |
by ./configure. Even more, the same patch sets unused $libexecdir
|
|
|
5544c1 |
variable in the generated config-host.mak, and uses fixed string
|
|
|
5544c1 |
(\${prefix}/libexecdir) for the bridge helper binary.
|
|
|
5544c1 |
|
|
|
5544c1 |
Fix this braindamage by introducing $libexecdir variable, using
|
|
|
5544c1 |
it for the bridge helper binary, and recognizing --libexecdir.
|
|
|
5544c1 |
|
|
|
5544c1 |
This patch is applicable to stable-1.1.
|
|
|
5544c1 |
|
|
|
5544c1 |
Reviewed-by: Andreas Färber <afaerber@suse.de>
|
|
|
5544c1 |
Reviewed-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
|
|
|
5544c1 |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
5544c1 |
Cc: Corey Bryant <coreyb@linux.vnet.ibm.com>
|
|
|
5544c1 |
Cc: Richa Marwaha <rmarwah@linux.vnet.ibm.com>
|
|
|
5544c1 |
Cc: qemu-stable@nongnu.org
|
|
|
5544c1 |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
|
|
5544c1 |
(cherry picked from commit 8bf188aa18ef7a8355d9edbd43871d590468c4ed)
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
5544c1 |
---
|
|
|
5544c1 |
configure | 10 +++++++---
|
|
|
5544c1 |
1 file changed, 7 insertions(+), 3 deletions(-)
|
|
|
5544c1 |
|
|
|
5544c1 |
diff --git a/configure b/configure
|
|
|
5544c1 |
index 8874eff..d01f9dc 100755
|
|
|
5544c1 |
--- a/configure
|
|
|
5544c1 |
+++ b/configure
|
|
|
5544c1 |
@@ -191,6 +191,7 @@ datadir="\${prefix}/share"
|
|
|
5544c1 |
qemu_docdir="\${prefix}/share/doc/qemu"
|
|
|
5544c1 |
bindir="\${prefix}/bin"
|
|
|
5544c1 |
libdir="\${prefix}/lib"
|
|
|
5544c1 |
+libexecdir="\${prefix}/libexec"
|
|
|
5544c1 |
includedir="\${prefix}/include"
|
|
|
5544c1 |
sysconfdir="\${prefix}/etc"
|
|
|
5544c1 |
confsuffix="/qemu"
|
|
|
5544c1 |
@@ -624,6 +625,8 @@ for opt do
|
|
|
5544c1 |
;;
|
|
|
5544c1 |
--libdir=*) libdir="$optarg"
|
|
|
5544c1 |
;;
|
|
|
5544c1 |
+ --libexecdir=*) libexecdir="$optarg"
|
|
|
5544c1 |
+ ;;
|
|
|
5544c1 |
--includedir=*) includedir="$optarg"
|
|
|
5544c1 |
;;
|
|
|
5544c1 |
--datadir=*) datadir="$optarg"
|
|
|
5544c1 |
@@ -634,7 +637,7 @@ for opt do
|
|
|
5544c1 |
;;
|
|
|
5544c1 |
--sysconfdir=*) sysconfdir="$optarg"
|
|
|
5544c1 |
;;
|
|
|
5544c1 |
- --sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\
|
|
|
5544c1 |
+ --sbindir=*|--sharedstatedir=*|--localstatedir=*|\
|
|
|
5544c1 |
--oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
|
|
|
5544c1 |
--htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
|
|
|
5544c1 |
# These switches are silently ignored, for compatibility with
|
|
|
5544c1 |
@@ -3055,6 +3058,7 @@ echo "Install prefix $prefix"
|
|
|
5544c1 |
echo "BIOS directory `eval echo $qemu_datadir`"
|
|
|
5544c1 |
echo "binary directory `eval echo $bindir`"
|
|
|
5544c1 |
echo "library directory `eval echo $libdir`"
|
|
|
5544c1 |
+echo "libexec directory `eval echo $libexecdir`"
|
|
|
5544c1 |
echo "include directory `eval echo $includedir`"
|
|
|
5544c1 |
echo "config directory `eval echo $sysconfdir`"
|
|
|
5544c1 |
if test "$mingw32" = "no" ; then
|
|
|
5544c1 |
@@ -3158,14 +3162,14 @@ echo all: >> $config_host_mak
|
|
|
5544c1 |
echo "prefix=$prefix" >> $config_host_mak
|
|
|
5544c1 |
echo "bindir=$bindir" >> $config_host_mak
|
|
|
5544c1 |
echo "libdir=$libdir" >> $config_host_mak
|
|
|
5544c1 |
+echo "libexecdir=$libexecdir" >> $config_host_mak
|
|
|
5544c1 |
echo "includedir=$includedir" >> $config_host_mak
|
|
|
5544c1 |
echo "mandir=$mandir" >> $config_host_mak
|
|
|
5544c1 |
echo "sysconfdir=$sysconfdir" >> $config_host_mak
|
|
|
5544c1 |
echo "qemu_confdir=$qemu_confdir" >> $config_host_mak
|
|
|
5544c1 |
echo "qemu_datadir=$qemu_datadir" >> $config_host_mak
|
|
|
5544c1 |
echo "qemu_docdir=$qemu_docdir" >> $config_host_mak
|
|
|
5544c1 |
-echo "libexecdir=\${prefix}/libexec" >> $config_host_mak
|
|
|
5544c1 |
-echo "CONFIG_QEMU_HELPERDIR=\"$prefix/libexec\"" >> $config_host_mak
|
|
|
5544c1 |
+echo "CONFIG_QEMU_HELPERDIR=\"$libexecdir\"" >> $config_host_mak
|
|
|
5544c1 |
|
|
|
5544c1 |
echo "ARCH=$ARCH" >> $config_host_mak
|
|
|
5544c1 |
if test "$debug_tcg" = "yes" ; then
|
|
|
5544c1 |
--
|
|
|
5544c1 |
1.7.12.1
|
|
|
5544c1 |
|