From: pbrook Date: Tue, 27 Feb 2007 00:52:01 +0000 (+0000) Subject: Fix "make install prefix=/somewhere". X-Git-Tag: TizenStudio_2.0_p2.3~13769 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=308c359325f24e776eaf1c42aeb9b8abfeef68e6;p=sdk%2Femulator%2Fqemu.git Fix "make install prefix=/somewhere". git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2452 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/configure b/configure index 9631119..ceb9bad 100755 --- a/configure +++ b/configure @@ -559,28 +559,28 @@ if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then fi if test "$mingw32" = "yes" ; then -if test -z "$prefix" ; then - prefix="/c/Program Files/Qemu" -fi -mandir="$prefix" -datadir="$prefix" -docdir="$prefix" -bindir="$prefix" + if test -z "$prefix" ; then + prefix="/c/Program Files/Qemu" + fi + mansuffix="" + datasuffix="" + docsuffix="" + binsuffix="" else -if test -z "$prefix" ; then - prefix="/usr/local" -fi -mandir="$prefix/share/man" -datadir="$prefix/share/qemu" -docdir="$prefix/share/doc/qemu" -bindir="$prefix/bin" + if test -z "$prefix" ; then + prefix="/usr/local" + fi + mansuffix="/share/man" + datasuffix="/share/qemu" + docsuffix="/share/doc/qemu" + binsuffix="/bin" fi echo "Install prefix $prefix" -echo "BIOS directory $datadir" -echo "binary directory $bindir" +echo "BIOS directory $prefix$datasuffix" +echo "binary directory $prefix$binsuffix" if test "$mingw32" = "no" ; then -echo "Manual directory $mandir" +echo "Manual directory $prefix$mansuffix" echo "ELF interp prefix $interp_prefix" fi echo "Source path $source_path" @@ -640,11 +640,11 @@ echo "# Configured with: $0 $@" >> $config_mak echo "/* Automatically generated by configure - do not modify */" > $config_h echo "prefix=$prefix" >> $config_mak -echo "bindir=$bindir" >> $config_mak -echo "mandir=$mandir" >> $config_mak -echo "datadir=$datadir" >> $config_mak -echo "docdir=$docdir" >> $config_mak -echo "#define CONFIG_QEMU_SHAREDIR \"$datadir\"" >> $config_h +echo "bindir=\${prefix}$binsuffix" >> $config_mak +echo "mandir=\${prefix}$mansuffix" >> $config_mak +echo "datadir=\${prefix}$datasuffix" >> $config_mak +echo "docdir=\${prefix}$docsuffic" >> $config_mak +echo "#define CONFIG_QEMU_SHAREDIR \"$prefix$datasuffix\"" >> $config_h echo "MAKE=$make" >> $config_mak echo "INSTALL=$install" >> $config_mak echo "CC=$cc" >> $config_mak