From 85896a7c4dc7b6b1dba2db79dfb0ca61738a92a4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 22 Feb 2012 01:55:03 +0000 Subject: build: add autoconf to replace custom checks in tools/check Added autotools magic to replace custom check scripts. The previous checks have been ported to autoconf, and some additional ones have been added (plus the suggestions from running autoscan). Two files are created as a result from executing configure script, config/Tools.mk and config.h. conf/Tools.mk is included by tools/Rules.mk, and contains most of the options previously defined in .config, that can now be set passing parameters or defining environment variables when executing configure script. config.h is only used by libxl/xl to detect yajl_version.h. [ tools/config.sub and config.guess copied from autotools-dev 20100122.1 from Debian squeeze i386, which is GPLv2. tools/configure generated using the included ./autogen.sh which ran autoconf 2.67-2 from Debian squeeze i386. autoconf is GPLv3+ but has a special exception for the autoconf output; this exception applies to us and exempts us from complying with GPLv3+ for configure, which is good as Xen is GPL2 only. - Ian Jackson ] Signed-off-by: Roger Pau Monne Tested-by: Ian Jackson Committed-by: Ian Jackson --- config/Tools.mk.in | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 config/Tools.mk.in (limited to 'config') diff --git a/config/Tools.mk.in b/config/Tools.mk.in new file mode 100644 index 0000000000..06d5e8974b --- /dev/null +++ b/config/Tools.mk.in @@ -0,0 +1,50 @@ +# Prefix and install folder +PREFIX := @prefix@ +LIBLEAFDIR_x86_64 := @LIB_PATH@ + +# A debug build of tools? +debug := @debug@ + +# Tools path +BISON := @BISON@ +FLEX := @FLEX@ +PYTHON := @PYTHON@ +PYTHON_PATH := @PYTHONPATH@ +PERL := @PERL@ +BRCTL := @BRCTL@ +IP := @IP@ +CURL_CONFIG := @CURL@ +XML2_CONFIG := @XML@ +BASH := @BASH@ +XGETTTEXT := @XGETTEXT@ + +# Extra folder for libs/includes +PREPEND_INCLUDES := @PREPEND_INCLUDES@ +PREPEND_LIB := @PREPEND_LIB@ +APPEND_INCLUDES := @APPEND_INCLUDES@ +APPEND_LIB := @APPEND_LIB@ + +# Enable XSM security module (by default, Flask). +XSM_ENABLE := @xsm@ +FLASK_ENABLE := @xsm@ + +# Download GIT repositories via HTTP or GIT's own protocol? +# GIT's protocol is faster and more robust, when it works at all (firewalls +# may block it). We make it the default, but if your GIT repository downloads +# fail or hang, please specify GIT_HTTP=y in your environment. +GIT_HTTP := @githttp@ + +# Optional components +XENSTAT_XENTOP := @monitors@ +VTPM_TOOLS := @vtpm@ +LIBXENAPI_BINDINGS := @xapi@ +PYTHON_TOOLS := @pythontools@ +OCAML_TOOLS := @ocamltools@ +CONFIG_MINITERM := @miniterm@ +CONFIG_LOMOUNT := @lomount@ + +#System options +CONFIG_SYSTEM_LIBAIO:= @system_aio@ +CONFIG_LIBICONV := @libiconv@ +CONFIG_GCRYPT := @libgcrypt@ +CONFIG_EXT2FS := @libext2fs@ -- cgit v1.2.3