blob: de9d704cc3cfb8b7cdfb52282bdbc80683e54d56 [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
37AC_C_CONST
38AC_C_INLINE
39AC_C_VOLATILE
40
41AC_HEADER_STDBOOL
42AC_HEADER_STDC
43AC_HEADER_TIME
44AC_CHECK_HEADERS([arpa/inet.h])
45AC_CHECK_HEADERS([endian.h])
46AC_CHECK_HEADERS([fcntl.h])
47AC_CHECK_HEADERS([inttypes.h])
48AC_CHECK_HEADERS([netdb.h])
49AC_CHECK_HEADERS([netinet/in.h])
50AC_CHECK_HEADERS([pthread.h])
51AC_CHECK_HEADERS([stddef.h])
52AC_CHECK_HEADERS([sys/socket.h])
53AC_CHECK_HEADERS([sys/time.h])
54AC_CHECK_HEADERS([unistd.h])
55AC_CHECK_HEADERS([libintl.h])
56AC_CHECK_HEADERS([malloc.h])
57
58AC_CHECK_LIB(pthread, pthread_create)
59AC_CHECK_LIB(rt, sched_get_priority_min)
60
61AC_TYPE_INT16_T
62AC_TYPE_INT32_T
63AC_TYPE_INT64_T
64AC_TYPE_INT8_T
65AC_TYPE_MODE_T
66AC_TYPE_OFF_T
67AC_TYPE_SIZE_T
68AC_TYPE_UINT16_T
69AC_TYPE_UINT32_T
70AC_TYPE_UINT64_T
71AC_TYPE_UINT8_T
72
73AC_FUNC_ALLOCA
74AC_FUNC_MALLOC
75AC_FUNC_REALLOC
76AC_FUNC_SELECT_ARGTYPES
77AC_FUNC_STAT
78AC_FUNC_STRERROR_R
79AC_FUNC_VPRINTF
80AC_CHECK_FUNCS([strtoul])
81AC_CHECK_FUNCS([bzero])
82AC_CHECK_FUNCS([clock_gettime])
83AC_CHECK_FUNCS([gethostbyname])
84AC_CHECK_FUNCS([gettimeofday])
85AC_CHECK_FUNCS([memmove])
86AC_CHECK_FUNCS([memset])
87AC_CHECK_FUNCS([mkdir])
88AC_CHECK_FUNCS([realpath])
89AC_CHECK_FUNCS([select])
90AC_CHECK_FUNCS([socket])
91AC_CHECK_FUNCS([strchr])
92AC_CHECK_FUNCS([strdup])
93AC_CHECK_FUNCS([strstr])
94AC_CHECK_FUNCS([strtol])
95AC_CHECK_FUNCS([sqrt])
96
97AC_CONFIG_HEADERS(config.h:config.hin)
98
99AC_CONFIG_FILES([
100 Makefile
101 compiler/cpp/Makefile
102 lib/Makefile
103 lib/cpp/Makefile
104 lib/cpp/thrift.pc
105 lib/cpp/thrift-nb.pc
106 lib/cpp/thrift-z.pc
107 lib/py/Makefile
108 if/Makefile
David Reiss8180c0c2008-02-04 21:14:14 +0000109 test/Makefile
David Reiss832b2622007-12-28 18:25:33 +0000110])
Marc Slemkob09f5882006-08-23 22:03:34 +0000111
112AC_OUTPUT