Fix various compiler warnings
[vd_agent/hramrach.git] / configure.ac
blobc4659f81034e158cfeb90a995b1bd49faa732760
1 AC_PREREQ(2.65)
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])])
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 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"])
26 PKG_PROG_PKG_CONFIG
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")
40 AC_CONFIG_FILES([
41 Makefile
43 AC_OUTPUT