On 03/19/2012 09:47 AM, Eduardo Habkost wrote:
Instead of hardcoding $sysconfdir/qemu, let the user choose the full
path.
Signed-off-by: Eduardo Habkost<ehabk...@redhat.com>
---
configure | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index 8b4e3c1..98027c1 100755
--- a/configure
+++ b/configure
@@ -162,6 +162,7 @@ libdir="\${prefix}/lib"
includedir="\${prefix}/include"
sysconfdir="\${prefix}/etc"
confsuffix="/qemu"
+fullconfdir=""
slirp="yes"
fmod_lib=""
fmod_inc=""
@@ -595,6 +596,8 @@ for opt do
;;
--sysconfdir=*) sysconfdir="$optarg"
;;
+ --confdir=*) fullconfdir="$optarg"
+ ;;
--sbindir=*|--libexecdir=*|--sharedstatedir=*|--localstatedir=*|\
--oldincludedir=*|--datarootdir=*|--infodir=*|--localedir=*|\
--htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
@@ -1010,7 +1013,8 @@ echo " --mandir=PATH install man pages in
PATH"
echo " --datadir=PATH install firmware in PATH"
echo " --docdir=PATH install documentation in PATH"
echo " --bindir=PATH install binaries in PATH"
-echo " --sysconfdir=PATH install config in PATH/qemu"
+echo " --sysconfdir=PATH install config in PATH$confsuffix"
+echo " --confdir=PATH install config in PATH (overrides
--sysconfdir)"
These semantics seem odd to me, is this similar to what autotools does? I think
that's what we're trying to match here.
Regards,
Anthony Liguori