X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=63635b67831dceffc90ec95c10178dd5c599b7aa;hb=c6c9c3fff5993056e0af7219f4fe67ab8db3cdf2;hp=8a3d8ad37d91786f56ba4002d3a5b67774a614cf;hpb=540350822d365a2fdb929a71009ba6c96fdf1a5e;p=ocaml-libvirt.git diff --git a/configure.ac b/configure.ac index 8a3d8ad..63635b6 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ocaml-libvirt,0.6.1.0) +AC_INIT(ocaml-libvirt,0.6.1.2) dnl Check for basic C environment. AC_PROG_CC @@ -125,26 +125,11 @@ AC_CHECK_FUNCS([virConnectGetHostname \ virStorageVolGetPath \ virDomainBlockPeek \ virDomainMemoryPeek \ - virConnectListAllDomains \ + virDomainGetCPUStats \ ]) -# This jobs API was never published and is due to get overhauled -# in the near future: -# virJobGetInfo -# virJobGetDomain -# virJobGetNetwork -# virJobCancel -# virJobFree -# virDomainCreateLinuxJob -# virDomainSaveJob -# virDomainRestoreJob -# virDomainCoreDumpJob -# virDomainCreateJob -# virNetworkCreateXMLJob -# virNetworkCreateJob - dnl Check for optional types added since 0.2.1. -AC_CHECK_TYPES([virJobPtr, virStoragePoolPtr, virStorageVolPtr],,, +AC_CHECK_TYPES([virStoragePoolPtr, virStorageVolPtr],,, [#include ]) dnl Check for basic OCaml environment & findlib. @@ -163,14 +148,6 @@ if test "x$pkg_unix" != "xyes"; then AC_MSG_ERROR([Cannot find required OCaml package 'unix']) fi -dnl Check for optional OCaml packages. -AC_CHECK_OCAML_PKG(gettext) - -AC_SUBST(pkg_gettext) - -dnl Check for recommended ocaml-gettext tool. -AC_CHECK_PROG(OCAML_GETTEXT,ocaml-gettext,ocaml-gettext) - dnl Check for optional NSIS (for building a Windows installer). dnl XXX This probably doesn't work at the moment XXX AC_ARG_WITH([nsis], @@ -261,42 +238,6 @@ AC_SUBST(GNUTLS_DLL_PATH) AC_SUBST(GTK_DLL_PATH) AC_SUBST(GTK_PATH) -dnl Write gettext modules for the programs. -dnl http://www.le-gall.net/sylvain+violaine/documentation/ocaml-gettext/html/reference-manual/ch03s04.html -for d in mlvirsh; do - f=`echo $d | tr - _`_gettext.ml - AC_MSG_NOTICE([creating $d/$f]) - rm -f $d/$f - echo "(* This file is generated automatically by ./configure. *)" > $d/$f - if test "x$pkg_gettext" != "xno"; then - # Gettext module is available, so use it. - cat <>$d/$f -module Gettext = Gettext.Program ( - struct - let textdomain = "$d" - let codeset = None - let dir = None - let dependencies = [[]] - end -) (GettextStub.Native) -EOT - else - # No gettext module is available, so fake the translation functions. - cat <>$d/$f -module Gettext = struct - external s_ : string -> string = "%identity" - external f_ : ('a -> 'b, 'c, 'd) format -> ('a -> 'b, 'c, 'd) format - = "%identity" - let sn_ : string -> string -> int -> string - = fun s p n -> if n = 1 then s else p - let fn_ : ('a -> 'b, 'c, 'd) format -> ('a -> 'b, 'c, 'd) format -> int - -> ('a -> 'b, 'c, 'd) format - = fun s p n -> if n = 1 then s else p -end -EOT - fi -done - dnl Summary. echo "------------------------------------------------------------" echo "Thanks for downloading" $PACKAGE_STRING @@ -308,10 +249,8 @@ AC_CONFIG_FILES([META libvirt/libvirt_version.ml Makefile Make.rules - po/Makefile libvirt/Makefile examples/Makefile - mlvirsh/Makefile ]) if test "x$MAKENSIS" != "x"; then AC_CONFIG_FILES([wininstaller.nsis])