-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
92 lines (72 loc) · 3.97 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
dnl **************************************************************************
dnl * Initialize
dnl **************************************************************************
AC_INIT([[[loom]]],[[[0.10]]],[[email protected]])
dnl Tell autoconf that this is an LLVM project being configured
dnl This provides the --with-llvmsrc and --with-llvmobj options
LLVM_SRC_ROOT=`llvm-config --src-root`
LLVM_OBJ_ROOT=`llvm-config --obj-root`
LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT)
dnl Tell autoconf that this project uses the RCS common project
dnl This provides the --with-rcssrc and --with-rcsobj options
RCS_SRC_ROOT="."
RCS_OBJ_ROOT="."
RCS_CONFIG_PROJECT($RCS_SRC_ROOT,$RCS_OBJ_ROOT)
dnl Tell autoconf that the auxilliary files are actually located in
dnl the LLVM autoconf directory, not here.
AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf)
dnl Verify that the source directory is valid
AC_CONFIG_SRCDIR(["Makefile.common.in"])
dnl Configure a common Makefile
AC_CONFIG_FILES(Makefile.common)
dnl Configure the header file
AC_CONFIG_HEADERS([include/loom/config.h])
AH_TOP([#ifndef __LOOM_CONFIG_H
#define __LOOM_CONFIG_H])
AH_BOTTOM([#endif])
AC_ARG_WITH(ctrl-ip, AS_HELP_STRING([--with-ctrl-ip], [Controller's IP (default = localhost)]), , [with_ctrl_ip=127.0.0.1])
AC_MSG_CHECKING([controler's ip])
AC_MSG_RESULT([$with_ctrl_ip])
AC_DEFINE_UNQUOTED(CONTROLLER_IP, "$with_ctrl_ip", [Controller's IP])
AC_ARG_WITH(ctrl-port, AS_HELP_STRING([--with-ctrl-port], [Controller's port (default = 1229)]), , [with_ctrl_port=1229])
AC_MSG_CHECKING([controler's port])
AC_MSG_RESULT([$with_ctrl_port])
AC_DEFINE_UNQUOTED(CONTROLLER_PORT, $with_ctrl_port, [Controller's port])
dnl TODO: make them configurable
AC_DEFINE_UNQUOTED(MaxNumBackEdges, (65536), [Maximum number of back edges])
AC_DEFINE_UNQUOTED(MaxNumBlockingCS, (65536), [Maximum number of blocking external callsites])
AC_DEFINE_UNQUOTED(MaxNumFuncs, (65536), [Maximum number of functions])
AC_DEFINE_UNQUOTED(MaxNumInsts, (2000000), [Maximum number of instructions])
AC_DEFINE_UNQUOTED(MaxNumFilters, (1024), [Maximum number of filters])
dnl Configure project makefiles
dnl List every Makefile that exists within your source tree
AC_CONFIG_MAKEFILE(Makefile)
dnl **************************************************************************
dnl * Determine which system we are building on
dnl **************************************************************************
dnl **************************************************************************
dnl * Check for programs.
dnl **************************************************************************
dnl **************************************************************************
dnl * Check for libraries.
dnl **************************************************************************
dnl **************************************************************************
dnl * Checks for header files.
dnl **************************************************************************
dnl **************************************************************************
dnl * Checks for typedefs, structures, and compiler characteristics.
dnl **************************************************************************
dnl **************************************************************************
dnl * Checks for library functions.
dnl **************************************************************************
dnl **************************************************************************
dnl * Enable various compile-time options
dnl **************************************************************************
dnl **************************************************************************
dnl * Set the location of various third-party software packages
dnl **************************************************************************
dnl **************************************************************************
dnl * Create the output files
dnl **************************************************************************
dnl This must be last
AC_OUTPUT