X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=configure.ac;h=04458a7aff9a02684e15c35e0813e28e0c02097d;hp=f19297157c0dfc2a9f796a59c2fe1105c4f3227d;hb=acb316417965e2b40010aeb35f8ff990db0d1d42;hpb=21298f7a45ee536800be5e771438b01089a5cb2c;ds=sidebyside diff --git a/configure.ac b/configure.ac index f192971..04458a7 100644 --- a/configure.ac +++ b/configure.ac @@ -15,9 +15,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -AC_INIT([whenjobs],0.0.1) +AC_INIT([whenjobs],0.0.3) AM_INIT_AUTOMAKE([foreign]) +dnl Only used temporarily while whenjobs.spec is contained in the +dnl tarball. We will remove this later. +AC_SUBST([RPM_RELEASE],[1]) + AC_CONFIG_MACRO_DIR([m4]) dnl Allow all GNU/Linux functions. @@ -58,12 +62,62 @@ fi dnl Check support for 64 bit file offsets. AC_SYS_LARGEFILE -dnl lex and yacc, or hopefully GNU equivalents. -AC_PROG_LEX -AC_PROG_YACC +dnl OCaml compiler. +AC_PROG_OCAML +if test "$OCAMLC" = "no"; then + AC_MSG_ERROR([You must install the OCaml compiler]) +fi + +AM_CONDITIONAL([HAVE_OCAMLOPT], [test "x$OCAMLOPT" != "xno"]) + +dnl Camlp4 is required. +AC_PROG_CAMLP4 +if test "x$CAMLP4" = "xno"; then + AC_MSG_ERROR([You must install camlp4 (the OCaml macro preprocessor)]) +fi + +dnl OCaml findlib ("ocamlfind") is required. +AC_PROG_FINDLIB +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 OCaml ocamlnet RPC library + dependencies (version 3) is required. +AC_CHECK_OCAML_PKG(rpc) +if test "x$OCAML_PKG_rpc" = "x"; then + AC_MSG_ERROR([You must install OCaml ocamlnet library version 3]) +fi + +AC_CHECK_PROG(OCAMLRPCGEN,ocamlrpcgen,ocamlrpcgen) +if test "x$OCAMLRPCGEN" = "x"; then + AC_MSG_ERROR([You must install the ocamlrpcgen program]) +fi + +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]) +fi + +dnl Check for mailx (for sending email). +AC_CHECK_PROG(MAILX,mailx,mailx) +if test "x$MAILX" = "x"; then + AC_MSG_ERROR([You must install the mailx program]) +fi AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile daemon/Makefile - tools/Makefile]) + lib/config.ml + lib/Makefile + tests/jobs/Makefile + tests/parsing/Makefile + tools/Makefile + whenjobs.spec]) AC_OUTPUT