Skip to content
This repository was archived by the owner on May 22, 2018. It is now read-only.

Commit 970b47b

Browse files
committed
add autoconf infrastructure, including the OCaml M4 macros
Signed-off-by: Anil Madhavapeddy <[email protected]>
1 parent 46c2297 commit 970b47b

File tree

10 files changed

+3548
-3
lines changed

10 files changed

+3548
-3
lines changed

.hgignore

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@
88
\.a$
99
\.annot$
1010
\/META$
11+
autom4te\.cache/
12+
\.swp$
13+
^stdext/config\.h$
14+
^config\.log$
15+
^config\.status$
16+
^configure$

Makefile renamed to Makefile.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ all:
1515
$(MAKE) -C sexpr
1616

1717
.PHONY: allxen
18-
allxen: all
18+
allxen:
1919
$(MAKE) -C mmap
2020
$(MAKE) -C xc
2121
$(MAKE) -C xb
@@ -135,5 +135,3 @@ cleanxen:
135135
$(MAKE) -C xs clean
136136
$(MAKE) -C xsrpc clean
137137
$(MAKE) -C eventchn clean
138-
139-

aclocal.m4

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2+
3+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4+
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5+
# This file is free software; the Free Software Foundation
6+
# gives unlimited permission to copy and/or distribute it,
7+
# with or without modifications, as long as this notice is preserved.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12+
# PARTICULAR PURPOSE.
13+
14+
m4_include([mk/ocaml.m4])

configure.ac

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.63])
5+
AC_INIT([xen-api-libs], [0.1], [[email protected]])
6+
AC_CONFIG_SRCDIR([])
7+
AC_CONFIG_HEADERS([stdext/config.h])
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])
29+
30+
# Checks for typedefs, structures, and compiler characteristics.
31+
32+
# Checks for library functions.
33+
AC_CHECK_FUNCS([realpath])
34+
35+
AC_PROG_OCAML
36+
if test "$OCAMLC" = "no"; then
37+
AC_MSG_ERROR([You must install the OCaml compiler])
38+
fi
39+
40+
AC_PROG_FINDLIB
41+
if test "$OCAMLFIND" = "no"; then
42+
AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
43+
fi
44+
45+
AC_CONFIG_FILES([Makefile])
46+
AC_OUTPUT

mk/LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright © 2009 Richard W.M. Jones
2+
Copyright © 2009 Stefano Zacchiroli
3+
Copyright © 2000-2005 Olivier Andrieu
4+
Copyright © 2000-2005 Jean-Christophe Filliâtre
5+
Copyright © 2000-2005 Georges Mariano
6+
7+
All rights reserved.
8+
9+
Redistribution and use in source and binary forms, with or without modification,
10+
are permitted provided that the following conditions are met:
11+
12+
* Redistributions of source code must retain the above copyright notice, this
13+
list of conditions and the following disclaimer.
14+
* Redistributions in binary form must reproduce the above copyright notice,
15+
this list of conditions and the following disclaimer in the documentation
16+
and/or other materials provided with the distribution.
17+
* The names of the contributors may not be used to endorse or promote
18+
products derived from this software without specific prior written
19+
permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
22+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
25+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)