vdagent: Respond to SIGTERM in the connect to daemon loop
[vd_agent.git] / configure.ac
blob1c3fb1a092c110e7aafece88953e3e55bb7c87c2
1 AC_PREREQ(2.65)
2 AC_INIT([spice-vdagent], [0.8.0])
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])])
10 AC_PROG_CC
11 AC_HEADER_STDC
12 AC_PROG_INSTALL
13 AC_PROG_LN_S
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 PKG_PROG_PKG_CONFIG
22 PKG_CHECK_MODULES(X, [xfixes xrandr x11])
23 if test x"$enable_console_kit" = "xyes" ; then
24     PKG_CHECK_MODULES(DBUS, [dbus-1])
25     AC_DEFINE([HAVE_CONSOLE_KIT], [1], [If defined, vdagentd will be compiled with ConsoleKit support] )
27 AM_CONDITIONAL(HAVE_CONSOLE_KIT, test x"$enable_console_kit" = "xyes")
28 PKG_CHECK_MODULES(SPICE, [spice-protocol >= 0.8.0])
30 AC_CONFIG_FILES([
31 Makefile
33 AC_OUTPUT