2 AC_INIT([spice-vdagent], [0.8.2])
3 AC_CONFIG_SRCDIR([configure.ac])
5 AM_CONFIG_HEADER([src/config.h])
7 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip subdir-objects])
8 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
14 AC_DEFINE(_GNU_SOURCE, [1], [Enable GNU extensions])
16 AC_ARG_ENABLE([console-kit],
17 [AS_HELP_STRING([--enable-console-kit], [Enable ConsoleKit use (default: yes)])],
18 [enable_console_kit="$enableval"],
19 [enable_console_kit="yes"])
21 AC_ARG_ENABLE([pciaccess],
22 [AS_HELP_STRING([--enable-pciaccess], [Enable libpciaccess use for auto generation of Xinerama xorg.conf (default: yes)])],
23 [enable_pciaccess="$enableval"],
24 [enable_pciaccess="yes"])
27 PKG_CHECK_MODULES(X, [xfixes xrandr xinerama x11])
28 PKG_CHECK_MODULES(SPICE, [spice-protocol >= 0.8.0])
29 if test x"$enable_console_kit" = "xyes" ; then
30 PKG_CHECK_MODULES(DBUS, [dbus-1])
31 AC_DEFINE([HAVE_CONSOLE_KIT], [1], [If defined, vdagentd will be compiled with ConsoleKit support] )
33 AM_CONDITIONAL(HAVE_CONSOLE_KIT, test x"$enable_console_kit" = "xyes")
34 if test x"$enable_pciaccess" = "xyes" ; then
35 PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
36 AC_DEFINE([HAVE_PCIACCESS], [1], [If defined, vdagentd will be compiled with pciaccess support] )
38 AM_CONDITIONAL(HAVE_PCIACCESS, test x"$enable_pciaccess" = "xyes")