You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
743 B
23 lines
743 B
dnl Copyright (c) 2016 - present Facebook, Inc.
|
|
dnl All rights reserved.
|
|
dnl
|
|
dnl This source code is licensed under the BSD style license found in the
|
|
dnl LICENSE file in the root directory of this source tree. An additional grant
|
|
dnl of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
AC_DEFUN([AC_ASSERT_OCAML_MIN_VERSION],
|
|
[dnl
|
|
AC_REQUIRE([AC_PROG_OCAML])
|
|
|
|
AC_MSG_CHECKING([if OCaml version is >= $1])
|
|
|
|
AC_COMPARE_VERSION_STRINGS([$1], [$OCAMLVERSION],
|
|
[AC_MSG_RESULT([yes])],
|
|
[AC_MSG_ERROR([m4_join([],[found version $OCAMLVERSION.
|
|
m4_newline([ Please upgrade to OCaml >= $1. If you are using opam, you can run])
|
|
m4_newline([dnl
|
|
opam switch $1
|
|
eval \$(opam config env)])
|
|
])])])
|
|
])
|