Daily update.
[ovirt-viewer.git] / configure.ac
1 # ovirt viewer console application
2 # Copyright (C) 2008 Red Hat Inc.
3 # Written by Richard W.M. Jones <rjones@redhat.com>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 AC_INIT(ovirt-viewer, 0.1)
20 AM_INIT_AUTOMAKE
21
22 dnl Basic C compiler environment.
23 AC_PROG_INSTALL
24 AC_PROG_CC
25 AM_PROG_CC_C_O
26 AC_EXEEXT
27
28 dnl Check for required packages.
29 dnl Note that we are using GLib threads, which are supported on Linux
30 dnl and Windows, but possibly not on some obscure platforms.
31 PKG_PROG_PKG_CONFIG
32 PKG_CHECK_MODULES([OVIRT_VIEWER],
33         [gtk+-2.0 gtk-vnc-1.0 glib-2.0 libxml-2.0 gnutls gthread-2.0 libcurl])
34
35 dnl Header files.
36 AC_CHECK_HEADERS([sys/socket.h sys/un.h windows.h])
37
38 dnl Default location for CA certificate bundle.
39 AC_ARG_ENABLE([cainfo],
40         [AS_HELP_STRING([--enable-cainfo=PATH],
41           [Set the path to the CA certificate bundle.])],
42         [CAINFO=$enableval],
43         [CAINFO=$sysconfdir/pki/tls/certs/ca-bundle.crt])
44 AC_SUBST([CAINFO])
45
46 dnl Output.
47 AC_CONFIG_HEADERS([config.h])
48 AC_CONFIG_FILES([Makefile])
49 AC_OUTPUT