Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (54 sloc) 1.798 kb
AC_INIT(opam,1.1.1)
AC_COPYRIGHT(Copyright 2012-2014 OcamlPro SAS)
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_OCAML
if test "$OCAMLC" = "no"; then
AC_MSG_ERROR([You must install the OCaml compiler])
fi
AC_PROG_CAMLP4
if test "$CAMLP4" = "no"; then
AC_MSG_ERROR([You must install the Camlp4 pre-processor. On some operating systems, these are separate packages from the main OCaml compiler, such as camlp4-extra on Debian.])
fi
AC_ARG_ENABLE([version_check],
AS_HELP_STRING([--disable-version-check],
[Do not check OCaml version])
)
# Check that OCaml version is greater or equal to 3.12.1
AS_IF([test "x${enable_version_check}" != "xno"], [
AX_COMPARE_VERSION(
[$OCAMLVERSION], [lt], [3.12.1],
AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported]))
])
AC_ARG_ENABLE([certificate_check],
AS_HELP_STRING([--disable-certificate-check],
[Do not check the certificate of OPAM's dependency archives])
)
AS_IF([test "x${enable_certificate_check}" = "xno"], [
curl_certificate_check=--insecure
wget_certificate_check=--no-check-certificate
])
AC_CHECK_PROGS(FETCH,[curl wget],no)
if test x"$FETCH" = x"curl" ; then
AC_SUBST(fetch, "curl $curl_certificate_check -OL")
elif test x"$FETCH" = x"wget" ; then
AC_SUBST(fetch, "wget $wget_certificate_check")
else
AC_MSG_ERROR([You must have either curl or wget installed.])
fi
AC_CONFIG_FILES(
Makefile.config
src/core/opamVersion.ml
doc/man-ext/opam-check.md
)
AC_OUTPUT
if test "$prefix" = "NONE"; then
prefix=$ac_default_prefix
fi
bindir="`eval echo ${bindir}`"
bindir="`eval echo ${bindir}`"
mandir="`eval echo ${mandir}`"
mandir="`eval echo ${mandir}`"
echo
echo Executables will be installed in ${bindir}
echo Manual pages will be installed in ${mandir}
Jump to Line
Something went wrong with that request. Please try again.