-# XXX Broken because *.cmi files are missing from this package.
-#if test "x$pkg_libvirt" = "xno"; then
-# AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-libvirt'])
-#fi
+if test "x$pkg_libvirt" = "xno"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-libvirt'])
+fi
+
+AC_CHECK_OCAML_MODULE(gettext,pkg_gettext,Gettext,[+gettext])
+if test "x$pkg_gettext" = "xno"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'ocaml-gettext'])
+fi