Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 64 lines (52 sloc) 1.392 kB
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
4 AC_PREREQ([2.59])
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
5 AC_INIT([xen-api-libs], [0.1], [xen-api@lists.xensource.com])
6 AC_CONFIG_SRCDIR([])
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
7 AC_CONFIG_HEADERS([include/config.h])
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
8 AC_CONFIG_AUX_DIR(./mk)
9
10 AC_CANONICAL_SYSTEM
11 plat=generic
12 case $target_os in
13 darwin*)
14 plat=darwin
15 ;;
16 *)
17 ;;
18 esac
19
20 # Checks for programs.
21 AC_PROG_CC
22 AC_PROG_INSTALL
23 AC_PROG_MAKE_SET
24
25 # Checks for libraries.
26
27 # Checks for header files.
28 AC_CHECK_HEADERS([string.h sys/param.h])
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
29 AC_CHECK_HEADERS([xen/xen.h],[XEN=1],[XEN=0])
30 AC_CHECK_HEADERS([libdevmapper.h], [DEVICE_MAPPER=1], [DEVICE_MAPPER=0])
31 AC_CHECK_HEADERS([linux/cdrom.h], [LINUX_CDROM=1], [LINUX_CDROM=0])
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
32
33 # Checks for typedefs, structures, and compiler characteristics.
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
34 AC_CHECK_DECLS([XS_RESTRICT],[],[],[
35 [
36 #include <errno.h>
37 #include <xenctrl.h>
38 #include <xen/io/xs_wire.h>
39 ]])
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
40
41 # Checks for library functions.
42 AC_CHECK_FUNCS([realpath])
43
44 AC_PROG_OCAML
45 if test "$OCAMLC" = "no"; then
46 AC_MSG_ERROR([You must install the OCaml compiler])
47 fi
48
49 AC_PROG_FINDLIB
50 if test "$OCAMLFIND" = "no"; then
51 AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
52 fi
53
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
54 AC_CHECK_OCAML_PKG([xmlm])
55 AC_CHECK_OCAML_PKG([type-conv])
56
cff115e @zli Xen 4.1: Add configure-time option to use system installed Xen librar…
zli authored
57 AC_CONFIG_FILES([Makefile config.mk])
f21c50e @djs55 Use autoconf to detect: xen headers; XS_RESTRICT in patchqueue; ocaml…
djs55 authored
58 AC_SUBST([XEN])
59 AC_SUBST([DEVICE_MAPPER])
60 AC_SUBST([LINUX_CDROM])
61 AC_SUBST([OCAML_PKG_xmlm])
62 AC_SUBST([OCAML_PKG_type_conv])
970b47b @avsm add autoconf infrastructure, including the OCaml M4 macros
avsm authored
63 AC_OUTPUT
Something went wrong with that request. Please try again.