Generate ocamldoc, multiple documentation fixes.
[goaljobs.git] / configure.ac
index 7097795..cdf9cfb 100644 (file)
@@ -82,10 +82,26 @@ if test "x$OCAMLFIND" = "xno"; then
     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
+    AC_MSG_ERROR([You must install the 'curl' program])
+fi
+
+dnl ocamldoc (optional)
+AM_CONDITIONAL([HAVE_OCAMLDOC],
+               [test "x$OCAMLDOC" != "xno"])
+
 dnl Check for POD (for manual pages).
 AC_CHECK_PROG(PERLDOC,perldoc,perldoc)
 if test "x$PERLDOC" = "x"; then
-    AC_MSG_ERROR([You must install the perldoc program])
+    AC_MSG_ERROR([You must install the 'perldoc' program])
 fi
 
 AC_CONFIG_HEADERS([config.h])