Revision cd4ec0b4 configure

b/configure
325 325
zero_malloc=""
326 326
trace_backend="nop"
327 327
trace_file="trace"
328
spice=""
328 329

  
329 330
# OS specific
330 331
if check_define __linux__ ; then
......
630 631
  ;;
631 632
  --enable-kvm) kvm="yes"
632 633
  ;;
634
  --disable-spice) spice="no"
635
  ;;
636
  --enable-spice) spice="yes"
637
  ;;
633 638
  --enable-profiler) profiler="yes"
634 639
  ;;
635 640
  --enable-cocoa)
......
912 917
echo "  --trace-backend=B        Trace backend nop simple ust"
913 918
echo "  --trace-file=NAME        Full PATH,NAME of file to store traces"
914 919
echo "                           Default:trace-<pid>"
920
echo "  --disable-spice          disable spice"
921
echo "  --enable-spice           enable spice"
915 922
echo ""
916 923
echo "NOTE: The object files are built at the place where configure is launched"
917 924
exit 1
......
2062 2069
    gcc_attribute_warn_unused_result=yes
2063 2070
fi
2064 2071

  
2072
# spice probe
2073
if test "$spice" != "no" ; then
2074
  cat > $TMPC << EOF
2075
#include <spice.h>
2076
int main(void) { spice_server_new(); return 0; }
2077
EOF
2078
  spice_cflags=$($pkgconfig --cflags spice-protocol spice-server 2>/dev/null)
2079
  spice_libs=$($pkgconfig --libs spice-protocol spice-server 2>/dev/null)
2080
  if $pkgconfig --atleast-version=0.5.3 spice-server &&\
2081
     compile_prog "$spice_cflags" "$spice_libs" ; then
2082
    spice="yes"
2083
    libs_softmmu="$libs_softmmu $spice_libs"
2084
    QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
2085
  else
2086
    if test "$spice" = "yes" ; then
2087
      feature_not_found "spice"
2088
    fi
2089
    spice="no"
2090
  fi
2091
fi
2092

  
2093
##########################################
2094

  
2065 2095
##########################################
2066 2096
# check if we have fdatasync
2067 2097

  
......
2245 2275
echo "vhost-net support $vhost_net"
2246 2276
echo "Trace backend     $trace_backend"
2247 2277
echo "Trace output file $trace_file-<pid>"
2278
echo "spice support     $spice"
2248 2279

  
2249 2280
if test $sdl_too_old = "yes"; then
2250 2281
echo "-> Your SDL version is too old - please upgrade to have SDL support"
......
2482 2513
  echo "CONFIG_FDATASYNC=y" >> $config_host_mak
2483 2514
fi
2484 2515

  
2516
if test "$spice" = "yes" ; then
2517
  echo "CONFIG_SPICE=y" >> $config_host_mak
2518
fi
2519

  
2485 2520
# XXX: suppress that
2486 2521
if [ "$bsd" = "yes" ] ; then
2487 2522
  echo "CONFIG_BSD=y" >> $config_host_mak

Also available in: Unified diff