Revision 365a5dd723a5fa225dcb79aff280f4eab309e50f authored by Pietro Abate on 22 January 2012, 02:43:01 UTC, committed by Roberto Di Cosmo on 22 January 2012, 10:34:27 UTC
small change in the configure script
make Makefile_3.11 ./configure aware
1 parent 0064fbd
Raw File
configure.ac
AC_INIT(parmap, 0.9.8, roberto@dicosmo.org)

AC_PROG_OCAML
if test "$OCAMLC" = "no"; then
 AC_MSG_ERROR([You must install the OCaml compiler])
fi

AC_PROG_CAMLP4
AC_SUBST(CAMLP4O)
if test "$CAMLP4" = "no"; then
 AC_MSG_ERROR([You must install the Camlp4 pre-processor])
fi

AC_PROG_FINDLIB
AC_SUBST(OCAMLFIND)
if test "$OCAMLFIND" = "no"; then
 AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
fi

AC_CHECK_OCAML_PKG([extlib])
if test "$OCAML_PKG_extlib" = "no"; then
 AC_MSG_ERROR([Please install OCaml findlib module 'extlib'.])
fi

AC_HEADER_STDC
AC_CHECK_HEADERS([sched.h])
AC_CHECK_DECLS([sched_setaffinity], [], [], [[
                #define _GNU_SOURCE 1
                #include <sched.h>
                ]])

AC_CHECK_HEADERS([mach/thread_policy.h])
AC_CHECK_DECLS([thread_policy_set], [], [], [[
                #include <mach/mach_init.h>
                #include <mach/thread_policy.h>
                ]])

AC_CONFIG_HEADERS([config.h])

AC_CHECK_TOOL([OCAMLBUILD],[ocamlbuild],[no])
if test "$OCAMLBUILD" = "no"; then
  AC_MSG_RESULT(OCamlbuild not found. Use pre-ocaml 3.12 Makefile)
  AC_CONFIG_FILES([Makefile_3.11])
  mv Makefile_3.11 Makefile
else
  AC_MSG_RESULT(OCamlbuild found. Use standard Makefile)
  AC_CONFIG_FILES([Makefile])
fi

AC_OUTPUT

back to top