0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1 |
dnl Process this file with autoconf to produce a configure script. |
2 |
||
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
3 |
AC_INIT([libvirt], [0.8.3]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
4 |
AC_CONFIG_SRCDIR([src/libvirt.c]) |
5 |
AC_CONFIG_AUX_DIR([build-aux]) |
|
6 |
AC_CONFIG_HEADERS([config.h]) |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
7 |
AC_CONFIG_MACRO_DIR([m4]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
8 |
dnl Make automake keep quiet about wildcards & other GNUmake-isms |
9 |
AM_INIT_AUTOMAKE([-Wno-portability]) |
|
10 |
||
11 |
# Use the silent-rules feature when possible. |
|
12 |
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) |
|
13 |
AM_SILENT_RULES([yes]) |
|
14 |
||
15 |
AC_CANONICAL_HOST
|
|
16 |
||
17 |
LIBVIRT_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'` |
|
18 |
LIBVIRT_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'` |
|
19 |
LIBVIRT_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'` |
|
20 |
LIBVIRT_VERSION=$LIBVIRT_MAJOR_VERSION.$LIBVIRT_MINOR_VERSION.$LIBVIRT_MICRO_VERSION$LIBVIRT_MICRO_VERSION_SUFFIX |
|
21 |
LIBVIRT_VERSION_INFO=`expr $LIBVIRT_MAJOR_VERSION + $LIBVIRT_MINOR_VERSION`:$LIBVIRT_MICRO_VERSION:$LIBVIRT_MINOR_VERSION |
|
22 |
LIBVIRT_VERSION_NUMBER=`expr $LIBVIRT_MAJOR_VERSION \* 1000000 + $LIBVIRT_MINOR_VERSION \* 1000 + $LIBVIRT_MICRO_VERSION` |
|
23 |
||
24 |
AC_SUBST([LIBVIRT_MAJOR_VERSION]) |
|
25 |
AC_SUBST([LIBVIRT_MINOR_VERSION]) |
|
26 |
AC_SUBST([LIBVIRT_MICRO_VERSION]) |
|
27 |
AC_SUBST([LIBVIRT_VERSION]) |
|
28 |
AC_SUBST([LIBVIRT_VERSION_INFO]) |
|
29 |
AC_SUBST([LIBVIRT_VERSION_NUMBER]) |
|
30 |
||
31 |
dnl Required minimum versions of all libs we depend on |
|
32 |
LIBXML_REQUIRED="2.6.0" |
|
33 |
GNUTLS_REQUIRED="1.0.25" |
|
34 |
AVAHI_REQUIRED="0.6.0" |
|
35 |
POLKIT_REQUIRED="0.6" |
|
36 |
PARTED_REQUIRED="1.8.0" |
|
37 |
NETCF_REQUIRED="0.1.4" |
|
38 |
UDEV_REQUIRED=145 |
|
39 |
PCIACCESS_REQUIRED=0.10.0 |
|
40 |
XMLRPC_REQUIRED=1.14.0 |
|
41 |
HAL_REQUIRED=0.5.0 |
|
42 |
DEVMAPPER_REQUIRED=1.0.0 |
|
43 |
LIBCURL_REQUIRED="7.18.0" |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
44 |
LIBPCAP_REQUIRED="1.0.0" |
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
45 |
LIBNL_REQUIRED="1.1" |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
46 |
|
47 |
dnl Checks for C compiler. |
|
48 |
AC_PROG_CC
|
|
49 |
AC_PROG_INSTALL
|
|
50 |
AC_PROG_CPP
|
|
51 |
||
52 |
gl_EARLY
|
|
53 |
gl_INIT
|
|
54 |
||
55 |
AM_PROG_CC_STDC
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
56 |
AC_TYPE_UID_T
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
57 |
|
58 |
dnl Make sure we have an ANSI compiler |
|
59 |
AM_C_PROTOTYPES
|
|
60 |
test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) |
|
61 |
||
62 |
dnl Support building Win32 DLLs (must appear *before* AM_PROG_LIBTOOL) |
|
63 |
AC_LIBTOOL_WIN32_DLL
|
|
64 |
||
65 |
AM_PROG_LIBTOOL
|
|
66 |
AM_PROG_CC_C_O
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
67 |
AM_PROG_LD
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
68 |
|
69 |
VERSION_SCRIPT_FLAGS=-Wl,--version-script= |
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
70 |
`$LD --help 2>&1 | grep -- --version-script >/dev/null` || \ |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
71 |
VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," |
72 |
||
73 |
LIBVIRT_COMPILE_WARNINGS([maximum]) |
|
74 |
||
75 |
AC_MSG_CHECKING([for CPUID instruction]) |
|
76 |
AC_COMPILE_IFELSE(AC_LANG_PROGRAM( |
|
77 |
[[ |
|
78 |
#include <stdint.h>
|
|
79 |
]], |
|
80 |
[[ |
|
81 |
uint32_t eax, ebx, ecx, edx;
|
|
82 |
asm volatile (
|
|
83 |
"cpuid"
|
|
84 |
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
|
|
85 |
: "a" (eax));
|
|
86 |
]]), |
|
87 |
[have_cpuid=yes], |
|
88 |
[have_cpuid=no]) |
|
89 |
if test "x$have_cpuid" = xyes; then |
|
90 |
AC_DEFINE_UNQUOTED([HAVE_CPUID], 1, [whether CPUID instruction is supported]) |
|
91 |
fi
|
|
92 |
AC_MSG_RESULT([$have_cpuid]) |
|
93 |
||
94 |
||
95 |
dnl Availability of various common functions (non-fatal if missing). |
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
96 |
AC_CHECK_FUNCS_ONCE([cfmakeraw regexec sched_getaffinity getuid getgid \ |
97 |
posix_fallocate mmap]) |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
98 |
|
99 |
dnl Availability of various not common threadsafe functions |
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
100 |
AC_CHECK_FUNCS_ONCE([strerror_r getmntent_r getgrnam_r getpwuid_r]) |
101 |
||
102 |
dnl Availability of pthread functions (if missing, win32 threading is |
|
103 |
dnl assumed). Because of $LIB_PTHREAD, we cannot use AC_CHECK_FUNCS_ONCE. |
|
104 |
dnl LIB_PTHREAD was set during gl_INIT by gnulib. |
|
105 |
old_LIBS=$LIBS |
|
106 |
LIBS="$LIBS $LIB_PTHREAD" |
|
107 |
AC_CHECK_FUNCS([pthread_sigmask pthread_mutexattr_init]) |
|
108 |
LIBS=$old_libs |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
109 |
|
110 |
dnl Availability of various common headers (non-fatal if missing). |
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
111 |
AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/syslimits.h \ |
112 |
termios.h sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h]) |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
113 |
|
114 |
dnl Where are the XDR functions? |
|
115 |
dnl If portablexdr is installed, prefer that. |
|
116 |
dnl Otherwise try -lrpc (Cygwin) -lxdr (some MinGW), -lnsl (Solaris) |
|
117 |
dnl or none (most Unix) |
|
118 |
AC_CHECK_LIB([portablexdr],[xdrmem_create],[],[ |
|
119 |
AC_SEARCH_LIBS([xdrmem_create],[rpc xdr nsl],[], |
|
120 |
[AC_MSG_ERROR([Cannot find a XDR library])]) |
|
121 |
]) |
|
122 |
||
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
123 |
dnl check for cygwin's variation in xdr function names |
124 |
AC_CHECK_FUNCS([xdr_u_int64_t],[],[],[#include <rpc/xdr.h>])
|
|
125 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
126 |
AC_CHECK_LIB([intl],[gettext],[])
|
127 |
||
128 |
dnl Do we have rpcgen?
|
|
129 |
AC_PATH_PROG([RPCGEN], [rpcgen], [no])
|
|
130 |
AM_CONDITIONAL([HAVE_RPCGEN], [test "x$ac_cv_path_RPCGEN" != "xno"])
|
|
131 |
dnl Is this GLIBC's buggy rpcgen? |
|
132 |
AM_CONDITIONAL([HAVE_GLIBC_RPCGEN], |
|
133 |
[test "x$ac_cv_path_RPCGEN" != "xno" && |
|
134 |
$ac_cv_path_RPCGEN -t </dev/null >/dev/null 2>&1]) |
|
135 |
||
136 |
dnl Miscellaneous external programs. |
|
137 |
AC_PATH_PROG([RM], [rm], [/bin/rm]) |
|
138 |
AC_PATH_PROG([MV], [mv], [/bin/mv]) |
|
139 |
AC_PATH_PROG([TAR], [tar], [/bin/tar]) |
|
140 |
AC_PATH_PROG([XMLLINT], [xmllint], [/usr/bin/xmllint]) |
|
141 |
AC_PATH_PROG([XMLCATALOG], [xmlcatalog], [/usr/bin/xmlcatalog]) |
|
142 |
AC_PATH_PROG([XSLTPROC], [xsltproc], [/usr/bin/xsltproc]) |
|
143 |
AC_PATH_PROG([AUGPARSE], [augparse], [/usr/bin/augparse]) |
|
144 |
AC_PROG_MKDIR_P
|
|
145 |
||
146 |
dnl External programs that we can use if they are available. |
|
147 |
dnl We will hard-code paths to these programs unless we cannot |
|
148 |
dnl detect them, in which case we'll search for the program |
|
149 |
dnl along the $PATH at runtime and fail if it's not there. |
|
150 |
AC_PATH_PROG([DNSMASQ], [dnsmasq], [dnsmasq], |
|
151 |
[/sbin:/usr/sbin:/usr/local/sbin:$PATH]) |
|
152 |
AC_PATH_PROG([BRCTL], [brctl], [brctl], |
|
153 |
[/sbin:/usr/sbin:/usr/local/sbin:$PATH]) |
|
154 |
AC_PATH_PROG([UDEVADM], [udevadm], [], |
|
155 |
[/sbin:/usr/sbin:/usr/local/sbin:$PATH]) |
|
156 |
AC_PATH_PROG([UDEVSETTLE], [udevsettle], [], |
|
157 |
[/sbin:/usr/sbin:/usr/local/sbin:$PATH]) |
|
158 |
AC_PATH_PROG([MODPROBE], [modprobe], [], |
|
159 |
[/sbin:/usr/sbin:/usr/local/sbin:$PATH]) |
|
160 |
||
161 |
AC_DEFINE_UNQUOTED([DNSMASQ],["$DNSMASQ"], |
|
162 |
[Location or name of the dnsmasq program]) |
|
163 |
AC_DEFINE_UNQUOTED([BRCTL],["$BRCTL"], |
|
164 |
[Location or name of the brctl program (see bridge-utils)]) |
|
165 |
if test -n "$UDEVADM"; then |
|
166 |
AC_DEFINE_UNQUOTED([UDEVADM],["$UDEVADM"], |
|
167 |
[Location or name of the udevadm program]) |
|
168 |
fi
|
|
169 |
if test -n "$UDEVSETTLE"; then |
|
170 |
AC_DEFINE_UNQUOTED([UDEVSETTLE],["$UDEVSETTLE"], |
|
171 |
[Location or name of the udevsettle program]) |
|
172 |
fi
|
|
173 |
if test -n "$MODPROBE"; then |
|
174 |
AC_DEFINE_UNQUOTED([MODPROBE],["$MODPROBE"], |
|
175 |
[Location or name of the modprobe program]) |
|
176 |
fi
|
|
177 |
||
178 |
dnl Specific dir for HTML output ? |
|
179 |
AC_ARG_WITH([html-dir], [AC_HELP_STRING([--with-html-dir=path], |
|
180 |
[path to base html directory, default $datadir/doc/html])], |
|
181 |
[HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc']) |
|
182 |
||
183 |
AC_ARG_WITH([html-subdir], [AC_HELP_STRING([--with-html-subdir=path], |
|
184 |
[directory used under html-dir, default $PACKAGE-$VERSION/html])], |
|
185 |
[test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"], |
|
186 |
[HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"]) |
|
187 |
AC_SUBST([HTML_DIR]) |
|
188 |
||
189 |
dnl if --prefix is /usr, don't use /usr/var for localstatedir |
|
190 |
dnl or /usr/etc for sysconfdir
|
|
191 |
dnl as this makes a lot of things break in testing situations
|
|
192 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
193 |
if test "$prefix" = "/usr" && test "$localstatedir" = '${prefix}/var' ; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
194 |
localstatedir='/var' |
195 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
196 |
if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
197 |
sysconfdir='/etc' |
198 |
fi
|
|
199 |
||
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
200 |
dnl lxc and qemu drivers require linux headers
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
201 |
case "$host" in
|
202 |
*-*-linux*)
|
|
203 |
# match linux here so the *) case will match anything non-linux
|
|
204 |
;;
|
|
205 |
*)
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
206 |
if test "x$with_lxc" != "xyes"
|
207 |
then
|
|
208 |
with_lxc=no
|
|
209 |
fi
|
|
210 |
if test "x$with_qemu" != "xyes"
|
|
211 |
then
|
|
212 |
with_qemu=no
|
|
213 |
fi
|
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
214 |
;;
|
215 |
esac
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
216 |
|
217 |
dnl Allow to build without Xen, QEMU/KVM, test or remote driver
|
|
218 |
AC_ARG_WITH([xen],
|
|
219 |
AC_HELP_STRING([--with-xen], [add XEN support @<:@default=check@:>@]),[],[with_xen=check])
|
|
220 |
AC_ARG_WITH([xen-inotify],
|
|
221 |
AC_HELP_STRING([--with-xen-inotify], [add XEN inotify support @<:@default=check@:>@]),[],[with_xen_inotify=check])
|
|
222 |
AC_ARG_WITH([qemu],
|
|
223 |
AC_HELP_STRING([--with-qemu], [add QEMU/KVM support @<:@default=yes@:>@]),[],[with_qemu=yes])
|
|
224 |
AC_ARG_WITH([uml],
|
|
225 |
AC_HELP_STRING([--with-uml], [add UML support @<:@default=check@:>@]),[],[with_uml=check])
|
|
226 |
AC_ARG_WITH([openvz],
|
|
227 |
AC_HELP_STRING([--with-openvz], [add OpenVZ support @<:@default=yes@:>@]),[],[with_openvz=yes])
|
|
228 |
AC_ARG_WITH([libssh2],
|
|
229 |
AC_HELP_STRING([--with-libssh2=@<:@PFX@:>@], [libssh2 location @<:@default=/usr/local/lib@:>@]),[],[with_libssh2=yes])
|
|
230 |
AC_ARG_WITH([phyp],
|
|
231 |
AC_HELP_STRING([--with-phyp], [add PHYP support @<:@default=check@:>@]),[],[with_phyp=check])
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
232 |
AC_ARG_WITH([xenapi],
|
233 |
AC_HELP_STRING([--with-xenapi], [add XenAPI support @<:@default=check@:>@]),[],[with_xenapi=check])
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
234 |
AC_ARG_WITH([vbox],
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
235 |
AC_HELP_STRING([--with-vbox=@<:@PFX@:>@],
|
236 |
[VirtualBox XPCOMC location @<:@default=check@:>@]),[],
|
|
237 |
[with_vbox=check])
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
238 |
AC_ARG_WITH([lxc],
|
239 |
AC_HELP_STRING([--with-lxc], [add Linux Container support @<:@default=check@:>@]),[],[with_lxc=check])
|
|
240 |
AC_ARG_WITH([one],
|
|
241 |
AC_HELP_STRING([--with-one], [add ONE support @<:@default=check@:>@]),[],[with_one=check])
|
|
242 |
AC_ARG_WITH([esx],
|
|
243 |
AC_HELP_STRING([--with-esx], [add ESX support @<:@default=check@:>@]),[],[with_esx=check])
|
|
244 |
AC_ARG_WITH([test],
|
|
245 |
AC_HELP_STRING([--with-test], [add test driver support @<:@default=yes@:>@]),[],[with_test=yes])
|
|
246 |
AC_ARG_WITH([remote],
|
|
247 |
AC_HELP_STRING([--with-remote], [add remote driver support @<:@default=yes@:>@]),[],[with_remote=yes])
|
|
248 |
AC_ARG_WITH([libvirtd],
|
|
249 |
AC_HELP_STRING([--with-libvirtd], [add libvirtd support @<:@default=yes@:>@]),[],[with_libvirtd=yes])
|
|
250 |
||
251 |
dnl
|
|
252 |
dnl specific tests to setup DV devel environments with debug etc ...
|
|
253 |
dnl
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
254 |
if test "${LOGNAME}" = "veillard" && test "`pwd`" = "/u/veillard/libvirt" ; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
255 |
STATIC_BINARIES="-static"
|
256 |
else
|
|
257 |
STATIC_BINARIES=
|
|
258 |
fi
|
|
259 |
AC_SUBST([STATIC_BINARIES])
|
|
260 |
||
261 |
dnl --enable-debug=(yes|no)
|
|
262 |
AC_ARG_ENABLE([debug],
|
|
263 |
[AC_HELP_STRING([--enable-debug=@<:@no|yes@:>@],
|
|
264 |
[enable debugging output @<:@default=yes@:>@])],[],[enable_debug=yes])
|
|
265 |
AM_CONDITIONAL([ENABLE_DEBUG], test x"$enable_debug" = x"yes")
|
|
266 |
if test x"$enable_debug" = x"yes"; then
|
|
267 |
AC_DEFINE([ENABLE_DEBUG], [], [whether debugging is enabled])
|
|
268 |
fi
|
|
269 |
||
270 |
||
271 |
AC_MSG_CHECKING([where to write libvirtd PID file])
|
|
272 |
AC_ARG_WITH([remote-pid-file], [AC_HELP_STRING([--with-remote-pid-file=@<:@pidfile|none@:>@], [PID file for libvirtd])])
|
|
273 |
if test "x$with_remote_pid_file" == "x" ; then
|
|
274 |
REMOTE_PID_FILE="$localstatedir/run/libvirtd.pid"
|
|
275 |
elif test "x$with_remote_pid_file" == "xnone" ; then
|
|
276 |
REMOTE_PID_FILE=""
|
|
277 |
else
|
|
278 |
REMOTE_PID_FILE="$with_remote_pid_file"
|
|
279 |
fi
|
|
280 |
AC_SUBST([REMOTE_PID_FILE])
|
|
281 |
AC_MSG_RESULT($REMOTE_PID_FILE)
|
|
282 |
||
283 |
dnl
|
|
284 |
dnl init script flavor
|
|
285 |
dnl
|
|
286 |
AC_MSG_CHECKING([for init script flavor])
|
|
287 |
AC_ARG_WITH([init-script],
|
|
288 |
[AC_HELP_STRING([--with-init-script=@<:@redhat|auto|none@:>@],
|
|
289 |
[Style of init script to install @<:@default=auto@:>@])])
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
290 |
if test "x$with_init_script" = "x" || test "x$with_init_script" = "xauto"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
291 |
if test -f /etc/redhat-release ; then
|
292 |
with_init_script=redhat
|
|
293 |
else
|
|
294 |
with_init_script=none
|
|
295 |
fi
|
|
296 |
fi
|
|
297 |
AM_CONDITIONAL([LIBVIRT_INIT_SCRIPT_RED_HAT], test x$with_init_script = xredhat)
|
|
298 |
AC_MSG_RESULT($with_init_script)
|
|
299 |
||
300 |
dnl RHEL-5 has a peculiar version of Xen, which requires some special casing
|
|
301 |
AC_ARG_WITH([rhel5-api],
|
|
302 |
[AC_HELP_STRING([--with-rhel5-api=@<:@ARG@:>@],
|
|
303 |
[build for the RHEL-5 API @<:@default=no@:>@])])
|
|
304 |
if test x"$with_rhel5_api" = x"yes"; then
|
|
305 |
AC_DEFINE([WITH_RHEL5_API], [1], [whether building for the RHEL-5 API])
|
|
306 |
fi
|
|
307 |
||
308 |
AC_PATH_PROG([IPTABLES_PATH], [iptables], /sbin/iptables, [/usr/sbin:$PATH])
|
|
309 |
AC_DEFINE_UNQUOTED([IPTABLES_PATH], "$IPTABLES_PATH", [path to iptables binary])
|
|
310 |
||
311 |
AC_PATH_PROG([EBTABLES_PATH], [ebtables], /sbin/ebtables, [/usr/sbin:$PATH])
|
|
312 |
AC_DEFINE_UNQUOTED([EBTABLES_PATH], "$EBTABLES_PATH", [path to ebtables binary])
|
|
313 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
314 |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
315 |
if test "$with_openvz" = "yes"; then
|
316 |
AC_DEFINE_UNQUOTED([WITH_OPENVZ], 1, [whether OpenVZ driver is enabled])
|
|
317 |
fi
|
|
318 |
AM_CONDITIONAL([WITH_OPENVZ], [test "$with_openvz" = "yes"])
|
|
319 |
||
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
320 |
|
321 |
dnl
|
|
322 |
dnl check for VirtualBox XPCOMC location
|
|
323 |
dnl
|
|
324 |
||
325 |
vbox_xpcomc_dir=
|
|
326 |
||
327 |
if test "x$with_vbox" = "xyes" || test "x$with_vbox" = "xcheck"; then
|
|
328 |
AC_MSG_CHECKING([for VirtualBox XPCOMC location])
|
|
329 |
||
330 |
for vbox in \
|
|
331 |
/usr/lib/virtualbox/VBoxXPCOMC.so \
|
|
332 |
/usr/lib/VirtualBox/VBoxXPCOMC.so \
|
|
333 |
/opt/virtualbox/VBoxXPCOMC.so \
|
|
334 |
/opt/VirtualBox/VBoxXPCOMC.so \
|
|
335 |
/opt/virtualbox/i386/VBoxXPCOMC.so \
|
|
336 |
/opt/VirtualBox/i386/VBoxXPCOMC.so \
|
|
337 |
/opt/virtualbox/amd64/VBoxXPCOMC.so \
|
|
338 |
/opt/VirtualBox/amd64/VBoxXPCOMC.so \
|
|
339 |
/usr/local/lib/virtualbox/VBoxXPCOMC.so \
|
|
340 |
/usr/local/lib/VirtualBox/VBoxXPCOMC.so \
|
|
341 |
/Application/VirtualBox.app/Contents/MacOS/VBoxXPCOMC.dylib \
|
|
342 |
; do
|
|
343 |
if test -f "$vbox"; then
|
|
344 |
vbox_xpcomc_dir=`AS_DIRNAME(["$vbox"])`
|
|
345 |
break
|
|
346 |
fi
|
|
347 |
done
|
|
348 |
||
349 |
if test -n "$vbox_xpcomc_dir"; then
|
|
350 |
AC_MSG_RESULT([$vbox_xpcomc_dir])
|
|
351 |
with_vbox=yes
|
|
352 |
else
|
|
353 |
if test "x$with_vbox" = "xcheck"; then
|
|
354 |
AC_MSG_RESULT([not found, disabling VirtualBox driver])
|
|
355 |
with_vbox=no
|
|
356 |
else
|
|
357 |
AC_MSG_RESULT([not found])
|
|
358 |
AC_MSG_ERROR([VirtualBox XPCOMC is required for the VirtualBox driver])
|
|
359 |
fi
|
|
360 |
fi
|
|
361 |
else
|
|
362 |
if test "x$with_vbox" != "xno"; then
|
|
363 |
if test -f ${with_vbox}/VBoxXPCOMC.so || \
|
|
364 |
test -f ${with_vbox}/VBoxXPCOMC.dylib; then
|
|
365 |
vbox_xpcomc_dir=$with_vbox
|
|
366 |
with_vbox=yes
|
|
367 |
else
|
|
368 |
AC_MSG_ERROR([$with_vbox does not contain VirtualBox XPCOMC])
|
|
369 |
fi
|
|
370 |
fi
|
|
371 |
fi
|
|
372 |
||
373 |
AC_DEFINE_UNQUOTED([VBOX_XPCOMC_DIR], ["$vbox_xpcomc_dir"],
|
|
374 |
[Location of directory containing VirtualBox XPCOMC library])
|
|
375 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
376 |
if test "x$with_vbox" = "xyes"; then
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
377 |
AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([Unable to find dlopen()])])
|
378 |
case $ac_cv_search_dlopen in
|
|
379 |
no*) DLOPEN_LIBS= ;;
|
|
380 |
*) DLOPEN_LIBS=$ac_cv_search_dlopen ;;
|
|
381 |
esac
|
|
382 |
AC_SUBST([DLOPEN_LIBS])
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
383 |
AC_DEFINE_UNQUOTED([WITH_VBOX], 1, [whether VirtualBox driver is enabled])
|
384 |
fi
|
|
385 |
AM_CONDITIONAL([WITH_VBOX], [test "$with_vbox" = "yes"])
|
|
386 |
||
387 |
if test "$with_libvirtd" = "no" ; then
|
|
388 |
with_qemu=no
|
|
389 |
fi
|
|
390 |
if test "$with_qemu" = "yes" ; then
|
|
391 |
AC_DEFINE_UNQUOTED([WITH_QEMU], 1, [whether QEMU driver is enabled])
|
|
392 |
fi
|
|
393 |
AM_CONDITIONAL([WITH_QEMU], [test "$with_qemu" = "yes"])
|
|
394 |
||
395 |
if test "$with_one" = "yes" ; then
|
|
396 |
AC_DEFINE_UNQUOTED([WITH_ONE],1,[whether ONE driver is enabled])
|
|
397 |
fi
|
|
398 |
AM_CONDITIONAL([WITH_ONE],[test "$with_one" = "yes"])
|
|
399 |
||
400 |
if test "$with_test" = "yes" ; then
|
|
401 |
AC_DEFINE_UNQUOTED([WITH_TEST], 1, [whether Test driver is enabled])
|
|
402 |
fi
|
|
403 |
AM_CONDITIONAL([WITH_TEST], [test "$with_test" = "yes"])
|
|
404 |
||
405 |
if test "$with_remote" = "yes" ; then
|
|
406 |
AC_DEFINE_UNQUOTED([WITH_REMOTE], 1, [whether Remote driver is enabled])
|
|
407 |
fi
|
|
408 |
AM_CONDITIONAL([WITH_REMOTE], [test "$with_remote" = "yes"])
|
|
409 |
||
410 |
if test "$with_libvirtd" = "yes" ; then
|
|
411 |
AC_DEFINE_UNQUOTED([WITH_LIBVIRTD], 1, [whether libvirtd daemon is enabled])
|
|
412 |
fi
|
|
413 |
AM_CONDITIONAL([WITH_LIBVIRTD], [test "$with_libvirtd" = "yes"])
|
|
414 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
415 |
|
416 |
old_LIBS="$LIBS"
|
|
417 |
old_CFLAGS="$CFLAGS"
|
|
418 |
LIBXENSERVER_LIBS=""
|
|
419 |
LIBXENSERVER_CFLAGS=""
|
|
420 |
dnl search for the XenServer library
|
|
421 |
if test "$with_xenapi" != "no" ; then
|
|
422 |
if test "$with_xenapi" != "yes" && test "$with_xenapi" != "check" ; then
|
|
423 |
LIBXENSERVER_CFLAGS="-I$with_xenapi/include"
|
|
424 |
LIBXENSERVER_LIBS="-L$with_xenapi"
|
|
425 |
fi
|
|
426 |
fail=0
|
|
427 |
CFLAGS="$CFLAGS $LIBXENSERVER_CFLAGS"
|
|
428 |
LIBS="$LIBS $LIBXENSERVER_LIBS"
|
|
429 |
AC_CHECK_LIB([xenserver], [xen_vm_start], [
|
|
430 |
with_xenapi=yes
|
|
431 |
LIBXENSERVER_LIBS="$LIBXENSERVER_LIBS -lxenserver"
|
|
432 |
],[
|
|
433 |
if test "$with_xenapi" = "yes"; then
|
|
434 |
fail=1
|
|
435 |
fi
|
|
436 |
with_xenapi=no
|
|
437 |
])
|
|
438 |
fi
|
|
439 |
||
440 |
LIBS="$old_LIBS"
|
|
441 |
CFLAGS="$old_CFLAGS"
|
|
442 |
||
443 |
if test $fail = 1; then
|
|
444 |
AC_MSG_ERROR([You must install the XenServer Library to compile XenAPI driver with -lxenserver])
|
|
445 |
fi
|
|
446 |
||
447 |
if test "$with_xenapi" = "yes"; then
|
|
448 |
AC_DEFINE_UNQUOTED([WITH_XENAPI], 1, [whether XenAPI driver is enabled])
|
|
449 |
fi
|
|
450 |
||
451 |
AC_SUBST([LIBXENSERVER_CFLAGS])
|
|
452 |
AC_SUBST([LIBXENSERVER_LIBS])
|
|
453 |
||
454 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
455 |
old_LIBS="$LIBS"
|
456 |
old_CFLAGS="$CFLAGS"
|
|
457 |
XEN_LIBS=""
|
|
458 |
XEN_CFLAGS=""
|
|
459 |
dnl search for the Xen store library
|
|
460 |
if test "$with_xen" != "no" ; then
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
461 |
if test "$with_xen" != "yes" && test "$with_xen" != "check" ; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
462 |
XEN_CFLAGS="-I$with_xen/include"
|
463 |
XEN_LIBS="-L$with_xen/lib64 -L$with_xen/lib"
|
|
464 |
fi
|
|
465 |
fail=0
|
|
466 |
CFLAGS="$CFLAGS $XEN_CFLAGS"
|
|
467 |
LIBS="$LIBS $XEN_LIBS"
|
|
468 |
AC_CHECK_LIB([xenstore], [xs_read], [
|
|
469 |
with_xen=yes
|
|
470 |
XEN_LIBS="$XEN_LIBS -lxenstore"
|
|
471 |
],[
|
|
472 |
if test "$with_xen" = "yes"; then
|
|
473 |
fail=1
|
|
474 |
fi
|
|
475 |
with_xen=no
|
|
476 |
])
|
|
477 |
fi
|
|
478 |
||
479 |
if test "$with_xen" != "no" ; then
|
|
480 |
AC_CHECK_HEADERS([xen/xen.h xen/version.h xen/dom0_ops.h],,[
|
|
481 |
if test "$with_xen" = "yes"; then
|
|
482 |
fail=1
|
|
483 |
fi
|
|
484 |
with_xen=no
|
|
485 |
],
|
|
486 |
[#include <stdio.h>
|
|
487 |
#include <stdint.h>
|
|
488 |
])
|
|
489 |
fi
|
|
490 |
||
491 |
if test "$with_xen" != "no" ; then
|
|
492 |
dnl Search for the location of <xen/{linux,sys}/privcmd.h>.
|
|
493 |
found=
|
|
494 |
AC_CHECK_HEADERS([xen/sys/privcmd.h xen/linux/privcmd.h], [found=yes; break;], [],
|
|
495 |
[#include <stdio.h>
|
|
496 |
#include <stdint.h>
|
|
497 |
#include <xen/xen.h>
|
|
498 |
])
|
|
499 |
if test "x$found" != "xyes"; then
|
|
500 |
if test "$with_xen" = "yes"; then
|
|
501 |
fail=1
|
|
502 |
fi
|
|
503 |
with_xen=no
|
|
504 |
fi
|
|
505 |
fi
|
|
506 |
||
507 |
LIBS="$old_LIBS"
|
|
508 |
CFLAGS="$old_CFLAGS"
|
|
509 |
||
510 |
if test $fail = 1; then
|
|
511 |
AC_MSG_ERROR([You must install the Xen development package to compile Xen driver with -lxenstore])
|
|
512 |
fi
|
|
513 |
||
514 |
if test "$with_xen" = "yes"; then
|
|
515 |
AC_DEFINE_UNQUOTED([WITH_XEN], 1, [whether Xen driver is enabled])
|
|
516 |
fi
|
|
517 |
||
518 |
AM_CONDITIONAL([WITH_XEN], [test "$with_xen" = "yes"])
|
|
519 |
AC_SUBST([XEN_CFLAGS])
|
|
520 |
AC_SUBST([XEN_LIBS])
|
|
521 |
||
522 |
dnl
|
|
523 |
dnl check for kernel headers required by xen_inotify
|
|
524 |
dnl
|
|
525 |
if test "$with_xen" != "yes"; then
|
|
526 |
with_xen_inotify=no
|
|
527 |
fi
|
|
528 |
if test "$with_xen_inotify" != "no"; then
|
|
529 |
AC_CHECK_HEADER([sys/inotify.h], [
|
|
530 |
with_xen_inotify=yes
|
|
531 |
], [
|
|
532 |
if test "$with_xen_inotify" = "check"; then
|
|
533 |
with_xen_inotify=no
|
|
534 |
AC_MSG_NOTICE([Header file <sys/inotify.h> is required for Xen Inotify support, disabling it])
|
|
535 |
else
|
|
536 |
AC_MSG_ERROR([Header file <sys/inotify.h> is required for Xen Inotify support!])
|
|
537 |
fi
|
|
538 |
0])
|
|
539 |
fi
|
|
540 |
if test "$with_xen_inotify" = "yes"; then
|
|
541 |
AC_DEFINE_UNQUOTED([WITH_XEN_INOTIFY], 1,[whether Xen inotify sub-driver is enabled])
|
|
542 |
fi
|
|
543 |
AM_CONDITIONAL([WITH_XEN_INOTIFY], [test "$with_xen_inotify" = "yes"])
|
|
544 |
||
545 |
dnl
|
|
546 |
dnl check for kvm headers
|
|
547 |
dnl
|
|
548 |
AC_CHECK_HEADERS([linux/kvm.h])
|
|
549 |
||
550 |
dnl
|
|
551 |
dnl check for sufficient headers for LXC
|
|
552 |
dnl
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
553 |
if test "$with_libvirtd" = "no" ; then
|
554 |
with_lxc=no
|
|
555 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
556 |
if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
557 |
AC_TRY_LINK([#define _GNU_SOURCE
|
558 |
#include <sched.h>
|
|
559 |
], [
|
|
560 |
unshare (1);
|
|
561 |
], [
|
|
562 |
with_lxc=yes
|
|
563 |
], [
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
564 |
if test "$with_lxc" = "check"; then
|
565 |
with_lxc=no
|
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
566 |
AC_MSG_NOTICE([Function unshare() not present in <sched.h> header but required for LXC driver, disabling it])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
567 |
else
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
568 |
AC_MSG_ERROR([Function unshare() not present in <sched.h> header, but required for LXC driver])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
569 |
fi
|
570 |
])
|
|
571 |
fi
|
|
572 |
if test "$with_lxc" = "yes" ; then
|
|
573 |
AC_DEFINE_UNQUOTED([WITH_LXC], 1, [whether LXC driver is enabled])
|
|
574 |
fi
|
|
575 |
AM_CONDITIONAL([WITH_LXC], [test "$with_lxc" = "yes"])
|
|
576 |
||
577 |
||
578 |
dnl
|
|
579 |
dnl check for kernel headers required by src/bridge.c
|
|
580 |
dnl
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
581 |
if test "$with_qemu" = "yes" || test "$with_lxc" = "yes" ; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
582 |
AC_CHECK_HEADERS([linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h],,
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
583 |
AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support]))
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
584 |
fi
|
585 |
||
586 |
||
587 |
dnl Need to test if pkg-config exists
|
|
588 |
PKG_PROG_PKG_CONFIG
|
|
589 |
||
590 |
dnl OpenNebula driver Compilation setting
|
|
591 |
dnl
|
|
592 |
||
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
593 |
if test "$with_libvirtd" = "no" ; then
|
594 |
with_one=no
|
|
595 |
fi
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
596 |
XMLRPC_CFLAGS=
|
597 |
XMLRPC_LIBS=
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
598 |
if test "x$with_one" = "xyes" || test "x$with_one" = "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
599 |
PKG_CHECK_MODULES(XMLRPC, xmlrpc_client >= $XMLRPC_REQUIRED,
|
600 |
[with_one=yes], [
|
|
601 |
if test "x$with_one" = "xcheck" ; then
|
|
602 |
with_one=no
|
|
603 |
else
|
|
604 |
AC_MSG_ERROR(
|
|
605 |
[You must install XMLRPC-C >= $XMLRPC_REQUIRED to compile libvirt ONE driver])
|
|
606 |
fi
|
|
607 |
])
|
|
608 |
if test "x$with_one" = "xyes" ; then
|
|
609 |
AC_DEFINE_UNQUOTED([HAVE_XMLRPC], 1,
|
|
610 |
[whether One is used to broadcast server presence])
|
|
611 |
fi
|
|
612 |
fi
|
|
613 |
AM_CONDITIONAL([HAVE_XMLRPC], [test "x$with_one" = "xyes"])
|
|
614 |
AM_CONDITIONAL([WITH_ONE], [test "x$with_one" = "xyes"])
|
|
615 |
AC_SUBST([XMLRPC_CFLAGS])
|
|
616 |
AC_SUBST([XMLRPC_LIBS])
|
|
617 |
||
618 |
||
619 |
dnl ==========================================================================
|
|
620 |
dnl find libxml2 library, borrowed from xmlsec
|
|
621 |
dnl ==========================================================================
|
|
622 |
LIBXML_CONFIG="xml2-config"
|
|
623 |
LIBXML_CFLAGS=""
|
|
624 |
LIBXML_LIBS=""
|
|
625 |
LIBXML_FOUND="no"
|
|
626 |
||
627 |
AC_ARG_WITH([libxml], AC_HELP_STRING([--with-libxml=@<:@PFX@:>@], [libxml2 location]))
|
|
628 |
if test "x$with_libxml" = "xno" ; then
|
|
629 |
AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_REQUIRED)
|
|
630 |
AC_MSG_ERROR([libxml2 >= $LIBXML_REQUIRED is required for libvirt])
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
631 |
elif test "x$with_libxml" = "x" && test "x$PKG_CONFIG" != "x" ; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
632 |
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED, [LIBXML_FOUND=yes], [LIBXML_FOUND=no])
|
633 |
fi
|
|
634 |
if test "$LIBXML_FOUND" = "no" ; then
|
|
635 |
if test "x$with_libxml" != "x" ; then
|
|
636 |
LIBXML_CONFIG=$with_libxml/bin/$LIBXML_CONFIG
|
|
637 |
fi
|
|
638 |
AC_MSG_CHECKING(libxml2 $LIBXML_CONFIG >= $LIBXML_REQUIRED )
|
|
639 |
if ! $LIBXML_CONFIG --version > /dev/null 2>&1 ; then
|
|
640 |
AC_MSG_ERROR([Could not find libxml2 anywhere (see config.log for details).])
|
|
641 |
fi
|
|
642 |
vers=`$LIBXML_CONFIG --version | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
|
643 |
minvers=`echo $LIBXML_REQUIRED | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
|
644 |
if test "$vers" -ge "$minvers" ; then
|
|
645 |
LIBXML_LIBS="`$LIBXML_CONFIG --libs`"
|
|
646 |
LIBXML_CFLAGS="`$LIBXML_CONFIG --cflags`"
|
|
647 |
LIBXML_FOUND="yes"
|
|
648 |
AC_MSG_RESULT(yes)
|
|
649 |
else
|
|
650 |
AC_MSG_ERROR(
|
|
651 |
[You need at least libxml2 $LIBXML_REQUIRED for this version of libvirt])
|
|
652 |
fi
|
|
653 |
fi
|
|
654 |
||
655 |
AC_SUBST([LIBXML_CFLAGS])
|
|
656 |
AC_SUBST([LIBXML_LIBS])
|
|
657 |
||
658 |
dnl xmlURI structure has query_raw?
|
|
659 |
old_cflags="$CFLAGS"
|
|
660 |
old_libs="$LIBS"
|
|
661 |
CFLAGS="$CFLAGS $LIBXML_CFLAGS"
|
|
662 |
LIBS="$LIBS $LIBXML_LIBS"
|
|
663 |
AC_CHECK_MEMBER([struct _xmlURI.query_raw],
|
|
664 |
[AC_DEFINE([HAVE_XMLURI_QUERY_RAW], [], [Have query_raw field in libxml2 xmlURI structure])],,
|
|
665 |
[#include <libxml/uri.h>])
|
|
666 |
CFLAGS="$old_cflags"
|
|
667 |
LIBS="$old_libs"
|
|
668 |
||
669 |
dnl GnuTLS library
|
|
670 |
GNUTLS_CFLAGS=
|
|
671 |
GNUTLS_LIBS=
|
|
672 |
GNUTLS_FOUND=no
|
|
673 |
if test -x "$PKG_CONFIG" ; then
|
|
674 |
PKG_CHECK_MODULES(GNUTLS, gnutls >= $GNUTLS_REQUIRED,
|
|
675 |
[GNUTLS_FOUND=yes], [GNUTLS_FOUND=no])
|
|
676 |
fi
|
|
677 |
if test "$GNUTLS_FOUND" = "no"; then
|
|
678 |
fail=0
|
|
679 |
old_libs="$LIBS"
|
|
680 |
AC_CHECK_HEADER([gnutls/gnutls.h], [], [fail=1])
|
|
681 |
AC_CHECK_LIB([gnutls], [gnutls_handshake],[], [fail=1], [-lgcrypt])
|
|
682 |
||
683 |
test $fail = 1 &&
|
|
684 |
AC_MSG_ERROR([You must install the GnuTLS library in order to compile and run libvirt])
|
|
685 |
||
686 |
dnl Not all versions of gnutls include -lgcrypt, and so we add
|
|
687 |
dnl it explicitly for the calls to gcry_control/check_version
|
|
688 |
GNUTLS_LIBS="$LIBS -lgcrypt"
|
|
689 |
LIBS="$old_libs"
|
|
690 |
else
|
|
691 |
GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
|
|
692 |
fi
|
|
693 |
||
694 |
AC_SUBST([GNUTLS_CFLAGS])
|
|
695 |
AC_SUBST([GNUTLS_LIBS])
|
|
696 |
||
697 |
dnl Old versions of GnuTLS uses types like 'gnutls_session' instead |
|
698 |
dnl of 'gnutls_session_t'. Try to detect this type if defined so |
|
699 |
dnl that we can offer backwards compatibility.
|
|
700 |
old_cflags="$CFLAGS"
|
|
701 |
old_libs="$LIBS"
|
|
702 |
CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
|
|
703 |
LIBS="$LIBS $GNUTLS_LIBS"
|
|
704 |
AC_CHECK_TYPE([gnutls_session],
|
|
705 |
AC_DEFINE([GNUTLS_1_0_COMPAT],[],
|
|
706 |
[enable GnuTLS 1.0 compatibility macros]),,
|
|
707 |
[#include <gnutls/gnutls.h>])
|
|
708 |
CFLAGS="$old_cflags"
|
|
709 |
LIBS="$old_libs"
|
|
710 |
||
711 |
||
712 |
dnl Cyrus SASL
|
|
713 |
AC_ARG_WITH([sasl],
|
|
714 |
AC_HELP_STRING([--with-sasl], [use cyrus SASL for authentication @<:@default=check@:>@]),
|
|
715 |
[],
|
|
716 |
[with_sasl=check])
|
|
717 |
||
718 |
SASL_CFLAGS=
|
|
719 |
SASL_LIBS=
|
|
720 |
if test "x$with_sasl" != "xno"; then
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
721 |
if test "x$with_sasl" != "xyes" && test "x$with_sasl" != "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
722 |
SASL_CFLAGS="-I$with_sasl"
|
723 |
SASL_LIBS="-L$with_sasl"
|
|
724 |
fi
|
|
725 |
fail=0
|
|
726 |
old_cflags="$CFLAGS"
|
|
727 |
old_libs="$LIBS"
|
|
728 |
CFLAGS="$CFLAGS $SASL_CFLAGS"
|
|
729 |
LIBS="$LIBS $SASL_LIBS"
|
|
730 |
AC_CHECK_HEADER([sasl/sasl.h],[],[
|
|
731 |
if test "x$with_sasl" = "xcheck" ; then
|
|
732 |
with_sasl=no
|
|
733 |
else
|
|
734 |
fail=1
|
|
735 |
fi])
|
|
736 |
if test "x$with_sasl" != "xno" ; then
|
|
737 |
AC_CHECK_LIB([sasl2], [sasl_client_init],[
|
|
738 |
SASL_LIBS="$SASL_LIBS -lsasl2"
|
|
739 |
with_sasl=yes
|
|
740 |
],[
|
|
741 |
AC_CHECK_LIB([sasl], [sasl_client_init],[
|
|
742 |
SASL_LIBS="$SASL_LIBS -lsasl"
|
|
743 |
with_sasl=yes
|
|
744 |
],[
|
|
745 |
if test "x$with_sasl" = "xcheck" ; then
|
|
746 |
with_sasl=no
|
|
747 |
else
|
|
748 |
fail=1
|
|
749 |
fi
|
|
750 |
])
|
|
751 |
])
|
|
752 |
fi
|
|
753 |
test $fail = 1 &&
|
|
754 |
AC_MSG_ERROR([You must install the Cyrus SASL development package in order to compile libvirt])
|
|
755 |
CFLAGS="$old_cflags"
|
|
756 |
LIBS="$old_libs"
|
|
757 |
if test "x$with_sasl" = "xyes" ; then
|
|
758 |
AC_DEFINE_UNQUOTED([HAVE_SASL], 1,
|
|
759 |
[whether Cyrus SASL is available for authentication])
|
|
760 |
fi
|
|
761 |
fi
|
|
762 |
AM_CONDITIONAL([HAVE_SASL], [test "x$with_sasl" = "xyes"])
|
|
763 |
AC_SUBST([SASL_CFLAGS])
|
|
764 |
AC_SUBST([SASL_LIBS])
|
|
765 |
||
766 |
||
767 |
dnl YAJL JSON library http://lloyd.github.com/yajl/
|
|
768 |
AC_ARG_WITH([yajl],
|
|
769 |
AC_HELP_STRING([--with-yajl], [use YAJL for JSON parsing/formatting @<:@default=check@:>@]),
|
|
770 |
[],
|
|
771 |
[with_yajl=check])
|
|
772 |
||
773 |
YAJL_CFLAGS=
|
|
774 |
YAJL_LIBS=
|
|
775 |
if test "x$with_yajl" != "xno"; then
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
776 |
if test "x$with_yajl" != "xyes" && test "x$with_yajl" != "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
777 |
YAJL_CFLAGS="-I$with_yajl/include"
|
778 |
YAJL_LIBS="-L$with_yajl/lib"
|
|
779 |
fi
|
|
780 |
fail=0
|
|
781 |
old_cppflags="$CPPFLAGS"
|
|
782 |
old_libs="$LIBS"
|
|
783 |
CPPFLAGS="$CPPFLAGS $YAJL_CFLAGS"
|
|
784 |
LIBS="$LIBS $YAJL_LIBS"
|
|
785 |
AC_CHECK_HEADER([yajl/yajl_common.h],[],[
|
|
786 |
if test "x$with_yajl" = "xcheck" ; then
|
|
787 |
with_yajl=no
|
|
788 |
else
|
|
789 |
fail=1
|
|
790 |
fi])
|
|
791 |
if test "x$with_yajl" != "xno" ; then
|
|
792 |
AC_CHECK_LIB([yajl], [yajl_parse],[
|
|
793 |
YAJL_LIBS="$YAJL_LIBS -lyajl"
|
|
794 |
with_yajl=yes
|
|
795 |
],[
|
|
796 |
if test "x$with_yajl" = "xcheck" ; then
|
|
797 |
with_yajl=no
|
|
798 |
else
|
|
799 |
fail=1
|
|
800 |
fi
|
|
801 |
])
|
|
802 |
fi
|
|
803 |
test $fail = 1 &&
|
|
804 |
AC_MSG_ERROR([You must install the YAJL development package in order to compile libvirt])
|
|
805 |
CPPFLAGS="$old_cppflags"
|
|
806 |
LIBS="$old_libs"
|
|
807 |
if test "x$with_yajl" = "xyes" ; then
|
|
808 |
AC_DEFINE_UNQUOTED([HAVE_YAJL], 1,
|
|
809 |
[whether YAJL is available for JSON parsing/formatting])
|
|
810 |
fi
|
|
811 |
fi
|
|
812 |
AM_CONDITIONAL([HAVE_YAJL], [test "x$with_yajl" = "xyes"])
|
|
813 |
AC_SUBST([YAJL_CFLAGS])
|
|
814 |
AC_SUBST([YAJL_LIBS])
|
|
815 |
||
816 |
||
817 |
dnl PolicyKit library
|
|
818 |
POLKIT_CFLAGS=
|
|
819 |
POLKIT_LIBS=
|
|
820 |
PKCHECK_PATH=
|
|
821 |
AC_ARG_WITH([polkit],
|
|
822 |
AC_HELP_STRING([--with-polkit], [use PolicyKit for UNIX socket access checks @<:@default=check@:>@]),
|
|
823 |
[],
|
|
824 |
[with_polkit=check])
|
|
825 |
||
826 |
with_polkit0=no
|
|
827 |
with_polkit1=no
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
828 |
if test "x$with_polkit" = "xyes" || test "x$with_polkit" = "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
829 |
dnl Check for new polkit first - just a binary
|
830 |
AC_PATH_PROG([PKCHECK_PATH],[pkcheck], [], [/usr/sbin:$PATH])
|
|
831 |
if test "x$PKCHECK_PATH" != "x" ; then
|
|
832 |
AC_DEFINE_UNQUOTED([PKCHECK_PATH],["$PKCHECK_PATH"],[Location of pkcheck program])
|
|
833 |
AC_DEFINE_UNQUOTED([HAVE_POLKIT], 1,
|
|
834 |
[use PolicyKit for UNIX socket access checks])
|
|
835 |
AC_DEFINE_UNQUOTED([HAVE_POLKIT1], 1,
|
|
836 |
[use PolicyKit for UNIX socket access checks])
|
|
837 |
with_polkit="yes"
|
|
838 |
with_polkit1="yes"
|
|
839 |
else
|
|
840 |
dnl Check for old polkit second - library + binary
|
|
841 |
PKG_CHECK_MODULES(POLKIT, polkit-dbus >= $POLKIT_REQUIRED,
|
|
842 |
[with_polkit=yes], [
|
|
843 |
if test "x$with_polkit" = "xcheck" ; then
|
|
844 |
with_polkit=no
|
|
845 |
else
|
|
846 |
AC_MSG_ERROR(
|
|
847 |
[You must install PolicyKit >= $POLKIT_REQUIRED to compile libvirt])
|
|
848 |
fi
|
|
849 |
])
|
|
850 |
if test "x$with_polkit" = "xyes" ; then
|
|
851 |
AC_DEFINE_UNQUOTED([HAVE_POLKIT], 1,
|
|
852 |
[use PolicyKit for UNIX socket access checks])
|
|
853 |
AC_DEFINE_UNQUOTED([HAVE_POLKIT0], 1,
|
|
854 |
[use PolicyKit for UNIX socket access checks])
|
|
855 |
||
856 |
old_CFLAGS=$CFLAGS
|
|
857 |
old_LIBS=$LIBS
|
|
858 |
CFLAGS="$CFLAGS $POLKIT_CFLAGS"
|
|
859 |
LIBS="$LIBS $POLKIT_LIBS"
|
|
860 |
AC_CHECK_FUNCS([polkit_context_is_caller_authorized])
|
|
861 |
CFLAGS="$old_CFLAGS"
|
|
862 |
LIBS="$old_LIBS"
|
|
863 |
||
864 |
AC_PATH_PROG([POLKIT_AUTH], [polkit-auth])
|
|
865 |
if test "x$POLKIT_AUTH" != "x"; then
|
|
866 |
AC_DEFINE_UNQUOTED([POLKIT_AUTH],["$POLKIT_AUTH"],[Location of polkit-auth program])
|
|
867 |
fi
|
|
868 |
with_polkit0="yes"
|
|
869 |
fi
|
|
870 |
fi
|
|
871 |
fi
|
|
872 |
AM_CONDITIONAL([HAVE_POLKIT], [test "x$with_polkit" = "xyes"])
|
|
873 |
AM_CONDITIONAL([HAVE_POLKIT0], [test "x$with_polkit0" = "xyes"])
|
|
874 |
AM_CONDITIONAL([HAVE_POLKIT1], [test "x$with_polkit1" = "xyes"])
|
|
875 |
AC_SUBST([POLKIT_CFLAGS])
|
|
876 |
AC_SUBST([POLKIT_LIBS])
|
|
877 |
||
878 |
dnl Avahi library
|
|
879 |
AC_ARG_WITH([avahi],
|
|
880 |
AC_HELP_STRING([--with-avahi], [use avahi to advertise remote daemon @<:@default=check@:>@]),
|
|
881 |
[],
|
|
882 |
[with_avahi=check])
|
|
883 |
||
884 |
AVAHI_CFLAGS=
|
|
885 |
AVAHI_LIBS=
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
886 |
if test "x$with_avahi" = "xyes" || test "x$with_avahi" = "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
887 |
PKG_CHECK_MODULES(AVAHI, avahi-client >= $AVAHI_REQUIRED,
|
888 |
[with_avahi=yes], [
|
|
889 |
if test "x$with_avahi" = "xcheck" ; then
|
|
890 |
with_avahi=no
|
|
891 |
else
|
|
892 |
AC_MSG_ERROR(
|
|
893 |
[You must install Avahi >= $AVAHI_REQUIRED to compile libvirt])
|
|
894 |
fi
|
|
895 |
])
|
|
896 |
if test "x$with_avahi" = "xyes" ; then
|
|
897 |
AC_DEFINE_UNQUOTED([HAVE_AVAHI], 1,
|
|
898 |
[whether Avahi is used to broadcast server presense])
|
|
899 |
fi
|
|
900 |
fi
|
|
901 |
AM_CONDITIONAL([HAVE_AVAHI], [test "x$with_avahi" = "xyes"])
|
|
902 |
AC_SUBST([AVAHI_CFLAGS])
|
|
903 |
AC_SUBST([AVAHI_LIBS])
|
|
904 |
||
905 |
dnl SELinux
|
|
906 |
AC_ARG_WITH([selinux],
|
|
907 |
AC_HELP_STRING([--with-selinux], [use SELinux to manage security @<:@default=check@:>@]),
|
|
908 |
[],
|
|
909 |
[with_selinux=check])
|
|
910 |
||
911 |
SELINUX_CFLAGS=
|
|
912 |
SELINUX_LIBS=
|
|
913 |
if test "$with_selinux" != "no"; then
|
|
914 |
old_cflags="$CFLAGS"
|
|
915 |
old_libs="$LIBS"
|
|
916 |
if test "$with_selinux" = "check"; then
|
|
917 |
AC_CHECK_HEADER([selinux/selinux.h],[],[with_selinux=no])
|
|
918 |
AC_CHECK_LIB([selinux], [fgetfilecon],[],[with_selinux=no])
|
|
919 |
if test "$with_selinux" != "no"; then
|
|
920 |
with_selinux="yes"
|
|
921 |
fi
|
|
922 |
else
|
|
923 |
fail=0
|
|
924 |
AC_CHECK_HEADER([selinux/selinux.h],[],[fail=1])
|
|
925 |
AC_CHECK_LIB([selinux], [fgetfilecon],[],[fail=1])
|
|
926 |
test $fail = 1 &&
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
927 |
AC_MSG_ERROR([You must install the libselinux development package in order to compile libvirt with basic SELinux support])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
928 |
fi
|
929 |
CFLAGS="$old_cflags"
|
|
930 |
LIBS="$old_libs"
|
|
931 |
fi
|
|
932 |
if test "$with_selinux" = "yes"; then
|
|
933 |
SELINUX_LIBS="-lselinux"
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
934 |
AC_DEFINE_UNQUOTED([HAVE_SELINUX], 1, [whether basic SELinux functionality is available])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
935 |
fi
|
936 |
AM_CONDITIONAL([HAVE_SELINUX], [test "$with_selinux" != "no"])
|
|
937 |
AC_SUBST([SELINUX_CFLAGS])
|
|
938 |
AC_SUBST([SELINUX_LIBS])
|
|
939 |
||
940 |
||
941 |
AC_ARG_WITH([secdriver-selinux],
|
|
942 |
AC_HELP_STRING([--with-secdriver-selinux], [use SELinux security driver @<:@default=check@:>@]),
|
|
943 |
[],
|
|
944 |
[with_secdriver_selinux=check])
|
|
945 |
||
946 |
if test "$with_selinux" != "yes" ; then
|
|
947 |
if test "$with_secdriver_selinux" = "check" ; then
|
|
948 |
with_secdriver_selinux=no
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
949 |
elif test "$with_secdriver_selinux" = "yes"; then
|
950 |
AC_MSG_ERROR([You must install the libselinux development package and enable SELinux with the --with-selinux=yes in order to compile libvirt --with-secdriver-selinux=yes])
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
951 |
fi
|
952 |
else
|
|
953 |
old_cflags="$CFLAGS"
|
|
954 |
old_libs="$LIBS"
|
|
955 |
CFLAGS="$CFLAGS $SELINUX_CFLAGS"
|
|
956 |
LIBS="$CFLAGS $SELINUX_LIBS"
|
|
957 |
||
958 |
fail=0
|
|
959 |
AC_CHECK_FUNC([selinux_virtual_domain_context_path], [], [fail=1])
|
|
960 |
AC_CHECK_FUNC([selinux_virtual_image_context_path], [], [fail=1])
|
|
961 |
CFLAGS="$old_cflags"
|
|
962 |
LIBS="$old_libs"
|
|
963 |
||
964 |
if test "$fail" = "1" ; then
|
|
965 |
if test "$with_secdriver_selinux" = "check" ; then
|
|
966 |
with_secdriver_selinux=no
|
|
967 |
else
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
968 |
AC_MSG_ERROR([You must install libselinux development package >= 2.0.82 in order to compile libvirt --with-secdriver-selinux=yes])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
969 |
fi
|
970 |
else
|
|
971 |
with_secdriver_selinux=yes
|
|
972 |
AC_DEFINE_UNQUOTED([WITH_SECDRIVER_SELINUX], 1, [whether SELinux security driver is available])
|
|
973 |
fi
|
|
974 |
fi
|
|
975 |
AM_CONDITIONAL([WITH_SECDRIVER_SELINUX], [test "$with_secdriver_selinux" != "no"])
|
|
976 |
||
977 |
||
978 |
dnl AppArmor
|
|
979 |
AC_ARG_WITH([apparmor],
|
|
980 |
AC_HELP_STRING([--with-apparmor], [use AppArmor to manage security @<:@default=check@:>@]),
|
|
981 |
[],
|
|
982 |
[with_apparmor=check])
|
|
983 |
||
984 |
APPARMOR_CFLAGS=
|
|
985 |
APPARMOR_LIBS=
|
|
986 |
if test "$with_apparmor" != "no"; then
|
|
987 |
old_cflags="$CFLAGS"
|
|
988 |
old_libs="$LIBS"
|
|
989 |
if test "$with_apparmor" = "check"; then
|
|
990 |
AC_CHECK_HEADER([sys/apparmor.h],[],[with_apparmor=no])
|
|
991 |
AC_CHECK_LIB([apparmor], [aa_change_profile],[],[with_apparmor=no])
|
|
992 |
AC_CHECK_LIB([apparmor], [aa_change_hat],[],[with_apparmor=no])
|
|
993 |
if test "$with_apparmor" != "no"; then
|
|
994 |
with_apparmor="yes"
|
|
995 |
fi
|
|
996 |
else
|
|
997 |
fail=0
|
|
998 |
AC_CHECK_HEADER([sys/apparmor.h],[],[fail=1])
|
|
999 |
AC_CHECK_LIB([apparmor], [aa_change_profile],[],[fail=1])
|
|
1000 |
AC_CHECK_LIB([apparmor], [aa_change_hat],[],[fail=1])
|
|
1001 |
test $fail = 1 &&
|
|
1002 |
AC_MSG_ERROR([You must install the AppArmor development package in order to compile libvirt])
|
|
1003 |
fi
|
|
1004 |
CFLAGS="$old_cflags"
|
|
1005 |
LIBS="$old_libs"
|
|
1006 |
fi
|
|
1007 |
if test "$with_apparmor" = "yes"; then
|
|
1008 |
APPARMOR_LIBS="-lapparmor"
|
|
1009 |
AC_DEFINE_UNQUOTED([HAVE_APPARMOR], 1, [whether AppArmor is available for security])
|
|
1010 |
AC_DEFINE_UNQUOTED([APPARMOR_DIR], "/etc/apparmor.d", [path to apparmor directory])
|
|
1011 |
AC_DEFINE_UNQUOTED([APPARMOR_PROFILES_PATH], "/sys/kernel/security/apparmor/profiles", [path to kernel profiles])
|
|
1012 |
fi
|
|
1013 |
AM_CONDITIONAL([HAVE_APPARMOR], [test "$with_apparmor" != "no"])
|
|
1014 |
AC_SUBST([APPARMOR_CFLAGS])
|
|
1015 |
AC_SUBST([APPARMOR_LIBS])
|
|
1016 |
||
1017 |
||
1018 |
AC_ARG_WITH([secdriver-apparmor],
|
|
1019 |
AC_HELP_STRING([--with-secdriver-apparmor], [use AppArmor security driver @<:@default=check@:>@]),
|
|
1020 |
[],
|
|
1021 |
[with_secdriver_apparmor=check])
|
|
1022 |
||
1023 |
if test "$with_apparmor" != "yes" ; then
|
|
1024 |
if test "$with_secdriver_apparmor" = "check" ; then
|
|
1025 |
with_secdriver_apparmor=no
|
|
1026 |
else
|
|
1027 |
AC_MSG_ERROR([You must install the AppArmor development package in order to compile libvirt])
|
|
1028 |
fi
|
|
1029 |
else
|
|
1030 |
old_cflags="$CFLAGS"
|
|
1031 |
old_libs="$LIBS"
|
|
1032 |
CFLAGS="$CFLAGS $APPARMOR_CFLAGS"
|
|
1033 |
LIBS="$CFLAGS $APPARMOR_LIBS"
|
|
1034 |
||
1035 |
fail=0
|
|
1036 |
AC_CHECK_FUNC([change_hat], [], [fail=1])
|
|
1037 |
AC_CHECK_FUNC([aa_change_profile], [], [fail=1])
|
|
1038 |
CFLAGS="$old_cflags"
|
|
1039 |
LIBS="$old_libs"
|
|
1040 |
||
1041 |
if test "$fail" = "1" ; then
|
|
1042 |
if test "$with_secdriver_apparmor" = "check" ; then
|
|
1043 |
with_secdriver_apparmor=no
|
|
1044 |
else
|
|
1045 |
AC_MSG_ERROR([You must install the AppArmor development package in order to compile libvirt])
|
|
1046 |
fi
|
|
1047 |
else
|
|
1048 |
with_secdriver_apparmor=yes
|
|
1049 |
AC_DEFINE_UNQUOTED([WITH_SECDRIVER_APPARMOR], 1, [whether AppArmor security driver is available])
|
|
1050 |
fi
|
|
1051 |
fi
|
|
1052 |
AM_CONDITIONAL([WITH_SECDRIVER_APPARMOR], [test "$with_secdriver_apparmor" != "no"])
|
|
1053 |
||
1054 |
||
1055 |
||
1056 |
dnl NUMA lib
|
|
1057 |
AC_ARG_WITH([numactl],
|
|
1058 |
AC_HELP_STRING([--with-numactl], [use numactl for host topology info @<:@default=check@:>@]),
|
|
1059 |
[],
|
|
1060 |
[with_numactl=check])
|
|
1061 |
||
1062 |
NUMACTL_CFLAGS=
|
|
1063 |
NUMACTL_LIBS=
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1064 |
if test "$with_qemu" = "yes" && test "$with_numactl" != "no"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1065 |
old_cflags="$CFLAGS"
|
1066 |
old_libs="$LIBS"
|
|
1067 |
if test "$with_numactl" = "check"; then
|
|
1068 |
AC_CHECK_HEADER([numa.h],[],[with_numactl=no])
|
|
1069 |
AC_CHECK_LIB([numa], [numa_available],[],[with_numactl=no])
|
|
1070 |
if test "$with_numactl" != "no"; then
|
|
1071 |
with_numactl="yes"
|
|
1072 |
fi
|
|
1073 |
else
|
|
1074 |
fail=0
|
|
1075 |
AC_CHECK_HEADER([numa.h],[],[fail=1])
|
|
1076 |
AC_CHECK_LIB([numa], [numa_available],[],[fail=1])
|
|
1077 |
test $fail = 1 &&
|
|
1078 |
AC_MSG_ERROR([You must install the numactl development package in order to compile and run libvirt])
|
|
1079 |
fi
|
|
1080 |
CFLAGS="$old_cflags"
|
|
1081 |
LIBS="$old_libs"
|
|
1082 |
fi
|
|
1083 |
if test "$with_numactl" = "yes"; then
|
|
1084 |
NUMACTL_LIBS="-lnuma"
|
|
1085 |
AC_DEFINE_UNQUOTED([HAVE_NUMACTL], 1, [whether numactl is available for topology info])
|
|
1086 |
fi
|
|
1087 |
AM_CONDITIONAL([HAVE_NUMACTL], [test "$with_numactl" != "no"])
|
|
1088 |
AC_SUBST([NUMACTL_CFLAGS])
|
|
1089 |
AC_SUBST([NUMACTL_LIBS])
|
|
1090 |
||
1091 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1092 |
dnl pcap lib
|
1093 |
LIBPCAP_CONFIG="pcap-config"
|
|
1094 |
LIBPCAP_CFLAGS=""
|
|
1095 |
LIBPCAP_LIBS=""
|
|
1096 |
LIBPCAP_FOUND="no"
|
|
1097 |
||
1098 |
AC_ARG_WITH([libpcap], AC_HELP_STRING([--with-libpcap=@<:@PFX@:>@], [libpcap location]))
|
|
1099 |
if test "$with_qemu" = "yes"; then
|
|
1100 |
if test "x$with_libpcap" != "xno" ; then
|
|
1101 |
if test "x$with_libpcap" != "x" ; then
|
|
1102 |
LIBPCAP_CONFIG=$with_libpcap/bin/$LIBPCAP_CONFIG
|
|
1103 |
fi
|
|
1104 |
AC_MSG_CHECKING(libpcap $LIBPCAP_CONFIG >= $LIBPCAP_REQUIRED )
|
|
1105 |
if ! $LIBPCAP_CONFIG --libs > /dev/null 2>&1 ; then
|
|
1106 |
AC_MSG_RESULT(no)
|
|
1107 |
else
|
|
1108 |
LIBPCAP_LIBS="`$LIBPCAP_CONFIG --libs`"
|
|
1109 |
LIBPCAP_CFLAGS="`$LIBPCAP_CONFIG --cflags`"
|
|
1110 |
LIBPCAP_FOUND="yes"
|
|
1111 |
AC_MSG_RESULT(yes)
|
|
1112 |
fi
|
|
1113 |
fi
|
|
1114 |
fi
|
|
1115 |
||
1116 |
if test "x$LIBPCAP_FOUND" = "xyes"; then
|
|
1117 |
AC_DEFINE_UNQUOTED([HAVE_LIBPCAP], 1, [whether libpcap can be used])
|
|
1118 |
fi
|
|
1119 |
||
1120 |
AC_SUBST([LIBPCAP_CFLAGS])
|
|
1121 |
AC_SUBST([LIBPCAP_LIBS])
|
|
1122 |
||
1123 |
||
1124 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1125 |
dnl
|
1126 |
dnl Checks for the UML driver
|
|
1127 |
dnl
|
|
1128 |
||
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
1129 |
if test "$with_libvirtd" = "no" ; then
|
1130 |
with_uml=no
|
|
1131 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1132 |
if test "$with_uml" = "yes" || test "$with_uml" = "check"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1133 |
AC_CHECK_HEADER([sys/inotify.h], [
|
1134 |
with_uml=yes
|
|
1135 |
], [
|
|
1136 |
if test "$with_uml" = "check"; then
|
|
1137 |
with_uml=no
|
|
1138 |
AC_MSG_NOTICE([<sys/inotify.h> is required for the UML driver, disabling it])
|
|
1139 |
else
|
|
1140 |
AC_MSG_ERROR([The <sys/inotify.h> is required for the UML driver. Upgrade your libc6.])
|
|
1141 |
fi
|
|
1142 |
])
|
|
1143 |
fi
|
|
1144 |
if test "$with_uml" = "yes" ; then
|
|
1145 |
AC_DEFINE_UNQUOTED([WITH_UML], 1, [whether UML driver is enabled])
|
|
1146 |
fi
|
|
1147 |
AM_CONDITIONAL([WITH_UML], [test "$with_uml" = "yes"])
|
|
1148 |
||
1149 |
||
1150 |
||
1151 |
dnl
|
|
1152 |
dnl libssh checks
|
|
1153 |
dnl
|
|
1154 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1155 |
if test "$with_libssh2" != "yes" && test "$with_libssh2" != "no"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1156 |
libssh2_path="$with_libssh2"
|
1157 |
elif test "$with_libssh2" = "yes"; then
|
|
1158 |
libssh2_path="/usr/local/lib/"
|
|
1159 |
elif test "$with_libssh2" = "no"; then
|
|
1160 |
with_phyp="no";
|
|
1161 |
fi
|
|
1162 |
||
1163 |
if test "$with_phyp" = "check"; then
|
|
1164 |
AC_CHECK_LIB([ssh2],[libssh2_session_startup],[
|
|
1165 |
LIBSSH2_LIBS="$LIBSSH2_LIBS -lssh2 -L$libssh2_path"
|
|
1166 |
AC_SUBST([LIBSSH2_LIBS])
|
|
1167 |
],[
|
|
1168 |
with_phyp="no"
|
|
1169 |
with_libssh2="no";
|
|
1170 |
],[])
|
|
1171 |
||
1172 |
if test "$with_phyp" != "no"; then
|
|
1173 |
AC_CHECK_HEADERS([libssh2.h],[
|
|
1174 |
with_phyp="yes"
|
|
1175 |
LIBSSH2_CFLAGS="-I/usr/local/include"
|
|
1176 |
AC_SUBST([LIBSSH2_CFLAGS])
|
|
1177 |
],[
|
|
1178 |
with_phyp="no"
|
|
1179 |
with_libssh2="no";
|
|
1180 |
],[
|
|
1181 |
])
|
|
1182 |
fi
|
|
1183 |
||
1184 |
if test "$with_phyp" != "no"; then
|
|
1185 |
saved_libs="$LIBS"
|
|
1186 |
LIBS="$LIBS -L$libssh2_path -lssh2"
|
|
1187 |
AC_TRY_LINK([#include <libssh2.h>], [
|
|
1188 |
(void) libssh2_session_block_directions(NULL);
|
|
1189 |
], [
|
|
1190 |
AC_DEFINE_UNQUOTED([WITH_PHYP], 1, [whether IBM HMC / IVM driver is enabled])
|
|
1191 |
], [
|
|
1192 |
with_phyp=no
|
|
1193 |
AC_MSG_NOTICE([Function libssh2_session_block_directions() not present in your version of libssh2 but required for Phyp driver, disabling it])
|
|
1194 |
])
|
|
1195 |
LIBS="$saved_libs"
|
|
1196 |
fi
|
|
1197 |
elif test "$with_phyp" = "yes"; then
|
|
1198 |
AC_CHECK_LIB([ssh2],[libssh2_session_startup],[
|
|
1199 |
LIBSSH2_LIBS="$LIBSSH2_LIBS -lssh2 -L$libssh2_path"
|
|
1200 |
AC_SUBST([LIBSSH2_LIBS])],[
|
|
1201 |
AC_MSG_ERROR([You must install the libssh2 to compile Phyp driver.])
|
|
1202 |
])
|
|
1203 |
||
1204 |
AC_CHECK_HEADERS([libssh2.h],[
|
|
1205 |
LIBSSH2_CFLAGS="-I/usr/local/include"
|
|
1206 |
AC_SUBST([LIBSSH2_CFLAGS])],[
|
|
1207 |
AC_MSG_ERROR([Cannot find libssh2 headers. Is libssh2 installed ?])
|
|
1208 |
],[])
|
|
1209 |
||
1210 |
saved_libs="$LIBS"
|
|
1211 |
LIBS="$LIBS -lssh2"
|
|
1212 |
AC_TRY_LINK([#include <libssh2.h>], [
|
|
1213 |
(void) libssh2_session_block_directions(NULL);
|
|
1214 |
], [], [
|
|
1215 |
AC_MSG_ERROR([Function libssh2_session_block_directions() not present in your version of libssh2. Need >= 1.0])
|
|
1216 |
])
|
|
1217 |
LIBS="$saved_libs"
|
|
1218 |
||
1219 |
AC_DEFINE_UNQUOTED([WITH_PHYP], 1,
|
|
1220 |
[whether IBM HMC / IVM driver is enabled])
|
|
1221 |
fi
|
|
1222 |
AM_CONDITIONAL([WITH_PHYP],[test "$with_phyp" = "yes"])
|
|
1223 |
||
1224 |
dnl libcap-ng
|
|
1225 |
AC_ARG_WITH([capng],
|
|
1226 |
AC_HELP_STRING([--with-capng], [use libcap-ng to reduce libvirtd privileges @<:@default=check@:>@]),
|
|
1227 |
[],
|
|
1228 |
[with_capng=check])
|
|
1229 |
||
1230 |
dnl
|
|
1231 |
dnl This check looks for 'capng_updatev' since that was |
|
1232 |
dnl introduced in 0.4.0 release which need as minimum
|
|
1233 |
dnl
|
|
1234 |
CAPNG_CFLAGS=
|
|
1235 |
CAPNG_LIBS=
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1236 |
if test "$with_qemu" = "yes" && test "$with_capng" != "no"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1237 |
old_cflags="$CFLAGS"
|
1238 |
old_libs="$LIBS"
|
|
1239 |
if test "$with_capng" = "check"; then
|
|
1240 |
AC_CHECK_HEADER([cap-ng.h],[],[with_capng=no])
|
|
1241 |
AC_CHECK_LIB([cap-ng], [capng_updatev],[],[with_capng=no])
|
|
1242 |
if test "$with_capng" != "no"; then
|
|
1243 |
with_capng="yes"
|
|
1244 |
fi
|
|
1245 |
else
|
|
1246 |
fail=0
|
|
1247 |
AC_CHECK_HEADER([cap-ng.h],[],[fail=1])
|
|
1248 |
AC_CHECK_LIB([cap-ng], [capng_updatev],[],[fail=1])
|
|
1249 |
test $fail = 1 &&
|
|
1250 |
AC_MSG_ERROR([You must install the capng >= 0.4.0 development package in order to compile and run libvirt])
|
|
1251 |
fi
|
|
1252 |
CFLAGS="$old_cflags"
|
|
1253 |
LIBS="$old_libs"
|
|
1254 |
fi
|
|
1255 |
if test "$with_capng" = "yes"; then
|
|
1256 |
CAPNG_LIBS="-lcap-ng"
|
|
1257 |
AC_DEFINE_UNQUOTED([HAVE_CAPNG], 1, [whether capng is available for privilege reduction])
|
|
1258 |
fi
|
|
1259 |
AM_CONDITIONAL([HAVE_CAPNG], [test "$with_capng" != "no"])
|
|
1260 |
AC_SUBST([CAPNG_CFLAGS])
|
|
1261 |
AC_SUBST([CAPNG_LIBS])
|
|
1262 |
||
1263 |
||
1264 |
||
1265 |
dnl virsh libraries
|
|
1266 |
AC_CHECK_HEADERS([readline/readline.h])
|
|
1267 |
||
1268 |
# Check for readline.
|
|
1269 |
AC_CHECK_LIB([readline], [readline],
|
|
1270 |
[lv_use_readline=yes; VIRSH_LIBS="$VIRSH_LIBS -lreadline"],
|
|
1271 |
[lv_use_readline=no])
|
|
1272 |
||
1273 |
# If the above test failed, it may simply be that -lreadline requires
|
|
1274 |
# some termcap-related code, e.g., from one of the following libraries.
|
|
1275 |
# See if adding one of them to LIBS helps.
|
|
1276 |
if test $lv_use_readline = no; then
|
|
1277 |
lv_saved_libs=$LIBS
|
|
1278 |
LIBS=
|
|
1279 |
AC_SEARCH_LIBS([tgetent], [ncurses curses termcap termlib])
|
|
1280 |
case $LIBS in
|
|
1281 |
no*) ;; # handle "no" and "none required"
|
|
1282 |
*) # anything else is a -lLIBRARY
|
|
1283 |
# Now, check for -lreadline again, also using $LIBS.
|
|
1284 |
# Note: this time we use a different function, so that
|
|
1285 |
# we don't get a cached "no" result. |
|
1286 |
AC_CHECK_LIB([readline], [rl_initialize], |
|
1287 |
[lv_use_readline=yes |
|
1288 |
VIRSH_LIBS="$VIRSH_LIBS -lreadline $LIBS"],, |
|
1289 |
[$LIBS]) |
|
1290 |
;; |
|
1291 |
esac |
|
1292 |
test $lv_use_readline = no && |
|
1293 |
AC_MSG_WARN([readline library not found]) |
|
1294 |
LIBS=$lv_saved_libs |
|
1295 |
fi
|
|
1296 |
||
1297 |
if test $lv_use_readline = yes; then |
|
1298 |
AC_DEFINE_UNQUOTED([USE_READLINE], 1, |
|
1299 |
[whether virsh can use readline]) |
|
1300 |
READLINE_CFLAGS=-DUSE_READLINE |
|
1301 |
else
|
|
1302 |
READLINE_CFLAGS= |
|
1303 |
fi
|
|
1304 |
AC_SUBST([READLINE_CFLAGS]) |
|
1305 |
AC_SUBST([VIRSH_LIBS]) |
|
1306 |
||
1307 |
||
1308 |
AC_ARG_WITH([network], |
|
1309 |
AC_HELP_STRING([--with-network], [with virtual network driver @<:@default=yes@:>@]),[],[with_network=yes]) |
|
1310 |
if test "$with_libvirtd" = "no" ; then |
|
1311 |
with_network=no |
|
1312 |
fi
|
|
1313 |
if test "$with_network" = "yes" ; then |
|
1314 |
AC_DEFINE_UNQUOTED([WITH_NETWORK], 1, [whether network driver is enabled]) |
|
1315 |
fi
|
|
1316 |
AM_CONDITIONAL([WITH_NETWORK], [test "$with_network" = "yes"]) |
|
1317 |
||
1318 |
with_bridge=no |
|
1319 |
if test "$with_qemu:$with_lxc:$with_network" != "no:no:no"; then |
|
1320 |
with_bridge=yes |
|
1321 |
AC_DEFINE_UNQUOTED([WITH_BRIDGE], 1, [whether bridge code is needed]) |
|
1322 |
fi
|
|
1323 |
AM_CONDITIONAL([WITH_BRIDGE], [test "$with_bridge" = "yes"]) |
|
1324 |
||
1325 |
dnl netcf library |
|
1326 |
AC_ARG_WITH([netcf], |
|
1327 |
AC_HELP_STRING([--with-netcf], [libnetcf support to configure physical host network interfaces @<:@default=check@:>@]), |
|
1328 |
[], [with_netcf=check]) |
|
1329 |
||
1330 |
NETCF_CFLAGS= |
|
1331 |
NETCF_LIBS= |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1332 |
if test "$with_netcf" = "yes" || test "$with_netcf" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1333 |
PKG_CHECK_MODULES(NETCF, netcf >= $NETCF_REQUIRED, |
1334 |
[with_netcf=yes], [ |
|
1335 |
if test "$with_netcf" = "check" ; then
|
|
1336 |
with_netcf=no
|
|
1337 |
else
|
|
1338 |
AC_MSG_ERROR(
|
|
1339 |
[You must install libnetcf >= $NETCF_REQUIRED to compile libvirt]) |
|
1340 |
fi |
|
1341 |
]) |
|
1342 |
if test "$with_netcf" = "yes" ; then |
|
1343 |
AC_DEFINE_UNQUOTED([WITH_NETCF], 1, |
|
1344 |
[whether libnetcf is available to configure physical host network interfaces]) |
|
1345 |
fi |
|
1346 |
fi
|
|
1347 |
AM_CONDITIONAL([WITH_NETCF], [test "$with_netcf" = "yes"]) |
|
1348 |
AC_SUBST([NETCF_CFLAGS]) |
|
1349 |
AC_SUBST([NETCF_LIBS]) |
|
1350 |
||
1351 |
||
1352 |
with_secrets=yes |
|
1353 |
if test "$with_libvirtd" = "no"; then |
|
1354 |
with_secrets=no |
|
1355 |
fi
|
|
1356 |
if test "$with_secrets" = "yes" ; then |
|
1357 |
AC_DEFINE_UNQUOTED([WITH_SECRETS], 1, [whether local secrets management driver is available]) |
|
1358 |
fi
|
|
1359 |
AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"]) |
|
1360 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1361 |
with_nwfilter=yes |
1362 |
if test "$with_libvirtd" = "no"; then |
|
1363 |
with_nwfilter=no |
|
1364 |
fi
|
|
1365 |
if test "$with_nwfilter" = "yes" ; then |
|
1366 |
AC_DEFINE([WITH_NWFILTER], 1, [whether local network filter management driver is available]) |
|
1367 |
fi
|
|
1368 |
AM_CONDITIONAL([WITH_NWFILTER], [test "$with_nwfilter" = "yes"]) |
|
1369 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1370 |
|
1371 |
AC_ARG_WITH([storage-fs], |
|
1372 |
AC_HELP_STRING([--with-storage-fs], [with FileSystem backend for the storage driver @<:@default=check@:>@]),[],[with_storage_fs=check]) |
|
1373 |
AC_ARG_WITH([storage-lvm], |
|
1374 |
AC_HELP_STRING([--with-storage-lvm], [with LVM backend for the storage driver @<:@default=check@:>@]),[],[with_storage_lvm=check]) |
|
1375 |
AC_ARG_WITH([storage-iscsi], |
|
1376 |
AC_HELP_STRING([--with-storage-iscsi], [with iSCSI backend for the storage driver @<:@default=check@:>@]),[],[with_storage_iscsi=check]) |
|
1377 |
AC_ARG_WITH([storage-scsi], |
|
1378 |
AC_HELP_STRING([--with-storage-scsi], [with SCSI backend for the storage driver @<:@default=check@:>@]),[],[with_storage_scsi=check]) |
|
1379 |
AC_ARG_WITH([storage-mpath], |
|
1380 |
AC_HELP_STRING([--with-storage-mpath], [with mpath backend for the storage driver @<:@default=check@:>@]),[],[with_storage_mpath=check]) |
|
1381 |
AC_ARG_WITH([storage-disk], |
|
1382 |
AC_HELP_STRING([--with-storage-disk], [with GPartd Disk backend for the storage driver @<:@default=check@:>@]),[],[with_storage_disk=check]) |
|
1383 |
||
1384 |
with_storage_dir=yes |
|
1385 |
if test "$with_libvirtd" = "no"; then |
|
1386 |
with_storage_dir=no |
|
1387 |
with_storage_fs=no |
|
1388 |
with_storage_lvm=no |
|
1389 |
with_storage_iscsi=no |
|
1390 |
with_storage_scsi=no |
|
1391 |
with_storage_mpath=no |
|
1392 |
with_storage_disk=no |
|
1393 |
fi
|
|
1394 |
if test "$with_storage_dir" = "yes" ; then |
|
1395 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_DIR], 1, [whether directory backend for storage driver is enabled]) |
|
1396 |
fi
|
|
1397 |
AM_CONDITIONAL([WITH_STORAGE_DIR], [test "$with_storage_dir" = "yes"]) |
|
1398 |
||
1399 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1400 |
if test "$with_storage_fs" = "yes" || test "$with_storage_fs" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1401 |
AC_PATH_PROG([MOUNT], [mount], [], [$PATH:/sbin:/usr/sbin]) |
1402 |
AC_PATH_PROG([UMOUNT], [umount], [], [$PATH:/sbin:/usr/sbin]) |
|
1403 |
if test "$with_storage_fs" = "yes" ; then |
|
1404 |
if test -z "$MOUNT" ; then AC_MSG_ERROR([We need mount for FS storage driver]) ; fi |
|
1405 |
if test -z "$UMOUNT" ; then AC_MSG_ERROR([We need umount for FS storage driver]) ; fi |
|
1406 |
else |
|
1407 |
if test -z "$MOUNT" ; then with_storage_fs=no ; fi |
|
1408 |
if test -z "$UMOUNT" ; then with_storage_fs=no ; fi |
|
1409 |
||
1410 |
if test "$with_storage_fs" = "check" ; then with_storage_fs=yes ; fi |
|
1411 |
fi |
|
1412 |
||
1413 |
if test "$with_storage_fs" = "yes" ; then |
|
1414 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_FS], 1, [whether FS backend for storage driver is enabled]) |
|
1415 |
AC_DEFINE_UNQUOTED([MOUNT],["$MOUNT"], |
|
1416 |
[Location or name of the mount program]) |
|
1417 |
AC_DEFINE_UNQUOTED([UMOUNT],["$UMOUNT"], |
|
1418 |
[Location or name of the mount program]) |
|
1419 |
fi |
|
1420 |
fi
|
|
1421 |
AM_CONDITIONAL([WITH_STORAGE_FS], [test "$with_storage_fs" = "yes"]) |
|
1422 |
if test "$with_storage_fs" = "yes"; then |
|
1423 |
AC_PATH_PROG([SHOWMOUNT], [showmount], [], [$PATH:/sbin:/usr/sbin]) |
|
1424 |
AC_DEFINE_UNQUOTED([SHOWMOUNT], ["$SHOWMOUNT"], |
|
1425 |
[Location or name of the showmount program]) |
|
1426 |
fi
|
|
1427 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1428 |
if test "$with_storage_lvm" = "yes" || test "$with_storage_lvm" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1429 |
AC_PATH_PROG([PVCREATE], [pvcreate], [], [$PATH:/sbin:/usr/sbin]) |
1430 |
AC_PATH_PROG([VGCREATE], [vgcreate], [], [$PATH:/sbin:/usr/sbin]) |
|
1431 |
AC_PATH_PROG([LVCREATE], [lvcreate], [], [$PATH:/sbin:/usr/sbin]) |
|
1432 |
AC_PATH_PROG([PVREMOVE], [pvremove], [], [$PATH:/sbin:/usr/sbin]) |
|
1433 |
AC_PATH_PROG([VGREMOVE], [vgremove], [], [$PATH:/sbin:/usr/sbin]) |
|
1434 |
AC_PATH_PROG([LVREMOVE], [lvremove], [], [$PATH:/sbin:/usr/sbin]) |
|
1435 |
AC_PATH_PROG([VGCHANGE], [vgchange], [], [$PATH:/sbin:/usr/sbin]) |
|
1436 |
AC_PATH_PROG([VGSCAN], [vgscan], [], [$PATH:/sbin:/usr/sbin]) |
|
1437 |
AC_PATH_PROG([PVS], [pvs], [], [$PATH:/sbin:/usr/sbin]) |
|
1438 |
AC_PATH_PROG([VGS], [vgs], [], [$PATH:/sbin:/usr/sbin]) |
|
1439 |
AC_PATH_PROG([LVS], [lvs], [], [$PATH:/sbin:/usr/sbin]) |
|
1440 |
||
1441 |
if test "$with_storage_lvm" = "yes" ; then |
|
1442 |
if test -z "$PVCREATE" ; then AC_MSG_ERROR([We need pvcreate for LVM storage driver]) ; fi |
|
1443 |
if test -z "$VGCREATE" ; then AC_MSG_ERROR([We need vgcreate for LVM storage driver]) ; fi |
|
1444 |
if test -z "$LVCREATE" ; then AC_MSG_ERROR([We need lvcreate for LVM storage driver]) ; fi |
|
1445 |
if test -z "$PVREMOVE" ; then AC_MSG_ERROR([We need pvremove for LVM storage driver]) ; fi |
|
1446 |
if test -z "$VGREMOVE" ; then AC_MSG_ERROR([We need vgremove for LVM storage driver]) ; fi |
|
1447 |
if test -z "$LVREMOVE" ; then AC_MSG_ERROR([We need lvremove for LVM storage driver]) ; fi |
|
1448 |
if test -z "$VGCHANGE" ; then AC_MSG_ERROR([We need vgchange for LVM storage driver]) ; fi |
|
1449 |
if test -z "$VGSCAN" ; then AC_MSG_ERROR([We need vgscan for LVM storage driver]) ; fi |
|
1450 |
if test -z "$PVS" ; then AC_MSG_ERROR([We need pvs for LVM storage driver]) ; fi |
|
1451 |
if test -z "$VGS" ; then AC_MSG_ERROR([We need vgs for LVM storage driver]) ; fi |
|
1452 |
if test -z "$LVS" ; then AC_MSG_ERROR([We need lvs for LVM storage driver]) ; fi |
|
1453 |
else |
|
1454 |
if test -z "$PVCREATE" ; then with_storage_lvm=no ; fi |
|
1455 |
if test -z "$VGCREATE" ; then with_storage_lvm=no ; fi |
|
1456 |
if test -z "$LVCREATE" ; then with_storage_lvm=no ; fi |
|
1457 |
if test -z "$PVREMOVE" ; then with_storage_lvm=no ; fi |
|
1458 |
if test -z "$VGREMOVE" ; then with_storage_lvm=no ; fi |
|
1459 |
if test -z "$LVREMOVE" ; then with_storage_lvm=no ; fi |
|
1460 |
if test -z "$VGCHANGE" ; then with_storage_lvm=no ; fi |
|
1461 |
if test -z "$VGSCAN" ; then with_storage_lvm=no ; fi |
|
1462 |
if test -z "$PVS" ; then with_storage_lvm=no ; fi |
|
1463 |
if test -z "$VGS" ; then with_storage_lvm=no ; fi |
|
1464 |
if test -z "$LVS" ; then with_storage_lvm=no ; fi |
|
1465 |
||
1466 |
if test "$with_storage_lvm" = "check" ; then with_storage_lvm=yes ; fi |
|
1467 |
fi |
|
1468 |
||
1469 |
if test "$with_storage_lvm" = "yes" ; then |
|
1470 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_LVM], 1, [whether LVM backend for storage driver is enabled]) |
|
1471 |
AC_DEFINE_UNQUOTED([PVCREATE],["$PVCREATE"],[Location of pvcreate program]) |
|
1472 |
AC_DEFINE_UNQUOTED([VGCREATE],["$VGCREATE"],[Location of vgcreate program]) |
|
1473 |
AC_DEFINE_UNQUOTED([LVCREATE],["$LVCREATE"],[Location of lvcreate program]) |
|
1474 |
AC_DEFINE_UNQUOTED([PVREMOVE],["$PVREMOVE"],[Location of pvcreate program]) |
|
1475 |
AC_DEFINE_UNQUOTED([VGREMOVE],["$VGREMOVE"],[Location of vgcreate program]) |
|
1476 |
AC_DEFINE_UNQUOTED([LVREMOVE],["$LVREMOVE"],[Location of lvcreate program]) |
|
1477 |
AC_DEFINE_UNQUOTED([VGCHANGE],["$VGCHANGE"],[Location of vgchange program]) |
|
1478 |
AC_DEFINE_UNQUOTED([VGSCAN],["$VGSCAN"],[Location of vgscan program]) |
|
1479 |
AC_DEFINE_UNQUOTED([PVS],["$PVS"],[Location of pvs program]) |
|
1480 |
AC_DEFINE_UNQUOTED([VGS],["$VGS"],[Location of vgs program]) |
|
1481 |
AC_DEFINE_UNQUOTED([LVS],["$LVS"],[Location of lvs program]) |
|
1482 |
fi |
|
1483 |
fi
|
|
1484 |
AM_CONDITIONAL([WITH_STORAGE_LVM], [test "$with_storage_lvm" = "yes"]) |
|
1485 |
||
1486 |
||
1487 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1488 |
if test "$with_storage_iscsi" = "yes" || test "$with_storage_iscsi" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1489 |
AC_PATH_PROG([ISCSIADM], [iscsiadm], [], [$PATH:/sbin:/usr/sbin]) |
1490 |
if test "$with_storage_iscsi" = "yes" ; then |
|
1491 |
if test -z "$ISCSIADM" ; then AC_MSG_ERROR([We need iscsiadm for iSCSI storage driver]) ; fi |
|
1492 |
else |
|
1493 |
if test -z "$ISCSIADM" ; then with_storage_iscsi=no ; fi |
|
1494 |
||
1495 |
if test "$with_storage_iscsi" = "check" ; then with_storage_iscsi=yes ; fi |
|
1496 |
fi |
|
1497 |
||
1498 |
if test "$with_storage_iscsi" = "yes" ; then |
|
1499 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_ISCSI], 1, [whether iSCSI backend for storage driver is enabled]) |
|
1500 |
AC_DEFINE_UNQUOTED([ISCSIADM],["$ISCSIADM"],[Location of iscsiadm program]) |
|
1501 |
fi |
|
1502 |
fi
|
|
1503 |
AM_CONDITIONAL([WITH_STORAGE_ISCSI], [test "$with_storage_iscsi" = "yes"]) |
|
1504 |
||
1505 |
if test "$with_storage_scsi" = "check"; then |
|
1506 |
with_storage_scsi=yes |
|
1507 |
||
1508 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_SCSI], 1, |
|
1509 |
[whether SCSI backend for storage driver is enabled]) |
|
1510 |
fi
|
|
1511 |
AM_CONDITIONAL([WITH_STORAGE_SCSI], [test "$with_storage_scsi" = "yes"]) |
|
1512 |
||
1513 |
if test "$with_storage_mpath" = "check"; then |
|
1514 |
with_storage_mpath=yes |
|
1515 |
||
1516 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_MPATH], 1, |
|
1517 |
[whether mpath backend for storage driver is enabled]) |
|
1518 |
fi
|
|
1519 |
AM_CONDITIONAL([WITH_STORAGE_MPATH], [test "$with_storage_mpath" = "yes"]) |
|
1520 |
||
1521 |
if test "$with_storage_mpath" = "yes"; then |
|
1522 |
DEVMAPPER_CFLAGS= |
|
1523 |
DEVMAPPER_LIBS= |
|
1524 |
PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= $DEVMAPPER_REQUIRED], [], [DEVMAPPER_FOUND=no]) |
|
1525 |
if test "$DEVMAPPER_FOUND" = "no"; then |
|
1526 |
# devmapper is missing pkg-config files in ubuntu, suse, etc |
|
1527 |
save_LIBS="$LIBS" |
|
1528 |
save_CFLAGS="$CFLAGS" |
|
1529 |
DEVMAPPER_FOUND=yes |
|
1530 |
AC_CHECK_HEADER([libdevmapper.h],,[DEVMAPPER_FOUND=no]) |
|
1531 |
AC_CHECK_LIB([devmapper], [dm_task_run],,[DEVMAPPER_FOUND=no]) |
|
1532 |
DEVMAPPER_LIBS="-ldevmapper" |
|
1533 |
LIBS="$save_LIBS" |
|
1534 |
CFLAGS="$save_CFLAGS" |
|
1535 |
fi |
|
1536 |
if test "$DEVMAPPER_FOUND" = "no" ; then |
|
1537 |
AC_MSG_ERROR([You must install device-mapper-devel/libdevmapper >= $DEVMAPPER_REQUIRED to compile libvirt]) |
|
1538 |
fi |
|
1539 |
||
1540 |
fi
|
|
1541 |
AC_SUBST([DEVMAPPER_CFLAGS]) |
|
1542 |
AC_SUBST([DEVMAPPER_LIBS]) |
|
1543 |
||
1544 |
LIBPARTED_CFLAGS= |
|
1545 |
LIBPARTED_LIBS= |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1546 |
if test "$with_storage_disk" = "yes" || test "$with_storage_disk" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1547 |
AC_PATH_PROG([PARTED], [parted], [], [$PATH:/sbin:/usr/sbin]) |
1548 |
if test -z "$PARTED" ; then |
|
1549 |
with_storage_disk=no |
|
1550 |
PARTED_FOUND=no |
|
1551 |
else |
|
1552 |
PARTED_FOUND=yes |
|
1553 |
fi |
|
1554 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1555 |
if test "$with_storage_disk" != "no" && test "x$PKG_CONFIG" != "x" ; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1556 |
PKG_CHECK_MODULES(LIBPARTED, libparted >= $PARTED_REQUIRED, [], [PARTED_FOUND=no]) |
1557 |
fi |
|
1558 |
if test "$PARTED_FOUND" = "no"; then |
|
1559 |
# RHEL-5 vintage parted is missing pkg-config files |
|
1560 |
save_LIBS="$LIBS" |
|
1561 |
save_CFLAGS="$CFLAGS" |
|
1562 |
PARTED_FOUND=yes |
|
1563 |
AC_CHECK_HEADER([parted/parted.h],,[PARTED_FOUND=no]) |
|
1564 |
AC_CHECK_LIB([uuid], [uuid_generate],,[PARTED_FOUND=no]) |
|
1565 |
AC_CHECK_LIB([parted], [ped_device_read],,[PARTED_FOUND=no]) |
|
1566 |
LIBPARTED_LIBS="-luuid -lparted" |
|
1567 |
LIBS="$save_LIBS" |
|
1568 |
CFLAGS="$save_CFLAGS" |
|
1569 |
fi |
|
1570 |
||
1571 |
if test "$PARTED_FOUND" = "no" ; then |
|
1572 |
if test "$with_storage_disk" = "yes" ; then |
|
1573 |
AC_MSG_ERROR([We need parted for disk storage driver]) |
|
1574 |
else |
|
1575 |
with_storage_disk=no |
|
1576 |
fi |
|
1577 |
else |
|
1578 |
with_storage_disk=yes |
|
1579 |
fi |
|
1580 |
||
1581 |
if test "$with_storage_disk" = "yes"; then |
|
1582 |
AC_DEFINE_UNQUOTED([WITH_STORAGE_DISK], 1, [whether Disk backend for storage driver is enabled]) |
|
1583 |
AC_DEFINE_UNQUOTED([PARTED],["$PARTED"], [Location or name of the parted program]) |
|
1584 |
fi |
|
1585 |
fi
|
|
1586 |
AM_CONDITIONAL([WITH_STORAGE_DISK], [test "$with_storage_disk" = "yes"]) |
|
1587 |
AC_SUBST([LIBPARTED_CFLAGS]) |
|
1588 |
AC_SUBST([LIBPARTED_LIBS]) |
|
1589 |
||
1590 |
dnl
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1591 |
dnl check for libcurl (ESX/XenAPI) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1592 |
dnl
|
1593 |
||
1594 |
LIBCURL_CFLAGS="" |
|
1595 |
LIBCURL_LIBS="" |
|
1596 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1597 |
if test "$with_esx" = "yes" || test "$with_esx" = "check" || test "$with_xenapi" = "yes" || test "$with_xenapi" = "check"; then |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1598 |
PKG_CHECK_MODULES(LIBCURL, libcurl >= $LIBCURL_REQUIRED, [ |
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1599 |
if test "$with_esx" = "check"; then
|
1600 |
with_esx=yes
|
|
1601 |
fi
|
|
1602 |
||
1603 |
if test "$with_xenapi" = "check"; then
|
|
1604 |
with_xenapi=yes
|
|
1605 |
fi
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1606 |
], [ |
1607 |
if test "$with_esx" = "check"; then
|
|
1608 |
with_esx=no
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1609 |
AC_MSG_NOTICE([libcurl is required for the ESX driver, disabling it]) |
1610 |
elif test "$with_esx" = "yes"; then |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1611 |
AC_MSG_ERROR([libcurl >= $LIBCURL_REQUIRED is required for the ESX driver]) |
1612 |
fi |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1613 |
|
1614 |
if test "$with_xenapi" = "check"; then |
|
1615 |
with_xenapi=no |
|
1616 |
AC_MSG_NOTICE([libcurl is required for the XenAPI driver, disabling it]) |
|
1617 |
elif test "$with_xenapi" = "yes"; then |
|
1618 |
AC_MSG_ERROR([libcurl >= $LIBCURL_REQUIRED is required for the XenAPI driver]) |
|
1619 |
fi |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1620 |
]) |
1621 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1622 |
|
1623 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1624 |
if test "$with_esx" = "yes" ; then |
1625 |
AC_DEFINE_UNQUOTED([WITH_ESX], 1, [whether ESX driver is enabled]) |
|
1626 |
fi
|
|
1627 |
AM_CONDITIONAL([WITH_ESX], [test "$with_esx" = "yes"]) |
|
1628 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1629 |
if test "$with_xenapi" = "yes" ; then |
1630 |
AC_DEFINE_UNQUOTED([WITH_XENAPI], 1, [whether XenAPI driver is enabled]) |
|
1631 |
fi
|
|
1632 |
AM_CONDITIONAL([WITH_XENAPI], [test "$with_xenapi" = "yes"]) |
|
1633 |
||
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
1634 |
# XXX as of libcurl-devel-7.20.1-3.fc13.x86_64, curl ships a version |
1635 |
# of <curl/curl.h> that #defines several wrapper macros around underlying |
|
1636 |
# functions to add type safety for gcc only. However, these macros |
|
1637 |
# spuriously trip gcc's -Wlogical-op warning. Avoid the warning by |
|
1638 |
# disabling the wrappers; even if it removes some type-check safety.
|
|
1639 |
LIBCURL_CFLAGS="-DCURL_DISABLE_TYPECHECK $LIBCURL_CFLAGS"
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1640 |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1641 |
AC_SUBST([LIBCURL_CFLAGS])
|
1642 |
AC_SUBST([LIBCURL_LIBS])
|
|
1643 |
||
1644 |
dnl
|
|
1645 |
dnl check for python
|
|
1646 |
dnl
|
|
1647 |
||
1648 |
AC_ARG_WITH([python],
|
|
1649 |
AC_HELP_STRING([--with-python], [Build python bindings @<:@default=yes@:>@]),[],[with_python=yes])
|
|
1650 |
||
1651 |
if test "$enable_shared:$with_python" = no:yes; then
|
|
1652 |
AC_MSG_WARN([Disabling shared libraries is incompatible with building Python extensions.])
|
|
1653 |
AC_MSG_WARN([Ignoring --with-python.])
|
|
1654 |
with_python=no
|
|
1655 |
fi
|
|
1656 |
||
1657 |
PYTHON_VERSION=
|
|
1658 |
PYTHON_INCLUDES=
|
|
1659 |
if test "$with_python" != "no" ; then
|
|
1660 |
if test -x "$with_python/bin/python"
|
|
1661 |
then
|
|
1662 |
AC_MSG_NOTICE(Found python in $with_python/bin/python)
|
|
1663 |
PYTHON="$with_python/bin/python"
|
|
1664 |
with_python=yes
|
|
1665 |
else
|
|
1666 |
if test -x "$with_python"
|
|
1667 |
then
|
|
1668 |
AC_MSG_NOTICE(Found python in $with_python)
|
|
1669 |
PYTHON="$with_python"
|
|
1670 |
with_python=yes
|
|
1671 |
else
|
|
1672 |
if test -x "$PYTHON"
|
|
1673 |
then
|
|
1674 |
AC_MSG_NOTICE(Found python in environment PYTHON=$PYTHON)
|
|
1675 |
with_python=yes
|
|
1676 |
fi
|
|
1677 |
fi
|
|
1678 |
fi
|
|
1679 |
||
1680 |
if test "$with_python" == "yes" ; then
|
|
1681 |
AM_PATH_PYTHON(,, [:])
|
|
1682 |
||
1683 |
if test "$PYTHON" != : ; then
|
|
1684 |
PYTHON_CONFIG="$PYTHON-config"
|
|
1685 |
||
1686 |
if test -x "$PYTHON_CONFIG"
|
|
1687 |
then
|
|
1688 |
PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
|
|
1689 |
else
|
|
1690 |
if test -r $PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION/Python.h
|
|
1691 |
then
|
|
1692 |
PYTHON_INCLUDES=-I$PYTHON_EXEC_PREFIX/include/python$PYTHON_VERSION
|
|
1693 |
else
|
|
1694 |
if test -r $prefix/include/python$PYTHON_VERSION/Python.h
|
|
1695 |
then
|
|
1696 |
PYTHON_INCLUDES=-I$prefix/include/python$PYTHON_VERSION
|
|
1697 |
else
|
|
1698 |
if test -r /usr/include/python$PYTHON_VERSION/Python.h
|
|
1699 |
then
|
|
1700 |
PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
|
1701 |
else
|
|
1702 |
AC_MSG_NOTICE([Could not find python$PYTHON_VERSION/Python.h, disabling bindings])
|
|
1703 |
with_python=no
|
|
1704 |
fi
|
|
1705 |
fi
|
|
1706 |
fi
|
|
1707 |
fi
|
|
1708 |
else
|
|
1709 |
AC_MSG_NOTICE([Could not find python interpreter, disabling bindings])
|
|
1710 |
with_python=no
|
|
1711 |
fi
|
|
1712 |
else
|
|
1713 |
AC_MSG_NOTICE([Could not find python in $with_python, disabling bindings])
|
|
1714 |
with_python=no
|
|
1715 |
fi
|
|
1716 |
fi
|
|
1717 |
AM_CONDITIONAL([WITH_PYTHON], [test "$with_python" = "yes"])
|
|
1718 |
AC_SUBST([PYTHON_VERSION])
|
|
1719 |
AC_SUBST([PYTHON_INCLUDES])
|
|
1720 |
||
1721 |
||
1722 |
||
1723 |
AC_MSG_CHECKING([whether this host is running a Xen kernel])
|
|
1724 |
RUNNING_XEN=
|
|
1725 |
if test -d /proc/sys/xen
|
|
1726 |
then
|
|
1727 |
RUNNING_XEN=yes
|
|
1728 |
else
|
|
1729 |
RUNNING_XEN=no
|
|
1730 |
fi
|
|
1731 |
AC_MSG_RESULT($RUNNING_XEN)
|
|
1732 |
||
1733 |
AC_MSG_CHECKING([If XenD UNIX socket /var/run/xend/xmlrpc.sock is accessible])
|
|
1734 |
RUNNING_XEND=
|
|
1735 |
if test -S /var/run/xend/xmlrpc.sock
|
|
1736 |
then
|
|
1737 |
RUNNING_XEND=yes
|
|
1738 |
else
|
|
1739 |
RUNNING_XEND=no
|
|
1740 |
fi
|
|
1741 |
AC_MSG_RESULT($RUNNING_XEND)
|
|
1742 |
||
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1743 |
AM_CONDITIONAL([ENABLE_XEN_TESTS], [test "$RUNNING_XEN" != "no" && test "$RUNNING_XEND" != "no"])
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1744 |
|
1745 |
AC_ARG_ENABLE([test-coverage],
|
|
1746 |
AC_HELP_STRING([--enable-test-coverage], [turn on code coverage instrumentation @<:@default=no@:>@]),
|
|
1747 |
[case "${enableval}" in
|
|
1748 |
yes|no) ;;
|
|
1749 |
*) AC_MSG_ERROR([bad value ${enableval} for test-coverage option]) ;;
|
|
1750 |
esac],
|
|
1751 |
[enableval=no])
|
|
1752 |
enable_coverage=$enableval
|
|
1753 |
||
1754 |
if test "${enable_coverage}" = yes; then
|
|
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
1755 |
COMPILER_FLAGS=
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1756 |
gl_COMPILER_FLAGS(-fprofile-arcs)
|
1757 |
gl_COMPILER_FLAGS(-ftest-coverage)
|
|
1758 |
AC_SUBST([COVERAGE_CFLAGS], [$COMPILER_FLAGS])
|
|
1759 |
AC_SUBST([COVERAGE_LDFLAGS], [$COMPILER_FLAGS])
|
|
1760 |
COMPILER_FLAGS=
|
|
1761 |
fi
|
|
1762 |
||
1763 |
AC_ARG_ENABLE([test-oom],
|
|
1764 |
AC_HELP_STRING([--enable-test-oom], [memory allocation failure checking @<:@default=no@:>@]),
|
|
1765 |
[case "${enableval}" in
|
|
1766 |
yes|no) ;;
|
|
1767 |
*) AC_MSG_ERROR([bad value ${enableval} for test-oom option]) ;;
|
|
1768 |
esac],
|
|
1769 |
[enableval=no])
|
|
1770 |
enable_oom=$enableval
|
|
1771 |
||
1772 |
if test "${enable_oom}" = yes; then
|
|
1773 |
have_trace=yes
|
|
1774 |
AC_CHECK_HEADER([execinfo.h],[],[have_trace=no])
|
|
1775 |
AC_CHECK_FUNC([backtrace],[],[have_trace=no])
|
|
1776 |
if test "$have_trace" = "yes"; then
|
|
1777 |
AC_DEFINE([TEST_OOM_TRACE], 1, [Whether backtrace() is available])
|
|
1778 |
fi
|
|
1779 |
AC_DEFINE([TEST_OOM], 1, [Whether malloc OOM checking is enabled])
|
|
1780 |
fi
|
|
1781 |
||
1782 |
||
1783 |
AC_ARG_ENABLE([test-locking],
|
|
1784 |
AC_HELP_STRING([--enable-test-locking], [thread locking tests using CIL @<:@default=no@:>@]),
|
|
1785 |
[case "${enableval}" in
|
|
1786 |
yes|no) ;;
|
|
1787 |
*) AC_MSG_ERROR([bad value ${enableval} for test-locking option]) ;;
|
|
1788 |
esac],
|
|
1789 |
[enableval=no])
|
|
1790 |
enable_locking=$enableval
|
|
1791 |
||
1792 |
if test "$enable_locking" = "yes"; then
|
|
1793 |
LOCK_CHECKING_CFLAGS="-Dbool=char -D_Bool=char -save-temps"
|
|
1794 |
AC_SUBST([LOCK_CHECKING_CFLAGS])
|
|
1795 |
fi
|
|
1796 |
AM_CONDITIONAL([WITH_CIL],[test "$enable_locking" = "yes"])
|
|
1797 |
||
1798 |
dnl Enable building the proxy?
|
|
1799 |
||
1800 |
AC_ARG_WITH([xen-proxy],
|
|
1801 |
AC_HELP_STRING([--with-xen-proxy], [add XEN setuid proxy support @<:@default=auto@:>@]),[],[with_xen_proxy=auto])
|
|
1802 |
||
1803 |
AC_MSG_CHECKING([if Xen setuid proxy is needed])
|
|
1804 |
if test "$with_xen_proxy" = "auto"; then
|
|
1805 |
if test "$with_polkit" = "yes"; then
|
|
1806 |
with_xen_proxy="no"
|
|
1807 |
else
|
|
1808 |
with_xen_proxy="yes"
|
|
1809 |
fi
|
|
1810 |
fi
|
|
1811 |
if test "$with_xen" != "yes"; then
|
|
1812 |
with_xen_proxy="no"
|
|
1813 |
fi
|
|
1814 |
AC_MSG_RESULT([$with_xen_proxy])
|
|
1815 |
||
1816 |
AM_CONDITIONAL([WITH_PROXY],[test "$with_xen_proxy" = "yes"])
|
|
1817 |
if test "$with_xen_proxy" = "yes"; then
|
|
1818 |
AC_DEFINE([WITH_PROXY], 1, [Whether Xen proxy is enabled])
|
|
1819 |
fi
|
|
1820 |
||
1821 |
dnl Enable building libvirtd?
|
|
1822 |
AM_CONDITIONAL([WITH_LIBVIRTD],[test "x$with_libvirtd" = "xyes"])
|
|
1823 |
||
1824 |
dnl Check for gettext
|
|
1825 |
AM_GNU_GETTEXT_VERSION([0.14.1])
|
|
1826 |
AM_GNU_GETTEXT([external])
|
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
1827 |
dnl Since we're using such an old version of gettext, we must also define |
1828 |
dnl this symbol, in order to make the autopoint-supplied Makefile.in.in |
|
1829 |
dnl work properly. |
|
1830 |
AC_SUBST([MKINSTALLDIRS], ["\$(top_builddir)/$ac_aux_dir/mkinstalldirs"]) |
|
1831 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1832 |
ALL_LINGUAS=`cd "$srcdir/po" > /dev/null && ls *.po | sed 's+\.po$++'` |
1833 |
||
1834 |
dnl Extra link-time flags for Cygwin. |
|
1835 |
dnl Copied from libxml2 configure.in, but I removed mingw changes |
|
1836 |
dnl for now since I'm not supporting mingw at present. - RWMJ |
|
1837 |
CYGWIN_EXTRA_LDFLAGS=
|
|
1838 |
CYGWIN_EXTRA_LIBADD=
|
|
1839 |
CYGWIN_EXTRA_PYTHON_LIBADD=
|
|
1840 |
MINGW_EXTRA_LDFLAGS=
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1841 |
WIN32_EXTRA_CFLAGS=
|
1842 |
LIBVIRT_SYMBOL_FILE=libvirt.syms
|
|
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
1843 |
LIBVIRT_QEMU_SYMBOL_FILE='$(srcdir)/libvirt_qemu.syms' |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1844 |
case "$host" in
|
1845 |
*-*-cygwin*)
|
|
1846 |
CYGWIN_EXTRA_LDFLAGS="-no-undefined"
|
|
1847 |
CYGWIN_EXTRA_LIBADD="${INTLLIBS}"
|
|
1848 |
if test "x$PYTHON_VERSION" != "x"; then
|
|
1849 |
CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
|
|
1850 |
fi
|
|
1851 |
;;
|
|
1852 |
*-*-mingw*)
|
|
1853 |
MINGW_EXTRA_LDFLAGS="-no-undefined"
|
|
1854 |
;;
|
|
1855 |
esac
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1856 |
case "$host" in
|
1857 |
*-*-mingw* | *-*-cygwin* | *-*-msvc* )
|
|
1858 |
# If the host is Windows, and shared libraries are disabled, we
|
|
1859 |
# need to add -DLIBVIRT_STATIC to the CFLAGS for proper linking
|
|
1860 |
if test "x$enable_shared" = "xno"; then
|
|
1861 |
WIN32_EXTRA_CFLAGS="-DLIBVIRT_STATIC"
|
|
1862 |
fi
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
1863 |
esac
|
1864 |
case "$host" in
|
|
1865 |
*-*-mingw* | *-*-msvc* )
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1866 |
# Also set the symbol file to .def, so src/Makefile generates libvirt.def
|
1867 |
# from libvirt.syms and passes libvirt.def instead of libvirt.syms to the linker
|
|
1868 |
LIBVIRT_SYMBOL_FILE=libvirt.def
|
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
1869 |
# mingw's ld has the --version-script parameter, but it requires a .def file |
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
1870 |
# instead to work properly, therefore clear --version-script here and use |
1871 |
# -Wl, to pass the .def file to the linker |
|
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
1872 |
# cygwin's ld has the --version-script parameter too, but for some reason |
1873 |
# it's working there as expected |
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
1874 |
VERSION_SCRIPT_FLAGS="-Wl," |
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1875 |
;; |
1876 |
esac
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1877 |
AC_SUBST([CYGWIN_EXTRA_LDFLAGS]) |
1878 |
AC_SUBST([CYGWIN_EXTRA_LIBADD]) |
|
1879 |
AC_SUBST([CYGWIN_EXTRA_PYTHON_LIBADD]) |
|
1880 |
AC_SUBST([MINGW_EXTRA_LDFLAGS]) |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1881 |
AC_SUBST([WIN32_EXTRA_CFLAGS]) |
1882 |
AC_SUBST([LIBVIRT_SYMBOL_FILE]) |
|
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
1883 |
AC_SUBST([LIBVIRT_QEMU_SYMBOL_FILE]) |
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
1884 |
AC_SUBST([VERSION_SCRIPT_FLAGS]) |
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1885 |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1886 |
|
1887 |
dnl Look for windres to build a Windows icon resource. |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1888 |
case "$host" in |
1889 |
*-*-mingw* | *-*-cygwin* | *-*-msvc* ) |
|
1890 |
AC_CHECK_TOOL([WINDRES], [windres], []) |
|
1891 |
;; |
|
1892 |
esac
|
|
1893 |
AM_CONDITIONAL([WITH_WIN_ICON], [test "$WINDRES" != ""]) |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1894 |
|
1895 |
||
1896 |
dnl Driver-Modules library |
|
1897 |
AC_ARG_WITH([driver-modules], |
|
1898 |
AC_HELP_STRING([--with-driver-modules], [build drivers as loadable modules @<:@default=no@:>@]), |
|
1899 |
[], |
|
1900 |
[with_driver_modules=no]) |
|
1901 |
||
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
1902 |
DRIVER_MODULE_CFLAGS= |
1903 |
DRIVER_MODULE_LIBS= |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1904 |
if test "x$with_driver_modules" = "xyes" ; then |
1905 |
old_cflags="$CFLAGS" |
|
1906 |
old_libs="$LIBS" |
|
1907 |
fail=0 |
|
1908 |
AC_CHECK_HEADER([dlfcn.h],[],[fail=1]) |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
1909 |
AC_SEARCH_LIBS([dlopen], [dl], [], [fail=1]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1910 |
test $fail = 1 && |
1911 |
AC_MSG_ERROR([You must have dlfcn.h / dlopen() support to build driver modules]) |
|
1912 |
||
1913 |
CFLAGS="$old_cflags" |
|
1914 |
LIBS="$old_libs" |
|
1915 |
fi
|
|
1916 |
if test "$with_driver_modules" = "yes"; then |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
1917 |
DRIVER_MODULE_CFLAGS="-export-dynamic" |
1918 |
case $ac_cv_search_dlopen in |
|
1919 |
no*) DRIVER_MODULE_LIBS= ;; |
|
1920 |
*) DRIVER_MODULE_LIBS=$ac_cv_search_dlopen ;; |
|
1921 |
esac |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1922 |
AC_DEFINE_UNQUOTED([WITH_DRIVER_MODULES], 1, [whether to build drivers as modules]) |
1923 |
fi
|
|
1924 |
AM_CONDITIONAL([WITH_DRIVER_MODULES], [test "$with_driver_modules" != "no"]) |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
1925 |
AC_SUBST([DRIVER_MODULE_CFLAGS]) |
1926 |
AC_SUBST([DRIVER_MODULE_LIBS]) |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1927 |
|
1928 |
||
1929 |
# Set LV_LIBTOOL_OBJDIR to "." or $lt_cv_objdir, depending on whether |
|
1930 |
# we're building shared libraries. This is the name of the directory |
|
1931 |
# in which .o files will be created.
|
|
1932 |
test "$enable_shared" = no && lt_cv_objdir=.
|
|
1933 |
LV_LIBTOOL_OBJDIR=${lt_cv_objdir-.}
|
|
1934 |
AC_SUBST([LV_LIBTOOL_OBJDIR])
|
|
1935 |
||
1936 |
dnl HAL library check for host device enumeration
|
|
1937 |
HAL_CFLAGS=
|
|
1938 |
HAL_LIBS=
|
|
1939 |
AC_ARG_WITH([hal],
|
|
1940 |
AC_HELP_STRING([--with-hal], [use HAL for host device enumeration @<:@default=check@:>@]),
|
|
1941 |
[],
|
|
1942 |
[with_hal=check])
|
|
1943 |
||
1944 |
if test "$with_libvirtd" = "no" ; then
|
|
1945 |
with_hal=no
|
|
1946 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1947 |
if test "x$with_hal" = "xyes" || test "x$with_hal" = "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1948 |
PKG_CHECK_MODULES(HAL, hal >= $HAL_REQUIRED,
|
1949 |
[with_hal=yes], [
|
|
1950 |
if test "x$with_hal" = "xcheck" ; then
|
|
1951 |
with_hal=no
|
|
1952 |
else
|
|
1953 |
AC_MSG_ERROR(
|
|
1954 |
[You must install hal-devel >= $HAL_REQUIRED to compile libvirt])
|
|
1955 |
fi
|
|
1956 |
])
|
|
1957 |
if test "x$with_hal" = "xyes" ; then
|
|
1958 |
old_CFLAGS=$CFLAGS
|
|
1959 |
old_LIBS=$LIBS
|
|
1960 |
CFLAGS="$CFLAGS $HAL_CFLAGS"
|
|
1961 |
LIBS="$LIBS $HAL_LIBS"
|
|
1962 |
AC_CHECK_FUNCS([libhal_get_all_devices],,[with_hal=no])
|
|
1963 |
AC_CHECK_FUNCS([dbus_watch_get_unix_fd])
|
|
1964 |
CFLAGS="$old_CFLAGS"
|
|
1965 |
LIBS="$old_LIBS"
|
|
1966 |
fi
|
|
1967 |
if test "x$with_hal" = "xyes" ; then
|
|
1968 |
AC_DEFINE_UNQUOTED([HAVE_HAL], 1,
|
|
1969 |
[use HAL for host device enumeration])
|
|
1970 |
fi
|
|
1971 |
fi
|
|
1972 |
AM_CONDITIONAL([HAVE_HAL], [test "x$with_hal" = "xyes"])
|
|
1973 |
AC_SUBST([HAL_CFLAGS])
|
|
1974 |
AC_SUBST([HAL_LIBS])
|
|
1975 |
||
1976 |
||
1977 |
dnl udev/libpciaccess library check for alternate host device enumeration
|
|
1978 |
UDEV_CFLAGS=
|
|
1979 |
UDEV_LIBS=
|
|
1980 |
PCIACCESS_CFLAGS=
|
|
1981 |
PCIACCESS_LIBS=
|
|
1982 |
AC_ARG_WITH([udev],
|
|
1983 |
AC_HELP_STRING([--with-udev], [use libudev for host device enumeration @<:@default=check@:>@]),
|
|
1984 |
[],
|
|
1985 |
[with_udev=check])
|
|
1986 |
||
1987 |
if test "$with_libvirtd" = "no" ; then
|
|
1988 |
with_udev=no
|
|
1989 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
1990 |
if test "x$with_udev" = "xyes" || test "x$with_udev" = "xcheck"; then
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
1991 |
PKG_CHECK_MODULES(UDEV, libudev >= $UDEV_REQUIRED,
|
1992 |
[], [
|
|
1993 |
if test "x$with_udev" = "xcheck" ; then
|
|
1994 |
with_udev=no
|
|
1995 |
else
|
|
1996 |
AC_MSG_ERROR(
|
|
1997 |
[You must install libudev-devel >= $UDEV_REQUIRED to compile libvirt])
|
|
1998 |
fi
|
|
1999 |
])
|
|
2000 |
if test "x$with_udev" != "xno"; then
|
|
2001 |
PKG_CHECK_MODULES(PCIACCESS, pciaccess >= $PCIACCESS_REQUIRED,
|
|
2002 |
[with_udev=yes],
|
|
2003 |
[
|
|
2004 |
if test "x$with_udev" = "xcheck" ; then
|
|
2005 |
with_udev=no
|
|
2006 |
else
|
|
2007 |
AC_MSG_ERROR(
|
|
2008 |
[You must install libpciaccess-devel >= $PCIACCESS_REQUIRED to compile libvirt])
|
|
2009 |
fi
|
|
2010 |
])
|
|
2011 |
fi
|
|
2012 |
if test "x$with_udev" = "xyes" ; then
|
|
2013 |
AC_DEFINE_UNQUOTED([HAVE_UDEV], 1,
|
|
2014 |
[use UDEV for host device enumeration])
|
|
2015 |
fi
|
|
2016 |
fi
|
|
2017 |
AM_CONDITIONAL([HAVE_UDEV], [test "x$with_udev" = "xyes"])
|
|
2018 |
AC_SUBST([UDEV_CFLAGS])
|
|
2019 |
AC_SUBST([UDEV_LIBS])
|
|
2020 |
AC_SUBST([PCIACCESS_CFLAGS])
|
|
2021 |
AC_SUBST([PCIACCESS_LIBS])
|
|
2022 |
||
2023 |
with_nodedev=no;
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2024 |
if test "$with_hal" = "yes" || test "$with_udev" = "yes";
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2025 |
then
|
2026 |
with_nodedev=yes
|
|
2027 |
AC_DEFINE_UNQUOTED([WITH_NODE_DEVICES], 1, [with node device driver])
|
|
2028 |
fi
|
|
2029 |
AM_CONDITIONAL([WITH_NODE_DEVICES], [test "$with_nodedev" = "yes"])
|
|
2030 |
||
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
2031 |
with_linux=no
|
2032 |
case "$host" in
|
|
2033 |
*-*-linux*)
|
|
2034 |
with_linux=yes
|
|
2035 |
;;
|
|
2036 |
esac
|
|
2037 |
AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"])
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2038 |
|
2039 |
||
2040 |
AC_ARG_WITH([qemu-user],
|
|
2041 |
AC_HELP_STRING([--with-qemu-user], [username to run QEMU system instance as @<:@default=root@:>@]),
|
|
2042 |
[QEMU_USER=${withval}],
|
|
2043 |
[QEMU_USER=root])
|
|
2044 |
AC_ARG_WITH([qemu-group],
|
|
2045 |
AC_HELP_STRING([--with-qemu-group], [groupname to run QEMU system instance as @<:@default=root@:>@]),
|
|
2046 |
[QEMU_GROUP=${withval}],
|
|
2047 |
[QEMU_GROUP=root])
|
|
2048 |
AC_DEFINE_UNQUOTED([QEMU_USER], ["$QEMU_USER"], [QEMU user account])
|
|
2049 |
AC_DEFINE_UNQUOTED([QEMU_GROUP], ["$QEMU_GROUP"], [QEMU group account])
|
|
2050 |
||
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
2051 |
|
2052 |
AC_ARG_WITH([macvtap],
|
|
2053 |
AC_HELP_STRING([--with-macvtap],[enable macvtap device @<:@default=check@:>@]),
|
|
2054 |
[with_macvtap=${withval}],
|
|
2055 |
[with_macvtap=check])
|
|
2056 |
||
2057 |
if test "$with_macvtap" != "no" ; then
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2058 |
AC_TRY_COMPILE([ #include <sys/socket.h>
|
2059 |
#include <linux/rtnetlink.h> ],
|
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
2060 |
[ int x = MACVLAN_MODE_BRIDGE; ],
|
2061 |
[ with_macvtap=yes ],
|
|
2062 |
[ if test "$with_macvtap" = "yes" ; then
|
|
2063 |
AC_MSG_ERROR([Installed linux headers don't show support for macvtap device.]) |
|
2064 |
fi |
|
2065 |
with_macvtap=no ]) |
|
2066 |
if test "$with_macvtap" = "yes" ; then |
|
2067 |
val=1 |
|
2068 |
else |
|
2069 |
val=0 |
|
2070 |
fi |
|
2071 |
AC_DEFINE_UNQUOTED([WITH_MACVTAP], $val, [whether macvtap support is enabled]) |
|
2072 |
fi
|
|
2073 |
AM_CONDITIONAL([WITH_MACVTAP], [test "$with_macvtap" = "yes"]) |
|
2074 |
||
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
2075 |
AC_TRY_COMPILE([ #include <sys/socket.h> |
2076 |
#include <linux/rtnetlink.h> ], |
|
2077 |
[ int x = IFLA_PORT_MAX; ], |
|
2078 |
[ with_virtualport=yes ], |
|
2079 |
[ with_virtualport=no ]) |
|
2080 |
if test "$with_virtualport" = "yes"; then |
|
2081 |
val=1 |
|
2082 |
else
|
|
2083 |
val=0 |
|
2084 |
fi
|
|
2085 |
AC_DEFINE_UNQUOTED([WITH_VIRTUALPORT], $val, |
|
2086 |
[whether vsi vepa support is enabled]) |
|
2087 |
AM_CONDITIONAL([WITH_VIRTUALPORT], [test "$with_virtualport" = "yes"]) |
|
2088 |
||
2089 |
||
2090 |
dnl netlink library |
|
2091 |
||
2092 |
LIBNL_CFLAGS="" |
|
2093 |
LIBNL_LIBS="" |
|
2094 |
||
2095 |
if test "$with_macvtap" = "yes" || test "$with_virtualport" = "yes"; then |
|
2096 |
PKG_CHECK_MODULES([LIBNL], [libnl-1 >= $LIBNL_REQUIRED], [ |
|
2097 |
], [ |
|
2098 |
AC_MSG_ERROR([libnl >= $LIBNL_REQUIRED is required for macvtap support]) |
|
2099 |
]) |
|
2100 |
fi
|
|
2101 |
||
2102 |
AC_SUBST([LIBNL_CFLAGS]) |
|
2103 |
AC_SUBST([LIBNL_LIBS]) |
|
2104 |
||
2105 |
||
2106 |
||
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
2107 |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2108 |
# Only COPYING.LIB is under version control, yet COPYING |
2109 |
# is included as part of the distribution tarball. |
|
2110 |
# Copy one to the other, but only if this is a srcdir-build. |
|
2111 |
# You are unlikely to be doing distribution-related things in a non-srcdir build |
|
2112 |
test "x$srcdir" = x. && ! test -f COPYING && |
|
2113 |
cp -f COPYING.LIB COPYING |
|
2114 |
||
0.2.7
by Guido Günther
Import upstream version 0.8.1 |
2115 |
# Detect when running under the clang static analyzer's scan-build driver |
2116 |
# or Coverity-prevent's cov-build. Define STATIC_ANALYSIS accordingly. |
|
2117 |
test -n "$CCC_ANALYZER_ANALYSIS$COVERITY_BUILD_COMMAND" && t=1 || t=0 |
|
2118 |
AC_DEFINE_UNQUOTED([STATIC_ANALYSIS], [$t], |
|
2119 |
[Define to 1 when performing static analysis.]) |
|
2120 |
||
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2121 |
AC_OUTPUT(Makefile src/Makefile include/Makefile docs/Makefile \ |
2122 |
docs/schemas/Makefile \ |
|
2123 |
gnulib/lib/Makefile \ |
|
2124 |
gnulib/tests/Makefile \ |
|
2125 |
libvirt.pc libvirt.spec mingw32-libvirt.spec \ |
|
2126 |
po/Makefile.in \ |
|
2127 |
include/libvirt/Makefile include/libvirt/libvirt.h \ |
|
2128 |
python/Makefile python/tests/Makefile \ |
|
2129 |
daemon/Makefile \ |
|
2130 |
tools/Makefile \ |
|
2131 |
tests/Makefile proxy/Makefile \ |
|
2132 |
tests/xml2sexprdata/Makefile \ |
|
2133 |
tests/sexpr2xmldata/Makefile \ |
|
2134 |
tests/xmconfigdata/Makefile \ |
|
2135 |
tests/xencapsdata/Makefile \ |
|
2136 |
tests/confdata/Makefile \ |
|
2137 |
examples/apparmor/Makefile \ |
|
2138 |
examples/domain-events/events-c/Makefile \ |
|
2139 |
examples/domsuspend/Makefile \ |
|
2140 |
examples/dominfo/Makefile \ |
|
0.2.9
by Laurent Léonard
Import upstream version 0.8.3 |
2141 |
examples/openauth/Makefile \ |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2142 |
examples/python/Makefile \ |
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2143 |
examples/hellolibvirt/Makefile \ |
2144 |
examples/xml/nwfilter/Makefile) |
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2145 |
|
2146 |
AC_MSG_NOTICE([]) |
|
2147 |
AC_MSG_NOTICE([Configuration summary]) |
|
2148 |
AC_MSG_NOTICE([=====================]) |
|
2149 |
AC_MSG_NOTICE([]) |
|
2150 |
AC_MSG_NOTICE([Drivers]) |
|
2151 |
AC_MSG_NOTICE([]) |
|
2152 |
AC_MSG_NOTICE([ Xen: $with_xen]) |
|
2153 |
AC_MSG_NOTICE([ Proxy: $with_xen_proxy]) |
|
2154 |
AC_MSG_NOTICE([ QEMU: $with_qemu]) |
|
2155 |
AC_MSG_NOTICE([ UML: $with_uml]) |
|
2156 |
AC_MSG_NOTICE([ OpenVZ: $with_openvz]) |
|
2157 |
AC_MSG_NOTICE([ VBox: $with_vbox]) |
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2158 |
AC_MSG_NOTICE([ XenAPI: $with_xenapi]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2159 |
AC_MSG_NOTICE([ LXC: $with_lxc]) |
2160 |
AC_MSG_NOTICE([ PHYP: $with_phyp]) |
|
2161 |
AC_MSG_NOTICE([ ONE: $with_one]) |
|
2162 |
AC_MSG_NOTICE([ ESX: $with_esx]) |
|
2163 |
AC_MSG_NOTICE([ Test: $with_test]) |
|
2164 |
AC_MSG_NOTICE([ Remote: $with_remote]) |
|
2165 |
AC_MSG_NOTICE([ Network: $with_network]) |
|
2166 |
AC_MSG_NOTICE([Libvirtd: $with_libvirtd]) |
|
2167 |
AC_MSG_NOTICE([ netcf: $with_netcf]) |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
2168 |
AC_MSG_NOTICE([ macvtap: $with_macvtap]) |
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
2169 |
AC_MSG_NOTICE([virtport: $with_virtualport]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2170 |
AC_MSG_NOTICE([]) |
2171 |
AC_MSG_NOTICE([Storage Drivers]) |
|
2172 |
AC_MSG_NOTICE([]) |
|
2173 |
AC_MSG_NOTICE([ Dir: $with_storage_dir]) |
|
2174 |
AC_MSG_NOTICE([ FS: $with_storage_fs]) |
|
2175 |
AC_MSG_NOTICE([ NetFS: $with_storage_fs]) |
|
2176 |
AC_MSG_NOTICE([ LVM: $with_storage_lvm]) |
|
2177 |
AC_MSG_NOTICE([ iSCSI: $with_storage_iscsi]) |
|
2178 |
AC_MSG_NOTICE([ SCSI: $with_storage_scsi]) |
|
2179 |
AC_MSG_NOTICE([ mpath: $with_storage_mpath]) |
|
2180 |
AC_MSG_NOTICE([ Disk: $with_storage_disk]) |
|
2181 |
AC_MSG_NOTICE([]) |
|
2182 |
AC_MSG_NOTICE([Security Drivers]) |
|
2183 |
AC_MSG_NOTICE([]) |
|
2184 |
AC_MSG_NOTICE([ SELinux: $with_secdriver_selinux]) |
|
2185 |
AC_MSG_NOTICE([AppArmor: $with_secdriver_apparmor]) |
|
2186 |
AC_MSG_NOTICE([]) |
|
2187 |
AC_MSG_NOTICE([Driver Loadable Modules]) |
|
2188 |
AC_MSG_NOTICE([]) |
|
2189 |
if test "$with_driver_modules" != "no" ; then |
|
0.2.5
by Laurent Léonard
Import upstream version 0.7.7 |
2190 |
AC_MSG_NOTICE([ dlopen: $DRIVER_MODULE_CFLAGS $DRIVER_MODULE_LIBS]) |
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2191 |
else
|
2192 |
AC_MSG_NOTICE([ dlopen: no]) |
|
2193 |
fi
|
|
2194 |
AC_MSG_NOTICE([]) |
|
2195 |
AC_MSG_NOTICE([Libraries]) |
|
2196 |
AC_MSG_NOTICE([]) |
|
2197 |
AC_MSG_NOTICE([ libxml: $LIBXML_CFLAGS $LIBXML_LIBS]) |
|
2198 |
if test "$with_esx" = "yes" ; then |
|
2199 |
AC_MSG_NOTICE([ libcurl: $LIBCURL_CFLAGS $LIBCURL_LIBS]) |
|
2200 |
else
|
|
2201 |
AC_MSG_NOTICE([ libcurl: no]) |
|
2202 |
fi
|
|
2203 |
if test "$with_libssh2" != "no" ; then |
|
2204 |
AC_MSG_NOTICE([ libssh2: $LIBSSH2_CFLAGS $LIBSSH2_LIBS]) |
|
2205 |
else
|
|
2206 |
AC_MSG_NOTICE([ libssh2: no]) |
|
2207 |
fi
|
|
2208 |
AC_MSG_NOTICE([ gnutls: $GNUTLS_CFLAGS $GNUTLS_LIBS]) |
|
2209 |
if test "$with_sasl" != "no" ; then |
|
2210 |
AC_MSG_NOTICE([ sasl: $SASL_CFLAGS $SASL_LIBS]) |
|
2211 |
else
|
|
2212 |
AC_MSG_NOTICE([ sasl: no]) |
|
2213 |
fi
|
|
2214 |
if test "$with_yajl" != "no" ; then |
|
2215 |
AC_MSG_NOTICE([ yajl: $YAJL_CFLAGS $YAJL_LIBS]) |
|
2216 |
else
|
|
2217 |
AC_MSG_NOTICE([ yajl: no]) |
|
2218 |
fi
|
|
2219 |
if test "$with_avahi" = "yes" ; then |
|
2220 |
AC_MSG_NOTICE([ avahi: $AVAHI_CFLAGS $AVAHI_LIBS]) |
|
2221 |
else
|
|
2222 |
AC_MSG_NOTICE([ avahi: no]) |
|
2223 |
fi
|
|
2224 |
if test "$with_polkit" = "yes" ; then |
|
2225 |
if test "$with_polkit0" = "yes" ; then |
|
2226 |
AC_MSG_NOTICE([ polkit: $POLKIT_CFLAGS $POLKIT_LIBS (version 0)]) |
|
2227 |
else
|
|
2228 |
AC_MSG_NOTICE([ polkit: $PKCHECK_PATH (version 1)]) |
|
2229 |
fi
|
|
2230 |
else
|
|
2231 |
AC_MSG_NOTICE([ polkit: no]) |
|
2232 |
fi
|
|
2233 |
if test "$with_selinux" = "yes" ; then |
|
2234 |
AC_MSG_NOTICE([ selinux: $SELINUX_CFLAGS $SELINUX_LIBS]) |
|
2235 |
else
|
|
2236 |
AC_MSG_NOTICE([ selinux: no]) |
|
2237 |
fi
|
|
2238 |
if test "$with_apparmor" = "yes" ; then |
|
2239 |
AC_MSG_NOTICE([apparmor: $APPARMOR_CFLAGS $APPARMOR_LIBS]) |
|
2240 |
else
|
|
2241 |
AC_MSG_NOTICE([apparmor: no]) |
|
2242 |
fi
|
|
2243 |
if test "$with_numactl" = "yes" ; then |
|
2244 |
AC_MSG_NOTICE([ numactl: $NUMACTL_CFLAGS $NUMACTL_LIBS]) |
|
2245 |
else
|
|
2246 |
AC_MSG_NOTICE([ numactl: no]) |
|
2247 |
fi
|
|
2248 |
if test "$with_capng" = "yes" ; then |
|
2249 |
AC_MSG_NOTICE([ capng: $CAPNG_CFLAGS $CAPNG_LIBS]) |
|
2250 |
else
|
|
2251 |
AC_MSG_NOTICE([ capng: no]) |
|
2252 |
fi
|
|
2253 |
if test "$with_xen" = "yes" ; then |
|
2254 |
AC_MSG_NOTICE([ xen: $XEN_CFLAGS $XEN_LIBS]) |
|
2255 |
else
|
|
2256 |
AC_MSG_NOTICE([ xen: no]) |
|
2257 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2258 |
if test "$with_xenapi" = "yes" ; then |
2259 |
AC_MSG_NOTICE([ xenapi: $LIBXENSERVER_CFLAGS $LIBXENSERVER_LIBS]) |
|
2260 |
else
|
|
2261 |
AC_MSG_NOTICE([ xenapi: no]) |
|
2262 |
fi
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2263 |
if test "$with_hal" = "yes" ; then |
2264 |
AC_MSG_NOTICE([ hal: $HAL_CFLAGS $HAL_LIBS]) |
|
2265 |
else
|
|
2266 |
AC_MSG_NOTICE([ hal: no]) |
|
2267 |
fi
|
|
2268 |
if test "$with_udev" = "yes" ; then |
|
2269 |
AC_MSG_NOTICE([ udev: $UDEV_CFLAGS $UDEV_LIBS $PCIACCESS_CFLAGS $PCIACCESS_LIBS]) |
|
2270 |
else
|
|
2271 |
AC_MSG_NOTICE([ udev: no]) |
|
2272 |
fi
|
|
2273 |
if test "$with_netcf" = "yes" ; then |
|
2274 |
AC_MSG_NOTICE([ netcf: $NETCF_CFLAGS $NETCF_LIBS]) |
|
2275 |
else
|
|
2276 |
AC_MSG_NOTICE([ netcf: no]) |
|
2277 |
fi
|
|
2278 |
if test "$with_one" = "yes" ; then |
|
2279 |
AC_MSG_NOTICE([ xmlrpc: $XMLRPC_CFLAGS $XMLRPC_LIBS]) |
|
2280 |
else
|
|
2281 |
AC_MSG_NOTICE([ xmlrpc: no]) |
|
2282 |
fi
|
|
0.2.6
by Guido Günther
Import upstream version 0.8.0 |
2283 |
if test "$with_qemu" = "yes" ; then |
2284 |
AC_MSG_NOTICE([ pcap: $LIBPCAP_CFLAGS $LIBPCAP_LIBS]) |
|
2285 |
else
|
|
2286 |
AC_MSG_NOTICE([ pcap: no]) |
|
2287 |
fi
|
|
0.2.8
by Laurent Léonard
Import upstream version 0.8.2 |
2288 |
if test "$with_macvtap" = "yes" ; then |
2289 |
AC_MSG_NOTICE([ nl: $LIBNL_CFLAGS $LIBNL_LIBS]) |
|
2290 |
else
|
|
2291 |
AC_MSG_NOTICE([ nl: no]) |
|
2292 |
fi
|
|
0.2.4
by Laurent Léonard
Import upstream version 0.7.6 |
2293 |
AC_MSG_NOTICE([]) |
2294 |
AC_MSG_NOTICE([Test suite]) |
|
2295 |
AC_MSG_NOTICE([]) |
|
2296 |
AC_MSG_NOTICE([ Coverage: $enable_coverage]) |
|
2297 |
AC_MSG_NOTICE([ Alloc OOM: $enable_oom]) |
|
2298 |
AC_MSG_NOTICE([]) |
|
2299 |
AC_MSG_NOTICE([Miscellaneous]) |
|
2300 |
AC_MSG_NOTICE([]) |
|
2301 |
AC_MSG_NOTICE([ Debug: $enable_debug]) |
|
2302 |
AC_MSG_NOTICE([ Warnings: $enable_compile_warnings]) |
|
2303 |
AC_MSG_NOTICE([ Readline: $lv_use_readline]) |
|
2304 |
AC_MSG_NOTICE([ Python: $with_python]) |
|
2305 |
AC_MSG_NOTICE([]) |
|
2306 |
AC_MSG_NOTICE([Privileges]) |
|
2307 |
AC_MSG_NOTICE([]) |
|
2308 |
AC_MSG_NOTICE([ QEMU: $QEMU_USER:$QEMU_GROUP]) |
|
2309 |
AC_MSG_NOTICE([]) |