Revision 07381cc1 configure

b/configure
32 32
prefix=""
33 33
interp_prefix="/usr/gnemul/qemu-%M"
34 34
static="no"
35
sysconfdir=""
35 36
sparc_cpu=""
36 37
cross_prefix=""
37 38
cc="gcc"
......
453 454
  ;;
454 455
  --static) static="yes"
455 456
  ;;
457
  --sysconfdir) sysconfdir="$optarg"
458
  ;;
456 459
  --disable-sdl) sdl="no"
457 460
  ;;
458 461
  --enable-sdl) sdl="yes"
......
686 689
echo "  --make=MAKE              use specified make [$make]"
687 690
echo "  --install=INSTALL        use specified install [$install]"
688 691
echo "  --static                 enable static build [$static]"
692
echo "  --sysconfdir=PATH        install config in PATH"
689 693
echo "  --enable-debug-tcg       enable TCG debugging"
690 694
echo "  --disable-debug-tcg      disable TCG debugging (default)"
691 695
echo "  --enable-debug           enable common debug build options"
......
1828 1832
  fi
1829 1833
  mansuffix=""
1830 1834
  datasuffix=""
1835
  confsuffix=""
1831 1836
  docsuffix=""
1832 1837
  binsuffix=""
1838
  if test -z "$sysconfdir" ; then
1839
      sysconfdir="${prefix}"
1840
  fi
1833 1841
else
1834 1842
  if test -z "$prefix" ; then
1835 1843
      prefix="/usr/local"
......
1838 1846
  datasuffix="/share/qemu"
1839 1847
  docsuffix="/share/doc/qemu"
1840 1848
  binsuffix="/bin"
1849
  if test -z "$sysconfdir" ; then
1850
      sysconfdir="${prefix}/etc"
1851
  fi
1841 1852
fi
1842 1853

  
1843 1854
echo "Install prefix    $prefix"
......
1914 1925
echo >> $config_host_mak
1915 1926

  
1916 1927
echo "CONFIG_QEMU_SHAREDIR=\"$prefix$datasuffix\"" >> $config_host_mak
1928
if test "$mingw32" = "yes" ; then
1929
  echo "CONFIG_QEMU_CONFDIR=\"$sysconfdir\"" >> $config_host_mak
1930
else
1931
  echo "CONFIG_QEMU_CONFDIR=\"${sysconfdir}/qemu\"" >> $config_host_mak
1932
fi
1917 1933

  
1918 1934
case "$cpu" in
1919 1935
  i386|x86_64|alpha|cris|hppa|ia64|m68k|microblaze|mips|mips64|ppc|ppc64|s390|s390x|sparc|sparc64)
......
2159 2175
echo "bindir=\${prefix}$binsuffix" >> $config_host_mak
2160 2176
echo "mandir=\${prefix}$mansuffix" >> $config_host_mak
2161 2177
echo "datadir=\${prefix}$datasuffix" >> $config_host_mak
2178
echo "sysconfdir=$sysconfdir" >> $config_host_mak
2162 2179
echo "docdir=\${prefix}$docsuffix" >> $config_host_mak
2163 2180
echo "MAKE=$make" >> $config_host_mak
2164 2181
echo "INSTALL=$install" >> $config_host_mak

Also available in: Unified diff