dnl Process this file with autoconf to produce a configure script.
-AC_INIT(virt-df,2.0.1)
+AC_INIT(virt-df,2.1.3)
AC_PROG_INSTALL
AC_MSG_ERROR([OCaml findlib is required])
fi
+AC_CHECK_OCAML_WORD_SIZE(OCAML_WORD_SIZE)
+
dnl Use ocamlfind to find the required packages ...
dnl Check for required OCaml packages.
AC_MSG_ERROR([Cannot find required OCaml package 'xml-light'])
fi
-AC_CHECK_OCAML_PKG(bitmatch)
-if test "x$pkg_bitmatch" != "xyes"; then
- AC_MSG_ERROR([Cannot find required OCaml package 'bitmatch'])
+AC_CHECK_OCAML_PKG(bitstring)
+if test "x$pkg_bitstring" != "xyes"; then
+ AC_MSG_ERROR([Cannot find required OCaml package 'bitstring'])
fi
dnl Check for optional OCaml packages.
AC_SUBST(pkg_extlib)
AC_SUBST(pkg_libvirt)
AC_SUBST(pkg_xml_light)
-AC_SUBST(pkg_bitmatch)
+AC_SUBST(pkg_bitstring)
AC_SUBST(pkg_gettext)
AC_SUBST(pkg_csv)
fi
done
+dnl Enable type annotation files (always, there's no penalty for doing
+dnl this). Use C-c C-t in emacs to print the type of an expression.
+OCAMLCFLAGS="-dtypes -g"
+OCAMLOPTFLAGS=""
+
+dnl Enable profiling support for native code.
+AC_ARG_ENABLE([profiling],
+ [AS_HELP_STRING([--enable-profiling],
+ [enable profiling for native code])],
+ [OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p"])
+
+AC_SUBST(OCAMLCFLAGS)
+AC_SUBST(OCAMLOPTFLAGS)
+
dnl Summary.
echo "------------------------------------------------------------"
echo "Thanks for downloading" $PACKAGE_STRING
Make.rules
diskzip/Makefile
lib/Makefile
+ lib/META
po/Makefile
virt-df/Makefile
+ virt-df/virt_df_version.ml
])
AC_OUTPUT