From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Tue, 29 Apr 2008 12:40:21 +0000 (+0100) Subject: Check OCaml compiler word size X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=518f2f45a75c2714c360aa4e68302693b571d4a9;p=virt-df.git Check OCaml compiler word size --- diff --git a/aclocal.m4 b/aclocal.m4 index 38ad15f..fad331a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -168,3 +168,18 @@ else $2=no fi AC_SUBST($2)]) + + +dnl AC_CHECK_OCAML_WORD_SIZE(var) sets var=32 or var=64 +dnl according to the compiler word size. +dnl Contributed by Richard W.M. Jones +dnl XXX This completely fails to deal with cross-compiler case. +AC_DEFUN([AC_CHECK_OCAML_WORD_SIZE], +[dnl +AC_MSG_CHECKING(for OCaml compiler word size) +cat > conftest.ml <