X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=c54b0beb8fe216d944d5712bebdbd342bdd15f1e;hb=c7820805bfa607da6cc234a29254cd20655b7601;hp=8f655f2ed5921129356eb27dc1658f962eaa525d;hpb=2756390750d79836e7b101b41920e3ba288cbc0a;p=virt-df.git diff --git a/configure.ac b/configure.ac index 8f655f2..c54b0be 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(virt-df,2.0.0) +AC_INIT(virt-df,2.1.1) AC_PROG_INSTALL @@ -29,6 +29,8 @@ if test "x$OCAMLFIND" = "x"; then 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. @@ -59,12 +61,15 @@ fi dnl Check for optional OCaml packages. AC_CHECK_OCAML_PKG(gettext) +AC_CHECK_OCAML_PKG(csv) AC_SUBST(pkg_unix) AC_SUBST(pkg_extlib) -AC_SUBST(pkg_gettext) +AC_SUBST(pkg_libvirt) AC_SUBST(pkg_xml_light) AC_SUBST(pkg_bitmatch) +AC_SUBST(pkg_gettext) +AC_SUBST(pkg_csv) dnl Check for optional perldoc (for building manual pages). AC_CHECK_PROG(HAVE_PERLDOC,perldoc,perldoc) @@ -74,7 +79,7 @@ AC_CHECK_PROG(OCAML_GETTEXT,ocaml-gettext,ocaml-gettext) dnl Write gettext modules for the programs. dnl http://www.le-gall.net/sylvain+violaine/documentation/ocaml-gettext/html/reference-manual/ch03s04.html -for d in virt-df; do +for d in diskzip virt-df; do f=`echo $d | tr - _`_gettext.ml AC_MSG_NOTICE([creating $d/$f]) rm -f $d/$f @@ -108,6 +113,20 @@ EOT 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 @@ -117,7 +136,11 @@ dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile Make.rules + diskzip/Makefile + lib/Makefile + lib/META po/Makefile virt-df/Makefile + virt-df/virt_df_version.ml ]) AC_OUTPUT