blob: 335ec875da91d98e5488bccef4e52e92370a7878 [file] [log] [blame]
Marc Slemkob09f5882006-08-23 22:03:34 +00001AC_PREREQ(2.59)
2
David Reissb72d19f2007-09-18 19:46:00 +00003AC_INIT([thrift], [20070917])
Marc Slemkob09f5882006-08-23 22:03:34 +00004
5AC_CONFIG_AUX_DIR([.])
6
7AM_INIT_AUTOMAKE
8
David Reissd6832192007-09-05 00:47:32 +00009AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
10 (Normal --prefix is ignored for Python because
11 Python has different conventions.)
12 Default = "/usr"])
13AS_IF([test "x$PY_PREFIX" == x], [PY_PREFIX="/usr"])
14
David Reiss832b2622007-12-28 18:25:33 +000015AM_PATH_PYTHON(2.4,, :)
Marc Slemkob09f5882006-08-23 22:03:34 +000016
David Reiss832b2622007-12-28 18:25:33 +000017
18AC_PROG_CC
19AC_PROG_CPP
20AC_PROG_CXX
21AC_PROG_INSTALL
22AC_PROG_LIBTOOL
23AC_PROG_MAKE_SET
24AC_PROG_YACC
25AC_PROG_LEX
26AM_PROG_LEX
27
28AC_LANG([C++])
29AX_BOOST_BASE([1.33.1])
30
31AX_LIB_EVENT([1.0])
32AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$success" = "yes"])
33
34AX_LIB_ZLIB([1.2.3])
35AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$success" = "yes"])
36
David Reiss1fdb5922008-02-06 22:10:12 +000037PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)
38AM_CONDITIONAL(ENABLE_MONO, [test "$have_mono" = "yes"])
39
40
David Reiss832b2622007-12-28 18:25:33 +000041AC_C_CONST
42AC_C_INLINE
43AC_C_VOLATILE
44
45AC_HEADER_STDBOOL
46AC_HEADER_STDC
47AC_HEADER_TIME
48AC_CHECK_HEADERS([arpa/inet.h])
49AC_CHECK_HEADERS([endian.h])
50AC_CHECK_HEADERS([fcntl.h])
51AC_CHECK_HEADERS([inttypes.h])
52AC_CHECK_HEADERS([netdb.h])
53AC_CHECK_HEADERS([netinet/in.h])
54AC_CHECK_HEADERS([pthread.h])
55AC_CHECK_HEADERS([stddef.h])
56AC_CHECK_HEADERS([sys/socket.h])
57AC_CHECK_HEADERS([sys/time.h])
58AC_CHECK_HEADERS([unistd.h])
59AC_CHECK_HEADERS([libintl.h])
60AC_CHECK_HEADERS([malloc.h])
61
62AC_CHECK_LIB(pthread, pthread_create)
63AC_CHECK_LIB(rt, sched_get_priority_min)
64
65AC_TYPE_INT16_T
66AC_TYPE_INT32_T
67AC_TYPE_INT64_T
68AC_TYPE_INT8_T
69AC_TYPE_MODE_T
70AC_TYPE_OFF_T
71AC_TYPE_SIZE_T
72AC_TYPE_UINT16_T
73AC_TYPE_UINT32_T
74AC_TYPE_UINT64_T
75AC_TYPE_UINT8_T
76
77AC_FUNC_ALLOCA
78AC_FUNC_MALLOC
79AC_FUNC_REALLOC
80AC_FUNC_SELECT_ARGTYPES
81AC_FUNC_STAT
82AC_FUNC_STRERROR_R
83AC_FUNC_VPRINTF
84AC_CHECK_FUNCS([strtoul])
85AC_CHECK_FUNCS([bzero])
86AC_CHECK_FUNCS([clock_gettime])
87AC_CHECK_FUNCS([gethostbyname])
88AC_CHECK_FUNCS([gettimeofday])
89AC_CHECK_FUNCS([memmove])
90AC_CHECK_FUNCS([memset])
91AC_CHECK_FUNCS([mkdir])
92AC_CHECK_FUNCS([realpath])
93AC_CHECK_FUNCS([select])
94AC_CHECK_FUNCS([socket])
95AC_CHECK_FUNCS([strchr])
96AC_CHECK_FUNCS([strdup])
97AC_CHECK_FUNCS([strstr])
98AC_CHECK_FUNCS([strtol])
99AC_CHECK_FUNCS([sqrt])
100
101AC_CONFIG_HEADERS(config.h:config.hin)
102
103AC_CONFIG_FILES([
104 Makefile
105 compiler/cpp/Makefile
106 lib/Makefile
107 lib/cpp/Makefile
108 lib/cpp/thrift.pc
109 lib/cpp/thrift-nb.pc
110 lib/cpp/thrift-z.pc
David Reiss1fdb5922008-02-06 22:10:12 +0000111 lib/csharp/Makefile
David Reiss832b2622007-12-28 18:25:33 +0000112 lib/py/Makefile
113 if/Makefile
David Reiss8180c0c2008-02-04 21:14:14 +0000114 test/Makefile
David Reiss832b2622007-12-28 18:25:33 +0000115])
Marc Slemkob09f5882006-08-23 22:03:34 +0000116
117AC_OUTPUT