mirror of https://github.com/xqemu/xqemu.git
configure: introduce confdir and confsuffix
confsuffix was write-only, flesh it out. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e7b45cc446
commit
190e9c59c0
|
@ -1969,10 +1969,10 @@ if test "$mingw32" = "yes" ; then
|
||||||
fi
|
fi
|
||||||
mansuffix=""
|
mansuffix=""
|
||||||
datasuffix=""
|
datasuffix=""
|
||||||
confsuffix=""
|
|
||||||
docsuffix=""
|
docsuffix=""
|
||||||
binsuffix=""
|
binsuffix=""
|
||||||
sysconfsuffix=""
|
sysconfsuffix=""
|
||||||
|
confsuffix=""
|
||||||
else
|
else
|
||||||
if test -z "$prefix" ; then
|
if test -z "$prefix" ; then
|
||||||
prefix="/usr/local"
|
prefix="/usr/local"
|
||||||
|
@ -1982,9 +1982,11 @@ else
|
||||||
docsuffix="/share/doc/qemu"
|
docsuffix="/share/doc/qemu"
|
||||||
binsuffix="/bin"
|
binsuffix="/bin"
|
||||||
sysconfsuffix="/etc"
|
sysconfsuffix="/etc"
|
||||||
|
confsuffix="/qemu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
: ${sysconfdir:="${prefix}$sysconfsuffix"}
|
: ${sysconfdir:="${prefix}$sysconfsuffix"}
|
||||||
|
confdir=$sysconfdir$confsuffix
|
||||||
|
|
||||||
echo "Install prefix $prefix"
|
echo "Install prefix $prefix"
|
||||||
echo "BIOS directory $prefix$datasuffix"
|
echo "BIOS directory $prefix$datasuffix"
|
||||||
|
@ -2062,11 +2064,7 @@ printf " '%s'" "$0" "$@" >> $config_host_mak
|
||||||
echo >> $config_host_mak
|
echo >> $config_host_mak
|
||||||
|
|
||||||
echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak
|
echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak
|
||||||
if test "$mingw32" = "yes" ; then
|
echo "CONFIG_QEMU_CONFDIR=\"$confdir\"" >> $config_host_mak
|
||||||
echo "CONFIG_QEMU_CONFDIR=\"$sysconfdir\"" >> $config_host_mak
|
|
||||||
else
|
|
||||||
echo "CONFIG_QEMU_CONFDIR=\"${sysconfdir}/qemu\"" >> $config_host_mak
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$cpu" in
|
case "$cpu" in
|
||||||
i386|x86_64|alpha|cris|hppa|ia64|m68k|microblaze|mips|mips64|ppc|ppc64|s390|s390x|sparc|sparc64)
|
i386|x86_64|alpha|cris|hppa|ia64|m68k|microblaze|mips|mips64|ppc|ppc64|s390|s390x|sparc|sparc64)
|
||||||
|
|
Loading…
Reference in New Issue