AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
fi
+dnl OCaml calendar library is required.
+AC_CHECK_OCAML_PKG(calendar)
+if test "x$OCAML_PKG_calendar" = "xno"; then
+ AC_MSG_ERROR([You must install OCaml calendar library version 2])
+fi
+
dnl Check for curl (for URL testing, downloads).
AC_CHECK_PROG(CURL,curl,curl)
if test "x$CURL" = "x"; then