X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=79ed9c9ec3bf080a1e1ff1fd917dcbaf0a074308;hb=b5d8f76790194561f08fb500b3cc2cb10504199e;hp=f1c908b148ce9f54029048ea5624e9c2bf157406;hpb=48e95746a32612995f6eddd7661340679e6ad4d5;p=wrappi.git diff --git a/configure.ac b/configure.ac index f1c908b..79ed9c9 100644 --- a/configure.ac +++ b/configure.ac @@ -37,17 +37,35 @@ AM_PROG_CC_C_O dnl Check support for 64 bit file offsets. AC_SYS_LARGEFILE -dnl Check for OCaml compiler and camlp4. +dnl Check for OCaml compiler. AC_PROG_OCAML if test "$OCAMLC" = "no"; then AC_MSG_ERROR([You must install the OCaml compiler]) fi +dnl Camlp4 is required. AC_PROG_CAMLP4 if test "$CAMLP4" = "no"; then AC_MSG_ERROR([You must install camlp4 (the OCaml macro preprocessor)]) fi +dnl OCaml findlib ("ocamlfind") is required. +AC_PROG_FINDLIB +if test "$OCAMLFIND" = "no"; then + AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)]) +fi + +dnl Library versioning. +LIB_MINOR=`cat $srcdir/lib/LIB_MINOR` +AC_SUBST(LIB_MINOR) + AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile + APIs/Makefile + examples/Makefile + generator/Makefile + generator-lib/config.ml + generator-lib/Makefile + generator-macros/Makefile + lib/Makefile]) AC_OUTPUT