forked from bigmc/bigmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
64 lines (52 loc) · 1.19 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
AC_INIT([BigMC], [20120807], [gdpe@itu.dk], [bigmc], [http://bigraph.org/bigmc/])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 no-define])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_DEFAULT(/usr/local/bigmc)
AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile
doc/Makefile
])
AC_PROG_LEX
AC_PROG_YACC
#AC_CHECK_LIB([pthread], [pthread_create])
#AC_CHECK_LIB([tcmalloc], [malloc])
AC_ARG_WITH(
[readline],
[AS_HELP_STRING([--with-readline], [enable support for readline])],
[], [with_readline=check])
LIBREADLINE=
AS_IF([test "x$with_readline" != xno],
[
AC_CHECK_HEADER(
[readline/readline.h],
[
AC_SEARCH_LIBS(
[readline],
[readline],
[
AC_SUBST([LIBREADLINE], ["-lreadline"])
AC_DEFINE(HAVE_LIBREADLINE, [1], [Define if you have libreadline])
], [
if test "x$with_readline" != xcheck; then
AC_MSG_FAILURE([readline test failed (--without-readline to disable)])
fi
]
)
], [
if test "x$with_readline" != xcheck; then
AC_MSG_FAILURE([readline test failed (--without-readline to disable)])
fi
]
)
]
)
AC_HEADER_ASSERT
#AX_PTHREAD
AC_OUTPUT