-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
99 lines (91 loc) · 2.62 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT(kite-llvm, 0.3.0, [email protected])
LT_INIT
LT_LANG([C++])
AC_CONFIG_SRCDIR([src/ikt.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([subdir-objects])
# Checks for programs.
AC_PROG_CC
AC_PROG_YACC
AC_PROG_LEX
# Checks for libraries.
AX_BOOST_BASE([1.49])
AX_BOOST_FILESYSTEM
AX_BOOST_REGEX
AX_BOOST_SYSTEM
AX_CHECK_OPENSSL
AX_LLVM
AX_BOEHMGC
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h netdb.h sys/socket.h sys/time.h unistd.h])
# We need both of these due to ffi.h being in different locations on different OSes.
AC_CHECK_HEADER(ffi/ffi.h, AC_DEFINE(FFI_HEADER, ["ffi/ffi.h"], [Path to ffi.h]))
AC_CHECK_HEADER(ffi.h, AC_DEFINE(FFI_HEADER, ["ffi.h"], [Path to ffi.h]))
AC_CHECK_LIB(ffi, ffi_prep_cif)
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_SIZE_T
AC_TYPE_UINT64_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_MMAP
AC_CHECK_FUNCS([getcwd gettimeofday memset mkdir munmap rmdir select setenv socket strtol])
AC_OUTPUT(
_testdeps/Makefile
Makefile
src/codegen/Makefile
src/Makefile
src/parser/Makefile
src/semantics/Makefile
src/stdlib/language/kite/Makefile
src/stdlib/language/Makefile
src/stdlib/Makefile
src/stdlib/System/collections/Makefile
src/stdlib/System/date/Makefile
src/stdlib/System/exceptions/Makefile
src/stdlib/System/Makefile
src/stdlib/System/math/Makefile
src/stdlib/System/network/Makefile
src/stdlib/System/network/wrapper/Makefile
src/stdlib/System/os/Makefile
src/stdlib/System/regex/Makefile
src/stdlib/System/vm/Makefile
stress/Makefile
tests/algorithms/Makefile
tests/Makefile
tests/semantics/class/Makefile
tests/semantics/deref/array/Makefile
tests/semantics/deref/Makefile
tests/semantics/deref/var/Makefile
tests/semantics/eval/Makefile
tests/semantics/exceptions/Makefile
tests/semantics/import/Makefile
tests/semantics/loop/Makefile
tests/semantics/Makefile
tests/semantics/method/Makefile
tests/semantics/ops/boolean/Makefile
tests/semantics/ops/is/Makefile
tests/semantics/ops/isof/Makefile
tests/semantics/ops/Makefile
tests/semantics/ops/map/Makefile
tests/semantics/ops/reduce/Makefile
tests/stdlib/boolean/Makefile
tests/stdlib/collections/Makefile
tests/stdlib/collections/binary_tree/Makefile
tests/stdlib/float/Makefile
tests/stdlib/int/Makefile
tests/stdlib/list/Makefile
tests/stdlib/Makefile
tests/stdlib/math/Makefile
tests/stdlib/null/Makefile
tests/stdlib/string/Makefile
)