dnl Process this file with autoconf to produce a configure script.
-AC_INIT(ocaml-bitmatch,1.2)
+AC_INIT(ocaml-bitmatch,1.9)
dnl Check for basic C environment.
AC_PROG_CC
AC_PROG_CC_C_O
-dnl Check for endianness.
+dnl Check for native endianness.
AC_C_BIGENDIAN(
[NATIVEENDIAN=BigEndian],
[NATIVEENDIAN=LittleEndian],
AC_MSG_ERROR([You must have camlp4 installed])
fi
+dnl Check for CIL (optional)
+AC_CHECK_OCAML_PKG(cil)
+AC_SUBST(pkg_cil)
+
dnl Produce output files.
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile META bitmatch_config.ml])
+AC_CONFIG_FILES([Makefile META bitmatch_config.ml cil-tools/Makefile])
AC_OUTPUT