X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=d6e1633b1928f60c3e5f1be7af71c83da25b6bb5;hb=5a456c968ee7e7bbe477ae4e756967c4aa2e3fc1;hp=cef63003dc13e74856421796e3761eaac1212535;hpb=315ceff80b09b76959a067fa2f3288f22d2e55da;p=goals.git diff --git a/configure.ac b/configure.ac index cef6300..d6e1633 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -AC_INIT([goals], [0.1]) +AC_INIT([goals], [0.2]) AC_CONFIG_MACRO_DIR([m4]) AC_PROG_INSTALL @@ -29,6 +29,10 @@ AC_PROG_CPP AC_C_PROTOTYPES test "x$U" != "x" && AC_MSG_ERROR([Compiler not ANSI compliant]) +dnl C headers and functions. +AC_CHECK_HEADERS([sys/sysinfo.h]) +AC_CHECK_FUNCS([get_nprocs]) + dnl Check for basic OCaml environment and findlib. AC_PROG_OCAML if test "x$OCAMLC" = "xno"; then @@ -49,12 +53,24 @@ AC_CHECK_PROG(MENHIR, [menhir], [menhir], [ AC_MSG_ERROR([OCaml menhir parser generator is required]) ]) +AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [ + AC_MSG_ERROR([pod2man tool from Perl is required]) +]) + +AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [ + AC_MSG_ERROR([pod2text tool from Perl is required]) +]) + +dnl Substitute OCaml flags and packages. +AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error CDEFLMPSUVYZX+52-3"]) +AC_SUBST([OCAMLPACKAGES], ["-package str,unix,threads -thread"]) + dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h]) AC_CONFIG_FILES([run], [chmod +x,-w run]) AC_CONFIG_FILES([Goalfile Makefile - src/Goalfile src/Makefile + goals.spec src/config.ml]) AC_OUTPUT