X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=70aec5ab018cc7337346386ba7c72fa72e65feab;hb=f50a8da60c154d80c40fd98cc14731eace35b6cd;hp=e5af7a955d074e44fda9f700f61073d5f8cead80;hpb=f408b36a70e9af688ec1f1013c7d535f8c06c032;p=virt-mem.git diff --git a/configure.ac b/configure.ac index e5af7a9..70aec5a 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(virt-mem,0.2.8) +AC_INIT(virt-mem,0.3.1) AC_PROG_INSTALL AC_PROG_MKDIR_P @@ -84,6 +84,27 @@ AC_SUBST(pkg_gettext) AC_SUBST(pkg_csv) AC_SUBST(pkg_xmlrpc_light) +dnl Check that libvirt / ocaml-libvirt support virDomainMemoryPeek, +dnl because without that call nothing is going to work. +old_libs="$LIBS" +AC_SEARCH_LIBS([virDomainMemoryPeek],[virt],[], + [AC_MSG_ERROR(virDomainMemoryPeek call not found in libvirt. You probably need to install a newer version of libvirt - try a version >= 0.4.4)]) +LIBS="$old_libs" + +AC_MSG_CHECKING([for Libvirt.Domain.memory_peek in ocaml-libvirt]) +echo "Libvirt.Domain.memory_peek" > conftest.ml +cmd="$OCAMLFIND ocamlc -package libvirt -c conftest.ml" +echo $cmd >&5 +$cmd >&5 2>&5 +r=$? +rm conftest.* +if test "$r" -eq 0 ; then + AC_MSG_RESULT([ok]) +else + AC_MSG_RESULT([not found]) + AC_MSG_FAILURE([Libvirt.Domain.memory_peek call not found in ocaml-libvirt. You probably need to install a newer version of ocaml-libvirt and libvirt - try versions >= 0.4.4]) +fi + dnl Check for optional perldoc (for building manual pages). AC_CHECK_PROG(HAVE_PERLDOC,perldoc,perldoc) @@ -153,6 +174,7 @@ AC_CONFIG_FILES([Makefile lib/virt_mem_version.ml uname/Makefile dmesg/Makefile + ifconfig/Makefile ps/Makefile mem/Makefile po/Makefile