Permalink
Browse files

add autoconf infrastructure, including the OCaml M4 macros

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
  • Loading branch information...
1 parent 46c2297 commit 970b47b9dd194310ff5269b0962b81c4d3164764 @avsm avsm committed Nov 6, 2009
Showing with 3,548 additions and 3 deletions.
  1. +6 −0 .hgignore
  2. +1 −3 Makefile → Makefile.in
  3. +14 −0 aclocal.m4
  4. +46 −0 configure.ac
  5. +30 −0 mk/LICENSE
  6. +1,542 −0 mk/config.guess
  7. +1,677 −0 mk/config.sub
  8. +14 −0 mk/install-sh
  9. +217 −0 mk/ocaml.m4
  10. +1 −0 stdext/config.h.in
View
@@ -8,3 +8,9 @@
\.a$
\.annot$
\/META$
+autom4te\.cache/
+\.swp$
+^stdext/config\.h$
+^config\.log$
+^config\.status$
+^configure$
View
@@ -15,7 +15,7 @@ all:
$(MAKE) -C sexpr
.PHONY: allxen
-allxen: all
+allxen:
$(MAKE) -C mmap
$(MAKE) -C xc
$(MAKE) -C xb
@@ -135,5 +135,3 @@ cleanxen:
$(MAKE) -C xs clean
$(MAKE) -C xsrpc clean
$(MAKE) -C eventchn clean
-
-
View
@@ -0,0 +1,14 @@
+# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_include([mk/ocaml.m4])
View
@@ -0,0 +1,46 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.63])
+AC_INIT([xen-api-libs], [0.1], [xen-api@lists.xensource.com])
+AC_CONFIG_SRCDIR([])
+AC_CONFIG_HEADERS([stdext/config.h])
+AC_CONFIG_AUX_DIR(./mk)
+
+AC_CANONICAL_SYSTEM
+plat=generic
+case $target_os in
+darwin*)
+ plat=darwin
+ ;;
+*)
+ ;;
+esac
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([string.h sys/param.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_CHECK_FUNCS([realpath])
+
+AC_PROG_OCAML
+if test "$OCAMLC" = "no"; then
+ AC_MSG_ERROR([You must install the OCaml compiler])
+fi
+
+AC_PROG_FINDLIB
+if test "$OCAMLFIND" = "no"; then
+ AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
+fi
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
View
@@ -0,0 +1,30 @@
+Copyright © 2009 Richard W.M. Jones
+Copyright © 2009 Stefano Zacchiroli
+Copyright © 2000-2005 Olivier Andrieu
+Copyright © 2000-2005 Jean-Christophe Filliâtre
+Copyright © 2000-2005 Georges Mariano
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+* The names of the contributors may not be used to endorse or promote
+products derived from this software without specific prior written
+permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Oops, something went wrong.

0 comments on commit 970b47b

Please sign in to comment.