diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-27 00:52:01 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-02-27 00:52:01 +0000 |
commit | 308c359325f24e776eaf1c42aeb9b8abfeef68e6 (patch) | |
tree | 23741ffcf50cd4f3a01710a0e81bd468b64cdf98 /configure | |
parent | 430415f2b16b4b1e4d4168d989407f8167c668c9 (diff) |
Fix "make install prefix=/somewhere".
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2452 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -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 |