Received: from eggs.gnu.org ([208.118.235.92]:58683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9dsI-0003Ry-2Q for qemu-devel@nongnu.org; Mon, 19 Mar 2012 10:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9drt-00054g-ES for qemu-devel@nongnu.org; Mon, 19 Mar 2012 10:47:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9drt-00054O-5n for qemu-devel@nongnu.org; Mon, 19 Mar 2012 10:47:29 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2JElRBx017642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Mar 2012 10:47:27 -0400 Received: from blackpad.lan.raisama.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2JElPaB032127 for ; Mon, 19 Mar 2012 10:47:26 -0400 From: Eduardo Habkost Date: Mon, 19 Mar 2012 11:47:26 -0300 Message-Id: <1332168446-9322-4-git-send-email-ehabkost@redhat.com> In-Reply-To: <1332168446-9322-1-git-send-email-ehabkost@redhat.com> References: <1332168446-9322-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] configure: make full config dir path configurable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Instead of hardcoding $sysconfdir/qemu, let the user choose the full path. Signed-off-by: Eduardo Habkost --- 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)" echo " --enable-debug-tcg enable TCG debugging" echo " --disable-debug-tcg disable TCG debugging (default)" echo " --enable-debug enable common debug build options" @@ -2830,7 +2834,9 @@ if test "$mingw32" = "yes" ; then done fi -confdir=$sysconfdir$confsuffix +if [ -z "$fullconfdir" ];then + fullconfdir=$sysconfdir$confsuffix +fi tools= if test "$softmmu" = yes ; then @@ -2869,7 +2875,7 @@ echo "BIOS directory `eval echo $datadir`" echo "binary directory `eval echo $bindir`" echo "library directory `eval echo $libdir`" echo "include directory `eval echo $includedir`" -echo "config directory `eval echo $sysconfdir`" +echo "config directory `eval echo $fullconfdir`" if test "$mingw32" = "no" ; then echo "Manual directory `eval echo $mandir`" echo "ELF interp prefix $interp_prefix" @@ -2974,9 +2980,8 @@ echo "libdir=$libdir" >> $config_host_mak echo "includedir=$includedir" >> $config_host_mak echo "mandir=$mandir" >> $config_host_mak echo "datadir=$datadir" >> $config_host_mak -echo "sysconfdir=$sysconfdir" >> $config_host_mak echo "docdir=$docdir" >> $config_host_mak -echo "confdir=$confdir" >> $config_host_mak +echo "confdir=$fullconfdir" >> $config_host_mak echo "libexecdir=\${prefix}/libexec" >> $config_host_mak echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak echo "CONFIG_QEMU_HELPERDIR=\"$prefix/libexec\"" >> $config_host_mak -- 1.7.3.2