Revision 1e43adfc configure

b/configure
18 18

  
19 19
# default parameters
20 20
prefix="/usr/local"
21
interp_prefix="/usr/gnemul/qemu-i386"
21
interp_prefix="/usr/gnemul/qemu-%M"
22 22
static="no"
23 23
cross_prefix=""
24 24
cc="gcc"
......
27 27
make="make"
28 28
strip="strip"
29 29
cpu=`uname -m`
30
target_list="i386 i386-softmmu arm"
30
target_list="i386 i386-softmmu arm sparc"
31 31
case "$cpu" in
32 32
  i386|i486|i586|i686|i86pc|BePC)
33 33
    cpu="i386"
......
193 193
echo "Standard options:"
194 194
echo "  --help                   print this message"
195 195
echo "  --prefix=PREFIX          install in PREFIX [$prefix]"
196
echo "  --interp-prefix=PREFIX   where to find shared libraries, etc. [$interp_prefix]"
196
echo "  --interp-prefix=PREFIX   where to find shared libraries, etc."
197
echo "                           use %M for cpu name [$interp_prefix]"
197 198
echo "  --target-list=LIST       set target list [$target_list]"
198 199
echo ""
199 200
echo "Advanced options (experts only):"
......
310 311
config_h=$target_dir/config.h
311 312
target_cpu=`echo $target | cut -d '-' -f 1`
312 313
target_bigendian="no"
314
[ "$target_cpu" = "sparc" ] && target_bigendian=yes
313 315
target_softmmu="no"
314 316
if expr $target : '.*-softmmu' > /dev/null ; then
315 317
  target_softmmu="yes"
......
326 328

  
327 329
echo "include ../config-host.mak" >> $config_mak
328 330
echo "#include \"../config-host.h\"" >> $config_h
329
echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix\"" >> $config_h
331

  
332
interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"`
333
echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
330 334

  
331 335
if test "$target_cpu" = "i386" ; then
332 336
  echo "TARGET_ARCH=i386" >> $config_mak
......
336 340
  echo "TARGET_ARCH=arm" >> $config_mak
337 341
  echo "#define TARGET_ARCH \"arm\"" >> $config_h
338 342
  echo "#define TARGET_ARM 1" >> $config_h
343
elif test "$target_cpu" = "sparc" ; then
344
  echo "TARGET_ARCH=sparc" >> $config_mak
345
  echo "#define TARGET_ARCH \"sparc\"" >> $config_h
346
  echo "#define TARGET_SPARC 1" >> $config_h
339 347
else
340 348
  echo "Unsupported target CPU"
341 349
  exit 1

Also available in: Unified diff