~ubuntu-branches/ubuntu/maverick/libvirt/maverick

« back to all changes in this revision

Viewing changes to configure.in

Tags: upstream-0.6.4
Import upstream version 0.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
 
3
 
AC_INIT([libvirt], [0.6.2])
 
3
AC_INIT([libvirt], [0.6.4])
4
4
AC_CONFIG_SRCDIR([src/libvirt.c])
5
5
AC_CONFIG_AUX_DIR([build-aux])
6
6
AM_CONFIG_HEADER([config.h])
28
28
AVAHI_REQUIRED="0.6.0"
29
29
POLKIT_REQUIRED="0.6"
30
30
PARTED_REQUIRED="1.8.0"
 
31
NETCF_REQUIRED="0.0.1"
31
32
 
32
33
dnl Checks for C compiler.
33
34
AC_PROG_CC
57
58
AC_LIBTOOL_WIN32_DLL
58
59
 
59
60
AM_PROG_LIBTOOL
 
61
dnl Override normal libtool in favour of our quiet version
 
62
LIBTOOL='$(SHELL) $(top_srcdir)/mylibtool'
 
63
AC_SUBST([LIBTOOL])
60
64
 
61
65
AM_PROG_CC_C_O
62
66
 
182
186
[  --with-uml              add UML support (on)],[],[with_uml=yes])
183
187
AC_ARG_WITH([openvz],
184
188
[  --with-openvz           add OpenVZ support (on)],[],[with_openvz=yes])
 
189
AC_ARG_WITH([vbox],
 
190
[  --with-vbox             add VirtualBox support (on)],[],[with_vbox=yes])
185
191
AC_ARG_WITH([lxc],
186
192
[  --with-lxc              add Linux Container support (on)],[],[with_lxc=yes])
 
193
AC_ARG_WITH([one],
 
194
[  --with-one              add ONE support (on)],[],[with_one=no])
187
195
AC_ARG_WITH([test],
188
196
[  --with-test             add test driver support (on)],[],[with_test=yes])
189
197
AC_ARG_WITH([remote],
277
285
fi
278
286
AM_CONDITIONAL([WITH_OPENVZ], [test "$with_openvz" = "yes"])
279
287
 
 
288
if test "x$with_vbox" = "xyes"; then
 
289
    AC_DEFINE_UNQUOTED([WITH_VBOX], 1, [whether VirtualBox driver is enabled])
 
290
fi
 
291
AM_CONDITIONAL([WITH_VBOX], [test "$with_vbox" = "yes"])
 
292
 
280
293
if test "$with_libvirtd" = "no" ; then
281
294
  with_lxc=no
282
295
fi
298
311
fi
299
312
AM_CONDITIONAL([WITH_UML], [test "$with_uml" = "yes"])
300
313
 
 
314
if test "$with_one" = "yes" ; then
 
315
    AC_DEFINE_UNQUOTED([WITH_ONE],1,[whether ONE driver is enabled])
 
316
fi
 
317
AM_CONDITIONAL([WITH_ONE],[test "$with_one" = "yes"])
 
318
 
301
319
if test "$with_test" = "yes" ; then
302
320
    AC_DEFINE_UNQUOTED([WITH_TEST], 1, [whether Test driver is enabled])
303
321
fi
399
417
dnl
400
418
AC_CHECK_HEADERS([linux/kvm.h])
401
419
 
 
420
dnl OpenNebula driver Compilation setting
 
421
dnl
 
422
 
 
423
if test "$with_one" = "yes" ; then
 
424
 CFLAGS="$CFLAGS -I$ONE_LOCATION/include"
 
425
 ONE_LIBS="-L/usr/local/lib -lxmlrpc_client++ -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc++ -lxmlrpc_client -L$ONE_LOCATION/lib -loneapi"
 
426
 AC_SUBST([ONE_LIBS])
 
427
fi
 
428
 
402
429
dnl Need to test if pkg-config exists
403
430
PKG_PROG_PKG_CONFIG
404
431
 
782
809
fi
783
810
AM_CONDITIONAL([WITH_BRIDGE], [test "$with_bridge" = "yes"])
784
811
 
785
 
dnl
786
 
dnl Storage driver checks
787
 
dnl
 
812
dnl netcf library
 
813
AC_ARG_WITH([netcf],
 
814
[  --with-netcf         libnetcf support to configure physical host network interfaces],
 
815
[], [with_netcf=check])
 
816
 
 
817
NETCF_CFLAGS=
 
818
NETCF_LIBS=
 
819
if test "$with_netcf" = "yes" -o "$with_netcf" = "check"; then
 
820
  PKG_CHECK_MODULES(NETCF, netcf >= $NETCF_REQUIRED,
 
821
    [with_netcf=yes], [
 
822
    if test "$with_netcf" = "check" ; then
 
823
       with_netcf=no
 
824
    else
 
825
       AC_MSG_ERROR(
 
826
         [You must install libnetcf >= $NETCF_REQUIRED to compile libvirt])
 
827
    fi
 
828
  ])
 
829
  if test "$with_netcf" = "yes" ; then
 
830
    AC_DEFINE_UNQUOTED([WITH_NETCF], 1,
 
831
      [whether libnetcf is available to configure physical host network interfaces])
 
832
  fi
 
833
fi
 
834
AM_CONDITIONAL([WITH_NETCF], [test "$with_netcf" = "yes"])
 
835
AC_SUBST([NETCF_CFLAGS])
 
836
AC_SUBST([NETCF_LIBS])
788
837
 
789
838
AC_ARG_WITH([storage-fs],
790
839
[  --with-storage-fs           with FileSystem backend for the storage driver (on)],[],[with_storage_fs=check])
1122
1171
  AC_DEFINE([TEST_OOM], 1, [Whether malloc OOM checking is enabled])
1123
1172
fi
1124
1173
 
 
1174
 
 
1175
AC_ARG_ENABLE([test-locking],
 
1176
[  --enable-test-locking       thread locking tests using CIL],
 
1177
[case "${enableval}" in
 
1178
   yes|no) ;;
 
1179
   *)      AC_MSG_ERROR([bad value ${enableval} for test-locking option]) ;;
 
1180
 esac],
 
1181
              [enableval=no])
 
1182
enable_locking=$enableval
 
1183
 
 
1184
if test "$enable_locking" = "yes"; then
 
1185
  LOCK_CHECKING_CFLAGS="-Dbool=char -D_Bool=char -save-temps"
 
1186
  AC_SUBST([LOCK_CHECKING_CFLAGS])
 
1187
fi
 
1188
AM_CONDITIONAL([WITH_CIL],[test "$enable_locking" = "yes"])
 
1189
 
1125
1190
dnl Enable building the proxy?
1126
1191
 
1127
1192
AC_ARG_WITH([xen-proxy],
1342
1407
          include/libvirt/Makefile include/libvirt/libvirt.h \
1343
1408
          python/Makefile python/tests/Makefile \
1344
1409
          qemud/Makefile \
 
1410
          tools/Makefile \
1345
1411
          tests/Makefile proxy/Makefile \
1346
1412
          tests/xml2sexprdata/Makefile \
1347
1413
          tests/sexpr2xmldata/Makefile \
1362
1428
AC_MSG_NOTICE([    QEMU: $with_qemu])
1363
1429
AC_MSG_NOTICE([     UML: $with_uml])
1364
1430
AC_MSG_NOTICE([  OpenVZ: $with_openvz])
 
1431
AC_MSG_NOTICE([    VBox: $with_vbox])
1365
1432
AC_MSG_NOTICE([     LXC: $with_lxc])
 
1433
AC_MSG_NOTICE([     ONE: $with_one])
1366
1434
AC_MSG_NOTICE([    Test: $with_test])
1367
1435
AC_MSG_NOTICE([  Remote: $with_remote])
1368
1436
AC_MSG_NOTICE([ Network: $with_network])
1369
1437
AC_MSG_NOTICE([Libvirtd: $with_libvirtd])
 
1438
AC_MSG_NOTICE([   netcf: $with_netcf])
1370
1439
AC_MSG_NOTICE([])
1371
1440
AC_MSG_NOTICE([Storage Drivers])
1372
1441
AC_MSG_NOTICE([])
1434
1503
else
1435
1504
AC_MSG_NOTICE([  devkit: no])
1436
1505
fi
 
1506
if test "$with_netcf" = "yes" ; then
 
1507
AC_MSG_NOTICE([   netcf: $NETCF_CFLAGS $NETCF_LIBS])
 
1508
else
 
1509
AC_MSG_NOTICE([   netcf: no])
 
1510
fi
1437
1511
AC_MSG_NOTICE([])
1438
1512
AC_MSG_NOTICE([Test suite])
1439
1513
AC_MSG_NOTICE([])