1
AC_INIT(iljit-gc-allocator, 0.1.1, simo.xan@gmail.com)
2
AC_CONFIG_AUX_DIR([build-aux])
3
AM_INIT_AUTOMAKE(iljit-gc-allocator, 0.1.1)
4
AM_CONFIG_HEADER(src/config.h)
6
ISODATE=`date +%Y-%m-%d`
8
AC_PREFIX_DEFAULT(/usr/local)
9
if test "${prefix}" == "NONE" ; then
12
AC_ARG_ENABLE(debug, [ --enable-debug Enable debug compilation])
13
AC_ARG_ENABLE(printdebug, [ --enable-printdebug Enable the print debug and the debug compilation])
14
AC_ARG_ENABLE(profile, [ --enable-profile Enable the compilation for the automatically profiler tools])
15
AM_CONDITIONAL(DEBUG, test "$enable_debug" = "yes")
16
AM_CONDITIONAL(PRINTDEBUG, test "$enable_printdebug" = "yes")
17
AM_CONDITIONAL(PROFILE, test "$enable_profile" = "yes")
18
AC_DEFINE_UNQUOTED(PREFIX, "${prefix}", [Prefix directory])
19
AC_DEFINE_UNQUOTED(DATADIR, "${prefix}/share", [Data directory])
23
AM_CONDITIONAL(CYGWIN,true)
26
AM_CONDITIONAL(CYGWIN,false)
29
AM_CONDITIONAL(CYGWIN,false)
32
##############################################################################################################################
33
# Initialize compiler default options
34
##############################################################################################################################
35
AM_INIT_AUTOMAKE(-Wall -Werror)
36
CFLAGS="$CFLAGS -Wall"
39
##############################################################################################################################
40
# Checks for programs.
41
##############################################################################################################################
45
AC_CHECK_TOOL(PKGVAR, pkg-config)
46
if test -z "$PKGVAR" ; then
47
echo "ERROR: I can't find the pkg-config program, then you have to install it" ;
51
##############################################################################################################################
52
## Checks for libraries.
53
##############################################################################################################################
54
PKG_CHECK_MODULES(ILJITES_ILJITU, libiljitu >= 0.1.0)
55
AC_SUBST(ILJITES_ILJITU_CFLAGS)
56
AC_SUBST(ILJITES_ILJITU_LIBS)
58
PKG_CHECK_MODULES(XAN, libxan >= 0.1.0)
62
PKG_CHECK_MODULES(COMPILERMEMORYMANAGER, libcompilermemorymanager >= 0.1.0)
63
AC_SUBST(COMPILERMEMORYMANAGER_CFLAGS)
64
AC_SUBST(COMPILERMEMORYMANAGER_LIBS)
66
PKG_CHECK_MODULES(IRVIRTUALMACHINE, libirvirtualmachine >= 0.1.0)
67
AC_SUBST(IRVIRTUALMACHINE_CFLAGS)
68
AC_SUBST(IRVIRTUALMACHINE_LIBS)
71
##############################################################################################################################
72
# Checks for header files.
73
##############################################################################################################################
75
AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h string.h memory.h alloca.h locale.h )