Skip to content
Newer
Older
100644 48 lines (38 sloc) 1.26 KB
f6baf18 @chambart Prepare for separate distribution of ocp-build
authored
1 AC_INIT(ocp-build,0.1)
bf8d811 @lefessan added more files
lefessan authored
2 AC_COPYRIGHT(Copyright 2012 OcamlPro SAS)
3
4 AC_CONFIG_MACRO_DIR([m4])
5 AC_PROG_CC
6
7 AC_PROG_OCAML
8 if test "$OCAMLC" = "no"; then
9 AC_MSG_ERROR([You must install the OCaml compiler])
10 fi
11
12 AC_ARG_ENABLE(version-check,
13 [ --disable-version-check do not check OCaml version],
14 [VERSION_CHECK="$enableval"],
15 [VERSION_CHECK="yes"])
16
17 # Check that OCaml version is greater or equal to 3.12.1
18 if test "$VERSION_CHECK" = "yes" ; then
19 AX_COMPARE_VERSION( [$OCAMLVERSION], [lt], [3.12.1],
20 AC_MSG_ERROR([Your version of OCaml: $OCAMLVERSION is not supported]))
21 fi
22
23 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
24 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25
26 bindir="`eval echo ${bindir}`"
27 bindir="`eval echo ${bindir}`"
28 mandir="`eval echo ${mandir}`"
29 mandir="`eval echo ${mandir}`"
30 libdir="`eval echo ${libdir}`"
31 libdir="`eval echo ${libdir}`"
32 datarootdir="`eval echo ${datarootdir}`"
33 datarootdir="`eval echo ${datarootdir}`"
34
35 AC_CONFIG_FILES(
36 Makefile.config
37 )
38 AC_OUTPUT
39
ca31d1b @lefessan Simpler installation
lefessan authored
40 echo Creating file ocp-build.root
41 touch ocp-build.root
42
bf8d811 @lefessan added more files
lefessan authored
43 echo
44 echo Executables will be installed in ${bindir}
f6baf18 @chambart Prepare for separate distribution of ocp-build
authored
45 echo Libraries will be installed in ${libdir} + ocp
46 echo Data files will be installed in ${datarootdir} + ocp
bf8d811 @lefessan added more files
lefessan authored
47 echo Manual pages will be installed in ${mandir}
Something went wrong with that request. Please try again.