This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
AC_INIT(parmap, 0.9.8, roberto@dicosmo.org) |
| 2 |
|
| 3 |
AC_PROG_OCAML |
| 4 |
if test "$OCAMLC" = "no"; then |
| 5 |
AC_MSG_ERROR([You must install the OCaml compiler]) |
| 6 |
fi |
| 7 |
|
| 8 |
AC_PROG_CAMLP4 |
| 9 |
AC_SUBST(CAMLP4O) |
| 10 |
if test "$CAMLP4" = "no"; then |
| 11 |
AC_MSG_ERROR([You must install the Camlp4 pre-processor]) |
| 12 |
fi |
| 13 |
|
| 14 |
AC_PROG_FINDLIB |
| 15 |
AC_SUBST(OCAMLFIND) |
| 16 |
if test "$OCAMLFIND" = "no"; then |
| 17 |
AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)]) |
| 18 |
fi |
| 19 |
|
| 20 |
AC_CHECK_OCAML_PKG([extlib]) |
| 21 |
if test "$OCAML_PKG_extlib" = "no"; then |
| 22 |
AC_MSG_ERROR([Please install OCaml findlib module 'extlib'.]) |
| 23 |
fi |
| 24 |
|
| 25 |
AC_HEADER_STDC |
| 26 |
AC_CHECK_HEADERS([sched.h]) |
| 27 |
AC_CHECK_DECLS([sched_setaffinity], [], [], [[ |
| 28 |
#define _GNU_SOURCE 1 |
| 29 |
#include <sched.h> |
| 30 |
]]) |
| 31 |
|
| 32 |
AC_CHECK_HEADERS([mach/thread_policy.h]) |
| 33 |
AC_CHECK_DECLS([thread_policy_set], [], [], [[ |
| 34 |
#include <mach/mach_init.h> |
| 35 |
#include <mach/thread_policy.h> |
| 36 |
]]) |
| 37 |
|
| 38 |
AC_CONFIG_HEADERS([config.h]) |
| 39 |
AC_CONFIG_FILES([Makefile]) |
| 40 |
AC_OUTPUT |